Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
The ID of the collection to add the YouTube video to
Body
YouTube video URL parameters
The URL of the YouTube video to add to the collection.
Note that YouTube videos are currently limited to speech and metadata level understanding, for fully fledge multimodal video understanding please upload a file instead to the Files API and use that object instead as input.
User-provided metadata about the YouTube video
Segmentation job id to use. If not provided will use default to uniform 20s segmentation. Cannot be provided together with segmentation_config.
Configuration for video segmentation. Cannot be provided together with segmentation_id.
Response
Successful video addition
ID of the collection
ID of the file
Object type, always 'collection_file'
collection_file
Unix timestamp of when the file was added to the collection
Overall processing status of the file in this collection
pending
, processing
, completed
, failed
, not_applicable
The file object
Segmentation information for this file in the collection. Only present when the file has been segmented.