Keyword search returning YouTube channels (handle, name, description snippet, subscriber count, URL, avatar) with cursor pagination.
curl -X POST "https://api.primaryapi.com/v1/run/youtube.search_channels" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query":"vegan meal prep"}'{
"output": {
"found": true,
"data": {
"nextCursor": "<string | null>",
"channels": [
{
"handle": "<string | null>",
"name": "<string | null>",
"subscribers": "<integer | null>",
"videoCount": "<integer | null>", …
}
]
}
},
"credits": 2
}Input and output
3 fields
vegan meal prep.8 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.