0.19¢ per lookup

YouTube Transcript API

Read the words. Cite the moment.

Give your agent a public YouTube URL. Get available captions as text with segment start times. Each lookup costs $0.0019 through TaskFuel.

One TaskFuel account and prepaid balance. Connect your agent and it shows the price before it pays.

Works with

YouTube Transcript API: what your agent gets.

One public-video caption lookup. Availability and language depend on the video.

  • Read available YouTube captions

    Send a public video URL or ID and get caption text with timed segments when a usable track is available.

    $0.0019 per lookup

YouTube Transcript API, tested.

Our request for Me at the zoo returned English caption text, six segments and their start times and durations.

TaskFuel test run ·

Charged $0.0019

Your agent asked

Read the English captions for https://www.youtube.com/watch?v=jNQXAC9IVRw and return the segment start times.
Data from
YouTube captions

What came back

Language
English
Segments
6

One public-video caption lookup. Availability and language depend on the video.

Try the API request Quote first, then run

1. Check the price

Use your TaskFuel API key as TASKFUEL_API_KEY in your terminal or server. Keep it out of browser code. This request checks the price without paying.

This is the request used in the dated caption example.

curl --fail-with-body https://app.taskfuel.ai/v1/call \
  -H "Authorization: Bearer $TASKFUEL_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-binary @- <<'TASKFUEL_REQUEST'
{
  "url": "https://api.getanyapi.com/v1/run/youtube.video_transcript",
  "method": "POST",
  "body": {
    "url": "https://www.youtube.com/watch?v=jNQXAC9IVRw"
  },
  "dryRun": true
}
TASKFUEL_REQUEST

2. Run the request

Review amount_usd in the quote. To pay and run, change dryRun to false and add maxAmountUsd with that approved amount inside the same JSON object. Keep the inputs unchanged; this limit applies to one call.

3. Read the result

Read output.found, then output.data.transcript and output.data.segments[]. Each segment includes text, startSeconds and durationSeconds. A video can have no usable transcript.

Free Python transcript library and its limits

Setup and API reference · Job polling and timeout recovery

Try it in your next task.

Sign in to TaskFuel and copy the connection prompt into your agent. Approve the connection, then ask for the work you need.

01

Name the task

Tell your agent what the output needs to contain.

02

See the price

Your agent shows the provider and price before spending.

03

Review the response

Check the output against your task. The call reports its cost and remaining balance.

When to use it.

Source notes

Link to a spoken passage.

Your agent can use a segment start time to link a research note to the relevant moment in the source video.

Reading a video

Work with the caption text.

The plain-text transcript gives your agent material for notes without copying each caption by hand.

Providers for this task.

CapabilityProvidersReference
Transcribe social videosAnyAPI, StableSocial, Scrape Creators, Fiber AI APICompare providers · Endpoint data

Good Questions.

Does this YouTube Transcript API transcribe every video?

This example retrieves available captions. A video without a usable caption track can return no transcript. Audio transcription is a separate task.

Is there a free YouTube transcript API option?

The open-source youtube-transcript-api Python library can retrieve available subtitles without an API key. You run it yourself, and its documentation describes IP-blocking limits.

How does this differ from YouTube MCP?

This guide shows the tested HTTP request for one caption lookup. The YouTube MCP guide compares options for video search and captions in an MCP client.

What did the example cost?

The caption lookup cost $0.0019 on 17 November 2026. Your agent shows the price for your own request before it pays.

Do I need an account, an API key or a server?

No. Your agent pays from your TaskFuel balance. There is no provider account or API key to handle and no server to run.

Your agent can do things it couldn’t this morning.

$1 in free credit, no card required.

Start for Free