Search for videos or video segments in collections to find relevant videos or moments/clips in a video
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Search parameters
Search scope - 'file' searches at file level (requires collections with enable_summary=true), 'segment' searches at segment level, 'face' searches for faces in videos using image matching
file, segment, face List of collection IDs to search within.
For text search (scope='file' or 'segment'): All collections must be of collection_type 'media-descriptions' or 'rich-transcripts'. For file-level search, collections must have 'enable_summary: true' in transcribe_config.
For face search (scope='face'): All collections must be of collection_type 'face-analysis'.
1Text search query to find relevant content (required for scope='file' or 'segment')
1Source image for face search (required for scope='face')
Maximum number of search results to return (applies to total items across groups when grouping)
x >= 1Minimum score threshold to filter results. Can be any real number.
Group results by file. Cannot be used with scope="file". When specified, results are grouped by file_id.
file Sort order for results. Default: "score". When group_by_key is specified, can also use "item_count" to sort by number of items per group.
score, item_count Specifies the type of search to execute, one of:
general_content: baseline for matching the content of the search item (file/segment) based on visual or spoken content similarity to provided short natural language query stringspeech_lexical: performs keyword based search (e.g. query of president matching president or presidential strings) and exact match (e.g. specifically find mentions of "Barack Obama" or "Donald Trump") against speech content present in search itemocr_lexical: performs keyword based search and exact match against screen text content present in search itemtag_semantic: performs basic word semantic similarity search against tag values associated with search items (e.g. query=animal expected to match tags with value containing dog or cat)tag_lexical: performs keyword based search and exact match against tag values associated with search itemsThis API currently only supports one search modality per request.
Only applicable for when search scope=file or scope=segment
general_content, speech_lexical, ocr_lexical, tag_semantic, tag_lexical Filter eligible search items by presence of one or more labels in the provided list (otherwise all tags will be considered in search response). Only supported for tag_semantic and tag_lexical search modalities
Successful search results
ID of the search response
Object type, always 'search'
search The search scope that was used
file, segment, face Array of search results ranked by relevance score
Total number of results returned. When group_by_key is specified, this represents the total number of items across all groups (not the number of groups).
The limit that was applied to the search
The search query that was executed (for text search) or the source image URL/base64 indicator (for face search)
The key used for grouping results. Only present when group_by_key was specified in the request and results are grouped.
file Number of groups in the results. Only present when group_by_key is specified.
Specifies the type of search to execute, one of:
general_content: baseline for matching the content of the search item (file/segment) based on visual or spoken content similarity to provided short natural language query stringspeech_lexical: performs keyword based search (e.g. query of president matching president or presidential strings) and exact match (e.g. specifically find mentions of "Barack Obama" or "Donald Trump") against speech content present in search itemocr_lexical: performs keyword based search and exact match against screen text content present in search itemtag_semantic: performs basic word semantic similarity search against tag values associated with search items (e.g. query=animal expected to match tags with value containing dog or cat)tag_lexical: performs keyword based search and exact match against tag values associated with search itemsThis API currently only supports one search modality per request.
Only applicable for when search scope=file or scope=segment
general_content, speech_lexical, ocr_lexical, tag_semantic, tag_lexical