SoPHIE API Documentation

Freegeoip API Documentation

SoPHIELabs FreegeoIP Service API

The API wrapps the freegeoip.net webservice which returns information associated to the given IP address.

Example use: $info = $freegeoipApi->get(); or $freegeoipApi->get('1.1.1.1');

Init: $freegeoipApi = $api->get('sophielabs_freegeoip');

Method: $freegeoipApi->get(...)

Get information for an IP from freegeoip.net service.

Parameters:

  • String $ip IP address to lookup information for, defaults to current one

Returns Array