# fetchyoutubevideotranscription: Fetch YouTube Video Transcription

> fetchyoutubevideotranscription (Fetch YouTube Video Transcription) is a 1001fx API function in the group YouTube: POST https://api.1001fx.com/youtube/fetchyoutubevideotranscription, 2 credits per call. It works as a ready-made module in n8n or as a plain HTTP call.

**Deprecated:** this function will be removed in a future release.

Fetches a YouTube Videos transcription if available and activated.

- Group: YouTube
- Endpoint: `POST https://api.1001fx.com/youtube/fetchyoutubevideotranscription`
- Authentication: header `X-API-KEY: YOURSECRETAPIKEY`
- Content type: application/json
- Credits: 2 credits per call
- Ready-made in: n8n
- Docs: https://1001fx.com/functions/fetchyoutubevideotranscription

## Parameters

- `videoUrl` (string, optional) – YouTube Video URL: URL to the YouTube video.
- `videoId` (string, optional) – Video ID: YouTube Video ID.
- `outputFormat` (enum, optional, one of `json`, `text`, default `json`) – Output Format: Specifies the format in which the transcription should be returned. Defaults to json.

## Example: By video ID (JSON)

```bash
curl -X POST 'https://api.1001fx.com/youtube/fetchyoutubevideotranscription' \
  -H 'X-API-KEY: YOURSECRETAPIKEY' \
  -H 'Content-Type: application/json' \
  -d '{"videoId":"kJQP7kiw5Fk"}'
```
