Summarize YouTube video

This endpoint generates a summary of any given YouTube video.

Endpoint

POST /api/v1/summarize-youtube-video

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]
level string No Summary detail level: "short", "balanced" (default), or "extensive"
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",
        "summary": "Detailed summary of the video content..."
    }
}

Example

curl https://nobinge.com/api/v1/summarize-youtube-video \
    -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",
    "level": "short"
}'
© Nobinge 2024. All rights reserved.