Transcript of a YouTube video or Short with timed segments, whether the captions are creator-written or speech recognition, and the video metadata in one response.
3 credits/ call
Never more than 7 credits a call.
You only pay when data comes back.
curl -X POST "https://api.primaryapi.com/v1/run/youtube.video_transcript_full" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://www.youtube.com/watch?v=p8gV_7zFN44"}'{
"output": {
"found": true,
"data": {
"title": "Some video title",
"likes": 234567,
"views": 12345678,
"isAutoGenerated": false, …
}
},
"credits": 3
}Input and output
3 fields
https://www.youtube.com/watch?v=p8gV_7z….18 fields
Good to know
Unknown URL? It comes back as not found, not as an error.
The same key and credits work for every API.