Skip to content

Posts ​

Ten tools for managing blog posts: listing, searching, fetching, creating, updating, patching, deleting, publishing, and reverting.

blogger_list_posts ​

List the posts of a blog, with optional filters, ordering, and pagination.

Parameters ​

ParameterTypeRequiredDescription
blog_idstringYesID of the blog.
max_resultsintegerNoMaximum number of results (1–100).
page_tokenstringNoToken from a previous listing to fetch the next page.
statusstringNoFilter by status: LIVE, DRAFT, SCHEDULED, or SOFT_TRASHED.
labelsarrayNoFilter by label(s).
order_bystringNoSort field: PUBLISHED or UPDATED.
sort_orderstringNoSort direction: DESCENDING or ASCENDING.
start_datestringNoStart date filter (inclusive).
end_datestringNoEnd date filter (inclusive).
fetch_bodybooleanNoInclude post body in the response.
fetch_imagesbooleanNoInclude featured image URLs.
viewstringNoAccess level: READER, AUTHOR, or ADMIN.

blogger_search_posts ​

Search the posts of a blog by a query string, with optional filters.

Parameters ​

ParameterTypeRequiredDescription
blog_idstringYesID of the blog.
querystringYesSearch query string.
max_resultsintegerNoMaximum number of results (1–100).
page_tokenstringNoToken from a previous search to fetch the next page.
statusstringNoFilter by status: LIVE, DRAFT, SCHEDULED, or SOFT_TRASHED.
labelsarrayNoFilter by label(s).
order_bystringNoSort field: PUBLISHED or UPDATED.
sort_orderstringNoSort direction: DESCENDING or ASCENDING.
start_datestringNoStart date filter (inclusive).
end_datestringNoEnd date filter (inclusive).
fetch_bodybooleanNoInclude post body in the response.
fetch_imagesbooleanNoInclude featured image URLs.
viewstringNoAccess level: READER, AUTHOR, or ADMIN.

blogger_get_post ​

Get a post by its ID.

Parameters ​

ParameterTypeRequiredDescription
blog_idstringYesID of the blog.
post_idstringYesID of the post.

blogger_get_post_by_path ​

Get a post by its blog path, for example /2024/01/hello.html.

Parameters ​

ParameterTypeRequiredDescription
blog_idstringYesID of the blog.
pathstringYesPath of the post (e.g. /2024/01/hello.html).

blogger_create_post ​

Create a post on a blog. The post is created as a DRAFT unless draft: false.

Parameters ​

ParameterTypeRequiredDescription
blog_idstringYesID of the blog.
titlestringYesPost title.
contentstringYesPost content as HTML markup.
labelsarrayNoLabels to apply to the post.
draftbooleanNoIf false, publish immediately. Defaults to true (draft).

blogger_update_post ​

Update a post by reading it and applying only the provided fields.

Parameters ​

ParameterTypeRequiredDescription
blog_idstringYesID of the blog.
post_idstringYesID of the post.
titlestringNoNew title.
contentstringNoNew content as HTML.
labelsarrayNoNew labels.
statusstringNoNew status: LIVE, DRAFT, SCHEDULED, or SOFT_TRASHED.

blogger_patch_post ​

Patch a post, updating only the provided fields without reading it first.

Parameters ​

ParameterTypeRequiredDescription
blog_idstringYesID of the blog.
post_idstringYesID of the post.
titlestringNoNew title.
contentstringNoNew content as HTML.
labelsarrayNoNew labels.

WARNING

blogger_patch_post cannot change the post status. Use blogger_update_post for that.

blogger_delete_post ​

Delete a post.

Parameters ​

ParameterTypeRequiredDescription
blog_idstringYesID of the blog.
post_idstringYesID of the post.

blogger_publish_post ​

Publish a post, making it publicly visible.

Parameters ​

ParameterTypeRequiredDescription
blog_idstringYesID of the blog.
post_idstringYesID of the post.

blogger_revert_post ​

Revert a post, discarding its unpublished changes.

Parameters ​

ParameterTypeRequiredDescription
blog_idstringYesID of the blog.
post_idstringYesID of the post.