Skip to content

YouTube Transcript APIfor AI agents

One API call to read a YouTube video. Get the transcript as text or as segments.

Start for free

The YouTube transcript your agent needs.

YouTube Transcript returns what a video says as text, read from its captions. Choose the language and whether each line keeps its timestamp.

terminal
curl -X POST "https://api.stophy.dev/v1/youtube/transcript" \
-H "Authorization: Bearer $STOPHY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"includeTimestamps": true,
"videoId": "p0fybvFyOlM"
}'

What people use it for.

  • Summarize a video

    Send the videoId of a long talk and give the text field to a model. Ask for a summary or for the steps the speaker lists.

  • Quote with a timestamp

    Set includeTimestamps to true. Use startSeconds on each segment to link a quote to the moment the speaker says it.

  • Index a whole course

    Call youtube.playlist to list a course, then get the transcript of each video. Store the text so that an agent can search it.

Start free. Pay per call after.

No plans and no monthly fee. 1,000 free credits to start, then $1.50 per 1,000 credits, $1.20 from $100 and $0.80 from $500. Credits never expire.

Free

Every account starts with free credits. No card needed.

1,000 free credits

$0

Start for free
  • ✓Every source

Pay as you go

Add credits to your balance and spend them one call at a time.

$1.50 per 1,000 credits, $1.20 from $100 and $0.80 from $500

$0.0015/ credit

10,000 credits≈ $13.50

Most calls cost 1 credit.

Get an API key
  • ✓Never expires

Custom

For teams that need higher rate limits or a source we do not cover yet.

Volume pricing

Custom

Talk to us
  • ✓Custom rate limits
  • ✓New sources on request
  • ✓Direct support

Questions and answers.

Get started

Give your agent the web today.

Sign up for 1,000 free credits. No card needed.