WIPmania API - get IP geolocation

I would like to use the WIPmania API to display the IP address. http://www.wipmania.com/en/api/

Does anyone know how to get the value returned in PHP?

For example, url ( http://api.wipmania.com/123.45.67.89?google.com ) returns the country code of KR .

If he were returning an XML file, I would be fine, but that confused me.

Thanks in advance.

+4
source share
3 answers

Thanks for distributing WIPmania, did not know about their web services. To answer your question:

 $country = file_get_contents('http://api.wipmania.com/123.45.67.89?google.com'); // KR 
+4
source

And I found a better service that returns an XML file - apparently, it is more accurate.

FYI - http://ipinfodb.com/ip_location_api.php

0
source

No, ipinfodb.com is not accurate because it is based on maxmind. See http://www.wipmania.com/en/blog/why-worldip-data-rather-than-whois-data-examples/

You can easily work with the Wipmania API: www.wipmania.com/en/blog/source-code-to-access-to-api/

0
source

All Articles