Lookup IP

GEThttps://api-ip-intelligence.dataandapis.com/v1/ip/{address}

Lookup IP is an endpoint of the IP Intelligence API. Country, ASN, datacenter, cloud and Tor detection with an explainable risk score for any IP.

Send your key in the X-Api-Key header. Each call costs 1 token; a free key includes 500 tokens a month.

Request

Path parameters

ParameterExample
address3.5.140.2Required

Example request

curl
curl "https://api-ip-intelligence.dataandapis.com/v1/ip/3.5.140.2" \
  -H "X-Api-Key: YOUR_API_KEY"
Node.js
const res = await fetch("https://api-ip-intelligence.dataandapis.com/v1/ip/3.5.140.2", {
  headers: { "X-Api-Key": process.env.DATAANDAPIS_KEY },
});
const data = await res.json();
Python
import os, requests

r = requests.get(
    "https://api-ip-intelligence.dataandapis.com/v1/ip/3.5.140.2",
    headers={"X-Api-Key": os.environ["DATAANDAPIS_KEY"]},
)
data = r.json()

Example response

Example response
{
  "ok": true,
  "ip": "8.8.8.8",
  "family": "ipv4",
  "mapped_from": null,
  "special_use": null,
  "country": "US",
  "registry_country": "US",
  "country_matches_registry": true,
  "asn": {
    "number": 15169,
    "organization": "GOOGLE",
    "registry_country": "US",
    "range": {
      "start": "8.8.8.0",
      "end": "8.8.8.255"
    }
  },
  "hosting": null,
  "is_datacenter": false,
  "is_cdn": false,
  "is_tor_exit": false,
  "is_routed": true,
  "risk": {
    "score": 0,
    "level": "none",
    "reasons": []
  }
…
Show full response
{
  "ok": true,
  "ip": "8.8.8.8",
  "family": "ipv4",
  "mapped_from": null,
  "special_use": null,
  "country": "US",
  "registry_country": "US",
  "country_matches_registry": true,
  "asn": {
    "number": 15169,
    "organization": "GOOGLE",
    "registry_country": "US",
    "range": {
      "start": "8.8.8.0",
      "end": "8.8.8.255"
    }
  },
  "hosting": null,
  "is_datacenter": false,
  "is_cdn": false,
  "is_tor_exit": false,
  "is_routed": true,
  "risk": {
    "score": 0,
    "level": "none",
    "reasons": []
  }
}