Sitemaps: list

需要授權

列出為這個網站提交的 Sitemaps-entries,或 Sitemap 索引檔中 (如果要求中已指定 sitemapIndex)。 立即試用

要求

HTTP 要求

GET https://www.googleapis.com/webmasters/v3/sites/siteUrl/sitemaps

參數

網址
參數名稱 說明
路徑參數
siteUrl string Search Console 中定義的資源網址。例如:http://www.example.com/ (網址前置字元資源) 或 sc-domain:example.com (網域資源)。
自選查詢參數
sitemapIndex string 網站的 Sitemap 索引網址。例如:http://www.example.com/sitemapindex.xml

授權

這項要求至少需要以下其中一個範圍的授權 (進一步瞭解驗證和授權)。

範圍
https://www.googleapis.com/auth/webmasters.readonly
https://www.googleapis.com/auth/webmasters

要求主體

請勿使用這個方法提供要求主體。

回應

如果成功的話,這個方法會傳回回應內文,其結構如下:

{
  "sitemap": [
    sitemaps Resource
  ]
}
屬性名稱 說明 附註
sitemap[] list 此詳細資訊收錄了提交至 Sitemap 的特定網址的相關資訊。

試試看!

您可以使用下方的 APIs Explorer,針對即時資料呼叫這個方法,然後查看回應。