Blogger API
The Blogger API provides access to posts, comments and pages of a Blogger blog.
Media & content#openapi#analytics#media
Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.
Overview
The Blogger API provides access to posts, comments and pages of a Blogger blog.
Endpoints 33
blogUserInfos
- GETGets one blog and user info pair by blog id and user id.
/v3/users/:userId/blogs/:blogId?maxPosts=0Gets one blog and user info pair by blog id and user id.
blogs
- GETGets a blog by id.
/v3/blogs/:blogId?maxPosts=0&view=VIEW_TYPE_UNSPECIFIEDGets a blog by id. - GETGets a blog by url.
/v3/blogs/byurl?url=string&view=VIEW_TYPE_UNSPECIFIEDGets a blog by url. - GETLists blogs by user.
/v3/users/:userId/blogs?fetchUserInfo=true&role=VIEW_TYPE_UNSPECIFIED&status=LIVE&view=VIEW_TYPE_UNSPECIFIEDLists blogs by user.
comments
- POSTMarks a comment as not spam by blog id, post id and comment id.
/v3/blogs/:blogId/posts/:postId/comments/:commentId/approveMarks a comment as not spam by blog id, post id and comment id. - GETGets a comment by id.
/v3/blogs/:blogId/posts/:postId/comments/:commentId?view=VIEW_TYPE_UNSPECIFIEDGets a comment by id. - DELETEDeletes a comment by blog id, post id and comment id.
/v3/blogs/:blogId/posts/:postId/comments/:commentIdDeletes a comment by blog id, post id and comment id. - GETLists comments.
/v3/blogs/:blogId/posts/:postId/comments?endDate=string&fetchBodies=true&maxResults=0&pageToken=string&startDate=string&status=LIVE&view=VIEW_TYPE_UNSPECIFIEDLists comments. - GETLists comments by blog.
/v3/blogs/:blogId/comments?endDate=string&fetchBodies=true&maxResults=0&pageToken=string&startDate=string&status=LIVELists comments by blog. - POSTMarks a comment as spam by blog id, post id and comment id.
/v3/blogs/:blogId/posts/:postId/comments/:commentId/spamMarks a comment as spam by blog id, post id and comment id. - POSTRemoves the content of a comment by blog id, post id and comment id.
/v3/blogs/:blogId/posts/:postId/comments/:commentId/removecontentRemoves the content of a comment by blog id, post id and comment id.
pageViews
- GETGets page views by blog id.
/v3/blogs/:blogId/pageviews?range=allGets page views by blog id.
pages
- GETGets a page by blog id and page id.
/v3/blogs/:blogId/pages/:pageId?view=VIEW_TYPE_UNSPECIFIEDGets a page by blog id and page id. - PUTUpdates a page by blog id and page id.
/v3/blogs/:blogId/pages/:pageId?publish=true&revert=trueUpdates a page by blog id and page id. - DELETEDeletes a page by blog id and page id.
/v3/blogs/:blogId/pages/:pageId?useTrash=trueDeletes a page by blog id and page id. - PATCHPatches a page.
/v3/blogs/:blogId/pages/:pageId?publish=true&revert=truePatches a page. - GETLists pages.
/v3/blogs/:blogId/pages?fetchBodies=true&maxResults=0&pageToken=string&status=LIVE&view=VIEW_TYPE_UNSPECIFIEDLists pages. - POSTInserts a page.
/v3/blogs/:blogId/pages?isDraft=trueInserts a page. - POSTPublishes a page.
/v3/blogs/:blogId/pages/:pageId/publishPublishes a page. - POSTReverts a published or scheduled page to draft state.
/v3/blogs/:blogId/pages/:pageId/revertReverts a published or scheduled page to draft state.
postUserInfos
- GETGets one post and user info pair, by post_id and user_id.
/v3/users/:userId/blogs/:blogId/posts/:postId?maxComments=0Gets one post and user info pair, by post_id and user_id. - GETLists post and user info pairs.
/v3/users/:userId/blogs/:blogId/posts?endDate=string&fetchBodies=true&labels=string&maxResults=0&orderBy=ORDER_BY_UNSPECIFIED&pageToken=string&startDate=string&status=LIVE&view=VIEW_TYPE_UNSPECIFIEDLists post and user info pairs.
posts
- GETGets a post by blog id and post id
/v3/blogs/:blogId/posts/:postId?fetchBody=true&fetchImages=true&maxComments=0&view=VIEW_TYPE_UNSPECIFIEDGets a post by blog id and post id - PUTUpdates a post by blog id and post id.
/v3/blogs/:blogId/posts/:postId?fetchBody=true&fetchImages=true&maxComments=0&publish=true&revert=trueUpdates a post by blog id and post id. - DELETEDeletes a post by blog id and post id.
/v3/blogs/:blogId/posts/:postId?useTrash=trueDeletes a post by blog id and post id. - PATCHPatches a post.
/v3/blogs/:blogId/posts/:postId?fetchBody=true&fetchImages=true&maxComments=0&publish=true&revert=truePatches a post. - GETGets a post by path.
/v3/blogs/:blogId/posts/bypath?maxComments=0&path=string&view=VIEW_TYPE_UNSPECIFIEDGets a post by path. - GETLists posts.
/v3/blogs/:blogId/posts?endDate=string&fetchBodies=true&fetchImages=true&labels=string&maxResults=0&orderBy=ORDER_BY_UNSPECIFIED&pageToken=string&sortOption=SORT_OPTION_UNSPECIFIED&startDate=string&status=LIVE&view=VIEW_TYPE_UNSPECIFIEDLists posts. - POSTInserts a post.
/v3/blogs/:blogId/posts?fetchBody=true&fetchImages=true&isDraft=trueInserts a post. - POSTPublishes a post.
/v3/blogs/:blogId/posts/:postId/publish?publishDate=stringPublishes a post. - POSTReverts a published or scheduled post to draft state.
/v3/blogs/:blogId/posts/:postId/revertReverts a published or scheduled post to draft state. - GETSearches for posts matching given query terms in the specified blog.
/v3/blogs/:blogId/posts/search?fetchBodies=true&orderBy=ORDER_BY_UNSPECIFIED&q=stringSearches for posts matching given query terms in the specified blog.
users
- GETGets one user by user_id.
/v3/users/:userIdGets one user by user_id.
API details
- Base URL
https://blogger.googleapis.com- Authentication
- OAuth 2.0 (authorization code flow) with 2 scopes
An API key in the key query parameter - Operations
- 33 operations on 24 pathsGET 17POST 9DELETE 3PUT 2PATCH 2
- Main resources
- posts 10pages 8comments 7blogs 3postUserInfos 2blogUserInfos 1pageViews 1users 1
- Response formats
application/json- Description format
- Google API Discovery, API version
v3 - Links
- Documentation · OpenAPI document
- Listed from
- Google API Discovery document (googleapis/discovery-artifact-manager) (Apache-2.0)
How to test the Blogger API in Swastik Codes
- Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
- Fork it into your workspaceChoose a workspace. You get your own copy of the Blogger API collection, without the publisher's secrets.
- Add your credentialsThis API uses OAuth 2.0 (authorization code flow) with 2 scopes. Add yours in the collection's variables or an environment; the requests already reference it.
- Send a requestPick an endpoint, for example “Gets one blog and user info pair by blog id and user id.” (GET /v3/users/:userId/blogs/:blogId?maxPosts=0), and press Send. Check the response, add tests and run the whole collection with the runner.
Frequently asked questions
What is the Blogger API?
The Blogger API provides access to posts, comments and pages of a Blogger blog. It is listed under Media & content and has 33 endpoints.
Who publishes the Blogger API?
It is listed from Google's public API description (an OpenAPI document), not published by Google on Swastik Codes. Anyone who controls googleapis.com can claim the profile by adding a DNS TXT record.
What is the base URL of the Blogger API?
Requests go to https://blogger.googleapis.com. Endpoint paths are added to this base URL.
How do I authenticate with the Blogger API?
It accepts 2 methods: OAuth 2.0 (authorization code flow) with 2 scopes; an API key in the key query parameter.
How many endpoints does the Blogger API have?
33 operations on 24 paths (17 GET, 9 POST, 3 DELETE, 2 PUT, 2 PATCH). The largest groups are posts, pages, comments, blogs.
Is forking the Blogger API free?
Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.