API Basics
Data Tools
WWW
★  Browser Bot
★  HTML Clean
★  HTML Extract
★  URL Info
Telephony
Geolocation
Security and Networking
E-commerce
Imaging

Examples

Minimal snippets for various languages. You might also like to check out our SDKs

C#
Go
PHP

Go Example


package main

import (
  "fmt"
  "net/http"
  "net/url"
  "io/ioutil"
  "encoding/json"
)

func main() {
 
  params := url.Values{}
  params.Set("user-id", "YOUR_USER_ID")
  params.Set("api-key", "YOUR_API_KEY")
  params.Set("ip", "162.209.104.195")
 
  resp, err := http.PostForm("https://neutrinoapi.net/ip-info", params)
  if err == nil {
    defer resp.Body.Close()
    body, err := ioutil.ReadAll(resp.Body)
    if err == nil {
      var result map[string]interface{}
      err := json.Unmarshal(body, &result)
      if err == nil {
        fmt.Println(result["country"])
        fmt.Println(result["country-code"])
        fmt.Println(result["region"])
        fmt.Println(result["city"])
      }
    }
  }
}