Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

google search console data does not match results in Search Analytics: query tester on the Google API Reference

I've been testing out my data on this page: https://developers.google.com/webmaster-tools/search-console-api-original/v3/searchanalytics/query

The data I am receive seems to be off compared to the data I am showing in google search console. I am wondering if this may be the result of a sampling error or something incorrect with my query. Any input on what may cause the data to change from Google Search Console to the Query result?

{
  "startDate": "2019-04-01",
  "endDate": "2019-04-30",
  "dimensions": [
    "query"
  ],
  "searchType": "web",
  "dimensionFilterGroups": [
    {
      "groupType": "and",
      "filters": [
        {
          "dimension": "page",
          "operator": "contains",
          "expression": "/about/who-we-are/community/"
        }
      ]
    }
  ]
}

Data from query does not match Google search Console.

Example:

Google Search Console
"community"
Clicks 8
Impressions 13

Query
"community"
   ],
   "clicks": 17.0,
   "impressions": 26.0,
like image 259
Justin801 Avatar asked Nov 24 '25 02:11

Justin801


1 Answers

There are indeed some discrepancies between search console UI and API. I have similar problems and i found these documentation from Google: https://support.google.com/webmasters/answer/7042828 https://support.google.com/webmasters/answer/7576553?hl=en&visit_id=637099209145003362-895149723&rd=1 Google has a certain aggregation method in which if you query from API in combination with page grouping the result will be different. From UI: If one query returned your property at positions 2, 4, and 6, its position is counted as 2 (the topmost position). If a second query returned your property at positions 3, 5, and 9, its position is counted as 3 (the topmost position). The average position across these two queries is (2 + 3)/2 = 2.5.

like image 149
Riawp Avatar answered Nov 28 '25 16:11

Riawp