# API Reference

This API reference is organized by resource type. Each resource type has one or more data representations and one or more methods.

## Resource types

1. [Blogs](https://developers.google.com/blogger/docs/3.0/reference.md.txt#Blogs)
2. [Comments](https://developers.google.com/blogger/docs/3.0/reference.md.txt#Comments)
3. [Pages](https://developers.google.com/blogger/docs/3.0/reference.md.txt#Pages)
4. [Posts](https://developers.google.com/blogger/docs/3.0/reference.md.txt#Posts)
5. [Users](https://developers.google.com/blogger/docs/3.0/reference.md.txt#Users)
6. [BlogUserInfos](https://developers.google.com/blogger/docs/3.0/reference.md.txt#BlogUserInfos)
7. [PageViews](https://developers.google.com/blogger/docs/3.0/reference.md.txt#PageViews)
8. [PostUserInfos](https://developers.google.com/blogger/docs/3.0/reference.md.txt#PostUserInfos)

## Blogs

For Blogs Resource details, see the [resource representation](https://developers.google.com/blogger/docs/3.0/reference/blogs.md.txt#resource) page.

| Method | HTTP request | Description |
|---|---|---|
| URIs relative to https://www.googleapis.com/blogger/v3, unless otherwise noted |||
| [get](https://developers.google.com/blogger/docs/3.0/reference/blogs/get.md.txt) | `GET /blogs/blogId` | Retrieves a blog by its ID. |
| [getByUrl](https://developers.google.com/blogger/docs/3.0/reference/blogs/getByUrl.md.txt) | `GET /blogs/byurl` | Retrieves a blog by URL. |
| [listByUser](https://developers.google.com/blogger/docs/3.0/reference/blogs/listByUser.md.txt) | `GET /users/userId/blogs` | Retrieves a list of blogs. |

## Comments

For Comments Resource details, see the [resource representation](https://developers.google.com/blogger/docs/3.0/reference/comments.md.txt#resource) page.

| Method | HTTP request | Description |
|---|---|---|
| URIs relative to https://www.googleapis.com/blogger/v3, unless otherwise noted |||
| [list](https://developers.google.com/blogger/docs/3.0/reference/comments/list.md.txt) | `GET /blogs/blogId/posts/postId/comments` | Retrieves the list of [comments](https://developers.google.com/blogger/docs/3.0/reference/comments.md.txt) for a [post](https://developers.google.com/blogger/docs/3.0/reference/posts.md.txt). |
| [get](https://developers.google.com/blogger/docs/3.0/reference/comments/get.md.txt) | `GET /blogs/blogId/posts/postId/comments/commentId` | Retrieves one comment resource by its commentId. |
| [approve](https://developers.google.com/blogger/docs/3.0/reference/comments/approve.md.txt) | `POST /blogs/blogId/posts/postId/comments/commentId/approve` | Marks a comment as not spam. |
| [delete](https://developers.google.com/blogger/docs/3.0/reference/comments/delete.md.txt) | `DELETE /blogs/blogId/posts/postId/comments/commentId` | Delete a comment by ID. |
| [listByBlog](https://developers.google.com/blogger/docs/3.0/reference/comments/listByBlog.md.txt) | `GET /blogs/blogId/comments` | Retrieves the comments for a blog, across all posts, possibly filtered. |
| [markAsSpam](https://developers.google.com/blogger/docs/3.0/reference/comments/markAsSpam.md.txt) | `POST /blogs/blogId/posts/postId/comments/commentId/spam` | Marks a comment as spam. This will set the status of the comment to `spam`, and hide it in the default comment rendering. |
| [removeContent](https://developers.google.com/blogger/docs/3.0/reference/comments/removeContent.md.txt) | `POST /blogs/blogId/posts/postId/comments/commentId/removecontent` | Removes the content of a comment. |

## Pages

For Pages Resource details, see the [resource representation](https://developers.google.com/blogger/docs/3.0/reference/pages.md.txt#resource) page.

| Method | HTTP request | Description |
|---|---|---|
| URIs relative to https://www.googleapis.com/blogger/v3, unless otherwise noted |||
| [list](https://developers.google.com/blogger/docs/3.0/reference/pages/list.md.txt) | `GET /blogs/blogId/pages` | Retrieves the list of [pages](https://developers.google.com/blogger/docs/3.0/reference/pages.md.txt) for a [blog](https://developers.google.com/blogger/docs/3.0/reference/blogs.md.txt#resource). |
| [get](https://developers.google.com/blogger/docs/3.0/reference/pages/get.md.txt) | `GET /blogs/blogId/pages/pageId` | Retrieves one pages resource by its page ID. |
| [delete](https://developers.google.com/blogger/docs/3.0/reference/pages/delete.md.txt) | `DELETE /blogs/blogId/pages/pageId` | Delete a page by ID. |
| [insert](https://developers.google.com/blogger/docs/3.0/reference/pages/insert.md.txt) | `POST /blogs/blogId/pages` | Add a page. |
| [patch](https://developers.google.com/blogger/docs/3.0/reference/pages/patch.md.txt) | `PATCH /blogs/blogId/pages/pageId` | Update a page. This method supports patch semantics. |
| [update](https://developers.google.com/blogger/docs/3.0/reference/pages/update.md.txt) | `PUT /blogs/blogId/pages/pageId` | Update a page. |

## Posts

For Posts Resource details, see the [resource representation](https://developers.google.com/blogger/docs/3.0/reference/posts.md.txt#resource) page.

| Method | HTTP request | Description |
|---|---|---|
| URIs relative to https://www.googleapis.com/blogger/v3, unless otherwise noted |||
| [list](https://developers.google.com/blogger/docs/3.0/reference/posts/list.md.txt) | `GET /blogs/blogId/posts` | Retrieves a list of posts. |
| [get](https://developers.google.com/blogger/docs/3.0/reference/posts/get.md.txt) | `GET /blogs/blogId/posts/postId` | Retrieves one post by post ID. |
| [search](https://developers.google.com/blogger/docs/3.0/reference/posts/search.md.txt) | `GET /blogs/blogId/posts/search` | Searches for a post that matches the given query terms. |
| [insert](https://developers.google.com/blogger/docs/3.0/reference/posts/insert.md.txt) | `POST /blogs/blogId/posts` | Adds a post. |
| [delete](https://developers.google.com/blogger/docs/3.0/reference/posts/delete.md.txt) | `DELETE /blogs/blogId/posts/postId` | Deletes a post by ID. |
| [getByPath](https://developers.google.com/blogger/docs/3.0/reference/posts/getByPath.md.txt) | `GET /blogs/blogId/posts/bypath` | Retrieves a post by path. |
| [patch](https://developers.google.com/blogger/docs/3.0/reference/posts/patch.md.txt) | `PATCH /blogs/blogId/posts/postId` | Updates a post. This method supports [patch semantics](https://developers.google.com/blogger/docs/3.0/performance.md.txt). |
| [update](https://developers.google.com/blogger/docs/3.0/reference/posts/update.md.txt) | `PUT /blogs/blogId/posts/postId` | Updates a post. |
| [publish](https://developers.google.com/blogger/docs/3.0/reference/posts/publish.md.txt) | `POST /blogs/blogId/posts/postId/publish` | Publish a draft post. |
| [revert](https://developers.google.com/blogger/docs/3.0/reference/posts/revert.md.txt) | `POST /blogs/blogId/posts/postId/revert` | Revert a published or scheduled post to draft state, which removes the post from the publicly viewable content. |

## Users

For Users Resource details, see the [resource representation](https://developers.google.com/blogger/docs/3.0/reference/users.md.txt#resource) page.

| Method | HTTP request | Description |
|---|---|---|
| URIs relative to https://www.googleapis.com/blogger/v3, unless otherwise noted |||
| [get](https://developers.google.com/blogger/docs/3.0/reference/users/get.md.txt) | `GET /users/userId` | Retrieves a user by user ID. |

## BlogUserInfos

For BlogUserInfos Resource details, see the [resource representation](https://developers.google.com/blogger/docs/3.0/reference/blogUserInfos.md.txt#resource) page.

| Method | HTTP request | Description |
|---|---|---|
| URIs relative to https://www.googleapis.com/blogger/v3, unless otherwise noted |||
| [get](https://developers.google.com/blogger/docs/3.0/reference/blogUserInfos/get.md.txt) | `GET /users/userId/blogs/blogId` | Gets one blog and user info pair by <var class="apiparam" translate="no">blogId</var> and <var class="apiparam" translate="no">userId</var>. |

## PageViews

For PageViews Resource details, see the [resource representation](https://developers.google.com/blogger/docs/3.0/reference/pageViews.md.txt#resource) page.

| Method | HTTP request | Description |
|---|---|---|
| URIs relative to https://www.googleapis.com/blogger/v3, unless otherwise noted |||
| [get](https://developers.google.com/blogger/docs/3.0/reference/pageViews/get.md.txt) | `GET /blogs/blogId/pageviews` | Retrieve pageview stats for a Blog. |

## PostUserInfos

For PostUserInfos Resource details, see the [resource representation](https://developers.google.com/blogger/docs/3.0/reference/postUserInfos.md.txt#resource) page.

| Method | HTTP request | Description |
|---|---|---|
| URIs relative to https://www.googleapis.com/blogger/v3, unless otherwise noted |||
| [get](https://developers.google.com/blogger/docs/3.0/reference/postUserInfos/get.md.txt) | `GET /users/userId/blogs/blogId/posts/postId` | Gets one post and user info pair by <var class="apiparam" translate="no">postId</var> and <var class="apiparam" translate="no">userId</var>. |
| [list](https://developers.google.com/blogger/docs/3.0/reference/postUserInfos/list.md.txt) | `GET /users/userId/blogs/blogId/posts` | Retrieves a list of post and post user info pairs, possibly filtered. The post user info contains per-user information about the post, such as access rights, specific to the user. |