Getting more than 1000 Records at a Time

6,974 views
Skip to first unread message

kush...@gmail.com

unread,
Apr 28, 2009, 2:24:26 PM4/28/09
to google-analytics-api - GA Data Export API
Hi,

Is there a way to get more than 1000 records in 1 request? I tried
using setMaxResults(10000), but it still only gives me 1000 records.
Any help would be greatly appreciated. Thanks in advance,

John

Nick

unread,
Apr 28, 2009, 5:23:45 PM4/28/09
to google-analytics-api - GA Data Export API
Hi,

Currently the API supports returning a maximum number of 1000 rows at
a time. If you have more rows of data as specified in the feed's total
results XML element, you can use the start-index parameter in a
following query to "page" to the next 1000 queries.

More info on the start-index here :
http://code.google.com/apis/analytics/docs/gdata/gdataReference.html#commonQueryParameters

-Nick

Nick

unread,
Apr 28, 2009, 5:24:52 PM4/28/09
to google-analytics-api - GA Data Export API
Hi,

Currently the API supports returning a maximum number of 1000 rows at
a time. If you have more rows of data as specified in the feed's total
results XML element, you can use the start-index parameter in a
following query to "page" to the next 1000 queries.

More info on the start-index here :
http://code.google.com/apis/analytics/docs/gdata/gdataReference.html#commonQueryParameters

-Nick

On Apr 28, 11:24 am, "[email address]" wrote:

nishu bansal

unread,
Jun 16, 2015, 8:14:35 PM6/16/15
to google-analytics...@googlegroups.com
Hi John,

I am also struggling with same issue
Did you found any solution.
Getting 404 on this link
http://code.google.com/apis/analytics/docs/gdata/gdataReference.html#commonQueryParameters

Thanks,
Nishu

nishu bansal

unread,
Jun 16, 2015, 8:20:00 PM6/16/15
to google-analytics...@googlegroups.com

Mike Sullivan

unread,
Jun 17, 2015, 11:11:56 AM6/17/15
to google-analytics...@googlegroups.com
https://developers.google.com/analytics/devguides/reporting/core/v3/reference#maxResults

The &max-results value can be set to 10000. Default (unspecified) is 1000.

If you want more than 10000, you need to paginate with multiple queries and join the results.
Reply all
Reply to author
Forward
0 new messages