'I am only getting upload activities from YouTube API, rather than getting other activities e.g. like, recommendation, subscription, favourite

I am using the YouTube API to get the activities of the authenticated user e.g. like, subscription, etc. The API should only return my the items with snippet.type=upload

This is my request call in python:

request = youtube.activities().list(
        part="snippet,contentDetails",
        # channelId=channelId,
        mine=True,
        maxResults=25
    )

Here is the link to the API: https://developers.google.com/youtube/v3/docs/activities/list



Solution 1:[1]

Like you mentioned, (once again) YouTube Data API v3 doesn't work as expected by the documentation.

I think the best way to go is parsing webpages (when logged) like these ones:

This webpage describes a few webpages like above: https://myactivity.google.com/more-activity

If you go this way, don't hesitate to share your parsing code with others for instance on this repository.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Benjamin Loison