Sitemaps
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Để biết danh sách các phương thức cho tài nguyên này, hãy xem ở cuối trang.
Biểu diễn tài nguyên
Sơ đồ trang web
Chứa thông tin chi tiết về một URL cụ thể được gửi dưới dạng sơ đồ trang web.
{
"path": string,
"lastSubmitted": datetime,
"isPending": boolean,
"isSitemapsIndex": boolean,
"type": string,
"lastDownloaded": datetime,
"warnings": long,
"errors": long,
"contents": [
{
"type": string,
"submitted": long,
"indexed": long
}
]
}
Tên tài sản |
Giá trị |
Mô tả |
Ghi chú |
contents[] |
list |
Các loại nội dung khác nhau trong sơ đồ trang web. |
|
contents[].indexed |
N/A |
Không dùng nữa; không sử dụng. |
|
contents[].submitted |
long |
Số lượng URL trong sơ đồ trang web (thuộc loại nội dung). |
|
contents[].type |
string |
Loại nội dung cụ thể trong sơ đồ trang web này. Ví dụ: web .
Các giá trị được chấp nhận là:
- "
androidApp "
- "
image "
- "
iosApp "
- "
mobile "
- "
news "
- "
pattern "
- "
video "
- "
web "
|
|
errors |
long |
Số lỗi trong sơ đồ trang web. Đây là những vấn đề về bản thân sơ đồ trang web cần phải khắc phục trước khi có thể xử lý đúng cách. |
|
isPending |
boolean |
Nếu đúng thì sơ đồ trang web chưa được xử lý. |
|
isSitemapsIndex |
boolean |
Nếu đúng, sơ đồ trang web là một tập hợp các sơ đồ trang web. |
|
lastDownloaded |
datetime |
Ngày và thời gian tải xuống gần đây nhất của sơ đồ trang web này. Định dạng ngày theo định dạng RFC 3339 (yyyy-mm-dd). |
|
lastSubmitted |
datetime |
Ngày và thời gian sơ đồ trang web này được gửi. Định dạng ngày theo định dạng RFC 3339 (yyyy-mm-dd). |
|
path |
string |
URL của sơ đồ trang web. |
|
type |
string |
Loại sơ đồ trang web. Ví dụ: rssFeed .
Các giá trị được chấp nhận là:
- "
atomFeed "
- "
notSitemap "
- "
patternSitemap "
- "
rssFeed "
- "
sitemap "
- "
urlList "
|
|
warnings |
long |
Số cảnh báo cho sơ đồ trang web. Đây thường là những vấn đề không nghiêm trọng đối với URL trong sơ đồ trang web. |
|
Phương thức
- xóa
- Xoá một sơ đồ trang web khỏi trang web này.
- nhận
- Truy xuất thông tin về một sơ đồ trang web cụ thể.
- list
- Liệt kê các sitemaps-entries được gửi cho trang web này, hoặc được đưa vào tệp chỉ mục sơ đồ trang web (nếu
sitemapIndex
được chỉ định trong yêu cầu).
- gửi
- Gửi sơ đồ trang web cho một trang web.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2024-08-29 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2024-08-29 UTC."],[[["\u003cp\u003eThe Sitemap resource provides detailed information about URLs submitted through a sitemap file, including submission date, download date, and error/warning counts.\u003c/p\u003e\n"],["\u003cp\u003eThe resource representation includes properties for content types, error/warning numbers, and sitemap metadata like path, type, and processing status.\u003c/p\u003e\n"],["\u003cp\u003eA sitemap can contain various content types, including web pages, images, videos, news articles, mobile pages and Android/iOS apps.\u003c/p\u003e\n"],["\u003cp\u003eYou can manage sitemaps through dedicated methods to delete, retrieve information, list, and submit them.\u003c/p\u003e\n"]]],["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"],null,["# Sitemaps\n\n\u003cbr /\u003e\n\nFor a list of [methods](#methods) for this resource, see the end of this page.\n\nResource representations\n------------------------\n\n### Sitemap\n\nContains detailed information about a specific URL submitted as a [sitemap](https://support.google.com/webmasters/answer/156184).\n\n```gdscript\n{\n \"path\": string,\n \"lastSubmitted\": datetime,\n \"isPending\": boolean,\n \"isSitemapsIndex\": boolean,\n \"type\": string,\n \"lastDownloaded\": datetime,\n \"warnings\": long,\n \"errors\": long,\n \"contents\": [\n {\n \"type\": string,\n \"submitted\": long,\n \"indexed\": long\n }\n ]\n}\n```\n\n| Property name | Value | Description | Notes |\n|------------------------|------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------|\n| `contents[]` | `list` | The various content types in the sitemap. | |\n| contents[].`indexed` | `N/A` | *Deprecated; do not use.* | |\n| contents[].`submitted` | `long` | The number of URLs in the sitemap (of the content type). | |\n| contents[].`type` | `string` | The specific type of content in this sitemap. For example: `web`. \u003cbr /\u003e Acceptable values are: - \"`androidApp`\" - \"`image`\" - \"`iosApp`\" - \"`mobile`\" - \"`news`\" - \"`pattern`\" - \"`video`\" - \"`web`\" | |\n| `errors` | `long` | Number of errors in the sitemap. These are issues with the sitemap itself that need to be fixed before it can be processed correctly. | |\n| `isPending` | `boolean` | If true, the sitemap has not been processed. | |\n| `isSitemapsIndex` | `boolean` | If true, the sitemap is a collection of sitemaps. | |\n| `lastDownloaded` | `datetime` | Date \\& time in which this sitemap was last downloaded. Date format is in RFC 3339 format (yyyy-mm-dd). | |\n| `lastSubmitted` | `datetime` | Date \\& time in which this sitemap was submitted. Date format is in RFC 3339 format (yyyy-mm-dd). | |\n| `path` | `string` | The url of the sitemap. | |\n| `type` | `string` | The type of the sitemap. For example: `rssFeed`. \u003cbr /\u003e Acceptable values are: - \"`atomFeed`\" - \"`notSitemap`\" - \"`patternSitemap`\" - \"`rssFeed`\" - \"`sitemap`\" - \"`urlList`\" | |\n| `warnings` | `long` | Number of warnings for the sitemap. These are generally non-critical issues with URLs in the sitemaps. | |\n\nMethods\n-------\n\n[delete](/webmaster-tools/v1/sitemaps/delete)\n: Deletes a sitemap from this site.\n\n[get](/webmaster-tools/v1/sitemaps/get)\n: Retrieves information about a specific sitemap.\n\n[list](/webmaster-tools/v1/sitemaps/list)\n: Lists the [sitemaps-entries](/webmaster-tools/v1/sitemaps) submitted for this site, or included in the sitemap index file (if `sitemapIndex` is specified in the request).\n\n[submit](/webmaster-tools/v1/sitemaps/submit)\n: Submits a sitemap for a site."]]