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 one or more closed polygons — an estimate of where else the IP address may be found if it is assigned dynamically or shared between consumers. It is derived from our router service area analysis and ISP allocation patterns. It is an estimate, not a boundary or a guarantee, and it says nothing about how the address is distributed within it.
This makes the confidence area particularly useful when the stakes are higher — fraud detection, risk scoring, compliance checks — where knowing the limits 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 an IP address confidence area is (and is not). For the field definition, 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=98.93.45.112&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 flat list of latitude/longitude points encoding one or more closed polygons, estimating where else this IP address may be found if it is assigned dynamically or shared between consumers. Derived from our router service area analysis and ISP allocation patterns. It is an estimate, not a boundary or a guarantee, and it says nothing about how the address is distributed within it. This array may encode several polygons concatenated together — each ring ends where a point repeats that ring's first point. Split it into individual rings before rendering or performing spatial operations.
Sample Response
Sample Response
Sample Response
Sample Response