---
title: "YouTube video details"
method: GET
path: "/api/v1/social/youtube/video"
tags: ["Social"]
---

# YouTube video details

`GET /api/v1/social/youtube/video`

## Request

- Base URL: `https://scrapewhale.dev`
- URL: `https://scrapewhale.dev/api/v1/social/youtube/video`
- Auth: one of:
  - HTTP bearer
  - API key in header `x-api-key`

Title, description, tags, category, duration, publish date, **exact** view and like counts, thumbnail, and the channel (name, handle, subscriber count). Pass a video id or any watch / youtu.be / Shorts URL.

Provide exactly one of: `video_id`, `url`.

**Credits: 1** (refunded on failure).

## Query parameters

- `video_id` string
- `url` string, uri
- `format` 'json' | 'markdown' | 'both'

## Response `200`

Success.

- ExtractionResult: A completed extraction. `data` is omitted when format=markdown; `markdown` is omitted when format=json.
  - `id` string, required
  - `status` 'completed', required
  - `extractor` string, required: Extractor name, e.g. "traffic", "meta-ads", "instagram-profile".
  - `title` string, nullable
  - `sourceUrl` string, nullable: Canonical public URL of the extracted source.
  - `creditsCharged` integer, required: 0 when served from the shared cache.
  - `cached` boolean: True when served from the shared extraction cache (free).
  - `createdAt` integer, required: Unix epoch milliseconds.
  - `data` object, nullable: Raw structured payload from the source.
  - `markdown` string: Clean markdown rendering of the payload.

## Other responses

- `400`: Invalid parameters.
- `401`: Missing or invalid API key.
- `402`: Insufficient credits.
- `422`: Extraction/conversion failed — credits refunded. `code` carries the failure category.
- `429`: Rate limit exceeded (60 requests/min per key).

---

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