Sitemaps

如需本資源的方法清單,請見本頁結尾。

資源表示法

Sitemap

提供透過 Sitemap 提交的特定網址詳細資訊。

{
  "path": string,
  "lastSubmitted": datetime,
  "isPending": boolean,
  "isSitemapsIndex": boolean,
  "type": string,
  "lastDownloaded": datetime,
  "warnings": long,
  "errors": long,
  "contents": [
    {
      "type": string,
      "submitted": long,
      "indexed": long
    }
  ]
}
資源名稱 說明 Notes
contents[] list Sitemap 中的各種內容類型。
contents[].indexed N/A 已淘汰,請勿使用。
contents[].submitted long Sitemap 中網址的數量 (內容類型)。
contents[].type string 這個 Sitemap 中特定類型的內容。例如:web

可接受的值如下:
  • androidApp
  • image
  • iosApp
  • mobile
  • news
  • pattern
  • video
  • web
errors long Sitemap 中的錯誤數量。以下是 Sitemap 本身的問題,您必須加以修正才能正確處理。
isPending boolean 如果傳回 True,表示系統尚未處理 Sitemap。
isSitemapsIndex boolean 如果為 true,Sitemap 就是一組 Sitemap。
lastDownloaded datetime 上次下載這個 Sitemap 的日期和時間。日期格式為 RFC 3339 格式 (yyyy-mm-dd)。
lastSubmitted datetime 這個 Sitemap 的提交日期和時間。日期格式為 RFC 3339 格式 (yyyy-mm-dd)。
path string Sitemap 的網址。
type string Sitemap 的類型。例如:rssFeed

可接受的值如下:
  • atomFeed
  • notSitemap
  • patternSitemap
  • rssFeed
  • sitemap
  • urlList
warnings long 該 Sitemap 的警告數。這通常是 Sitemap 中的網址非重大問題。

方法

刪除
從該網站刪除 Sitemap。
取得
擷取特定 Sitemap 的相關資訊。
list
列出為這個網站提交的 Sitemap 項目,或包含在 Sitemap 索引檔中 (如果要求中指定了 sitemapIndex)。
提交
提交網站的 Sitemap。