Forums » Developers



Generating API call to track searches per page on today's date

I'd like to create an API call that shows me top 20 pages and a secondary call to get the top search terms for each of those pages.

The first is easy: &limit=20&type=searches&date=today

How do I construct the call for the second? I've tried passing in href and title and I'm not nailing it yet.

Thanks.

Posted Sat Apr 9 2011 3:39p by soundsp***


Oops, that string is obviously to top searches.

Top pages is this: &limit=20&type=pages&date=today

Posted Sat Apr 9 2011 5:47p by soundsp***


You would have to use type=segmentation to get data for each page via the API, but the problem is that you'd have to make a call for each individual page. Since we don't directly track this data, segmentation is the only way to get it.

The call for an individual page would be something like type=segmentation&href=/the/page&segments=searches

Posted Mon Apr 11 2011 10:22a by Your Friendly Clicky Admin


You must be logged in to your account to post!