Limit on API Output?I am trying to create a customer report for our sales department which will show them all areas of a customer showroom that has visitors.
Example, our showrooms have several areas
I am calling on each url using type=visitor-list and outputing the number doing the count fuction. I notice however it stops after 10? Is there a limit on the output
$m = file_get_contents("api.getclicky.com/api/stats/4?site_id=*****&sitekey=*****&type=visitors-list&href=%2Fshowroom%2Fhypertherm-Inc&date=2010-12&output=php");
$m = unserialize($m);
$main = count($m['visitors-list']['2010-12-01,2010-12-31']);
Posted Tue Jan 11 2011 12:16pm by Fabcom
This is what I am trying to accomplish
each area is being called in via API and counted
Posted Tue Jan 11 2011 1:02pm by Fabcom
try using "limit=all"
Posted Tue Jan 11 2011 1:29pm by serenexity
This parameter is available for type=visitors-list and type=actions-list. It lets you specify the time range (in seconds), relative to "now", of data returned. So if you requested type=visitors-list&time_offset=3600&limit=all, you will get all visitor sessions from the last hour. Note that the default limit of '10' will still apply unless you specify the limit, so we recommend doing limit=all to make sure that all of them are returned.
Posted Tue Jan 11 2011 1:30pm by serenexity
W00t! there it is! Thanks!
Posted Tue Jan 11 2011 1:47pm by Fabcom