Examples

Search examples

Get all assets created before October 14, 2014

For this example, we use the Less Than operator and the lowest possible timestamp for the date we are querying against (October 14, 2014 at 00:00:00). Any timestamp lower than the one given will satisfy our requirement.

GET /v3/assets?datecreated={"lt":"1413244800000"}

Get all assets created on or before October 14, 2014

In this example, we use the Between operator with no lower limit (i.e. nothing before the ..) and an upper limit of the highest possible timestamp for the date we are querying against (October 14, 2014 at 23:59:59). Any timestamp that is lower than the one given will satisfy our requirement.

GET /v3/assets?datecreated={"bt":"..1413331199999"}

Get all assets modified between October 1, 2014 and October 14, 2014

In this example, we use the Between operator with a lower limit of the lowest possible timestamp for the low date (October 1, 2014 at 00:00:00), and an upper limit of the highest possible timestamp for the high date (October 14, 2014 at 23:59:59). Any timestamp that is within this range will satisfy our requirement.

GET /v3/assets?datemodified={"bt":"1412121600000..1413331199999"}

Get all assets that are video or audio files

For this example, we use the In operator and provide values in a comma-separated list.

GET /v3/assets?type={"in":"video,audio"}

Get all assets that do not have any ratings, but do have comments

For this example, we use the Equality operator for multiple query parameters.

GET /v3/assets?hasrating={"eq":"false"}&hascomments={"eq":"true"}

Get all assets with the word 'foo' in the filename (exact word)

For this example, we use the Equality operator. This will return any asset with the word foo in the title. It will return files with names like foo.mp4, foos.jpg, foo-bar.wav and bar_foo.zip. It will not return assets with filenames like food_menu.pdf (see below for an example of a word prefix search).

GET /v3/assets?filename={"eq":"foo"}

Get all assets with the word 'foo' in the filename (partial match)

For this example, we use the Contains operator. This will return any asset with the word prefix foo in the title. It will return assets with filenames like foo.mp4, foos.jpg, foo-bar.wav and bar_foo.zip, as well as food_menu.pdf which contains a word that start with 'foo'.

GET /v3/assets?filename={"ct":"foo"}