Country by IP Address API
Introduction
This API returns detailed information about the country identified by geolocating the provided IPv4/IPv6 IP address. This includes ISO-defined names, languages, currencies, United Nations and Word Bank defined region names and income levels. Powered by patent-pending Next Generation IP Geolocation Technology.
Get started
This API is part of the IP Geolocation package and is available in free and paid plans. Please visit the IP Geolocation package page for limits and pricing information.
Endpoints
IPv4 only API Endpoint
Use this endpoint to force API calls routed over the IPv4 network only
Dual-Stack API Endpoint
This endpoint has native IPv6 support and backs the API calls routed over both IPv4 and IPv6 networks
Request
Responses
Example query
https://api-bdc.net/data/country-by-ip?ip=8.8.8.8&localityLanguage=en&key=[YOUR API KEY]
Example response
Schema
Requested IP address in a string format.
localityLanguage input parameter received
Indicated 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
country object
Indicates the time of when that particular IP address’s geolocation was assessed the last