How many scored moments to return, 1–30. Default 10. Ask for more than you'll keep; filter by score on your side.
The ClippingNet Clipping API turns a long video into ready-to-post shorts from code: submit a source, get a job ID, receive a signed webhook when the clips are ready, and fetch files cut to a clip spec you control. It is in development; this page is the draft contract so you can build against it now and swap in the live base URL when access opens. Everything marked draft may change before launch.
We built the comparison of existing clipping APIs before designing this one. The recurring complaints shaped the contract.
GET /v1/limits endpoint tells you where you stand.expires_at; nothing is undocumented.Base URL and auth: https://api.clippingnet.com/v1 draft, bearer API key from your dashboard. All requests and responses are JSON; file bodies are multipart on /uploads.
Sources: public MP4/MOV URL, YouTube URL, or an upload_id from POST /v1/uploads. Twitch, Kick and Drive sources are on the roadmap.
Response: 202 Accepted with the job object. status moves through queued → processing → completed | failed. Failed jobs are not billed.
Idempotency: send an Idempotency-Key header to make retries safe; the same key returns the same job for 24 hours.
curl -X POST https://api.clippingnet.com/v1/jobs \
-H "Authorization: Bearer $CLIPPINGNET_API_KEY" \
-H "Idempotency-Key: ep-142-run-1" \
-H "Content-Type: application/json" \
-d '{
"source": { "url": "https://www.youtube.com/watch?v=VIDEO_ID" },
"webhook": { "url": "https://example.com/hooks/clippingnet" },
"spec": {
"candidates": 15,
"length": { "min_s": 20, "max_s": 60 },
"ratio": "9:16",
"layout": "auto",
"captions": { "style": "word-pop", "language": "auto" },
"brand_kit": "bk_default",
"brief": "clutch plays and big reactions; skip lobby and menus"
}
}'
# 202 Accepted
{
"id": "job_7f3a9c",
"status": "queued",
"source_minutes": 58.3,
"created_at": "2026-10-22T16:11:04Z",
"links": { "self": "/v1/jobs/job_7f3a9c", "clips": "/v1/jobs/job_7f3a9c/clips" }
}
On completion we POST job.completed (or job.failed) to your URL, signed with HMAC-SHA256 over the raw body using your webhook secret, in the X-ClippingNet-Signature header with a timestamp to prevent replay. Reject anything unsigned. Retries: 5 attempts with backoff over 24 hours; respond 2xx to stop them.
Then GET /v1/jobs/{id}/clips returns every clip with its score, source timestamps, transcript excerpt, an MP4 URL, an SRT URL and expires_at (24 hours; call POST /clips/{id}/refresh for a new link). Polling GET /v1/jobs/{id} every 30 seconds works if you can't take webhooks.
Re-render: POST /v1/jobs/{id}/renders with a new spec re-cuts from the stored transcript and scores; billed as a render, not as new source minutes.
import crypto from "node:crypto";
export async function handler(req) {
const raw = await req.text();
const [ts, sig] = req.headers.get("x-clippingnet-signature").split(",");
const expect = crypto.createHmac("sha256", process.env.CN_WEBHOOK_SECRET)
.update(ts.slice(2) + "." + raw).digest("hex");
if (!crypto.timingSafeEqual(Buffer.from(sig.slice(3)), Buffer.from(expect)))
return new Response("bad signature", { status: 401 });
const evt = JSON.parse(raw); // { type, job: { id, status } }
if (evt.type !== "job.completed") return new Response("ok");
const res = await fetch(`https://api.clippingnet.com/v1/jobs/${evt.job.id}/clips`, {
headers: { Authorization: `Bearer ${process.env.CLIPPINGNET_API_KEY}` }
});
const { clips } = await res.json();
// clips[i]: { id, score, start_s, end_s, transcript, mp4_url, srt_url, expires_at }
const keep = clips.filter(c => c.score >= 70).slice(0, 6);
await Promise.all(keep.map(c => saveToBucket(c.mp4_url, `${evt.job.id}/${c.id}.mp4`)));
return new Response("ok");
}
| Method | Path | Purpose | Notes |
|---|---|---|---|
| POST | /v1/uploads | Upload a file (multipart or resumable) | Returns upload_id; 10 GB max draft |
| POST | /v1/jobs | Submit a clipping job | 202 + job; Idempotency-Key honoured |
| GET | /v1/jobs/{id} | Job status and progress | progress.stage: transcribe, score, cut, render |
| GET | /v1/jobs/{id}/clips | List clips with scores and file URLs | Sorted by score; ?min_score=, ?limit= |
| GET | /v1/jobs/{id}/transcript | Full transcript with word timings | JSON or SRT via Accept |
| POST | /v1/jobs/{id}/renders | Re-render with a new spec | No re-processing; billed as render |
| POST | /v1/clips/{id}/refresh | New download URL | Files retained 30 days draft |
| GET | /v1/limits | Your rate and monthly limits, used and remaining | Also in X-RateLimit-* headers on every response |
| POST | /v1/webhooks | Register endpoints and rotate secrets | Events: job.completed, job.failed, render.completed |
| DELETE | /v1/jobs/{id} | Delete the job and all stored files | Immediate; for privacy requests |
Every field has a default; send only what you want to change. Store the spec in your repo and send the same one on every job for consistent output.
How many scored moments to return, 1–30. Default 10. Ask for more than you'll keep; filter by score on your side.
min_s, max_s. Default 20–60. Boundaries snap to sentence starts and payoff ends.
9:16, 1:1, 4:5, 16:9. One job can request several; each is a render.
auto, speaker, split, game-cam (gameplay top, cam bottom), fit. Cam position detected automatically.
Style (none, plain, word-pop, karaoke), language (auto or a code), size, position. Proper-noun fixes via glossary.
Fonts, colours, logo, title card and end card, defined once in the dashboard and referenced by ID.
Plain-language guidance for the scorer: what to look for, what to skip. Optional; improves picks for niche content.
music: strip removes a detected music bed where possible; normalize: true levels speech. Off by default.
Early access: 60 requests a minute, 10 concurrent jobs, 2,000 source minutes a month per workspace draft. Headers on every response; 429 includes Retry-After. Higher limits by request.
invalid_spec, source_unreachable, source_too_long, rate_limited, quota_exceeded, processing_failed. 4xx is yours to fix, 5xx is ours and refunds the job. Every error carries a request_id for support.
One price per minute of source processed, however many clips you request; re-renders billed at a small flat rate. No credits, no per-export fee, no project minimum. Numbers are set at launch; early-access partners get the launch rate locked for 12 months.
A runner you install that serves the same /v1 contract on localhost, processing on your hardware. Point your code at a different base URL and nothing else changes. For regulated content and anyone who took "your footage never leaves your device" at its word.
New upload → job → top clips to a review folder. See automatic channel clipping.
Grab the VOD before it expires, clip overnight, post in the morning. See Twitch and Kick.
Brand or streamer boards that hand clippers pre-cut candidates and a brief. See campaigns.
An MCP server over the same endpoints is planned alongside the API. See clipping MCP servers.
Clipping inside your own product with per-minute cost you can mark up and a spec you control.
Lectures, legal, internal comms: local mode when it ships, delete-on-demand now.
Early access is opening in stages; request access with a sentence about what you're building and your expected monthly minutes. The draft spec above is stable enough to code against; we'll publish a changelog for anything that moves.
Katto for the best developer experience, Klap for predictable unit pricing, OpusClip for the widest pipeline, SupoClip for self-hosting. The API comparison scores them; the API and MCP guide has the shared job model, which this API follows, so switching later is an adapter, not a rewrite.
An OpenAPI 3.1 document at launch, with generated TypeScript and Python clients. The raw HTTP is simple enough that a fetch wrapper is fine.
Not in the first release. It returns files, SRTs and metadata; posting goes through your own platform integration or a scheduler. Posting is on the roadmap behind explicit OAuth grants.
Hosted mode: processed in our pipeline, stored 30 days (draft) or until you DELETE the job, never used for training. Local mode: it doesn't leave your machine. Full terms at launch; see the privacy policy.