IP Geolocation All docs

IP Geolocation API Reference

One route under /v1/ip. Base URL https://api.apifor.dev, authenticated with x-api-key, one credit per request. Coverage and licence are on the IP Geolocation page.

GET/v1/ip

List db-ip lite geolocation with filters and paging.

ParameterInTypeRules
addressquerystringNone
GET/v1/ip
curl 'https://api.apifor.dev/v1/ip' \
  -G -d address=8.8.8.8 \
  -H 'x-api-key: YOUR_API_KEY'
Example response · 200
{
  "success": true,
  "data": {
    "address": "8.8.8.8",
    "version": 4,
    "id": 18894,
    "continent": "NA",
    "country": "US",
    "region": "California",
    "city": "Mountain View",
    "lat": 37.422,
    "lon": -122.085
  }
}
  • 200Address location with DB-IP attribution
  • 400Invalid address
  • 404Address not found

Error handling · Rate limits · Source licences