Mobile app version of vmapp.org
Login or Join
YK1175434

: 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

@YK1175434

Posted in: #GoogleSearchApi #GoogleSearchConsole

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?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @YK1175434

1 Comments

Sorted by latest first Latest Oldest Best

 

@Bryan171

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme