YouTube API
Search YouTube videos or retrieve a transcript by video ID. Transcript requests cost 1 credit and search requests cost 5; channel and comment resources are not supported.
/youtube1 or 5 credits / requestSocial
Request
curl "https://api.fastaf.co/v1/youtube?v=..." \
-H "Authorization: Bearer YOUR_KEY"Parameters
| Name | Description |
|---|---|
| v | Required for transcript. YouTube video ID |
| resource | Optional. transcript | search; defaults to transcript |
| search_query | Required for search |
| country | Optional. Country code |
| lang | Optional public alias of language |
| language | Optional. Preferred language |
| sp | Optional search filter token; search only |
Response fields
- video_results
- transcripts
- title
- channel
- duration
- views
- published_date
Guides
- How to get YouTube transcripts with Python (without API quotas)
The YouTube Data API skips transcripts, and youtube-transcript-api gets IP blocked on cloud servers. A setup that costs 1 credit per video, August 2026.
FAQ
Which resources are supported?
Only transcript and search. Use v for a transcript and search_query for search.
What does each resource cost?
A transcript costs 1 credit. A search costs 5 credits.
Can I request channels or comments?
No. Channel and comment resources are not accepted.