Blog
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.
Lưu ý quan trọng: Chúng tôi sẽ ngừng hỗ trợ API JSON phiên bản 2.0 từ ngày 30 tháng 9 năm 2024.
Để đảm bảo ứng dụng của bạn vẫn hoạt động bình thường, hãy cập nhật những ứng dụng có dùng API JSON phiên bản 2.0 lên phiên bản API mới nhất. Đối với phiên bản mới nhất, hãy sử dụng các đường liên kết trong thanh điều hướng bên trái.
Blog là lớp dữ liệu gốc của Blogger API. Mỗi blog có một loạt Bài đăng và Trang, đồng thời mỗi Bài đăng có một loạt Bình luận.
Phương thức
Để truy xuất một Tài nguyên Blog riêng lẻ, hãy sử dụng phương thức blogger.blogs.get.
- get
- Lấy một blog theo mã nhận dạng.
Biểu thị tài nguyên
Tài nguyên Blog chứa tất cả siêu dữ liệu của một blog, cùng với số lượng Bài đăng và Trang con.
{
"kind": "blogger#blog",
"id": value,
"name": value,
"description": value,
"published": value,
"updated": value,
"url": value,
"selfLink": value,
"posts": {
"totalItems": value,
"selfLink": value
},
"pages": {
"totalItems": value,
"selfLink": value
},
"locale": {
"language": value,
"country": value,
"variant": value
}
}
Tên thuộc tính |
Giá trị |
Mô tả |
Ghi chú |
kind |
string |
Loại mục này. Luôn là blogger#blog . |
|
id |
long |
Giá trị nhận dạng của tài nguyên này. |
|
name |
string |
Tên của blog này. Thông tin này thường xuất hiện trong Blogger dưới dạng tiêu đề của blog. Có thể chứa HTML. |
|
description |
string |
Nội dung mô tả blog này. Thông tin này thường xuất hiện trong Blogger bên dưới tiêu đề của blog. Có thể chứa HTML. |
|
published |
datetime |
Ngày giờ theo RFC 3339 khi bài đăng này được xuất bản. |
|
updated |
datetime |
Ngày giờ theo RFC 3339 khi blog này được cập nhật lần gần đây nhất. |
|
url |
string |
URL nơi xuất bản blog này. |
|
selfLink |
string |
URL API REST để tìm nạp tài nguyên này. |
|
posts |
object |
Vùng chứa cho các bài đăng của blog này. |
|
posts.totalItems |
integer |
Tổng số bài đăng trên blog này. |
|
posts.selfLink |
string |
URL của Bộ sưu tập bài đăng cho blog này. |
|
pages |
object |
Vùng chứa cho các trang của blog này. |
|
pages.totalItems |
integer |
Tổng số trang của blog này. |
|
pages.selfLink |
string |
URL của bộ sưu tập Trang cho blog này. |
|
locale |
object |
Ngôn ngữ được đặt cho blog này. |
|
locale.language |
string |
Ngôn ngữ mà blog này được viết. |
|
locale.country |
string |
Quốc gia mà ngôn ngữ của blog này được đặt thành. |
|
locale.variant |
string |
Biến thể ngôn ngữ mà blog này được viết bằng. |
|
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: 2025-07-25 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[[["\u003cp\u003eThe v2.0 JSON API will be discontinued on September 30th, 2024, and users should update to the latest API version for continued functionality.\u003c/p\u003e\n"],["\u003cp\u003eA Blog is the primary data structure containing Posts, Pages, and Comments, accessible through the Blogger API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eblogger.blogs.get\u003c/code\u003e method allows retrieval of individual Blog resources by their unique ID.\u003c/p\u003e\n"],["\u003cp\u003eEach Blog resource includes metadata like name, description, publication date, update date, URL, and counts of posts and pages.\u003c/p\u003e\n"],["\u003cp\u003eDetailed properties of a Blog resource, such as ID, name, description, publication and update timestamps, URL, and locale information, are available within the JSON response.\u003c/p\u003e\n"]]],[],null,["# Blogs\n\n**Important**:\nWe will discontinue support for the v2.0 JSON API on September 30th, 2024.\nTo ensure continued functionality, update your applications that rely on the v2.0 JSON API\nto the latest API version. For the latest version, use the links in the left-side navbar.\nA Blog is the root data class for the Blogger API. Each blog has a series of [Posts](/blogger/docs/2.0/json/reference/posts) and [Pages](/blogger/docs/2.0/json/reference/pages), and each Post has a series of [Comments](/blogger/docs/2.0/json/reference/comments).\n\nMethods\n-------\n\nTo retrieve an individual [Blogs](/blogger/docs/2.0/json/reference/blogs#resource) Resource, use the [blogger.blogs.get](/blogger/docs/2.0/json/reference/blogs/get) method.\n\n[get](/blogger/docs/2.0/json/reference/blogs/get)\n: Gets one blog by id.\n\nResource Representations\n------------------------\n\nA Blogs Resource contains all the metadata for a blog, along with the counts of [Posts](/blogger/docs/2.0/json/reference/posts) and [Pages](/blogger/docs/2.0/json/reference/pages) children.\n\n```gdscript\n{\n \"kind\": \"blogger#blog\",\n \"id\": value,\n \"name\": value,\n \"description\": value,\n \"published\": value,\n \"updated\": value,\n \"url\": value,\n \"selfLink\": value,\n \"posts\": {\n \"totalItems\": value,\n \"selfLink\": value\n },\n \"pages\": {\n \"totalItems\": value,\n \"selfLink\": value\n },\n \"locale\": {\n \"language\": value,\n \"country\": value,\n \"variant\": value\n }\n}\n```\n\n| Property Name | Value | Description | Notes |\n|--------------------|------------|-------------------------------------------------------------------------------------------------------------------|-------|\n| `kind` | `string` | The kind of this entry. Always `blogger#blog`. | |\n| `id` | `long` | The identifier for this resource. | |\n| `name` | `string` | The name of this blog. This is usually displayed in Blogger as the blog's title. May include HTML. | |\n| `description` | `string` | The description of this blog. This is usually displayed in Blogger underneath the blog's title. May include HTML. | |\n| `published` | `datetime` | RFC 3339 date-time when this blog was published. | |\n| `updated` | `datetime` | RFC 3339 date-time when this blog was last updated. | |\n| `url` | `string` | The URL where this blog is published. | |\n| `selfLink` | `string` | The API REST URL to fetch this resource from. | |\n| `posts` | `object` | The container for this blog's posts. | |\n| posts.`totalItems` | `integer` | The total number of posts on this blog. | |\n| posts.`selfLink` | `string` | The URL of the Posts Collection for this blog. | |\n| `pages` | `object` | The container for this blog's pages. | |\n| pages.`totalItems` | `integer` | The total number of pages for this blog. | |\n| pages.`selfLink` | `string` | The URL of the Pages collection for this blog. | |\n| `locale` | `object` | The locale this blog is set to. | |\n| locale.`language` | `string` | The language this blog is authored in. | |\n| locale.`country` | `string` | The country this blog's locale is set to. | |\n| locale.`variant` | `string` | The language variant this blog is authored in. | |"]]