The YouTube Transcript API extracts the full transcript (subtitles) from a YouTube video.Documentation Index
Fetch the complete documentation index at: https://docs.hasdata.com/llms.txt
Use this file to discover all available pages before exploring further.
Get Your API Key
Sign in at hasdata.com, go to your account settings, and copy your API key. All requests must include your key in thex-api-key header.
Request Cost and API Credits
Each request to the YouTube Transcript API consumes API Credits from your account balance.- Cost per request: 10 API Credits
- Credits are deducted only for successful requests.
- Your total available credits depend on your active plan.
Make Your First Request
API Parameters
| Parameter | Default Value | Required | Description |
|---|---|---|---|
v | dQw4w9WgXcQ | Yes | YouTube video ID (e.g. dQw4w9WgXcQ). |
languageCode | en | No | Language code for the transcript (e.g. en, de, en-US). |
type | - | No | Transcript type (e.g. asr for auto-generated). |