API
Every lookup on this site is also available as JSON. No key is needed. Keep it under a few requests per second; responses can be cached for an hour.
- Your IP as plain text
curl ipdb.si - Your IP with the full report
curl https://ipdb.si/json - Any IP address
curl https://ipdb.si/api/ip/1.1.1.1 - An AS number with its prefixes
curl https://ipdb.si/api/as/13335
Add ?lang=zh to get country names in Chinese.
Report fields
- ip
- The address in its standard form. IPv4-mapped IPv6 addresses are answered as IPv4.
- family
- 4 or 6.
- scope
- public for internet addresses, otherwise the special range it belongs to, like private or loopback. Only public addresses get the fields below.
- location
- Country, region, city and coordinates where the address is used.
- asn
- The autonomous system announcing the address, with its network type and what decided that type.
- registration
- The regional internet registry, country and date the block was registered.
- network
- hosting, isp, business, education, government or unknown, and the cloud provider when the address is in its published ranges.
- privacy
- Tor exit, iCloud Private Relay egress, and the VPN provider whose server list includes the address.
- abuse
- Spamhaus DROP, how many threat feeds reported it, and the result of each DNS blocklist.
- origin
- native when the registration and location countries match, broadcast when they differ.
- hostname
- The reverse DNS name.
- score
- The purity score, its grade and each deduction.
Example
{
"ip": "1.1.1.1",
"family": 4,
"scope": "public",
"location": {
"continent": "OC",
"country": { "code": "AU", "name": "Australia" },
"region": "New South Wales",
"city": "Sydney",
"latitude": -33.8688,
"longitude": 151.209
},
"asn": {
"number": 13335,
"name": "CLOUDFLARENET - Cloudflare, Inc.",
"country": { "code": "US", "name": "United States" },
"type": "hosting",
"typeSource": "list",
"peeringDb": { "name": "Cloudflare", "type": "Content" }
},
"registration": {
"rir": "apnic",
"country": { "code": "AU", "name": "Australia" },
"status": "assigned",
"date": "20110811"
},
"network": { "type": "hosting", "cloud": null },
"privacy": { "tor": false, "relay": false, "vpn": null },
"abuse": {
"drop": false,
"threatLists": 0,
"dnsbl": [
{ "zone": "bl.spamcop.net", "name": "SpamCop", "status": "clean" },
…
]
},
"origin": "native",
"hostname": "one.one.one.one",
"score": {
"value": 70,
"grade": "C",
"deductions": [{ "key": "hosting", "points": 30 }]
}
}