Comments: list

Important: We will discontinue support for the v2.0 JSON API on September 30th, 2024. To ensure continued functionality, update your applications that rely on the v2.0 JSON API to the latest API version. For the latest version, use the links in the left-side navbar.

Retrieves the list of Comments for a Post. Try it now.

Authentication is required if the comments are on a blog that is private. If the comments are on a blog that is public, then this method can be called without authentication.

Request

HTTP Request

GET https://www.googleapis.com/blogger/v2/blogs/blogId/posts/postId/comments

Parameters

Parameter Name Value Description
Required Parameters
blogId string ID of the blog to fetch comments from.
postId string ID of the post to fetch posts from.
Optional Parameters
fetchBodies boolean Whether the body content of the comments is included.
maxResults unsigned integer Maximum number of comments to include in the result.
pageToken string Continuation token if request is paged.
startDate datetime Earliest date of comment to fetch, a date-time with RFC 3339 formatting.

Request Body

Do not supply a request body with this method.

Response

If successful, this method returns a response body with the following structure:

{
  "kind": "blogger#commentList",
  "nextPageToken": string,
  "prevPageToken": string,
  "items": [
    comments Resource
  ]
}
Property Name Value Description Notes
kind string The kind of this entry. Always blogger#commentList.
nextPageToken string Pagination token to fetch the next page, if one exists.
prevPageToken string Pagination token to fetch the previous page, if one exists.
items[] list The list of Comments Resources for the specified post.

Try It!

Use the explorer below to call this method on live data and see the response.