Get YouTube video transcript

This endpoint fetches the transcript of any YouTube video that has it enabled. This endpoint is unlimited for paying customers.

Endpoint

POST /api/v1/get-youtube-video-transcript

Parameters

Parameter Type Required Description
url string Yes The YouTube video URL. Supported formats: youtu.be/[id], youtube.com/watch?v=[id], youtube.com/live/[id]
preferred_language string No Preferred transcript language code (e.g., "en", "es")

Response

A successful response will return a JSON object with the following properties:

{
    "data": {
        "video_id": "dQw4w9WgXcQ",
        "channel_id": "UCuAXFkgsw1L7xaCfnd5JJOw",
        "channel_name": "Rick Astley",
        "title": "Rick Astley - Never Gonna Give You Up",
        "transcript": "Full transcript content of the video..."
    }
}

Example

curl https://nobinge.com/api/v1/get-youtube-video-transcript \
    -X POST \
    -H "Authorization: Bearer your_token_here" \
    -H "Accept: application/json" \
    -H "Content-Type: application/json" \
    -d '{
    "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
    "preferred_language": "en"
}'
© Nobinge 2024. All rights reserved.