IP Address Geolocation with Confidence Area API
This API returns the same geolocation data as the IP Address Geolocation API, with one important addition: a confidence area polygon.
Where most geolocation APIs return a single coordinate, this endpoint also returns a set of coordinates forming a closed polygon — the realistic boundary within which the IP address is likely operating. This boundary is derived from our router service area analysis: we calculate the actual geographic coverage of the network infrastructure responsible for that IP, based on verified ground truth data. The result is an honest representation of location uncertainty rather than a false sense of precision.
This makes the confidence area particularly useful when the stakes are higher — fraud detection, risk scoring, compliance checks — where knowing the bounds of what you can and can't determine matters as much as the estimate itself. For a full explanation of how confidence area works, see What is Confidence Area?
For background on the underlying technology, read The Next Generation IP Geolocation Service.
https://api-bdc.net/data/ip-geolocation-with-confidenceParameters
| Parameter | Type | Required | Description |
|---|---|---|---|
ip | string | Optional | IPv4 IP address in a string or numeric format or IPv6 IP address in a string format. If omitted, the caller’s IP address is assumed |
localityLanguage | string | Optional | Preferred language for locality names in ISO 639-1 format, such as 'en' for English, 'es' for Spanish etc. If the requested language is unavailable for a requested location, it will default to English. If no English variant is available, will provide the native, local names. Use 'default' as the requested value to automatically adjust the language to the first administrative language in the Country. |
key | string | Optional | Your API key |
Responses
Sample Request
https://api-bdc.net/data/ip-geolocation-with-confidence?ip=3.89.47.240&localityLanguage=en&key=[YOUR API KEY]Sample Response
Response Schema
▶countryobjectcountry object
▶isoAdminLanguagesarrayAdministrative languages as defined by ISO 3166-1 standard
▶currencyobjectcurrency object
▶wbRegionobjectwbRegion object
▶wbIncomeLevelobjectwbIncomeLevel object
▶locationobjectlocation object
▶fipsobjectFIPS code object, omitted if unavailable. FIPS (Federal Information Processing Standards) Codes are codes used by the Census Bureau to uniquely identify places in the US. Visit FIPS FAQ page for more information.
▶timeZoneobjecttimeZone object
▶localityInfoobjectlocalityInfo object
▶administrativearrayAdministrative authorities as ordered by area (most significant first). Omitted if no administrative boundaries are available
▶informativearrayNon-administrative boundaries as ordered by area (most significant first). Omitted if unavailable
▶networkobjectnetwork object
▶carriersarrayList of Autonomous Systems (AS) announcing this network on BGP
▶viaCarriersarrayList of Autonomous Systems (AS) detected at the last BGP hop before the network carriers. Capped to the 5 most significant upstream peers.
▶confidenceAreaarrayA closed polygon (list of latitude/longitude points) representing the maximum possible service area where this IP address could be located. Based on ISP historical allocation patterns and network topology. Use this to display an uncertainty region on a map.
Sample Response
Sample Response
Sample Response
Sample Response