Collections

Add a YouTube video to a collection

Changed on

Add a YouTube video to a collection by URL

post/collections/{collection_id}/youtube

Request

  • Base URL
    https://api.cloudglue.dev/v1
  • Auth
    HTTP bearer

Path parameters

collection_idstring required

The ID of the collection to add the YouTube video to

Request body

urlstring required

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.

metadataobject

User-provided metadata about the YouTube video

segmentation_idstring uuid

Segmentation job id to use. If not provided will use default to uniform 20s segmentation. Cannot be provided together with segmentation_config.

Response

Successful video addition

collection_idstring required

ID of the collection

file_idstring required

ID of the file

object'collection_file' required

Object type, always 'collection_file'

added_atinteger required

Unix timestamp in milliseconds when the file was added to the collection

status'pending' | 'processing' | 'completed' | 'failed' | 'not_applicable' required

Overall processing status of the file in this collection

searchable_status'pending' | 'processing' | 'completed' | 'failed'

Indexing status of the file's search documents in this collection. Only present for media-descriptions, rich-transcripts, metadata, and entities collections. For entities collections it tracks entity indexing: file-level collections index one document per file, segment-level collections one per segment.

Changes

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status