---
title: "YouTube search or transcript"
method: POST
path: "/v1/youtube"
tags: ["API"]
---

# YouTube search or transcript

`POST /v1/youtube`

## Request

- Base URL: `https://api.fastaf.co`
- URL: `https://api.fastaf.co/v1/youtube`
- Auth: HTTP bearer

## Request body

- union
  - object
    - `resource` 'transcript' | 'search': Resource type. Defaults to transcript.
    - `v` string, required: Video ID required for the transcript resource.
    - `search_query` string: Query required for the search resource.
    - `country` string: FastAF country parameter.
    - `language` string: FastAF language parameter.
    - `sp` string: FastAF sp parameter.
  - object
    - `resource` 'search', required: Resource type. Defaults to transcript.
    - `v` string: Video ID required for the transcript resource.
    - `search_query` string, required: Query required for the search resource.
    - `country` string: FastAF country parameter.
    - `language` string: FastAF language parameter.
    - `sp` string: FastAF sp parameter.

## Response `200`

Provider response.

## Other responses

- `400`: Invalid request or parameters.
- `401`: A valid bearer API key is required.
- `402`: The account has insufficient credits.
- `403`: The account is suspended.
- `429`: A rate or concurrency limit was reached.
- `502`: The upstream request failed.
- `503`: The service is temporarily unavailable.
- `504`: The upstream request timed out.

---

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