L'API Search Analytics ora supporta Discover, Google News e Regex
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Lunedì 25 ottobre 2021
I report sul rendimento di Google Search Console mostrano già dati sulla Ricerca, sul Feed personalizzato e su Google News ai proprietari di siti che hanno questo tipo di traffico. Da quando abbiamo lanciato i report sul rendimento di Feed personalizzato e Google News, abbiamo ricevuto richieste da parte degli utenti per aggiungere queste statistiche anche all'API Search Analytics.
Siamo lieti di annunciare che oggi abbiamo implementato questa modifica.
Il parametro searchType
, che in precedenza consentiva di filtrare le chiamate API per news
, video
, image
e web
, verrà rinominato type
e supporterà due parametri aggiuntivi: discover
(per Feed personalizzato Google) e googleNews
(per Google News). Tenete presente che, anche se abbiamo rinominato il parametro type
, il vecchio nome searchType
è ancora supportato.
Nei report sul rendimento di Search Console, alcune metriche e dimensioni sono compatibili solo con alcuni tipi di dati; ad esempio, query e posizioni non sono supportate dal report di Feed personalizzato Google. Allo stesso modo, se viene richiesta una dimensione non supportata, l'API restituirà un messaggio di errore.
Inoltre, stiamo aggiungendo il supporto per la funzionalità Regex alle dimensioni di query e pagine.
Due nuovi operatori verranno aggiunti alle operazioni di corrispondenza esistenti: includingRegex
e excludingRegex
.
Per saperne di più, consultate la documentazione dell'API Search Analytics.
In caso di domande, potete rivolgervi alla community di Search Central o contattarci su Twitter.
Scritto da Ziv Hodak e Roman Priborkin, team di Search Console
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
[null,null,[],[[["\u003cp\u003eGoogle Search Console's Search Analytics API now includes data for Discover and Google News, alongside existing Search data.\u003c/p\u003e\n"],["\u003cp\u003eThe API's \u003ccode\u003esearchType\u003c/code\u003e parameter is renamed to \u003ccode\u003etype\u003c/code\u003e and supports new values \u003ccode\u003ediscover\u003c/code\u003e and \u003ccode\u003egoogleNews\u003c/code\u003e for filtering data.\u003c/p\u003e\n"],["\u003cp\u003eUnsupported dimensions with certain data types will result in error messages from the API, aligning with the Search Console Performance reports' behavior.\u003c/p\u003e\n"],["\u003cp\u003eRegex support is added to the API's query and page dimensions with new operators \u003ccode\u003eincludingRegex\u003c/code\u003e and \u003ccode\u003eexcludingRegex\u003c/code\u003e for enhanced filtering.\u003c/p\u003e\n"]]],["Google Search Console's API now includes data for Google Discover and Google News, accessible via new `discover` and `googleNews` parameters within the renamed `type` parameter (formerly `searchType`). The API will return an error if unsupported dimensions are requested. Regex support has been added to query and page dimensions, with `includingRegex` and `excludingRegex` operators. Users can learn more through documentation and the Search Central community.\n"],null,["# Search Analytics API now supports Discover, Google News, and Regex\n\nMonday, October 25, 2021\n\n\nThe Google Search Console [Performance reports](https://support.google.com/webmasters/answer/7576553) already show data about Search,\nDiscover, and Google News to site owners that have this type of traffic. Since we launched the [Discover](https://support.google.com/webmasters/answer/9216516)\nand [Google News](https://support.google.com/webmasters/answer/10083653) performance reports, we've been receiving requests from\nusers to also add these stats to the [Search Analytics API](/webmaster-tools/search-console-api-original/v3/searchanalytics).\nWe are happy to announce that this is happening today.\n\n\nThe `searchType` parameter, which previously enabled you to filter API calls by `news`,\n`video`, `image`, and `web`, will be renamed to\n`type` and will support two additional parameters: `discover` (for Google Discover) and\n`googleNews` (for Google News). Please note that while we renamed the parameter to `type`,\nwe're still supporting the old name `searchType`.\n\n\nIn 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\nthe Google Discover report. In the same way, if an unsupported dimension is requested, the API will return an error message.\n\n\nIn addition, we are adding [Regex support](/search/blog/2021/06/regex-negative-match) to the query and page dimensions.\nTwo new operators will be added to the existing match operations: `includingRegex` and `excludingRegex`.\n\n\nCheck out the [Search Analytics API documentation](/webmaster-tools/search-console-api-original/v3/searchanalytics/query) to learn more.\nIf you have any questions, you can ask in the [Search Central community](https://support.google.com/webmasters/community) or\n[on Twitter](https://twitter.com/googlesearchc).\n\n\nPosted by [Ziv Hodak](/search/blog/authors/ziv-hodak) and Roman Priborkin, Search Console team"]]