Our product team is constantly adding cool features so that publishers have more flexibility when using our tools to create a rich video experience on their website. The latest enhancement is to the Content API—adding a ‘Search API’ to include a way to query media that meets specified search criteria.
Now publishers can create an enhanced media search query—the request can extend across multiple parameters, and set the filter type by: ‘any’,'all’, or ‘not’. Now I can execute a search like this one:
Example Search: Return all media that has a tag of ‘football’ or ’soccer’ that exists in channel ‘Duke’ and does not have a state of error.
(tag:football OR tag:soccer) AND (channel_id:Duke AND -state:error)
AND I can use any of the following media properties in my search:
- media_type {Video, Audio, LiveStream}
- state {New, Uploading, Processing, Publishable, Published, Deleted, Error}
- title
- description
- tag
- original_filename
- created_after - <Search for all media uploaded after a particular epoch date>
- updated_after – <Search for all media updated after a particular epoch date>
- published_after - <Search for all media published after a particular epoch date>
- channel_id – <Limit search to a particular channel>
- Values for existing custom metadata properties can also be searched. For each custom property you wish to search, include the following as a parameter: custom_property[<custom_property_id>] = <custom_property_value>