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
}
]
}
屬性名稱 |
值 |
說明 |
附註 |
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
- 列出為這個網站提交的 sitemaps-entries,或是納入 Sitemap 索引檔案中 (如果在要求中指定了
sitemapIndex
)。
- 提交
- 提交網站的 Sitemap。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-08-29 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2024-08-29 (世界標準時間)。"],[[["The Sitemap resource provides detailed information about URLs submitted through a sitemap file, including submission date, download date, and error/warning counts."],["The resource representation includes properties for content types, error/warning numbers, and sitemap metadata like path, type, and processing status."],["A sitemap can contain various content types, including web pages, images, videos, news articles, mobile pages and Android/iOS apps."],["You can manage sitemaps through dedicated methods to delete, retrieve information, list, and submit them."]]],["This resource provides details about a submitted sitemap, including its `path`, `lastSubmitted` and `lastDownloaded` dates, and whether it's `isPending` or an `isSitemapsIndex`. It lists `contents` with types like `web`, `image`, or `video`, and the number of `submitted` URLs per type. It also reports `errors` and `warnings`. Key actions include the ability to `delete`, `get`, `list`, or `submit` a sitemap.\n"]]