Skip to content
Browse all functions

Fetch YouTube Video Transcription

youtube/fetchyoutubevideotranscription

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.

This function is deprecated and will be removed in a future release.

Fetches a YouTube Videos transcription if available and activated.

Try it in the 1001fx app

Run fetchyoutubevideotranscription in your browser with your API key – fill the form, click Run and get the answer or the file.

fetchyoutubevideotranscription in the 1001fx app: the form with example values
Fetch YouTube Video Transcription in the 1001fx app

Endpoint

POSThttps://api.1001fx.com/youtube/fetchyoutubevideotranscription
Header
X-API-KEY: YOURSECRETAPIKEY How to
Content type
application/json

Parameters

  • videoUrlstringoptional

    URL to the YouTube video.

    Example:
    https://www.youtube.com/watch?v=kJQP7kiw5Fk
  • videoIdstringoptional

    YouTube Video ID.

    Example:
    kJQP7kiw5Fk
  • outputFormatenumoptional

    Specifies the format in which the transcription should be returned. Defaults to json.

    Values:
    json
    text
    Default:
    json
    Example:
    json

Examples

By video ID (JSON)

Transcription with timestamps for a videoId.

Input

Expects a json body
{
  "videoId": "kJQP7kiw5Fk"
}

Output · HTTP 200

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

By video ID (plain text)

outputformat "text" returns the transcription as one text.

Input

Expects a json body
{
  "videoId": "kJQP7kiw5Fk",
  "outputformat": "text"
}

Output · HTTP 200

Response
{
  "statusCode": 200
}
Show curl command
curl -X POST 'https://api.1001fx.com/youtube/fetchyoutubevideotranscription' \
  -H 'X-API-KEY: YOURSECRETAPIKEY' \
  -H 'Content-Type: application/json' \
  -d '{"videoId":"kJQP7kiw5Fk","outputformat":"text"}'

By video URL (JSON)

Transcription with timestamps for a videoUrl.

Input

Expects a json body
{
  "videoUrl": "https://www.youtube.com/watch?v=kJQP7kiw5Fk"
}

Output · HTTP 200

Response
{
  "statusCode": 200
}
Show curl command
curl -X POST 'https://api.1001fx.com/youtube/fetchyoutubevideotranscription' \
  -H 'X-API-KEY: YOURSECRETAPIKEY' \
  -H 'Content-Type: application/json' \
  -d '{"videoUrl":"https://www.youtube.com/watch?v=kJQP7kiw5Fk"}'

By video URL (plain text)

outputformat "text" returns the transcription as one text.

Input

Expects a json body
{
  "videoUrl": "https://www.youtube.com/watch?v=kJQP7kiw5Fk",
  "outputformat": "text"
}

Output · HTTP 200

Response
{
  "statusCode": 200
}
Show curl command
curl -X POST 'https://api.1001fx.com/youtube/fetchyoutubevideotranscription' \
  -H 'X-API-KEY: YOURSECRETAPIKEY' \
  -H 'Content-Type: application/json' \
  -d '{"videoUrl":"https://www.youtube.com/watch?v=kJQP7kiw5Fk","outputformat":"text"}'

Try fetchyoutubevideotranscription now

Run it in your browser or create a free account and get 100 credits every month.

Changelog

  • 1.0.025.05.2023created
Ask 1001fx