API Documentation

View API Pricing →

Overview

Base URL: http://snap-summary.com/summarize

Method: POST

Response Type: Streaming JSON (text chunks) with Markdown formatting

This endpoint summarises YouTube videos. It can return:

Note: Chat with video is not available via this endpoint.

Request

Headers

Body Parameters

Example Usage with Streaming (Python)

import requests

api_url = "http://snap-summary.com/summarize"

payload = {
"user_id": "YOUR_USER_ID", # contact snapsummary.contact@gmail.com to obtain
"url": "YOUTUBE_URL", # e.g. https://www.youtube.com/watch?v=dQw4w9WgXcQ
"language": "LANGUAGE", # e.g. "en", "es", "zh-CN", "hi", "pt", "fr" etc.
"type": "TYPE", # e.g. "overall", "detailed-timestamps", "key-timestamps", "transcript", "search"
"search_term": "",
"custom_prompt": ""
}

headers = {"Content-Type": "application/json"}

response = requests.post(api_url, json=payload, headers=headers, stream=True)
if response.status_code == 200:
    for chunk in response.iter_content(chunk_size=None):
        if chunk:
            print(chunk.decode('utf-8'), end='')
else:
    print(f"Error: {response.status_code} - {response.json().get('error')}")

Example Usage Waiting for Complete Response (Python)

import requests

api_url = "http://snap-summary.com/summarize"

payload = {
"user_id": "YOUR_USER_ID", # contact snapsummary.contact@gmail.com to obtain
"url": "YOUTUBE_URL", # e.g. https://www.youtube.com/watch?v=dQw4w9WgXcQ
"language": "LANGUAGE", # e.g. "en", "es", "zh-CN", "hi", "pt", "fr" etc.
"type": "TYPE", # e.g. "overall", "detailed-timestamps", "key-timestamps", "transcript", "search"
"search_term": "",
"custom_prompt": ""
}

headers = {"Content-Type": "application/json"}

response = requests.post(api_url, json=payload, headers=headers)
if response.status_code == 200:
    print(response.text)
else:
    print(f"Error: {response.status_code} - {response.json().get('error')}")

Notes