Returns a list of channel activity events that match the request criteria. For example, you can retrieve events associated with a particular channel or with the authenticated user's channel.
Requests that use the channelId filter don't require OAuth 2.0 authorization. Requests that use mine=true or home=true require authorization. For method-specific error responses, see activities.list errors. For code examples, see activities.list code snippets.
HTTP request
GET https://youtube.googleapis.com/youtube/v3/activities
The URL uses gRPC Transcoding syntax.
Query parameters
| Parameters | |
|---|---|
channelId |
Specifies a unique YouTube channel ID to retrieve that channel's activities. Specify exactly one filter parameter ( |
home |
Deprecated: Home activity feeds are no longer supported; use |
mine |
Set this parameter's value to |
publishedAfter |
Specifies the earliest date and time that an activity must occur to be included in the response. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
publishedBefore |
Specifies the latest date and time before which an activity must occur to be included in the response. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
maxResults |
Specifies the maximum number of items returned in the result set. Acceptable values are |
pageToken |
The |
part[] |
Required. Specifies a comma-separated list of one or more If the parameter identifies a property that contains child properties, the child properties are included in the response. For example, in an Valid 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 |
Etag of this resource. |
items[] |
A list of activities that match the request criteria. |
nextPageToken |
The token that can be used as the value of the |
prevPageToken |
The token that can be used as the value of the |
pageInfo |
General pagination information. |
pageInfo.totalResults |
The total number of results in the result set. |
pageInfo.resultsPerPage |
The number of results included in the API response. |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/youtubehttps://www.googleapis.com/auth/youtube.readonlyhttps://www.googleapis.com/auth/youtube.force-ssl
For more information, see the OAuth 2.0 Overview.