IP Address Geolocation with Confidence Area API
Introduction
The IP Address Geolocation with Confidence Area API is based on the same data and accuracy as the IP Geolocation API, but with an additional layer of information on top - the Confidence Area.
The Confidence Area is an essential feature of the IP Address Geolocation, providing a list of coordinates that define a closed polygon representing the maximum possible service area where an IP address could be located. This information is based on the historical allocation of IP addresses by Internet Service Providers (ISPs) and the network topology.
The Confidence Area feature can be useful for various applications that require a higher level of precision in geolocation, such as fraud detection, risk analysis, and targeted advertising. For more detailed information on Confidence Area, you can refer to the What is Confidence Area? FAQ on our website.
Get Started
This API is part of the IP Geolocation API Package and is available in free and paid plans. Please visit the IP Geolocation API Package package page for limits and pricing information.
Endpoint
Request
Responses
200OK
Sample Query
Schema
ipstringRequested IP address in a string format.
localityLanguageRequestedstringlocalityLanguage input parameter received
isReachableGloballybooleanIndicated whether the IP address is present on the global routing table, hence reachable.
If not reachable, the IP address is not in use and therefore cannot be geolocated
countrycountry object
isoAlpha2stringISO 3166-1 Alpha-2 code
isoAlpha3stringISO 3166-1 Alpha-3 code
m49CodeintegerUnited Nations M.49 code
namestringCountry name localised to the language as defined by 'localityLanguage' request parameter
isoNamestringISO 3166-1 Country name short
isoNameFullstringISO 3166-1 Country name full
isoAdminLanguagesarrayAdministrative languages as defined by ISO 3166-1 standard
isoAlpha3stringISO 3166-1 Alpha-3 code
isoAlpha2stringISO 3166-1 Alpha-2 code
isoNamestringISO 3166-1 Language name
nativeNamestringA native name
unRegionstringRegion name as defined by the United Nations
currencycurrency object
numericCodeintegerISO 4217 standard numeric code
codestringISO 4217 standard code
namestringISO 4217 English name
minorUnitsintegerISO 4217 minor units as the currency exponent (e.g. 2 = 1/100)
wbRegionwbRegion object
idstringworld bank identification number. the expected values are: 'LCN','NA','SAS','SSF','ECS','MEA','EAS','NAC'
iso2Codestringiso 2 letters code. the expected values are: 'ZJ','NA','8S','ZG','Z7','ZQ','Z4','XU'
valuestringregion name. the expected values are: 'Latin America & Caribbean','Aggregates','South Asia',
'Sub-Saharan Africa','Europe & Central Asia','Middle East & North Africa','East Asia & Pacific','North America'
wbIncomeLevelwbIncomeLevel object
idstringworld bank identification number. the expected values are: 'HIC','NA','LIC','LMC','UMC','INX'
iso2Codestringiso 2 letters code. the expected values are: 'XD','NA','XM','XN','XT','XY'
valuestringincome level name. the expected values are: 'High income','Aggregates','Low income','Lower middle income','Upper middle income','Not classified'
callingCodestringCalling code
countryFlagEmojistringCountry emoji
wikidataIdstringWikidata item identifier, if available
geonameIdintegerA unique identifier as is given by GeoNames.org
isIndependentbooleanDetermines if the country/territory is independent according to ISO 3166 records
locationlocation object
principalSubdivisionstringLocalised principal subdivision name in the requested language, if available
isoPrincipalSubdivisionstringPrincipal subdivision name as defined by ISO 3166-2 standard
isoPrincipalSubdivisionCodestringPrincipal subdivision code as defined by ISO 3166-2 standard
continentstringLocalised Continent name in the requested language, if available
continentCodestringContinent code
citystringThe most significant populated place this location belongs. It will likely be the City name in the language requested. If unavailable, use the locality name field as a failover
localityNamestringRepresents the smallest geographic area recognised to which the target belongs. The language, if available, is as defined by the 'localityLanguage' request parameter
postcodestringPostcode, if available
latitudenumberEstimated Latitude
longitudenumberEstimated Longitude
plusCodestringOpen Location Code
fipsFIPS 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.
statestringState-level FIPS codes have two digits
countystringA three digits County-level FIPS code.
countySubdivisionstringFIPS five digits County Subdivision Code
placestringFIPS five digits place code, omitted if unavailable
csdCodestringCSD (Census Subdivision) code, omitted if unavailable. Canadian Geographic Codes. Visit CSD FAQ page for more information.
timeZonetimeZone object
ianaTimeIdstringThe unique identifier of the time zone from the IANA Time Zone Database (e.g., "America/New_York").
displayNamestringdisplayName object
effectiveTimeZoneFullstringThe full name of the effective time zone, adjusted for daylight saving (e.g., "Eastern Daylight Time").
effectiveTimeZoneShortstringThe abbreviated name of the effective time zone, adjusted for daylight saving (e.g., "EDT").
utcOffsetSecondsintegerThe effective offset from UTC in seconds, adjusted for daylight saving time.
utcOffsetstringThe effective offset from UTC, formatted as a string and adjusted for daylight saving time.
isDaylightSavingTimebooleanA boolean value indicating whether daylight saving time is currently in effect.
localTimestringThe current local time in the specified time zone, formatted in ISO 8601 "O" format.
utcTimestringThe corresponding UTC time, formatted in ISO 8601 "O" format. This value is omitted if the 'utcReference' parameter was not supplied or was invalid.
localityInfolocalityInfo object
administrativearrayAdministrative authorities as ordered by area (most significant first). Omitted if no administrative boundaries are available
namestringLocalised name of the place in the requested language, if available. The language is as defined by the 'localityLanguage' request parameter
descriptionstringLocalised description of the place in the requested language, if available. The language is as defined by the 'localityLanguage' request parameter
isoNamestringISO 3166-2 standard name, if available
orderintegerOrder value consistent across all entities in the Locality Info parent object. Ordered by geographic area (most significant first)
adminLevelintegerAn administrative level as defined by OpenStreetMaps project
isoCodestringISO 3166-2 standard code, if available
wikidataIdstringWikidata item identifier, if available
geonameIdintegerUnique identifier given by GeoNames.org, if available
chinaAdminCodestringChina Administrative division code. Only available for locations based in China and omitted for others
informativearrayNon-administrative boundaries as ordered by area (most significant first). Omitted if unavailable
namestringLocalised name of the place in the requested language, if available. The language is as defined by the 'localityLanguage' request parameter
descriptionstringLocalised description of the place in the requested language, if available. The language is as defined by the 'localityLanguage' request parameter
isoNamestringISO 3166-2 standard name, if available
orderintegerOrder value consistent across all entities in the Locality Info parent object. Ordered by geographic area (most significant first)
adminLevelintegerAn administrative level as defined by OpenStreetMaps project
isoCodestringISO 3166-2 standard code, if available
wikidataIdstringWikidata item identifier, if available
geonameIdintegerUnique identifier given by GeoNames.org, if available
chinaAdminCodestringChina Administrative division code. Only available for locations based in China and omitted for others
lastUpdatedstringIndicates the time of when that particular IP address’s geolocation was assessed the last
networknetwork object
registrystringThe Regional Internet Registry (RIR), the network registered with
registryStatusstringRegistration status
registeredCountrystringRegistered Country ISO 3166-1 Alpha-2 code
registeredCountryNamestringRegistered Country name localised to the language is as defined by 'localityLanguage' request parameter
organisationstringorganisation or a segment the network is registered for
isReachableGloballybooleanIndicates whether the network was announced on BGP and reachable globally or not
isBogonbooleanIndicates whether the IP address is excluded from public Internet use
by the authorities but announced into the global routing table via BGP
bgpPrefixstringThe BGP prefix detected on the global network, announcing the network
bgpPrefixNetworkAddressstringBGP prefix network (the first) address
bgpPrefixLastAddressstringBGP prefix last address
totalAddressesintegerNumber of IP addresses in the Network. For IPv6 networks, the value can range up to a 128-bit unsigned integer
carriersarrayList of Autonomous Systems (AS) announcing this network on BGP
asnstringAutonomous System Number string
asnNumericintegerAutonomous System Number
organisationstringRegistered Organisation
namestringRegistered name
registrystringThe Regional Internet Registry (RIR) the AS is registered with
registeredCountrystringRegistered Country ISO 3166-1 Alpha-2 code
registeredCountryNamestringRegistered Country localised name. The language is as defined by the 'localityLanguage' request parameter
registrationDatestringRegistration date in 'yyyy-mm-dd' format
registrationLastChangestringRegistration modification date in 'yyyy-mm-dd' format
totalIpv4AddressesintegerTotal number of IP addresses announced by the AS
totalIpv4PrefixesintegerTotal number of ipV4 BGP prefixes announced by the AS
totalIpv4BogonPrefixesintegerTotal number of ipV4 bogon prefixes announced by the AS
totalIpv6PrefixesintegerTotal number of ipV6 BGP prefixes announced by the AS
totalIpv6BogonPrefixesintegerTotal number of ipV6 bogon prefixes announced by the AS
rankintegerGlobal rank by total number of IP addresses announced
rankTextstringGlobal rank by total number of IP addresses announced including total
viaCarriersarrayList of Autonomous Systems (AS) detected at the last hop before the announced parties. Capped to the most significant 5.
asnstringAutonomous System Number string
asnNumericintegerAutonomous System Number
organisationstringRegistered Organisation
namestringRegistered name
registrystringThe Regional Internet Registry (RIR) the AS is registered with
registeredCountrystringRegistered Country ISO 3166-1 Alpha-2 code
registeredCountryNamestringRegistered Country localised name. The language is as defined by the 'localityLanguage' request parameter
totalIpv4AddressesintegerTotal number of IP addresses announced by the AS
rankintegerGlobal rank by total number of IP addresses announced
rankTextstringGlobal rank by total number of IP addresses announced including total
confidencestringGeolocation confidence. Possible values: 'low', 'moderate', 'high'
confidenceAreaarrayClosed polygon representing estimated geolocation confidence area
latitudenumberLatitude in in EPSG:4326 projection, as used in GPS
longitudenumberLongitude in EPSG:4326 projection, as used in GPS
Sample Response
403Access denied, or your quota limit has exceeded
Sample Response
404Found no valid entry for the request
Sample Response
405The requested IP address is not valid
Sample Response
500An error has occurred and did not complete your request. Please try again
Sample Response