Search Resources
search_resourcesSearch licensed stock media to compose with across video, photo, sound effects, and GIFs. Pass query for ONE search, or queries[] (≤10) to run them all in a SINGLE call — strongly prefer the batch when you know several things you need. A batch returns results[], one per query in order, each with its own candidates; a query that fails carries an error and never discards the others. Optional kind [default video], provider pin, and limit ≤50 apply to every query in the batch. Returns ranked candidates, each with an opaque candidateId + attribution (author, assetUrl) + license, and a preview URL in the text. FREE + rate-limited + cached — reach for this before generate_media when real footage beats synthesis. TO SEE the candidates rather than read about them, pass limit ≥2: thumbnails/audio are attached only when you asked for options to compare. Import a chosen candidate into a project with import_resource. Candidate handles expire; re-search to refresh one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | POST /resources/search body — one `query`, or a batch of `queries[]`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | ||
| results | No | ||
| provider | No | ||
| candidates | No |