: Why do I get different numbers of results from individual dates and date ranges when I query the Google Search Console API? I'm using the API explorer on the side of this page. When I query
I'm using the API explorer on the side of this page.
When I query the API with this JSON
{
"startDate": "2017-07-01",
"endDate": "2017-07-01",
"startRow": 0,
"rowLimit": 5000,
"dimensions": [
"page",
"device",
"country",
"date",
"query"
]
}
I get a result with 4248 rows.
If I run this query again, but with both startDate and endDate as 2017-07-02, I get 4355 rows.
Now, if I run it a third time with startDate as 2017-07-01 and endDate as 2017-07-02, I only get 3947 rows.
I would expect that since I have date included in dimensions, that the two dates wouldn't interfere with one another, and I would get back 4248 + 4355 = 8603 rows. What's going on here?
More posts by @YK1175434
1 Comments
Sorted by latest first Latest Oldest Best
I figured out the issue. I was assuming that when I got fewer than 5000 rows in my results, then I had grabbed all available data.
However, the API often returns fewer than 5000 rows even if your row limit is set to 5000. I found that when I continued to increment startRow until there were no rows in my results, then the numbers added up properly.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.