Quantcast
Channel: Piwik Forums - Support & Bugs
Viewing all articles
Browse latest Browse all 13117

Get referrerName via API

$
0
0
Hi,

I am struggling to see if it is possible to get some visitor information from the API.

I use the following API call and I can get the Keywords that a particular visitor (based on their IP) used:

http://www.xxxx.com/piwik/index.php?module=API&method=Referers.getKeywords&idSite=1&period=year&date=2013-01-01,yesterday&segment=visitIp==70.53.50.36&format=JSON&token_auth=xxxxxxxxxxx

This works great. However, I also want to see the Referrer Name (i.e. who referred them). In the Database, for my test I can see referer_name is Google. I want to know which referrer sent this visitor?

I've tried (and this returns nothing)
http://www.xxxx.com/piwik/index.php?module=API&method=Referers.getWebsites&idSite=1&period=year&date=2013-01-01,yesterday&segment=visitIp==70.53.50.36&format=JSON&token_auth=xxxxxxxxxxx

I want to see if Google, Bing, Facebook, twitter etc... sent this visitor with this IP.

Is it possible?

I know I could do an API call for each like: referrerName==Google but I don't want to send of 10 API calls with different referrerNames!!

Viewing all articles
Browse latest Browse all 13117

Trending Articles