เราอยู่ใน LinkedIn แล้วตอนนี้: หากต้องการข่าวสารและแหล่งข้อมูลจาก Google Search เกี่ยวกับการทำให้เว็บไซต์ของคุณค้นพบได้ โปรด
ติดตามเราใน LinkedIn
ต้อนรับ URL Inspection API ใหม่ของ Search Console
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
วันจันทร์ที่ 31 มกราคม 2022
วันนี้เราจะเปิดตัว URL Inspection API ใหม่ของ Google Search Console ซึ่งให้การเข้าถึงข้อมูลระดับ URL ของพร็อพเพอร์ตี้ที่คุณจัดการใน Search Console แบบเป็นโปรแกรม
Search Console API เป็นวิธีเข้าถึงข้อมูลที่อยู่นอก Search Console ผ่านแอปพลิเคชันและผลิตภัณฑ์ภายนอก
นักพัฒนาซอฟต์แวร์และเครื่องมือ SEO ใช้ API เหล่านี้กันอยู่แล้วเพื่อสร้างโซลูชันที่กําหนดเองสําหรับดู เพิ่ม หรือนําพร็อพเพอร์ตี้และแผนผังเว็บไซต์ออก รวมถึงเรียกใช้การค้นหาขั้นสูงเกี่ยวกับข้อมูลประสิทธิภาพใน Search
URL Inspection API ใหม่นี้เป็นเครื่องมือใหม่ที่ให้นักพัฒนาซอฟต์แวร์แก้ไขข้อบกพร่องและเพิ่มประสิทธิภาพหน้าเว็บ คุณสามารถขอข้อมูลที่ Search Console มีเกี่ยวกับ URL เวอร์ชันที่จัดทําดัชนีแล้ว โดย API นี้จะแสดงข้อมูลที่จัดทําดัชนีไว้ซึ่งพร้อมให้ใช้งานในเครื่องมือตรวจสอบ URL
การใช้ API ใหม่
ดูวิธีใช้ API ใหม่นี้ได้จากเอกสารประกอบสําหรับนักพัฒนาซอฟต์แวร์ API
พารามิเตอร์คําขอมี URL ที่คุณต้องการตรวจสอบและ URL ของพร็อพเพอร์ตี้ตามที่กําหนดไว้ใน Search Console
การตอบกลับจะรวมถึงผลการวิเคราะห์ที่มีข้อมูลจาก Search Console ซึ่งได้แก่ สถานะดัชนี, AMP, ผลการค้นหาที่เป็นสื่อสมบูรณ์ และความสามารถในการใช้งานบนอุปกรณ์เคลื่อนที่ อ่านละเอียดเพิ่มเติมได้ที่รายการพารามิเตอร์และคําอธิบายผลการตรวจสอบ URL ที่จัดทําดัชนี
เมื่อเรียก API คุณจะได้รับการตอบกลับพร้อมผลลัพธ์ที่เกี่ยวข้องทั้งหมด หรือข้อความแสดงข้อผิดพลาดหากส่งคําขอไม่สำเร็จ หากการตอบกลับไม่มีผลการวิเคราะห์ที่เฉพาะเจาะจง หมายความว่าไม่มีการวิเคราะห์สําหรับ URL ที่ตรวจสอบ ลองมาดูตัวอย่างการตอบกลับที่จะได้รับจาก API นี้
{
"inspectionResult": {
"inspectionResultLink": "https://search.google.com/search-console/inspect?resource_id=https://developers.google.com/search/&id=odaUL5Dqq3q8n0EicQzawg&utm_medium=link",
"indexStatusResult": {
"verdict": "PASS",
"coverageState": "Indexed, not submitted in sitemap",
"robotsTxtState": "ALLOWED",
"indexingState": "INDEXING_ALLOWED",
"lastCrawlTime": "2022-01-31T08:39:51Z",
"pageFetchState": "SUCCESSFUL",
"googleCanonical": "https://developers.google.com/search/help/site-appearance-faq",
"userCanonical": "https://developers.google.com/search/help/site-appearance-faq",
"referringUrls": [
"https://developers.google.com/search/updates",
"https://developers.google.com/search/help/crawling-index-faq"
],
"crawledAs": "MOBILE"
},
"mobileUsabilityResult": {
"verdict": "PASS"
},
"richResultsResult": {
"verdict": "PASS",
"detectedItems": [
{
"richResultType": "Breadcrumbs",
"items": [
{
"name": "Unnamed item"
}
]
},
{
"richResultType": "FAQ",
"items": [
{
"name": "Unnamed item"
}
]
}
]
}
}
}
กรณีการใช้งานที่เป็นไปได้
ขณะที่สร้าง API ใหม่นี้ เราได้ศึกษา SEO และสอบถามผู้เผยแพร่โฆษณาหลายรายว่าจะใช้ API ในการสร้างโซลูชันด้วยข้อมูลนี้อย่างไร กรณีการใช้งานเด่นๆ ได้แก่
- เครื่องมือและเอเจนซี SEO สามารถให้ตัวเลือกในการตรวจสอบหน้าเว็บที่สําคัญอย่างต่อเนื่องและการแก้ไขข้อบกพร่องในหน้าเดียว เช่น การตรวจสอบว่าหน้า Canonical ที่ผู้ใช้ประกาศกับหน้า Canonical ที่ Google เลือกนั้นแตกต่างกันหรือไม่ หรือการแก้ไขปัญหาเกี่ยวกับข้อมูลที่มีโครงสร้างจากกลุ่มหน้าเว็บ
- นักพัฒนาซอฟต์แวร์ CMS และปลั๊กอินสามารถเพิ่มข้อมูลเชิงลึกระดับหน้าเว็บหรือเทมเพลตและตรวจสอบหน้าเว็บที่มีอยู่อย่างต่อเนื่อง เช่น การตรวจสอบการเปลี่ยนแปลงของหน้าเว็บสําคัญเมื่อเวลาผ่านไปเพื่อวิเคราะห์ปัญหาและช่วยจัดลําดับความสําคัญของการแก้ไข
ขีดจำกัดการใช้งาน
ดูคําอธิบายโดยละเอียดเกี่ยวกับขีดจํากัดการใช้งาน API ของ Search Console ได้ในเอกสารประกอบสําหรับนักพัฒนาซอฟต์แวร์ ในกรณีที่เกี่ยวข้องกับ URL Inspection API จะมีการบังคับใช้โควต้าต่อพร็อพเพอร์ตี้เว็บไซต์ของ Search Console (การเรียกที่ค้นหาเว็บไซต์เดียวกัน)
- การค้นหา 2,000 ครั้งต่อวัน
- การค้นหา 600 ครั้งต่อนาที
ความคิดเห็น
เราเชื่อว่า API ใหม่นี้จะเปิดโอกาสให้เกิดการสร้างสรรค์สิ่งใหม่ๆ ในระบบนิเวศด้วยข้อมูลของ Google Search รวมทั้งตื่นเต้นที่ได้เห็นโซลูชันที่นักพัฒนาซอฟต์แวร์และ SEO สร้างต่อยอดจาก Search Console APIs
หากมีข้อสงสัยหรือความคิดเห็น โปรดติดต่อเราทาง Twitter หรือโพสต์คําถามในชุมชน Search Central
โพสต์โดย Daniel Waisberg และ Dori Rosenberg จากทีม Search Console
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
[null,null,[],[[["\u003cp\u003eGoogle Search Console launches a new URL Inspection API, offering programmatic access to URL-level data for properties managed within Search Console.\u003c/p\u003e\n"],["\u003cp\u003eThis API enables developers and SEO tools to debug and optimize pages by retrieving indexed information, such as index status, AMP, rich results, and mobile usability.\u003c/p\u003e\n"],["\u003cp\u003ePotential use cases include ongoing monitoring, single-page debugging, and integration into CMS or plugins for enhanced page insights.\u003c/p\u003e\n"],["\u003cp\u003eUsage is limited to 2,000 queries per day and 600 queries per minute per website property.\u003c/p\u003e\n"],["\u003cp\u003eGoogle encourages feedback and welcomes innovative solutions built using the Search Console APIs.\u003c/p\u003e\n"]]],["Google launched the URL Inspection API, enabling programmatic access to URL-level data from Search Console. Developers can use it to request indexed information about a specific URL, including its index status, AMP, rich results, and mobile usability. The API returns analysis results or error messages. The data can be used by SEO tools, agencies, CMS and plugins to monitor pages, debug issues, and compare canonical URLs. The API has a limit of 2,000 daily and 600 per minute queries per website property.\n"],null,["# Welcoming the new Search Console URL Inspection API\n\nMonday, January 31, 2022\n\n\nToday we're launching the new Google Search Console [URL Inspection API](/webmaster-tools/v1/urlInspection.index/inspect),\nwhich gives programmatic access to URL-level data for properties you manage in Search Console.\n\n\nThe [Search Console APIs](/webmaster-tools) are a way to access data outside of Search Console, through external applications and products.\nDevelopers and SEO tools already use the APIs to build custom solutions to view, add, or remove properties and sitemaps, and to run advanced queries on Search performance data.\n\n\nWith the new URL Inspection API, we're providing a new tool for developers to debug and optimize their pages. You can request the data Search Console has about the indexed version of a URL;\nthe API will return the indexed information currently available in the [URL Inspection tool](https://support.google.com/webmasters/answer/9012289).\n\nUsing the new API\n-----------------\n\n\nIn order to learn how to use the new API, check the [API developer documentation](/webmaster-tools/v1/urlInspection.index/inspect).\nThe request parameters include the URL you'd like to inspect and the URL of the property as defined in Search Console.\n\n\nThe response includes analysis results containing information from Search Console, including index status, AMP, rich results, and mobile usability. For more details, read the\n[list of parameters](/webmaster-tools/v1/urlInspection.index/UrlInspectionResult) and the\n[Indexed URL results explanation](https://support.google.com/webmasters/answer/9012289#indexed_inspection).\n\n\nOnce you make the API call, you will get a response with all relevant results, or an error message if the request fails. If a specific analysis result is missing from the response,\nit means the analysis was not available for the URL inspected. Here's an example of the response you'll get from the API. \n\n```scdoc\n {\n \"inspectionResult\": {\n \"inspectionResultLink\": \"https://search.google.com/search-console/inspect?resource_id=https://developers.google.com/search/&id=odaUL5Dqq3q8n0EicQzawg&utm_medium=link\",\n \"indexStatusResult\": {\n \"verdict\": \"PASS\",\n \"coverageState\": \"Indexed, not submitted in sitemap\",\n \"robotsTxtState\": \"ALLOWED\",\n \"indexingState\": \"INDEXING_ALLOWED\",\n \"lastCrawlTime\": \"2022-01-31T08:39:51Z\",\n \"pageFetchState\": \"SUCCESSFUL\",\n \"googleCanonical\": \"https://developers.google.com/search/help/site-appearance-faq\",\n \"userCanonical\": \"https://developers.google.com/search/help/site-appearance-faq\",\n \"referringUrls\": [\n \"https://developers.google.com/search/updates\",\n \"https://developers.google.com/search/help/crawling-index-faq\"\n ],\n \"crawledAs\": \"MOBILE\"\n },\n \"mobileUsabilityResult\": {\n \"verdict\": \"PASS\"\n },\n \"richResultsResult\": {\n \"verdict\": \"PASS\",\n \"detectedItems\": [\n {\n \"richResultType\": \"Breadcrumbs\",\n \"items\": [\n {\n \"name\": \"Unnamed item\"\n }\n ]\n },\n {\n \"richResultType\": \"FAQ\",\n \"items\": [\n {\n \"name\": \"Unnamed item\"\n }\n ]\n }\n ]\n }\n }\n}\n```\n\nPotential use cases\n-------------------\n\n\nWhile building the new API, we consulted various SEOs and publishers with regards to how they would use the API to create solutions with this data. Here are some of the use cases that stand out:\n\n- *SEO tools and agencies* can provide ongoing monitoring for important pages and single page debugging options. For example, checking if there are differences between user-declared and Google-selected canonicals, or debugging structured data issues from a group of pages.\n- *CMS and plugin developers* can add page or template-level insights and ongoing checks for existing pages. For example, monitoring changes over time for key pages to diagnose issues and help prioritize fixes.\n\nUsage limits\n------------\n\n\nYou can find a more detailed description of Search Console [APIs usage limits](/webmaster-tools/limits)\nin the developer documentation. Specifically with regards to the URL Inspection API, the quota is enforced per Search Console\n[website property](https://support.google.com/webmasters/answer/34592) (calls querying the same site):\n\n- 2,000 queries per day\n- 600 queries per minute\n\nFeedback\n--------\n\n\nWe believe the new API will bring new opportunities to the ecosystem to innovate with Google Search data; we're always excited to see the solutions developers and SEOs build around the\nSearch Console APIs.\n\n\nIf you have any questions or feedback, reach out to us [on Twitter](https://twitter.com/googlesearchc), or post a question in the\n[Search Central community](https://support.google.com/webmasters/threads?thread_filter=(category:search_console)).\nPosted by [Daniel Waisberg](https://www.danielwaisberg.com) and Dori Rosenberg, Search Console team"]]