September 21, 2023
Google

Search Analytics API now supports Discover, Google News, and Regex  |  Google Search Central Blog  |  Google Developers

search-analytics-api-now-supports-discover,-google-news,-and-regex- | -google-search-central-blog- | -google-developers
Stay organized with collections Save and categorize content based on your preferences.

Monday, October 25, 2021

The Google Search Console Performance reports already show data about Search, Discover, and Google News to site owners that have this type of traffic. Since we launched the Discover and Google News performance reports, we’ve been receiving requests from users to also add these stats to the Search Analytics API. We are happy to announce that this is happening today.

The searchType parameter, which previously enabled you to filter API calls by news, video, image, and web, will be renamed to type and will support two additional parameters: discover (for Google Discover) and googleNews (for Google News). Please note that while we renamed the parameter to type, we’re still supporting the old name searchType.

Sample Search Analytics API call with new parameters

In the Search Console Performance reports, some metrics and dimensions are compatible only with some data types; for example, queries and positions are not supported by the Google Discover report. In the same way, if an unsupported dimension is requested, the API will return an error message.

In addition, we are adding Regex support to the query and page dimensions. Two new operators will be added to the existing match operations: includingRegex and excludingRegex.

Check out the Search Analytics API documentation to learn more. If you have any questions, you can ask in the Search Central community or on Twitter.

Posted by Ziv Hodak and Roman Priborkin, Search Console team

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Leave feedback about this

  • Quality
  • Price
  • Service

PROS

+
Add Field

CONS

+
Add Field
Choose Image
Choose Video