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 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.
HTTP request
GET https://youtube.googleapis.com/youtube/v3/posts
The URL uses gRPC Transcoding syntax.
Query parameters
| Parameters | |
|---|---|
postId[] |
A comma-separated list of the IDs of the posts to return. Specify exactly one of |
channelId |
Returns posts published by the specified channel. Specify exactly one of |
pageToken |
Identifies a specific page in the result set that should be returned. In an API response, the Applies only when |
maxResults |
Optional. Specifies the maximum number of items returned in the result set. Acceptable values are Applies only when |
part[] |
Required. Specifies a comma-separated list of one or more post resource properties that the API response includes. Acceptable values are |
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 ( |
| Fields | |
|---|---|
kind |
Identifies what kind of resource this is. Value: the fixed string |
etag |
Contains the etag of this resource. |
items[] |
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 |
Provides the token that can be used as the value of the |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/youtubehttps://www.googleapis.com/auth/youtubepartnerhttps://www.googleapis.com/auth/youtube.readonlyhttps://www.googleapis.com/auth/youtube.force-ssl
For more information, see the OAuth 2.0 Overview.