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

NameDescription
vRequired for transcript. YouTube video ID
resourceOptional. transcript | search; defaults to transcript
search_queryRequired for search
countryOptional. Country code
langOptional public alias of language
languageOptional. Preferred language
spOptional search filter token; search only

Response fields

  • video_results
  • transcripts
  • title
  • channel
  • duration
  • views
  • published_date

Guides

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.