VideoDB icon

VideoDB

Interact with the VideoDB API

YouTube Search

AI-generated

Summary

Performs a YouTube search within a VideoDB collection

Inputs

  • collection_id (required) — Choose from the list, or specify an ID using an expression
  • query (required) — The search query to execute on YouTube within the collection
  • result_threshold — Minimum result threshold for search relevance
  • duration — Filter YouTube results by duration: short, medium, or long

Output shape

API response body from VideoDB YouTube search endpoint

Returns search results matching the query within the specified collection

Examples

Example 1: Search YouTube videos in a collection with a keyword filter and duration limit

Set collection_id to an existing collection, query to the desired search term, duration to 'short' for recent uploads, and result_threshold to adjust relevance cutoff.

Discussion