Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
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 Response
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
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
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.