Import a video file from a link and cut clips from it

Embed
Preview of the card
<a href="https://indrava.forumulate.com/docs/ref-mediajobs-clipsfromurl"><img src="https://indrava.forumulate.com/docs/_api/public/orgs/e421ace4-3e78-4ed8-9818-7b4899cf3aa0/spaces/2bcc7f09-4489-40af-85d8-9fdd3f3da314/pages/83525e31-08fc-4877-a48a-3e236bab74e2/social-card.svg?v=3e7ae33eec8b" alt="Import a video file from a link and cut clips from it" width="600" height="315"></a>
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
url
string
required
clientId
string
draftChannelIds
string[]
segments
object[]
Show child parameters
startMs
integer
required
endMs
integer
required
seconds
integer
= 60
max
integer
= 5
vertical
boolean
= true
findMoments
boolean
= false
captions
boolean
= false
language
string
{
  "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