Video clipping API v1
The Pogclip HTTP API provides the same clipping, script editing, layering and MP4 export operations as the MCP server. Authenticate every request with a Pogclip API key.
| Base URL | https://pogclip.com/api/v1 |
| Format | JSON (frames returns a JPEG) |
| Sign-in | Authorization: Bearer pog_your_key, or x-api-key: pog_your_key |
| Limit | 60 requests a minute for each key; X-RateLimit-Remaining says how many are left |
Get an API key
Create an API key in Account → API keys. Keys do not expire, and you can revoke any key at any time. One account can hold up to 10 keys, and you should keep keys out of client-side code.
Endpoints
Each endpoint has its own page with parameters, curl examples, responses and errors.
Clip a long video
| Endpoint | What it does |
|---|---|
POST /projects | Start clipping a video longer than 3 minutes, or check its credit price first. |
GET /projects/{projectId} | Check a clip project's status, progress and clips once processing is done. |
GET /projects | List the 50 most recent clip projects on your account, newest first. |
GET /projects/{projectId}/clips | List the clips from a project, ordered from highest score to lowest. |
Edit a video
| Endpoint | What it does |
|---|---|
POST /videos | Open a public video of up to 10 minutes to edit it by its script. |
GET /videos/{clipId}/script | Read a video's numbered transcript lines, timing, layers and current version. |
POST /videos/{clipId}/transcribe | Transcribe an opened video word by word: free for 10 videos a day, then at a price you confirm. |
POST /videos/{clipId}/cut | Cut lines, words, filler words or long pauses, or keep selected lines. |
POST /videos/{clipId}/captions | Change caption style, size, position or colors, fix misheard words or add a headline. |
GET /media | Search free stock photos, stock footage and background music tracks. |
POST /videos/{clipId}/layers | Add or remove stock media, background music or animated HTML graphics. |
GET /videos/{clipId}/frames | Render up to four preview frames from a video as one JPEG image. |
POST /videos/{clipId}/restore | Put an earlier version of a video back as a new version. |
Export and account
| Endpoint | What it does |
|---|---|
POST /exports | Render up to 20 clips or edited videos as MP4 files in chosen sizes. |
GET /exports/{exportId} | Check an export's status and get its MP4 download links. |
GET /credits | Check your current plan, available credits, reserved credits and watermark status. |
Waiting for a result
Clipping, transcribing and exporting take time, and Pogclip does not push updates. Poll again until the job finishes, following the next field in each response.
- Clipping: check
GET /projects/{projectId}about once a minute. - Fetching or transcribing a video: check
GET /videos/{clipId}/scriptabout every 30 seconds. - Exports: check
GET /exports/{exportId}about every 30 seconds. checking_link(HTTP 202): send the same request again in about 10 seconds.
Errors
Errors come back with an HTTP status and this body:
{
"error": {
"code": "video_too_short",
"message": "This video is 3 minutes or shorter. …",
"durationSeconds": 95
}
}
| Status | Code |
|---|---|
| 400 | invalid_request, rights_not_confirmed |
| 401 | unauthorized |
| 402 | not_enough_credits |
| 403 | plan_required |
| 404 | not_found |
| 409 | video_changed, export_in_progress |
| 422 | link_unavailable, video_too_short, video_too_long |
| 429 | too_many_processing, rate_limited |
| 500 | internal_error |
What to do about each one is in Troubleshooting.