Lists the playlists of the connected YouTube channel, including private and unlisted ones, with their video counts.
curl -X POST "https://api.primaryapi.com/v1/run/youtube.my_playlists" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"limit":2}'{
"output": {
"found": true,
"data": {
"totalResults": 3,
"nextCursor": "eyJ0IjoiQ0FJUUFBIn0",
"playlists": [
{
"title": "Weekend builds",
"itemCount": 18,
"description": null,
"publishedAt": "2024-05-02T08:15:00.000Z", …
}, …
]
}
},
"credits": 1
}Input and output
3 fields
2.10 fields
Good to know
Runs as your connected Google account. Needs the Read YouTube capability.
Lists the playlists the connected channel owns. The uploads playlist of a channel is listed by youtube.my_channels.
One page per call. Send nextCursor back as cursor to read the next page.
The same key and credits work for every API.