# Method: posts.list

- [HTTP request](https://developers.google.com/youtube/data/reference/rest/v3/posts/list.md.txt#body.HTTP_TEMPLATE)
- [Query parameters](https://developers.google.com/youtube/data/reference/rest/v3/posts/list.md.txt#body.QUERY_PARAMETERS)
- [Request body](https://developers.google.com/youtube/data/reference/rest/v3/posts/list.md.txt#body.request_body)
- [Response body](https://developers.google.com/youtube/data/reference/rest/v3/posts/list.md.txt#body.response_body)
  - [JSON representation](https://developers.google.com/youtube/data/reference/rest/v3/posts/list.md.txt#body.PostListResponse.SCHEMA_REPRESENTATION)
- [Authorization scopes](https://developers.google.com/youtube/data/reference/rest/v3/posts/list.md.txt#body.aspect)
- [Try it!](https://developers.google.com/youtube/data/reference/rest/v3/posts/list.md.txt#try-it)

Returns a list of posts that match the API request parameters.

This method is in a pilot phase with access limited to select launch partners (approved Google Cloud projects). Broader public API access is planned for General Availability in 2027.

Users who own or manage a channel can retrieve all of the channel's posts, including scheduled and archived posts. Other users can retrieve only published public posts.

**Quota impact:** A call to this method has a [quota cost](https://developers.google.com/youtube/data/getting-started.md.txt#quota) of 1 unit. The cost counts against the **Post List Queries** quota, which is separate from the default YouTube Data API quota.

Authorization is required to retrieve non-public posts, such as scheduled or archived posts for a channel that the user owns or manages, and isn't required to retrieve published public posts. For method-specific error responses, see [posts.list errors](https://developers.google.com/youtube/data/reference/rest/v3/errors.md.txt#posts_youtube.posts.list).

### HTTP request

`GET https://youtube.googleapis.com/youtube/v3/posts`

The URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.

### Query parameters

| Parameters ||
|---|---|
| `postId[]` | `string` A comma-separated list of the IDs of the posts to return. Specify exactly one of `postId` and `channelId`. The response omits posts that don't exist or that the caller can't view. |
| `channelId` | `string` Returns posts published by the specified channel. Specify exactly one of `postId` and `channelId`. Users who own or manage the channel can retrieve all of its posts, including scheduled and archived posts. Other users can retrieve only published public posts. |
| `pageToken` | `string` Identifies a specific page in the result set that should be returned. In an API response, the `nextPageToken` property identifies the next page that can be retrieved. Applies only when `channelId` is set. |
| `maxResults` | `integer` Optional. Specifies the maximum number of items returned in the result set. Acceptable values are `1` to `50`, inclusive. The default value is `20`. Applies only when `channelId` is set, though values outside `1` to `50` are still rejected. |
| `part[]` | `string` Required. Specifies a comma-separated list of one or more post resource properties that the API response includes. Acceptable values are `attachments`, `id`, `snippet`, `statistics`, and `status`. |

### Request body

The request body must be empty.

### Response body

If successful, the response body contains data with the following structure:

| JSON representation |
|---|
| ``` { "kind": string, "etag": string, "items": [ { object (`Post`) } ], "nextPageToken": string } ``` |

| Fields ||
|---|---|
| `kind` | `string` Identifies what kind of resource this is. Value: the fixed string `"youtube#postListResponse"`. |
| `etag` | `string` Contains the etag of this resource. |
| `items[]` | ``object (`Post`)`` Contains the list of posts that match the request criteria. If no matching posts exist or the caller can't view any of them, the list is empty. |
| `nextPageToken` | `string` Provides the token that can be used as the value of the `pageToken` parameter to retrieve the next page in the result set. |

### Authorization scopes

Requires one of the following OAuth scopes:

- `https://www.googleapis.com/auth/youtube`
- `https://www.googleapis.com/auth/youtubepartner`
- `https://www.googleapis.com/auth/youtube.readonly`
- `https://www.googleapis.com/auth/youtube.force-ssl`

For more information, see the [OAuth 2.0 Overview](https://developers.google.com/identity/protocols/OAuth2).