Turn a long YouTube video into short vertical clips with burned-in captions. The best parts are picked automatically, every clip is saved to the media library, and when integrations are passed a draft post is created for every clip on every integration. Nothing is scheduled or published.
Clipping takes several minutes, so this only starts it and returns the clipping id. Poll Get a clipping until the status is completed or failed.
Authorization
Send your API key in the Authorization header. It is under Settings → Developers → Public API in Ferra.
Body
urlstringrequiredURL of the YouTube video (`youtube.com` or `youtu.be`)
integrationsstring[]IDs of the integrations to create a draft post for, one draft per clip per integration. Without any, the clips only land in the media library
clipsintegerMaximum number of clips
fit"blur" | "crop"How the horizontal video fills the vertical clip. `blur` keeps the whole picture over a blurred copy of itself. `crop` fills the clip with the middle of the picture and cuts the sides away; there is no face tracking
Request
curl -X POST 'https://tryferra.co/api/public/v1/clipping' \
-H 'Authorization: your-api-key' \
-H 'Content-Type: application/json' \
-d '{
"url": "string",
"integrations": [
"string"
],
"clips": 0,
"fit": "blur"
}'Responses
200Clipping started
{
"id": "0b6f1c1e-5f0a-4c55-9a53-2f1f6f7f7c11"
}400Not a YouTube URL, or an integration was not found
{
"statusCode": 400,
"message": "Only YouTube videos can be clipped"
}402No clipping minutes are left for this month (or the plan has none). Nothing is charged
{
"statusCode": 402,
"message": "You have used all the clipping minutes of your subscription for this month. Please upgrade your subscription to clip more videos.",
"url": "https://tryferra.co/billing"
}406The organization is still in trial
{
"statusCode": 406,
"message": "Clipping is not available in trial mode"
}429A clipping is already running, or the daily cap of 20 was reached
{
"statusCode": 429,
"message": "A clipping is already running, wait for it to finish"
}503Clipping is not configured on this instance
{
"statusCode": 503,
"message": "Clipping is not available"
}See Video clipping for what the feature does, the clipping minutes it uses and its limits.
Note
Clipping takes several minutes. This endpoint only starts it and returns the clipping id: poll Get a Clipping until the status is completed or failed.
Clipping minutes
On Ferra a clipping spends one clipping minute for every minute of the source video, from the same monthly allowance the agent and MCP use:
- With no minutes left the request is refused with
402and nothing is charged. - The minutes are charged once the real length of the video is known. A video longer than the minutes left fails the clipping (the
errorof Get a Clipping says so) and nothing is charged. - A clipping that fails without producing a single clip gives the minutes back.
Starting a clipping and polling its status do not count against the hourly rate limit, which applies to the create post endpoint only. Clipping has its own caps: one running clipping per organization and 20 starts a day, both answered with 429.