activities.insert method will be
deprecated, and the activities.list
method will stop returning channel bulletins. These changes will be effective in the API on or
after May 18, 2020. For more details, see the
YouTube Help Center.
The following examples show how to use the YouTube Data API (v3) to perform functions related to user activity.
Retrieve a list of channel activities
To retrieve a list of events related to a particular channel, call the
activities.list method
using one of the following two methods to identify the channel:
-
Set the
mineparameter value totrueto retrieve a list of the authenticated user's activities. Your request must be authorized using OAuth 2.0.https://developers.google.com/apis-explorer/#p/youtube/v3/youtube.activities.list? part=snippet,contentDetails &mine=true
-
Set the
channelIdparameter to the YouTube channel ID that uniquely identifies the channel for which you are retrieving an activity list. This example sets thechannelIdparameter toUCK8sQmJBp8GCxrOtXWBpyEA, which also identifies Google's official YouTube channel.https://developers.google.com/apis-explorer/#p/youtube/v3/youtube.activities.list? part=snippet,contentDetails &channelId=UCK8sQmJBp8GCxrOtXWBpyEA