IPGP Geolocation API

3 years ago we launched our IP Address Geolocation API. During this time we provided more than 10 billion results. We have constantly upgraded the service to provide better and more accurate details.

Today, using our API you can programatically get the following details about any IP Address:

  • Country
  • State
  • City
  • Internet Service Provider
  • Organization
  • Latitude
  • Longitude
  • Link to country flag

 

Our API is very easy to use. The information is provided in XML format. The URL for accessing the API is: http://www.ipgp.net/api/xml/IP_ADDRESS/API_KEY .

 

Here is an example of how results are returned:

<IpLookup>
<Ip>123.123.123.123</Ip>
<Code>CN</Code>
<Country>China</Country>
<Flag>http://www.ipgp.net/flags/cn.png</Flag>
<City>Beijing</City>
<Region>Beijing</Region>
<Isp>China Unicom Beijing Province Network</Isp>
<Organization>China Unicom Beijing province network</Organization>
<Lat>39.9289</Lat>
<Lng>116.3883</Lng>
</IpLookup>

If you want to try IP Address Geolocation API, request your API key.

2 Responses to “IPGP Geolocation API”

  1. john paul soric says:

    Is it possible for me to find out the computer system and type of device (ie iPhone, iPad, Android,etc….) used from an IP address or a specific user name attached to the IP address by time and date?

  2. Administrator says:

    Hello. You can view the operating system only if a person is visiting your website. In php, you can get operating system using $_SERVER[‘HTTP_USER_AGENT’] variable. In javascript, the variables you need are in window.navigator global variable.

Leave a Reply