Get country name using API

Would be great to add a feature where i can use the piwik API to get what country a user is coming from based on ip address:


$url = “”;
$url .= “?module=API&method=Actions.getCountry”;
$url .= "&userIP=;

$fetched = file_get_contents($url)

This would return United States

Thanks for the suggestion. It would be great to have such thing indeed. Please create a ticket on