License videos

POST {{baseUrl}}/v2/videos/licenses

This endpoint gets licenses for one or more videos. You must specify the video IDs in the body parameter and the size and subscription ID either in the query parameter or with each video ID in the body parameter. Values in the body parameter override values in the query parameters.

Request Params

KeyDatatypeRequiredDescription
subscription_idstringThe subscription ID to use for licensing
sizestringThe size of the video to license
search_idstringThe Search ID that led to this licensing event

Request Body

{"videos"=>[{"video_id"=>"<string>", "auth_cookie"=>{"name"=>"<string>", "value"=>"<string>"}, "editorial_acknowledgement"=>"<boolean>", "metadata"=>{}, "price"=>"<number>", "search_id"=>"<string>", "show_modal"=>"<boolean>", "size"=>"<string>", "subscription_id"=>"<string>"}, {"video_id"=>"<string>", "auth_cookie"=>{"name"=>"<string>", "value"=>"<string>"}, "editorial_acknowledgement"=>"<boolean>", "metadata"=>{}, "price"=>"<number>", "search_id"=>"<string>", "show_modal"=>"<boolean>", "size"=>"<string>", "subscription_id"=>"<string>"}]}

HEADERS

KeyDatatypeRequiredDescription
User-Agentstring

RESPONSES

status: OK

{&quot;data&quot;:[{&quot;video_id&quot;:&quot;2140697&quot;,&quot;download&quot;:{&quot;url&quot;:&quot;https://download.shutterstock.com/gatekeeper/W3siZSI6MTQ5NzAyNjU1MiwiayI6InZpZGVvLzIxNDA2OTcvc2QubW92IiwibSI6IjEiLCJkIjoic2h1dHRlcnN0b2NrLW1lZGlhIn0sInVsOFY1dElzb3lWZHNxb3JyWlJjS1dyb016TSJd/shutterstock_v2140697.mov&quot;},&quot;allotment_charge&quot;:1}]}