Getting started
REST quickstart
Create a key, make your first call, read the Run it returns, poll a slow call and price a call before you spend on it.
- Goal
- One paid call made, its Run read, and the price of the next call known before you make it.
- You need
- An account, and curl, Node or Python.
- Cost
- The first call is 3 credits. A new account gets 1,000 credits free to spend within 90 days.
- Free calls
- Reading your Balance, polling a Run and asking for an estimate.
This guide takes you from no key to a finished Run in five steps. A Run is the record of one charged call: its status, its cost and its result. It takes about five minutes.
Before you start
- A ShortsIntel account. A new account gets a Starter Grant of 1,000 credits, enough for this guide many times over.
- A terminal with curl, or Node or Python. Every sample comes in all three. Pick a language once and every page follows it.
The five steps
- Create a key. Make it in the console and send it as a bearer token.
- Make the first call. Look up one video for 3 credits.
- Read the Run and its result. Every charged call answers with both.
- Poll a Run. A slow call answers
202. Read the Run until it settles. - Price a call before you make it. Add
estimate=trueto get the price without spending.
1. Create a key
Create a key in the console. The key is shown once, when you create it. Send it on every request as a bearer token:
Authorization: Bearer sk_live_YOUR_KEYWarning
Spending is prepaid in Credits, the unit every price is quoted in. Your Balance is the Credits you hold, and each charged call draws its price from it. Reading the Balance is free:
GET /v1/account/balance · Free.
Use ShortsIntel to read your Credit balance.
Tell me what it will cost before you run it, then summarise what you find.
If you don't have ShortsIntel tools, don't guess: read https://www.shortsintel.com/agents.md, follow it to connect, then retry this request.curl "https://www.shortsintel.com/v1/account/balance" \
-H "Authorization: Bearer sk_live_YOUR_KEY"const response = await fetch(
"https://www.shortsintel.com/v1/account/balance",
{
method: "GET",
headers: {
"Authorization": "Bearer sk_live_YOUR_KEY",
},
},
);
if (!response.ok) {
throw new Error(`ShortsIntel ${response.status}`);
}
const data = await response.json();import requests
response = requests.get(
"https://www.shortsintel.com/v1/account/balance",
headers={
"Authorization": "Bearer sk_live_YOUR_KEY",
},
)
response.raise_for_status()
data = response.json()GET /v1/account/balance · Free.
2. Make the first call
Look up one video by platform and id. It is the cheapest call that returns something worth reading, at 3 credits. Replace the placeholder with your key and run it.
GET /v1/videos/{platform}/{id} · 3 credits. With include=intelligence: 23 credits instead of the lookup price. With include=transcript only: a flat 10 credits. With include=download: 3 credits alone, else 3 credits on top of the analysis or transcript price. A stored answer (or an existing copy) costs the same as a fresh one.
Use ShortsIntel to look up a video by id.
- platform: tiktok
- id: 7300000000000000000
Tell me what it will cost before you run it, then summarise what you find.
If you don't have ShortsIntel tools, don't guess: read https://www.shortsintel.com/agents.md, follow it to connect, then retry this request.curl "https://www.shortsintel.com/v1/videos/tiktok/7300000000000000000" \
-H "Authorization: Bearer sk_live_YOUR_KEY"const response = await fetch(
"https://www.shortsintel.com/v1/videos/tiktok/7300000000000000000",
{
method: "GET",
headers: {
"Authorization": "Bearer sk_live_YOUR_KEY",
},
},
);
if (!response.ok) {
throw new Error(`ShortsIntel ${response.status}`);
}
const data = await response.json();import requests
response = requests.get(
"https://www.shortsintel.com/v1/videos/tiktok/7300000000000000000",
headers={
"Authorization": "Bearer sk_live_YOUR_KEY",
},
)
response.raise_for_status()
data = response.json()Run it in the Playground (no API Key needed)
200 · The Run finished inside the wait budget: `{ run, result }`. With `estimate=true`, `{ estimate_credits, cached }` instead.
{
"run": {
"id": "run_8f2c1ad04b",
"kind": "video_lookup",
"status": "completed",
"created_at": "2026-09-08T09:14:02.418Z",
"completed_at": "2026-09-08T09:14:04.930Z",
"charge_credits": 3,
"list_price_credits": 3,
"cached": false
},
"result": {
"platform": "tiktok",
"id": "7300000000000000000",
"url": "https://www.tiktok.com/@someone/video/7300000000000000000",
"description": "3 minutes at 4°C every morning for 30 days. Here is what actually changed. #coldplunge #recovery",
"posted_at": "2026-09-05T06:32:11.000Z",
"duration_seconds": 41,
"thumbnail_url": "https://p16-sign.tiktokcdn.com/obj/tos-cover-7300000000000000000.jpeg",
"hashtags": [
"coldplunge",
"recovery",
"morningroutine"
],
"sound": {
"id": "7180000000000000000",
"title": "original sound - someone",
"author": "someone",
"is_original": true
},
"creator": {
"id": "cre_9d4b2a7f1c",
"handle": "someone",
"name": "Someone",
"follower_count": 184300,
"avatar_url": "https://p16-sign.tiktokcdn.com/obj/tos-avatar-someone.jpeg",
"verified": false
},
"region": "US",
"language": "en",
"title": null,
"commerce": {
"is_ad": false,
"paid_partnership": null,
"affiliate": null,
"shop_url": null,
"anchors": [
{
"kind": "54",
"label": "CapCut · Editing made easy"
}
]
},
"people": {
"mentions": [
"coldplungeco"
],
"collaborators": []
},
"location": null,
"topics": {
"keywords": [],
"genre": null,
"labels": [
"Fitness",
"Health"
]
},
"chapters": null,
"ai_generated": false,
"snapshot": {
"at": "2026-09-08T09:14:04.219Z",
"views": 1284000,
"likes": 143200,
"comments": 2810,
"shares": 9040,
"saves": 21600
},
"scores": {
"outlier": 4.21,
"outlier_p90": 1.6,
"percentile": 95,
"velocity": {
"views_per_hour": 6698.6,
"window": "snapshot"
},
"reason": null,
"baseline": {
"median_views": 305000,
"p90_views": 802000,
"engagement_rate": 0.1342,
"posts_per_week": 4.1,
"sample": 20,
"confidence": "high",
"source": "videos",
"computed_at": "2026-09-08T09:14:03.902Z",
"stale": false
}
}
}
}3. Read the Run and its result
Every charged call answers with two keys. run describes the work: its id, its status and what it charged. result holds the answer.
Keep the Run id. Reading a Run again is free, as often as you like, so you never pay twice for an answer you already have. The Run also says whether the answer was cached. A cached answer costs the same as a fresh one.
4. Poll a Run
Paid calls take a wait parameter: how many seconds to hold the response open. It is 30 by default and 120 at most. If the work finishes in time, you get 200 with the result.
If it does not, you get 202 with the Run on its own:
202 · Still running: `{ run }`. Poll `GET /v1/runs/{id}`.
{
"run": {
"id": "run_8f2c1ad04b",
"kind": "video_lookup",
"status": "running",
"created_at": "2026-09-08T09:14:02.418Z",
"completed_at": null,
"charge_credits": 0,
"list_price_credits": 0,
"cached": false
},
"poll_url": "https://www.shortsintel.com/v1/runs/run_8f2c1ad04b"
}Warning
202 is a success. Code that treats it as an error breaks on the first slow call.Take the Run id and poll GET /v1/runs/{id} every 5 seconds. Stop when status is no longer running. Polling is free.
GET /v1/runs/{id} · Free.
Use ShortsIntel to poll or re-read a run.
- id: run_8f2c1ad04b
Tell me what it will cost before you run it, then summarise what you find.
If you don't have ShortsIntel tools, don't guess: read https://www.shortsintel.com/agents.md, follow it to connect, then retry this request.curl "https://www.shortsintel.com/v1/runs/run_8f2c1ad04b?wait=0" \
-H "Authorization: Bearer sk_live_YOUR_KEY"const response = await fetch(
"https://www.shortsintel.com/v1/runs/run_8f2c1ad04b?wait=0",
{
method: "GET",
headers: {
"Authorization": "Bearer sk_live_YOUR_KEY",
},
},
);
if (!response.ok) {
throw new Error(`ShortsIntel ${response.status}`);
}
const data = await response.json();import requests
response = requests.get(
"https://www.shortsintel.com/v1/runs/run_8f2c1ad04b?wait=0",
headers={
"Authorization": "Bearer sk_live_YOUR_KEY",
},
)
response.raise_for_status()
data = response.json()200 · `{ run, result }` for a completed or partial Run.
{
"run": {
"id": "run_123",
"kind": "video_lookup",
"status": "completed",
"created_at": "2026-09-08T09:14:02.418Z",
"completed_at": "2026-09-08T09:14:04.930Z",
"charge_credits": 5,
"list_price_credits": 5,
"cached": false
},
"result": {
"platform": "tiktok",
"id": "7300000000000000000",
"url": "https://www.tiktok.com/@someone/video/7300000000000000000",
"description": "3 minutes at 4°C every morning for 30 days. Here is what actually changed. #coldplunge #recovery",
"posted_at": "2026-09-05T06:32:11.000Z",
"duration_seconds": 41,
"thumbnail_url": "https://p16-sign.tiktokcdn.com/obj/tos-cover-7300000000000000000.jpeg",
"hashtags": [
"coldplunge",
"recovery",
"morningroutine"
],
"sound": {
"id": "7180000000000000000",
"title": "original sound - someone",
"author": "someone",
"is_original": true
},
"creator": {
"id": "cre_9d4b2a7f1c",
"handle": "someone",
"name": "Someone",
"follower_count": 184300,
"avatar_url": "https://p16-sign.tiktokcdn.com/obj/tos-avatar-someone.jpeg",
"verified": false
},
"region": "US",
"language": "en",
"title": null,
"commerce": {
"is_ad": false,
"paid_partnership": null,
"affiliate": null,
"shop_url": null,
"anchors": [
{
"kind": "54",
"label": "CapCut · Editing made easy"
}
]
},
"people": {
"mentions": [
"coldplungeco"
],
"collaborators": []
},
"location": null,
"topics": {
"keywords": [],
"genre": null,
"labels": [
"Fitness",
"Health"
]
},
"chapters": null,
"ai_generated": false,
"snapshot": {
"at": "2026-09-08T09:14:04.219Z",
"views": 1284000,
"likes": 143200,
"comments": 2810,
"shares": 9040,
"saves": 21600
},
"scores": {
"outlier": 4.21,
"outlier_p90": 1.6,
"percentile": 95,
"velocity": {
"views_per_hour": 6698.6,
"window": "snapshot"
},
"reason": null,
"baseline": {
"median_views": 305000,
"p90_views": 802000,
"engagement_rate": 0.1342,
"posts_per_week": 4.1,
"sample": 20,
"confidence": "high",
"source": "videos",
"computed_at": "2026-09-08T09:14:03.902Z",
"stale": false
}
}
}
}A Run can also end partial or failed. The Runs guide covers each state and what it charges.
5. Price a call before you make it
Add estimate=true to almost any paid call. The answer is what the call would cost, worked out from what is already stored. No Run is created and nothing is charged.
GET /v1/videos/{platform}/{id} · 3 credits. With include=intelligence: 23 credits instead of the lookup price. With include=transcript only: a flat 10 credits. With include=download: 3 credits alone, else 3 credits on top of the analysis or transcript price. A stored answer (or an existing copy) costs the same as a fresh one.
Use ShortsIntel to look up a video by id.
- platform: tiktok
- id: 7300000000000000000
Tell me what it will cost before you run it, then summarise what you find.
If you don't have ShortsIntel tools, don't guess: read https://www.shortsintel.com/agents.md, follow it to connect, then retry this request.curl "https://www.shortsintel.com/v1/videos/tiktok/7300000000000000000?estimate=true" \
-H "Authorization: Bearer sk_live_YOUR_KEY"const response = await fetch(
"https://www.shortsintel.com/v1/videos/tiktok/7300000000000000000?estimate=true",
{
method: "GET",
headers: {
"Authorization": "Bearer sk_live_YOUR_KEY",
},
},
);
if (!response.ok) {
throw new Error(`ShortsIntel ${response.status}`);
}
const data = await response.json();import requests
response = requests.get(
"https://www.shortsintel.com/v1/videos/tiktok/7300000000000000000?estimate=true",
headers={
"Authorization": "Bearer sk_live_YOUR_KEY",
},
)
response.raise_for_status()
data = response.json()Run it in the Playground (no API Key needed)
200 · With `estimate=true`: the price, no Run, no charge.
{
"estimate_credits": 3,
"cached": false
}cached in the estimate says whether the answer is already stored. It does not change the price. Ask for an estimate when a call is expensive, or when an agent is deciding whether to make it.
Result: what you can do now
You have a key, a finished Run you can read again for free, and a way to price any call first. Pick the next page by what you want to do:
| I want to | Read |
|---|---|
| Handle every Run state and partial result | Runs |
| See every endpoint with its parameters, responses and price | API reference |
| Use the same operations from Claude, Cursor or another Assistant | MCP quickstart |