I am working on Google search console data to get more than 1000 rows of data through the search analytics API request.
Below is the request
request = {
'startDate': single_date,
'endDate': single_date,
'dimensions': ['query', 'page', 'date', 'country', 'device'],
'rowLimit': 5000,
'startRow': 0
}
According to the documentation specified in the below link.
If the result to the request sent has more than 5000 rows then it should display 5000 rows in the first request and then we can request more 5000 rows after setting the start row to 5000 in the second request.
My Use case:
The request i am sending has more than 5000 rows but my result shown is as below:
-----Executing the first request---------start row as 0 row count 409
-----Executing the second request -------start row as 5000 row count 807 (adding the first and second request row count)
-----Executing the third request --------start row as 10000 row count 1218 (adding the first,second and third request row count )
this is continued till 10 requests ..
second Question related to the search console data
The total clicks displayed in the UI of the search analytics API is not same with - when we download the excel sheet at the bottom and add all the clicks. In this case the data is present till the clicks become zero .
Could you please explain,
Thank you.