Skip to main content

Get Summary

Retrieve existing summary data with structured insights

Stream Summary

Generate summaries in real-time with live progress
You can summarize YouTube, Vimeo, DailyMotion and private media files (.mp4 and .mp3). More formats will be introduced soon.
Summaries provide structured, time-stamped insights from your media content, available in both default format and compressed key points.
1

Generate Transcript

First, ensure you have a transcript by calling /transcripts/stream
2

Stream Summary

Call /summaries/stream to generate your summary
3

Retrieve Results

Use /summaries to get the completed summary data

Get summary

Path variables

string
required
The video ID for the file.

Request parameters

string
required
The media type of the video.Options: youtube, vimeo, dailymotion, or private
string
required
The language code of the input audio in ISO-639-1 format.Examples: en, en-US, fr, es
string
required
The type of the summary.Options:
  • default - Full summary with detailed segments
  • compressed - Key points only

Response

number
The index of the segment in the summary
number
The start time of the segment in seconds. -1 means that the core concept was not associated with a specific timestamp

Error responses

OK
The summary has been successfully retrieved.
NO_CONTENT
The video has not been summarized yet.
BAD_REQUEST
The request is invalid.
UNAUTHORIZED
The request is unauthorized.
INTERNAL_SERVER_ERROR
The server has encountered an error.
If the video has not been summarized yet, the response will be 204 with no content. Calling the Stream endpoint is required.

Stream summary

Current limitation:The summary stream needs to be called AFTER a transcript stream has been called, or the transcript is available.Options:
  1. Call the /transcripts/stream endpoint first, and after a few seconds, call the /summaries/stream endpoint.
  2. Call the /transcripts/stream endpoint and allow the transcript generation to complete. Call the /summaries/stream after the transcript is available.
  3. Ensure that the /transcripts/get endpoint has a non 204 response before calling the /summaries/stream endpoint.
Calling the /summaries/stream endpoint before the transcript is available will not generate a summary.

Request body

string
required
The unique identifier for the video
string
required
The media type of the video. Options: youtube, vimeo, dailymotion, or private
string
required
The language code of the input audio in ISO-639-1 format, like en or fr
string
required
The type of the summary. Options: default (for the default Summary) or compressed (for Key Points)
boolean
required
Whether to use Server-Sent Events for streaming
boolean
required
Whether to regenerate the summary if it already exists

Response Types

The streaming endpoint returns different types of messages:

Error Messages

Summary Segment Messages

Summary Segment
The start_time value of -1 indicates that the core concept was not associated with a specific timestamp.

Semaphore Messages

Summary Info Messages

Summary Info

Progress Messages

Progress Update
The speed and eta fields are currently not used and will return empty strings.