Import a video file from a link and cut clips from it
POST
http://localhost:4000/api/v1 /media/clips-from-url url must be the address of the video file itself; a page that plays a video (YouTube, Vimeo, TikTok) is refused with 400. The options are those of POST /media/{id}/clips. draftChannelIds also makes a draft post of each clip for those channels once the job is done. Answers the clip job; the imported video is mediaId.
Request body
application/json
urlstring
required
clientIdstring
draftChannelIdsstring[]
segmentsobject[]
Show child parameters
startMsinteger
required
endMsinteger
required
secondsinteger
maxinteger
verticalboolean
findMomentsboolean
captionsboolean
languagestring
{
"url": "string",
"clientId": "string",
"draftChannelIds": [
"string"
],
"segments": [
{
"startMs": 0,
"endMs": 0
}
],
"seconds": 60,
"max": 5,
"vertical": true,
"findMoments": false,
"captions": false,
"language": "string"
}Code samples
cURL
curl -X POST "http://localhost:4000/api/v1/media/clips-from-url" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"string","clientId":"string","draftChannelIds":["string"],"segments":[{"startMs":0,"endMs":0}],"seconds":60,"max":5,"vertical":true,"findMoments":false,"captions":false,"language":"string"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
Example
{}Option 1
{}Option 2
{}Updated