---
title: "Youtube Endpoint"
method: POST
path: "/data/youtube/extract"
tags: ["Data APIs", "Data YouTube"]
---

# Youtube Endpoint

`POST /data/youtube/extract`

## Request

- Base URL: `https://api.notte.cc` (the document declares no server; this is the origin it was published from)
- URL: `https://api.notte.cc/data/youtube/extract`
- Auth: OAuth 2
  - Password
  - Token URL: `token`

## Headers

- `X-Notte-Cache-Mode` string, nullable: Extraction cache: default, refresh, or bypass.
- `X-Notte-Cache-Max-Age-Ms` string, nullable: Maximum cached result age in milliseconds; zero forces refresh.
- `X-Notte-Cache-Ttl-Seconds` string, nullable: Shorten the server storage TTL; zero bypasses caching.
- `x-notte-request-origin` string, nullable
- `x-notte-sdk-version` string, nullable

## Request body

- YouTubeExtractRequest
  - `includeImages` boolean
  - `url` string, required

## Response `200`

Successful Response

- YouTubeResult
  - `markdown` string, required
  - `metadata` YouTubeMetadata, required
    - `kind` 'video' | 'channel', required
    - `url` string, required
    - `title` string, required
    - `video_id` string, nullable
    - `channel` string, nullable
    - `channel_url` string, nullable
    - `description` string, nullable
    - `duration_seconds` integer, nullable
    - `views` string, nullable
    - `subscribers` string, nullable
    - `video_count` string, nullable
    - `image_url` string, nullable
    - `published` string, nullable
  - `captions_status` 'available' | 'unavailable' | 'disabled' | 'not_applicable', required
  - `captions_language` string, nullable
  - `captions_automatic` boolean, nullable
  - `captions` YouTubeCaption[]
    - `start` number, required
    - `duration` number, nullable
    - `text` string, required
  - `videos` YouTubeVideo[]
    - `id` string, required
    - `url` string, required
    - `title` string, required
    - `duration` string, nullable
    - `views` string, nullable
    - `published` string, nullable

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-18** `20f8ac8dc733`: 3 info
  - added the new optional `header` request parameter `X-Notte-Cache-Max-Age-Ms`
  - added the new optional `header` request parameter `X-Notte-Cache-Mode`
  - added the new optional `header` request parameter `X-Notte-Cache-Ttl-Seconds`
- **2026-10-16** `24d67222f012`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/notte/apis/notte-api/changes/data/youtube/extract/post.md)

---

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