Search Console の新たな API、URL Inspection API のご紹介
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
2022 年 1 月 31 日(月)
本日、Google Search Console の新しい API である URL Inspection API をリリースします。この API は、Search Console で管理しているプロパティの URL レベルのデータに、プログラムからアクセスするためのものです。
Search Console API を使用すると、Search Console のデータに、外部のアプリケーションやサービスからアクセスできます。デベロッパーや SEO ツールではすでにこの API を使用して、プロパティやサイトマップの表示、追加、削除や、Google 検索のパフォーマンス データに関する高度なクエリを実行するためのカスタム ソリューションを構築しています。
URL Inspection API と合わせて、ページのデバッグや最適化に使用できるデベロッパー向けの新しいツールも用意しています。Search Console にあるインデックス登録済みバージョンの URL に関するデータをリクエストすると、API から URL 検査ツールで現在入手可能なインデックス登録済みの情報が返されます。
API の使い方
この API の使用方法については、API に関するデベロッパー向けドキュメントをご覧ください。リクエスト パラメータとして、検査する URL と、Search Console で定義したプロパティの URL を指定します。
レスポンスとして、インデックスのステータス、AMP、リッチリザルト、モバイル ユーザビリティなど、Search Console からの情報を含んだ分析結果が返されます。詳しくは、パラメータのリストとインデックス登録済み 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 ツールや代理店では、重要なページの継続的モニタリングや、単一ページのデバッグ機能を提供できます。たとえば、ユーザーが指定した正規 URL と Google が選択した正規 URL に違いがあるかどうかの確認や、特定のページ群で発生した構造化データに関する問題のデバッグなどです。
- CMS やプラグインのデベロッパーは、ページレベルまたはテンプレート レベルの分析情報や、既存のページに対する継続的なチェックを提供できます。たとえば、主要なページの経時変化をモニタリングすることで、問題を診断し、修正の優先順位を決定することができます。
使用量上限
Search Console API の使用量上限の詳細については、デベロッパー向けドキュメントをご覧ください。URL Inspection API に関しては、Search Console のウェブサイト プロパティごとに割り当てが適用されます(同じサイトに対するクエリの呼び出し回数)。
フィードバック
この新しい API は、Google 検索のデータを利用してイノベーションを起こす新しい機会をエコシステムにもたらすと考えています。デベロッパーや SEO 担当者の皆さんが Search Console API を活用したソリューションを構築することを楽しみにしています。
ご不明な点やフィードバックがございましたら、Twitter でお問い合わせいただくか、検索セントラル コミュニティに質問をご投稿ください。
Posted by Daniel Waisberg and Dori Rosenberg, Search Console team
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 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"]]