IP2Location™ Web Service
![]() |
IP2Location™ IP-Country web service is providing a service to do a reverse lookup of an IP address to an ISO3166 country code. To search, submit a query string and a set of parameters to the IP2Location™ Web APIs service and you will receive a search result. Search results are derived from IP2Location™ index of over 4 billion unique IP addresses. |
All successful HTTP request will return a response code of 200. In our web API, it also returns the lookup country code if successful or error code if failed.
Each API unit subscription allows 100,000 query credits. If you need more credits, please add multiple units during checkout. Total credits will be in multiplier (x 100,000) of number of units paid. An unique API key will be provided to query the web service.
IP2Location™ Web API uses a single web interface to perform the reverse lookup logic. The protocol used is HTTP GET. You can test this API as easy as using a web browser.
http://api.ip2location.com/?ip=<ip_address>&key=<your_api_key>
- No database to download, to install or to upgrade in the server side
- Support HTTP queries up to 100,000 times or 1 year (which one comes first)
IPv4:
http://api.ip2location.com/?ip=116.88.21.36&key=demo
IPv6:
http://api.ip2location.com/?ip=2607:f8b0:4001:c02::93&key=demo
If you need other XML based web services, please visit http://www.fraudlabs.com



