Shorts published by a YouTube channel (title, views, likes, duration, publish time), newest or most popular first, with cursor pagination.
2 credits/ call
Never more than 45 credits a call.
You only pay when data comes back.
curl -X POST "https://api.primaryapi.com/v1/run/youtube.channel_shorts" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"channelId":"UCxcTeAKWJca6XyJ37_ZoKIQ"}'{
"output": {
"found": true,
"data": {
"nextCursor": "eyJsIjoieW91dHViZS5jaGFubmVsX3Nob3J…",
"shorts": [
{
"title": "This idea validation formula has ma…",
"views": 17066,
"likes": 495,
"viewsAvailable": true, …
}
]
}
},
"credits": 2
}Input and output
5 fields
UCxcTeAKWJca6XyJ37_ZoKIQ.13 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.