Categories
PHP

Geoip info using API’s

Simple function that using 3rd party API’s we get the Geoip information of an IP address.

We use 3 free providers randomly to get the data and normalize the that we return so we get the same info from any of them.

Providers used

  • http://ipinfo.io/
  • http://ip-api.com/
  • http://telize.com/

The code