ready-to-use endpoints in this product, with JSON responses and consistent error handling.
Look up the country, region, city, coordinates, and the network ASN and organisation of an IPv4 or IPv6 address.
Data as of · Source: DB-IP Lite (IP Geolocation by DB-IP)
Look up the country, region, city, coordinates, and the network ASN and organisation of an IPv4 or IPv6 address.
ready-to-use endpoints in this product, with JSON responses and consistent error handling.
Can be tried with the 3,000 credit signup bonus, then used in production through one API Indonesia key.
https://use.apiindonesia.id/api/v1/ip/:ipDetails for one IP address.
This section separates the product page from the docs. The docs explain how to call endpoints; this page explains why the endpoints make sense for your feature.
curl "https://use.apiindonesia.id/api/v1/ip/36.66.0.1" \
-H "x-api-key: YOUR_API_KEY"{
"success": true,
"data": {
"ip": "36.66.0.1",
"version": 4,
"reserved": false,
"continent_code": "AS",
"country_code": "ID",
"region": "Jakarta",
"city": "Jakarta",
"latitude": -6.18354,
"longitude": 106.824,
"asn": { "number": 7713, "organization": "Telekomunikasi Indonesia (PT)" },
"network": { "start": "36.66.0.0", "end": "36.66.0.255" }
},
"meta": {
"attribution": {
"source": "IP Geolocation by DB-IP",
"license": "CC BY 4.0",
"license_url": "https://creativecommons.org/licenses/by/4.0/",
"source_url": "https://db-ip.com",
"attribution_page": "https://db-ip.com/db/lite.php",
"notice": "Data diubah: rentang IP dan lokasi dinormalisasi ke format JSON API Indonesia; rentang \"ZZ\" dilaporkan sebagai reserved. Bukan endorsement dari DB-IP."
}
}
}Country code, continent code, region, city, latitude/longitude, ASN and organisation name, and the DB-IP range the address falls in, for IPv4 and IPv6.
The data is DB-IP Lite, which DB-IP describes as a subset with reduced coverage and accuracy compared with its commercial edition. Country is generally more reliable than city; treat city and coordinates as approximate.
Yes, when your application displays or uses the results on a web page. DB-IP's CC BY 4.0 licence requires a link back, for example "IP Geolocation by DB-IP" linking to https://db-ip.com. Every response already carries meta.attribution.
POST /api/v1/ip/batch is priced per call: 100 credits for 1 to 100 addresses. For fewer than 50 addresses, calling /ip/{ip} one by one (2 credits per call) is cheaper.