QuickTube API Documentation

Getting Started
The QuickTube API allows you to programmatically access YouTube transcript fetching and AI analysis features.

Base URL

https://quicktube.ai

Authentication

Include your API key in the request headers:

X-API-Key: qt_your_api_key_here

Don't have an API key? Generate one in Settings

Rate Limiting

API requests are subject to rate limiting to ensure fair usage. Contact us if you need higher limits.

API Endpoints

Transcript
POST
/api/transcript

Fetch Transcript

Fetch the transcript for a YouTube video

Request Body:

{
  "video_url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
  "languages": ["en"]
}
AI Analysis
POST
/api/best-sections

Find Best Sections

AI analyzes the transcript to find the most interesting moments

Request Body:

{
  "video_url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
  "num_sections": 10
}
POST
/api/summarize

Generate Summary

Generate an AI summary of the video content

Request Body:

{
  "video_url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
}
POST
/api/characters

Detect Characters

Identify people speaking or being interviewed in the video

Request Body:

{
  "video_url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
}
POST
/api/chat

Chat with Video

Ask questions about the video content

Request Body:

{
  "video_url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
  "messages": [
    {"role": "user", "content": "What is the main topic?"}
  ],
  "transcript_text": "Optional full transcript...",
  "character": "John Doe"
}
POST
/api/quiz

Generate Quiz

Generate a quiz from the video content (3 credits)

Request Body:

{
  "video_url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
  "num_questions": 5
}
Media Generation
POST
/api/speech

Generate Speech

Convert text to speech using OpenAI TTS

Request Body:

{
  "text": "Text to convert to speech",
  "voice": "nova"
}
POST
/api/download-video

Download Video

Download full video or create highlights compilation

Request Body:

{
  "video_url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
  "video_type": "highlights",
  "sections": [
    {"start": 10.0, "end": 30.0, "title": "...", "reason": "..."}
  ]
}
POST
/api/get-download-url

Get Download URL

Get a direct download URL for a video (10 credits for API key)

Request Body:

{
  "video_url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
  "video_type": "full"
}
YouTube Data
GET
/api/video/metadata/{video_id}

Get Video Metadata

Fetch comprehensive metadata for a YouTube video

Request Body:

GET /api/video/metadata/dQw4w9WgXcQ
GET
/api/video/search

Search Videos

Search YouTube videos by query

Request Body:

GET /api/video/search?q=machine+learning&max_results=10&order=relevance
GET
/api/video/comments/{video_id}

Get Video Comments

Fetch comments for a YouTube video

Request Body:

GET /api/video/comments/dQw4w9WgXcQ?max_results=100&order=relevance
GET
/api/video/related/{video_id}

Get Related Videos

Fetch videos related to a specific video

Request Body:

GET /api/video/related/dQw4w9WgXcQ?max_results=10
GET
/api/channel/{channel_id}

Get Channel Details

Fetch details about a YouTube channel

Request Body:

GET /api/channel/UC_x5XG1OV2P6uZZ5FSM9Ttw
GET
/api/videos/popular

Get Popular Videos

Fetch trending/popular videos by region

Request Body:

GET /api/videos/popular?region_code=US&max_results=10
Batch Processing
POST
/api/batch/process

Batch Process Videos

Process multiple videos at once (up to 10). Credits: 5 per summary + 5 per sections per video.

Request Body:

{
  "video_urls": [
    "https://www.youtube.com/watch?v=video1",
    "https://www.youtube.com/watch?v=video2"
  ],
  "include_transcript": true,
  "include_summary": true,
  "include_sections": false,
  "num_sections": 5
}
Need Help?

For support or questions about the API, please contact us or visit our documentation.