Searching for Assets
Was this article helpful?
You can search for assets by specifying search keywords with various characteristics, including labels and metadata, as query string parameters.
The query string parameter for sorting, orderby, has an optional argument: ascending or descending.
With the limit query string parameter, you can restrict the results to only a desired number of entries.
With the and operator you can search for intersections of labels; that is, for assets that have two or more different labels.
To find assets that have a metadata field named speed with a
value of bursty:
To find assets that have the label Sports:
[GET] /v2/assets?where=labels INCLUDES 'Sports'
To find assets that have both the label Sports and the label
[GET] /v2/assets?where=labels INCLUDES 'Sports' AND labels INCLUDES 'Baseball'
To find assets updated after a certain date/time:
To sort with orderby and limit the results with
[GET] /v2/assets?where=description='Under the sea.' AND duration > 600&orderby=created_at descending&limit=5