網誌
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
重要事項:我們將在 2024 年 9 月 30 日停止支援 JSON API 2.0 版。為確保相關功能持續運作,請將使用 v2.0 JSON API 的應用程式更新為最新的 API 版本。如要使用最新版本,請使用左側的水平列連結。
Blogger API 的根資料類別是 Blog。每個網誌都包含一系列的文章和頁面,而每篇文章都包含一系列的留言。
資源表示法
部落格資源包含部落格的所有中繼資料,以及文章和網頁子項的數量。
{
"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
}
}
資源名稱 |
值 |
說明 |
附註 |
kind |
string |
這個項目的類型。一律為 blogger#blog 。 |
|
id |
long |
這個資源的 ID。 |
|
name |
string |
這個網誌的名稱。這通常會在 Blogger 中顯示為網誌的標題。可包含 HTML。 |
|
description |
string |
這個網誌的說明。這通常會顯示在 Blogger 中,位於網誌標題下方。可包含 HTML。 |
|
published |
datetime |
這篇網誌發布時的 RFC 3339 日期時間。 |
|
updated |
datetime |
這篇網誌上次更新的 RFC 3339 日期時間。 |
|
url |
string |
發布這篇網誌的網址。 |
|
selfLink |
string |
要擷取這項資源的 API REST 網址。 |
|
posts |
object |
這個網誌文章的容器。 |
|
posts.totalItems |
integer |
這個網誌上的文章總數。 |
|
posts.selfLink |
string |
這個網誌的「文章集合」網址。 |
|
pages |
object |
這個網誌的網頁容器。 |
|
pages.totalItems |
integer |
這個網誌的網頁總數。 |
|
pages.selfLink |
string |
這個網誌的網頁集合網址。 |
|
locale |
object |
這個網誌的語言設定。 |
|
locale.language |
string |
這個網誌的撰寫語言。 |
|
locale.country |
string |
這個網誌的語言代碼所屬國家/地區。 |
|
locale.variant |
string |
這個網誌的語言版本。 |
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[[["\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. | |"]]