Lists the YouTube channels of the connected Google account with subscriber, view and video counts and the uploads playlist.
curl -X POST "https://api.primaryapi.com/v1/run/youtube.my_channels" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'{
"output": {
"found": true,
"data": {
"nextCursor": null,
"channels": [
{
"handle": "@adabuilds",
"title": "Ada Builds",
"subscriberCount": 24300,
"hiddenSubscriberCount": false, …
}
]
}
},
"credits": 1
}Input and output
1 field
16 fields
Good to know
Runs as your connected Google account. Needs the Read YouTube capability.
Lists the channels the connected account owns. Including their uploads playlist.
A Google account without a YouTube channel answers found: false with reason no_channel. A miss is an answer, not an error.
The same key and credits work for every API.