Get location from IP

Hi,

First of all, great job with piwik 1.9. I love the geolocation feature. was wondering if there is a way to use the piwik API to get the country by an ip i provide?

i found this in documentation,
http://piwik.org/docs/analytics-api/reference/#UserCountry

but it don’t allow me to provide the IP

We could add this feature in Piwik, please create a ticket. If you’re keen to sponsor it (would be cheap) let us know!

Good news: GeoIP is now integrated in Piwik, enabling Accurate Visitors Geolocation in your Analytics reports. To enable GeoIP go to the Settings > Geolocation admin page, and follow the short instructions.

You can also get an even more accurate Country & City Database from here to enjoy top accuracy in detecting your visitors locations.

See also the documentation about Geolocation - Analytics Reports in Piwik.

can’t open this page. Geo Locate your visitors - Analytics Platform - Matomo

i already enabled geolocation in settings page, just want to know if there is an API to get country / city based on an IP i provide

maybe something that looks like this

           $url = "http://analytics.com/";
	$url .= "?module=API&method=Actions.getLocation"; 
	$url .= "&userIP=192.11.111.11;

$fetched = file_get_contents($url)