Long-form videos uploaded by a YouTube channel (title, views, length, publish time), newest or most popular first, with cursor pagination.
1 credit/ call
Never more than 19 credits a call.
You only pay when data comes back.
curl -X POST "https://api.primaryapi.com/v1/run/youtube.channel_videos" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"channelId":"UCxcTeAKWJca6XyJ37_ZoKIQ"}'{
"output": {
"found": true,
"data": {
"nextCursor": "eyJsIjoieW91dHViZS5jaGFubmVsX3ZpZGV…",
"videos": [
{
"title": "Russell Wilson Hopes To Finish Care…",
"views": 110447,
"lengthSeconds": 2245,
"description": "Welcome to The Pat McAfee Show LIVE…", …
}
]
}
},
"credits": 1
}Input and output
5 fields
UCxcTeAKWJca6XyJ37_ZoKIQ.10 fields
Good to know
One page per call. Send nextCursor back as cursor to read the next page.
The same key and credits work for every API.