Free IP To Location API in PHP

It's only fair to share...Share on Facebook0Share on Google+2Tweet about this on Twitter0Share on LinkedIn0Pin on Pinterest0Digg thisShare on StumbleUpon0

IP To Location API in PHP

There is lots of paid API through which we can get the location by IP address. But I have found a free API service “IPINFODB.COM” for this and its work perfectly. Using this API we can get Country Name, Country Code, Region Name, City Name, Zip Code, latitude, longitude and time Zone from IP address.

First we have to create an account from ininfodb ( to get API_KEY. Use below code after getting the API key.

 Download Source Code

Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">