Search Analytics API now supports Discover, Google News, and Regex

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.