Actions26
- Upload Actions
- Transform Actions
- Generate Actions
- Asset Actions
- Widget Actions
- Library Actions
- Asset (Legacy, by Public ID) Actions
Asset → Search Assets
AI-generatedSummary
Search Cloudinary assets matching a specified search expression and resource types, supporting pagination and custom sorting.
Inputs
- Expression — A Cloudinary search expression to filter assets, e.g., tags, upload date, or folder path. Leave empty to match all assets.
- Resource Types — Resource types to include in the search: Image, Video, Raw. Ignored if the search expression includes 'resource_type:'.
- Return All — Boolean to indicate whether to return all matching assets by paginating automatically.
- Max Results — Maximum number of assets to return (1-500) if Return All is false.
- Additional Fields — Optional fields including pagination cursor (Next Cursor), sort field, sort direction, and extra metadata attributes like Tags or Context included per asset.
Output shape
a JSON object containing the assets matching the search criteria, including metadata fields optionally requested. If 'Return All' is true, all matching assets are included; otherwise, up to 'Max Results'.
Supports pagination via 'Next Cursor' input. The response may include extra asset attributes if requested via 'With Field'. Sorting can be customized by 'Sort By Field' and 'Sort Direction'.
Examples
Example 1: Search all image assets tagged 'cat' uploaded in the last day, return up to 100 results sorted by upload date descending, including tags in the result.
Expression: tags=cat AND uploaded_at>1d; Resource Types: Image; Return All: false; Max Results: 100; Additional Fields: Sort By Field = uploaded_at, Sort Direction = desc, With Field = tags.