Metadata for one YouTube video or Short by URL or ID: title, description, channel, views, likes, comment count, duration, publish date, tags and category.
2 credits/ call
Never more than 8 credits a call.
You only pay when data comes back.
curl -X POST "https://api.primaryapi.com/v1/run/youtube.video" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://www.youtube.com/watch?v=Y2Ah_DFr8cw"}'{
"output": {
"found": true,
"data": {
"title": "Inside the NBA: Chuck Trolls Jussie…",
"views": 372864,
"likes": 4043,
"isPaidPromotion": false, …
}
},
"credits": 2
}Input and output
2 fields
https://www.youtube.com/watch?v=Y2Ah_DF….17 fields
Good to know
Callers pass url or id.
The same key and credits work for every API.