Search stock media
GET
https://api.vidmoat.com/v1/stock/searchSearch the stock library by keyword, then import a result's downloadUrl with /v1/media/import.
Query parameters#
querystringKeywords. Required forvideoandimage; foraudio, empty returns a popular list.typeenumdefaultvideoWhat to search.One ofvideo,image,audiolimitintegerdefault121 to 24.
Response#
Returns 200.
Response fields#
dataarrayResults. Video and image results haveprovider,id,mediaType,thumbnailUrl,downloadUrl,width,height,duration(video),photographer,sourceUrland licence fields. Audio results (CC0 only) haveid,name,downloadUrl,duration,username,sourceUrl,tagsandbpm.hintstringWhat to do with a result.
Errors#
Besides the errors any request can get (authentication, rate limits):
| Status | Code | When |
|---|---|---|
| 400 | invalid_request | query is missing for a video or image search. |
| 502 | provider_error | The search failed. |