Accessing More Than 10,000 Rows of Data Using Google Analytics API

Google Analytics API let you easily get more than 10,000 rows of data from Analytics.Auto-Pagination through the API: Here's a quick overview on how to do auto-pagination with our API. The following sample query fetches the first 10,000 keywords by conversion rate for the month of February.Notice how start-index is set to 1 and max-results […]

Google Analytics API let you easily get more than 10,000 rows of data from Analytics.

Auto-Pagination through the API: Google Analytics

Auto-Pagination through the API: Here's a quick overview on how to do auto-pagination with our API. The following sample query fetches the first 10,000 keywords by conversion rate for the month of February.

Notice how start-index is set to 1 and max-results is set to 10,000. When this query is issued to the API, the API will return up to 10,000 results. The API also returns the number rows found in Google Analytics in the openSearch:totalResult XML element: 14,654

If you want to start doing this today, or just see how it should work, check this fully working example.

[Source]