Sitemaps: get
認証が必要です
特定のサイトマップに関する情報を取得します。
実習をご覧ください。
リクエスト
HTTP リクエスト
GET https://www.googleapis.com/webmasters/v3/sites/siteUrl/sitemaps/feedpath
パラメータ
パラメータ名 |
値 |
説明 |
パスパラメータ |
feedpath |
string |
実際のサイトマップの URL。例: http://www.example.com/sitemap.xml
|
siteUrl |
string |
Search Console で定義されているプロパティの URL。次に例を示します。
http://www.example.com/
(URL プレフィックスプロパティ)
または sc-domain:example.com
(ドメイン プロパティ)。
|
承認
このリクエストは、少なくとも次のうち 1 つのスコープでの承認が必要です(認証と承認の詳細をご確認ください)。
スコープ |
https://www.googleapis.com/auth/webmasters.readonly |
https://www.googleapis.com/auth/webmasters |
リクエスト本文
このメソッドをリクエストの本文に含めないでください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-08-26 UTC。
[null,null,["最終更新日 2024-08-26 UTC。"],[[["Retrieves data for a specified sitemap using its URL and the site's URL as registered in Google Search Console."],["Requires authorization with either `https://www.googleapis.com/auth/webmasters.readonly` or `https://www.googleapis.com/auth/webmasters` scope."],["Uses an HTTP GET request with `feedpath` and `siteUrl` as path parameters."],["Returns a Sitemaps resource with information about the requested sitemap if successful."]]],["This outlines how to retrieve information about a specific sitemap via a `GET` request to `https://www.googleapis.com/webmasters/v3/sites/siteUrl/sitemaps/feedpath`. The request requires authorization using either the `webmasters.readonly` or `webmasters` scope. Two path parameters, `feedpath` (sitemap URL) and `siteUrl` (property URL), are needed. No request body is required; a successful response returns a Sitemaps resource.\n"]]