---
title: "Youtube Transcript"
method: POST
path: "/youtube/transcript"
tags: ["YouTube"]
---

# Youtube Transcript

`POST /youtube/transcript`

## Request

- Base URL: `https://api.fetchfox.net`
- URL: `https://api.fetchfox.net/youtube/transcript`
- Auth: API key in header `x-access-key`

Extract the full transcript (with timestamps) from a YouTube video or Short.

## Request body

- object, nullable
  - `url` string, required: Full URL of the resource
  - `access_key` string: Deprecated: use the x-access-key header. Keys in URLs can leak through browser history and intermediary logs. Retained only for existing clients.
  - `no_cache` boolean: Bypass extraction and response caches.

## Response `200`

Transcript extracted successfully

- object: Transcript extracted successfully
  - `success` boolean, required
  - `data` object, required
    - `url` string
    - `videoId` string
    - `transcript` string: Full plain-text transcript
    - `transcriptSegments` object[]
      - `text` string
      - `start` number
      - `duration` number
      - `timestamp` string
    - `wordCount` integer
    - `segments` integer
    - `language` string
    - `durationSeconds` number
    - `creditsUsed` number

## Other responses

- `400`: Invalid or missing request input
- `401`: Access key is missing
- `403`: Access key is invalid or the project has insufficient credits
- `404`: Content not found or unavailable
- `422`: Unsupported input or documented media restriction
- `429`: Project rate limit exceeded
- `500`: Internal server error
- `502`: Upstream query rejected or malformed response
- `503`: Upstream service temporarily unavailable; retry later
- `504`: Extraction or upstream operation timed out

---

[API](https://skmtc.dev/fetchfox/apis/project-api.md) · [All operations](https://skmtc.dev/fetchfox/apis/project-api/llms.txt) · [OpenAPI document](https://skmtc.dev/fetchfox/apis/project-api/revisions/b664f61ca9f3?raw)
