gimmedatvideo API & MCP
Paste any video link. Get back what makes it work. One call turns a public Instagram, TikTok or YouTube link into a reading: the timed transcript, the timed on-screen text, the shots, the audio, what the frames show, the hook, the CTA, what's doing the work and a reusable skeleton. Ask for alternative hooks on top.
This page is written for Bad Ass Edits' developer first, and works for anyone holding a key.
Base URLs and auth
| API | https://api.gimmedatvideo.com/v1 (also served at https://gimmedatvideo.com/v1) |
| MCP | https://gimmedatvideo.com/mcp |
| Auth | Authorization: Bearer gdv_… on every /v1 and /mcp request |
A key is gdv_ plus 40 letters and digits. It's shown once when it's minted; we store only its SHA-256, so a lost
key can't be recovered, only replaced. Keys can expire and can be revoked.
export GDV_KEY=gdv_… # from your gimmedatvideo contact; keep it in your secrets manager
export GDV=https://api.gimmedatvideo.com/v1
Endpoints
POST /v1/readings: start a reading
curl -sS -X POST $GDV/readings \
-H "Authorization: Bearer $GDV_KEY" -H "Content-Type: application/json" \
-d '{"url": "https://www.instagram.com/reel/DgeKnE8NWx8/"}'
| Field | ||
|---|---|---|
url |
required | A public link: instagram.com/(reel|reels|p|tv)/…, tiktok.com/@user/video/…, vm.tiktok.com/…, vt.tiktok.com/…, youtube.com/watch?v=…, youtube.com/shorts/…, youtu.be/… |
webhook_url |
optional | A public https:// URL we POST to when the reading is done or has failed (see Webhooks) |
fresh |
optional | true forces a new reading even if this account read the same link in the last 24 h |
202 Accepted, the reading is queued:
{ "id": "rd_7kq2m4x5c3vb6n7p2t5w", "status": "queued" }
200 OK, the same account read the same link (after normalisation) in the last 24 hours and it's done. Nothing is charged:
{ "id": "rd_7kq2m4x5c3vb6n7p2t5w", "status": "done", "cached": true }
202 Accepted with an existing id: you already sent this link and that reading is still queued or running. You
get the same reading back (its current status, no cached field) rather than a second job and a second charge. A
reading that failed is never handed back; posting the link again starts a new one. "fresh": true always starts a
new reading.
GET /v1/readings/{id}: fetch (and wait for) a reading
curl -sS "$GDV/readings/rd_7kq2m4x5c3vb6n7p2t5w?wait=55" -H "Authorization: Bearer $GDV_KEY"
wait (seconds, max 55) long-polls: the call returns as soon as the reading is done or failed, or when the
wait runs out, whichever comes first. Without wait it answers at once.
status moves through queued → fetching → hearing → looking → reading → done, or ends at failed.
{
"id": "rd_7kq2m4x5c3vb6n7p2t5w",
"status": "done",
"warnings": ["…only present when something was skipped, e.g. no on-screen text pass…"],
"created_at": "2026-12-04T12:00:00.000Z",
"finished_at": "2026-12-04T12:00:41.000Z",
"reading": { "…": "the reading, below" }
}
A failed reading carries "error": "…" in plain words (e.g. the link is private) and no reading.
The reading
This is the contract from docs/BUILD.md. It's validated against
/reading.schema.json before it's
saved, and it won't drift: new per-job information goes beside it, never inside it. (Below, words is cut to
three entries; a real reading has one per spoken word.)
{
"id": "rd_7kq2m4x5c3vb6n7p2t5w",
"source": {
"url": "https://www.instagram.com/reel/DgeKnE8NWx8/",
"platform": "instagram",
"creator": "@natgeo",
"posted_at": "2026-12-03T00:20:02.000Z"
},
"stats": {
"views": 726768,
"likes": 8987,
"comments": 57,
"outlier": null
},
"duration": 12,
"aspect": "9:16",
"transcript": {
"text": "Stop scrolling. Here are three editing tricks nobody tells you. Number one: cut on the beat. Follow for more.",
"words": [
{
"w": "Stop",
"start": 0.52,
"end": 0.8
},
{
"w": "scrolling.",
"start": 0.84,
"end": 1.4
},
{
"w": "Here",
"start": 1.7,
"end": 1.88
}
],
"source": "elevenlabs"
},
"on_screen_text": [
{
"text": "STOP SCROLLING",
"start": 0,
"end": 3,
"position": "top"
},
{
"text": "3 EDITING TRICKS",
"start": 3,
"end": 7,
"position": "center"
},
{
"text": "FOLLOW FOR MORE",
"start": 9,
"end": 12,
"position": "bottom"
}
],
"shots": [
{
"start": 0,
"end": 4,
"keyframe": "https://gimmedatvideo.b-cdn.net/rd_7kq2m4x5c3vb6n7p2t5w/kf_000.jpg"
},
{
"start": 4,
"end": 8,
"keyframe": "https://gimmedatvideo.b-cdn.net/rd_7kq2m4x5c3vb6n7p2t5w/kf_001.jpg"
},
{
"start": 8,
"end": 12,
"keyframe": "https://gimmedatvideo.b-cdn.net/rd_7kq2m4x5c3vb6n7p2t5w/kf_002.jpg"
}
],
"cut_rate_per_min": 10,
"audio": {
"speech": true,
"music": false,
"bed": "steady tone bed",
"lufs": -21.4
},
"visual_notes": "Vertical 9:16, three locked-off shots on flat pastel backdrops (peach, dusty blue, mint) with a single dark subject block that jumps position each cut. Bold white captions with a black outline sit top, then center, then bottom. Clean, bright, no grade.",
"format": "talking-head",
"hook": {
"text": "Stop scrolling. Here are three editing tricks nobody tells you.",
"type": "callout",
"why": "It addresses the viewer directly in the first second and the burned-in STOP SCROLLING repeats the line, then promises a specific, countable payoff."
},
"cta": {
"text": "Follow for more.",
"type": "follow"
},
"doing_the_work": "A direct callout plus a numbered promise sets up an open loop the viewer wants closed. Hard colour cuts every four seconds reset attention, and the captions move around the frame so the eye keeps tracking.",
"skeleton": [
"Callout hook spoken and on screen (0–1.5 s)",
"Numbered promise: 'three X nobody tells you'",
"Cut to tip one with a new backdrop",
"Deliver tip in one line",
"Cut, CTA on screen: follow for more"
],
"contact_sheet": "https://gimmedatvideo.b-cdn.net/rd_7kq2m4x5c3vb6n7p2t5w/sheet.jpg"
}
| Field | Notes |
|---|---|
source |
The canonical link, platform, @creator and ISO posted_at (null when the platform hides them) |
stats |
Views, likes, comments at fetch time. outlier is null in v1 (no creator-baseline lookups yet) |
duration, aspect |
Seconds; 9:16, 16:9, 1:1, 4:5, else W:H reduced |
transcript |
words[] with start/end in seconds. source: "elevenlabs" is real word timing; "provider" is the platform's own captions with each line's words spread evenly over its span |
on_screen_text |
Burned-in text spans with times and position (top, center, bottom, …) |
shots |
One per shot; keyframe is a 480 px JPEG URL (kept 90 days), null if not stored |
audio |
speech, music, the bed under the voice, integrated loudness in LUFS |
hook.type |
One of bold-claim, question, story-open, result-first, curiosity-gap, callout, contrarian, challenge |
cta |
{text, type} or null |
contact_sheet |
One JPEG of all keyframes (4 across, up to 24), kept 90 days |
POST /v1/readings/{id}/hooks: alternative hooks
curl -sS -X POST $GDV/readings/rd_7kq2m4x5c3vb6n7p2t5w/hooks \
-H "Authorization: Bearer $GDV_KEY" -H "Content-Type: application/json" \
-d '{"n": 6, "channel": "Wedding filmmakers teaching editing to beginners; warm, funny, no jargon"}'
n is 1–12 (default 6). channel is a free-text profile or a JSON object. 409 reading_not_done if the
reading isn't done yet. The hooks match Bad Ass Edits' D11a hooks() shape:
{
"reading_id": "rd_7kq2m4x5c3vb6n7p2t5w",
"hooks": [
{ "spoken": "Stop scrolling — your edits are boring and here's why.", "on_screen": "YOUR EDITS ARE BORING",
"type": "callout", "first_three_seconds": "Tight face shot, finger to camera, caption slams in on 'boring'." },
{ "spoken": "I cut 40% of my video and views doubled.", "on_screen": "CUT 40% → 2× VIEWS",
"type": "result-first", "first_three_seconds": "Split screen: before timeline vs after timeline, numbers pop." }
]
}
GET /v1/usage: this month
curl -sS $GDV/usage -H "Authorization: Bearer $GDV_KEY"
{ "month": "2026-12", "readings": 41, "hooks": 9, "credits_used": 57, "credit_limit": 500,
"credits_remaining": 443, "cost_usd_estimate": 1.84 }
Months are UTC calendar months. credit_limit is null when the account has no cap.
Errors, limits and credits
Every error has the same shape:
{ "error": { "code": "unsupported_url", "message": "Paste a public Instagram reel/post, TikTok video or YouTube video/short link." } }
| Status | code |
When |
|---|---|---|
| 400 | invalid_request |
The body isn't JSON or a field is wrong (e.g. n > 12, an http:// webhook) |
| 401 | unauthorized |
Missing, unknown, revoked or expired key |
| 402 | quota_exceeded |
The account has used its monthly credits, counting 1 for each of its readings still queued or running (new readings and hooks only; GETs and cache hits still work) |
| 404 | not_found |
No such reading for your account (other accounts' readings are invisible) |
| 409 | reading_not_done |
Hooks asked for before the reading is done |
| 422 | unsupported_url |
Not a link we read |
| 429 | rate_limited |
Over the key's requests per minute (default 30); wait Retry-After seconds |
| 503 | unavailable |
A dependency isn't configured on our side |
Credits. A reading costs 1 credit per started minute of video (a 23 s reel is 1, a 3:34 video is 4). A hooks call costs 1 credit. A cached re-read and a failed reading cost nothing. While a reading is queued or running it holds 1 credit against your limit (its real charge is known once the video is fetched), so a burst of posts can't run past the cap; a reading that started under the cap can finish slightly over it (a 4-minute video charges 4).
Webhooks
Pass webhook_url and we POST {"id": "rd_…", "status": "done"} (or "failed") when the job ends, with a 3 s
timeout and 2 retries. The body is signed:
X-Gimmedatvideo-Signature: sha256=<hex HMAC-SHA256 of the raw body, keyed with your webhook secret>
Verify it before trusting it, then GET the reading:
import { createHmac, timingSafeEqual } from 'node:crypto';
function verify(rawBody, header, secret) {
const want = 'sha256=' + createHmac('sha256', secret).update(rawBody).digest('hex');
return header?.length === want.length && timingSafeEqual(Buffer.from(header), Buffer.from(want));
}
The webhook is a nudge, not the data: always GET the reading.
MCP: use it from Claude and other agents
The MCP server speaks Streamable HTTP at /mcp with the same Bearer key. Add it to Claude Code:
claude mcp add --transport http gimmedatvideo https://gimmedatvideo.com/mcp --header "Authorization: Bearer <key>"
| Tool | What it does |
|---|---|
read_video(url, fresh?) |
Submits the link, waits up to 50 s, and returns a plain-English summary (hook, format, what's doing the work, the first lines of the transcript, the contact sheet) plus the reading JSON as a second content item. If it isn't done yet it says so and gives the id. |
reading(id) |
The same result for an existing reading, or its status |
hooks(id, n?, channel?) |
Alternative hooks, as text and JSON |
usage() |
This month's readings, hooks, credits and estimated cost |
Then just ask: "Read https://www.instagram.com/reel/… and give me six hooks for my channel."
How BAE's ingest() should call this
ingest(url)
└─ POST /v1/readings {url} → 202 {id} (or 200 {id, cached: true})
└─ loop: GET /v1/readings/{id}?wait=55 → until status is done or failed (each call ≤ 55 s)
└─ done → map response.reading as-is (it's the BUILD.md contract)
failed → surface response.error to the member
hooks(reading_id, n, channel)
└─ POST /v1/readings/{id}/hooks {n, channel} → hooks[] in the D11a shape
const GDV = 'https://api.gimmedatvideo.com/v1';
const auth = { Authorization: `Bearer ${process.env.GIMMEDATVIDEO_KEY}`, 'Content-Type': 'application/json' };
export async function ingestFromGimmedatvideo(url: string) {
const sub = await fetch(`${GDV}/readings`, { method: 'POST', headers: auth, body: JSON.stringify({ url }) });
if (!sub.ok) throw new Error((await sub.json()).error.message);
const { id } = await sub.json();
for (let i = 0; i < 6; i++) { // ~5.5 minutes at most
const res = await fetch(`${GDV}/readings/${id}?wait=55`, { headers: auth });
const v = await res.json();
if (v.status === 'done') return v.reading; // map as-is
if (v.status === 'failed') throw new Error(v.error);
}
throw new Error(`gimmedatvideo reading ${id} is taking too long`);
}
Most reels finish in well under a minute, so the first wait=55 call usually returns the reading.
The rules
Analysis only: we fetch the video, read it, and delete the media; only the reading and a few small thumbnails (kept 90 days) remain. Public links only: no logins, no private content.