API Search Analytics hiện đã hỗ trợ Google Khám phá, Google Tin tức và Biểu thức chính quy
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Thứ Hai, ngày 25 tháng 10 năm 2021
Báo cáo hiệu suất của Google Search Console hiện đã cung cấp dữ liệu về Tìm kiếm, Khám phá và Tin tức cho những chủ sở hữu trang web có loại lưu lượng truy cập này. Kể từ khi ra mắt báo cáo hiệu suất cho Google Khám phá và Google Tin tức, chúng tôi đã nhận được yêu cầu của người dùng về việc thêm những số liệu thống kê này vào API Search Analytics.
Chúng tôi xin vui mừng thông báo rằng bạn sẽ xem được những số liệu này kể từ hôm nay.
Tham số searchType
từng giúp bạn lọc lệnh gọi API theo news
, video
, image
và web
sẽ được đổi tên thành type
và sẽ hỗ trợ thêm hai tham số là discover
(cho Google Khám phá) và googleNews
(cho Google Tin tức). Xin lưu ý rằng mặc dù tham số này đã được đổi tên thành type
nhưng chúng tôi vẫn hỗ trợ tên cũ là searchType
.
Trong Báo cáo hiệu suất của Search Console, một số chỉ số và phương diện chỉ tương thích với một số loại dữ liệu nhất định. Ví dụ: báo cáo cho Google Khám phá không hỗ trợ các cụm từ tìm kiếm và vị trí. Tương tự như vậy, nếu bạn yêu cầu một phương diện không được hỗ trợ, thì API sẽ trả về một thông báo lỗi.
Ngoài ra, chúng tôi sẽ thêm tính năng hỗ trợ biểu thức chính quy cho các phương diện trang và cụm từ tìm kiếm.
Hai toán tử mới sẽ được thêm vào hoạt động so khớp hiện tại: includingRegex
và excludingRegex
.
Hãy tham khảo Tài liệu về API Search Analytics để tìm hiểu thêm.
Nếu có thắc mắc, bạn có thể đặt câu hỏi trong cộng đồng của Trung tâm Tìm kiếm hoặc trên Twitter.
Người đăng: Ziv Hodak và Roman Priborkin, Nhóm Search Console
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
[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"]]