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

Python3 Example


from urllib import request, parse
import json

url = 'https://neutrinoapi.net/ip-info'
params = {
  'user-id': 'YOUR_USER_ID',
  'api-key': 'YOUR_API_KEY',
  'ip': '162.209.104.195'
}

postdata = parse.urlencode(params).encode()
req = request.Request(url, data=postdata)
response = request.urlopen(req)
result = json.loads(response.read().decode("utf-8"))

print(result)
 

Python2 Example


import urllib, urllib2, json

url = 'https://neutrinoapi.net/ip-info'
params = {
  'user-id': 'YOUR_USER_ID',
  'api-key': 'YOUR_API_KEY',
  'ip': '162.209.104.195'
}

req = urllib2.Request(url, urllib.urlencode(params))
response = urllib2.urlopen(req)
result = json.loads(response.read())

print result['country']
print result['country-code']
print result['region']
print result['city']