The Vision API provides powerful video search capabilities through the /v1/videos/search endpoint, which allows you to search through your uploaded videos using semantic queries.
Search through your videos using natural language queries:
General parameters:
query (required): Natural language search querymax_results (optional): Maximum number of results to return (default: 10, max: 200)threshold (optional): Confidence threshold level from 0 (lowest) to 1 (highest). Different queries may need different thresholds based on their specificity and the nature of your search.video_ids (optional): List of specific video IDs to search within. If not provided, the search runs across all of your videos (or the groups you include).group_ids (optional): List of group IDs to search within. Omit the field—or pass ["default"]—to search the default group only. If you specify video_ids, that filter takes precedence and group_ids is ignored.generate_report (optional): Whether to generate a report and explanations for the search results (default: false)Time filtering parameters:
datetime_from (optional): Filter results from datetime (ISO 8601 format, e.g., 2024-01-15T10:00:00Z)datetime_to (optional): Filter results to datetime (ISO 8601 format, e.g., 2024-01-15T18:00:00Z)timestamp_from (optional): Filter results from video timestamp in seconds (relative to video start)timestamp_to (optional): Filter results to video timestamp in seconds (relative to video start)The search endpoint returns relevant video chunks with confidence scores relative to your search query:
Note: Confidence scores (0.0 to 1.0) are relative to your specific search query. A score of 0.95 for “person walking on beach” indicates high relevance to that particular query, not an absolute measure of query matching. Thresholds may vary significantly for each query and will require experimentation - one query might have a highest score of 0.8 while another query has 0.2 as the highest score, depending on the specificity and content of your videos.
video_chunk_id: Unique identifier for the specific video chunkvideo_id: ID of the parent videouser_id: User ID who owns the videoscore: Confidence score (0.0 to 1.0) relative to your search querystart_timestamp: Start time of the chunk in secondsend_timestamp: End time of the chunk in secondsplain_text_caption (optional): Text caption for the video chunkplain_text_transcript (optional): Transcription of speech in the video chunkexplanation (optional): Explanation of the video chunk content and its relevance to the search querys3_presigned_url (optional): Direct access URL for the video chunkdebug_info (optional): Debug information for internal useresults: Array of video chunk results matching your search queryreport (optional): Summary report of the search results (only included when generate_report is set to true)