เราอยู่ใน LinkedIn แล้วตอนนี้: หากต้องการข่าวสารและแหล่งข้อมูลจาก Google Search เกี่ยวกับการทำให้เว็บไซต์ของคุณค้นพบได้ โปรด
ติดตามเราใน LinkedIn
ตอนนี้ Search Analytics API รองรับ Discover, Google News และนิพจน์ทั่วไปแล้ว
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
วันจันทร์ที่ 25 ตุลาคม 2021
รายงานประสิทธิภาพของ Google Search Console ได้แสดงข้อมูลเกี่ยวกับ Search, Discover และ Google News แก่เจ้าของเว็บไซต์ที่มีการเข้าชมประเภทนี้อยู่แล้ว นับตั้งแต่การเปิดตัวรายงานประสิทธิภาพของ Discover และ Google News เราได้รับคำขอจากผู้ใช้ที่อยากให้เพิ่มสถิติเหล่านี้ลงใน Search Analytics API ด้วยอยู่เรื่อยๆ
วันนี้เรายินดีที่จะแจ้งให้ทราบว่าได้มีการดำเนินการในเรื่องนี้ให้แล้ว
พารามิเตอร์ searchType
ซึ่งก่อนหน้านี้ช่วยให้คุณกรองการเรียก API ตาม news
, video
, image
และ web
ได้ จะเปลี่ยนชื่อเป็น type
และรองรับพารามิเตอร์เพิ่มเติมอีก 2 รายการ ได้แก่ discover
(สำหรับ Google Discover) และ googleNews
(สำหรับ Google News) โปรดทราบว่าแม้เราจะเปลี่ยนชื่อพารามิเตอร์เป็น type
แล้ว แต่ก็ยังรองรับชื่อเก่า searchType
อยู่
ในรายงานประสิทธิภาพของ Search Console เมตริกและมิติข้อมูลบางอย่างใช้งานได้กับข้อมูลบางประเภทเท่านั้น เช่น รายงานของ Google Discover จะไม่รองรับการค้นหาและตำแหน่ง ในทำนองเดียวกัน หากมีการขอมิติข้อมูลที่ระบบไม่รองรับ API จะส่งข้อความแสดงข้อผิดพลาดกลับมา
นอกจากนี้ เราจะเพิ่มการรองรับนิพจน์ทั่วไปลงในมิติข้อมูลของการค้นหาและหน้าด้วย
โดยจะเพิ่มโอเปอเรเตอร์ใหม่ 2 รายการ ซึ่งได้แก่ includingRegex
และ excludingRegex
ไปยังโอเปอเรเตอร์การจับคู่ที่มีอยู่
ดูข้อมูลเพิ่มเติมได้จากเอกสารประกอบของ Search Analytics API
หากมีข้อสงสัย สอบถามได้ในชุมชน Search Central หรือทาง Twitter
โพสต์โดย Ziv Hodak และ Roman Priborkin จากทีม Search Console
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ 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"]]