# ShortsIntel Intelligence API — full reference Base URL: `https://www.shortsintel.com/v1` OpenAPI 3.1: `https://www.shortsintel.com/docs/openapi.json` Reference: `https://www.shortsintel.com/docs/reference`, one page per tag, endpoint (linked from llms.txt), webhook event and error code ShortsIntel is a short-form video intelligence API for agents. It searches, enriches, scores and tracks public videos on TikTok, Instagram Reels and YouTube Shorts, and returns compact JSON built for model context rather than raw platform payloads. Core model: - Every charged operation creates a **Run**; free reads and edits (a balance, a rename, a deletion) answer directly and create none. `wait` (seconds, default 30, max 120) holds the response; if the work finishes you get `{ run, result }`, otherwise `{ run }` with status `running` to poll at `GET /v1/runs/{id}`. The envelope is identical either way. - A 202 carries `Location: /v1/runs/{id}` and `Retry-After: 5`; the body repeats it as an absolute `poll_url` (for MCP). - Long-poll rather than loop: `GET /v1/runs/{id}?wait=N` (max 120) answers 200 once the Run settles, else 202 after N s, as one request against the limit. - Run states: `running`, `completed`, `partial`, `failed`. A `partial` Run keeps its completed items and charges for them, up to what the Balance covers. A `failed` Run charges nothing. - Lists paginate with `items` and `next_cursor`. Cursors are opaque: pass back the `next_cursor` you were given. Any other cursor is a `400 invalid_request` and is not charged. - Errors are `application/problem+json` with a stable `code`. Branch on `code`, never on the prose. - Re-reading a Run is always free. Check `GET /v1/runs` before repeating work you already paid for. Money: - Prepaid balance in Credits. Every price, charge and balance is a whole number of Credits. `estimate=true` on any paid operation returns `{ estimate_credits, cached }` without creating a Run or charging anything. Use it before spending. - A cached result costs the same as a fresh one. A result is cached when a Snapshot under 24 h old is already stored; the Run says so in `cached`. - Before any work starts, the Balance is checked against the operation's quoted price (for Research and enriched searches, the worst-case quote). If it cannot cover that, the call is a `402 insufficient_balance` and no Run is created or charged. - A multi-item Run (Research, enriched search) settles per item when it finishes. If the Balance no longer covers every completed item, the completed items are charged in order up to the Balance, the rest fail with `insufficient_balance`, and the Run ends `partial`. A Run that cannot afford any of its work ends `failed` and is not charged. - Top-ups buy 1,000 credits per US dollar and start at $10. Limits: 60 requests per minute per key, 10 concurrent running Runs per Customer. `429` carries `Retry-After`. Responses past auth carry `RateLimit-Policy: 60;w=60` and `RateLimit: limit=60, remaining=, reset=`. Auth: `Authorization: Bearer sk_live_...`. Keys are created in the console, shown once and revocable. The MCP endpoint also accepts OAuth 2.1. About: [https://www.shortsintel.com/about](https://www.shortsintel.com/about), what ShortsIntel is and who makes it. ## Quick start ```bash export SHORTSINTEL_API_KEY="sk_live_..." # What will this cost? (no Run, no charge) curl -X POST https://www.shortsintel.com/v1/videos/search \ -H "Authorization: Bearer $SHORTSINTEL_API_KEY" \ -H "Content-Type: application/json" \ -d '{"query":"cold plunge","estimate":true}' # Run it curl -X POST https://www.shortsintel.com/v1/videos/search \ -H "Authorization: Bearer $SHORTSINTEL_API_KEY" \ -H "Content-Type: application/json" \ -d '{"query":"cold plunge","platforms":["tiktok"],"limit":30}' # If it came back with status "running", poll it curl https://www.shortsintel.com/v1/runs/RUN_ID -H "Authorization: Bearer $SHORTSINTEL_API_KEY" ``` ## Endpoints Each endpoint heading links its markdown page, which has the full field descriptions, the error statuses, the schemas, request samples and an example response. A field marked required must be sent. A field listed without a description is described under Shared parameters, and a status listed without one under Shared responses. ### Shared parameters - `Idempotency-Key` (header) — 1-255 printable ASCII characters. Replaying this key with the same payload returns the original Run (202 while it is still running); a different payload, or a different operation, is a 409 `idempotency_conflict`. - `wait` (body) — Seconds to hold the response open before returning a running Run to poll. Default 30, max 120. - `max_credits` (body) — As in the query. - `estimate` (body) — If a source the call would read is unavailable and the cache cannot answer, the estimate adds `unavailable` (the `{ platform, capability }` parts it cannot reach), or is a 503 `source_unavailable` when it can reach none. - `id` (path) — Tracker id. - `limit` (query) — Items per page. - `as_of` (query) — Which snapshots to read. `run` (the default) is what the research saw, frozen, so the list agrees with the digest. `latest` serves the newest snapshot this API holds for each video, and filters and ordering run over those numbers (a `min_` filter means "over that many now"); `outlier` and `outlier_p90` are recomputed against the research's baseline, `velocity` and `percentile` stay as measured. `latest` is uneven until you refresh: a video is as fresh as the last time anything looked at it, else it keeps the research numbers; `POST /research/{id}/refresh` updates its refreshable videos (TikTok today). Every response states its basis. - `wait` (query) — Seconds to hold the response open before handing back a running Run to poll. Default 30, max 120. A POST may send it in the body instead; different values in both places are a 400. - `max_credits` (query) — Most Credits the call may cost. A higher quote is a 402 `max_credits_exceeded`, no Run. Where `x-price.max_credits` is null, the Run stops at it and settles `partial`. - `estimate` (query) — `true` returns `{ estimate_credits, cached }` from what is already stored, creating no Run. Nothing is charged. If a source the call would read is unavailable and the cache cannot answer, the estimate adds `unavailable` (the `{ platform, capability }` parts it cannot reach), or is a 503 `source_unavailable` when it can reach none. Only `true` or `false`, else a 400. A POST may send it in the body instead; different values in both places are a 400. - `platform` (path) — Platform the subject lives on. - `cursor` (query) — Opaque `next_cursor` from the previous page. - `handle` (path) — A bare handle, an `@handle`, or a URL-encoded profile URL — whichever the user pasted. ### Shared responses - `200` — The Run finished inside the wait budget: `{ run, result }`. - `202` — Still running: `{ run }`. ## [Research](https://www.shortsintel.com/docs/reference/research) One intent in plain language, a Digest back: themes, hooks that work verbatim, sentiment, recommended angles, and the ranked videos, creators, hashtags and sounds behind them. ### [`POST /v1/research`](https://www.shortsintel.com/docs/reference/research/create-research.md) — Research a niche Derives keywords from an intent, searches every platform and produces one Digest. - Pipeline: de-duplicates by platform id, analyses the top `max_videos`, scores them against their creators' baselines, then ranks them. - Timing: always async. Typically 1-3 minutes for 50 videos, depending on how busy the video analysis service is, and longer toward 200. `run.progress` says how far it has got. - Evidence: the full lists page at `GET /v1/runs/{id}/items?type=videos|creators|hashtags|sounds`. - Facebook: opt-in. Name it in `platforms` and it is searched and analysed like the others, at the same price. - Coverage: Instagram and Facebook are reported as `coverage: "partial"`. **Price:** 1,036 credits covering up to 50 enriched videos, then 20 credits each, whether the analysis is fresh or already stored, so at most 4,036 credits at `max_videos` 200. Failed videos are never charged. The 402 pre-check uses that worst case. Parameters: `Idempotency-Key` (header) Body fields: - `intent` required — What you want to learn, in plain language. - `keywords` — Skip keyword derivation and use these. - `platforms` — Omit for TikTok, Instagram and YouTube. - `region` — Country code, such as `US` or `GB`, that the TikTok and YouTube searches run from; Instagram and Facebook ignore it. - `window` — Collect videos posted within the last `day`, `week`, `month` (the default), `quarter` or `half_year`, or `all` for no limit. - `max_videos` — Videos to enrich. - `wait`, `max_credits`, `estimate` Responses: - `200` — The Run finished: `{ run, result }`. - `202` ### [`GET /v1/research/{id}`](https://www.shortsintel.com/docs/reference/research/get-research.md) — Read a research's status What a research recorded about itself, without item lists. The videos, creators, hashtags and sounds behind the digest page separately. - Returns: the intent, the keywords derived from it and why, the coverage each platform reported, the requested, completed, failed, cached and fresh counts, and the digest. - Still running: a research id is its Run id, so this returns the Run envelope: 202 `{ run }` with status `running`, as polling answers. It is not an error. - Failed: as a failed Run polls, `application/problem+json` with the problem beside the envelope. - Not found: another Customer's id and a Run of another kind are the same 404. **Price:** Free, forever. Collection is the only thing charged. Parameters: - `id` (path) required — Research id — the id of the Run that collected it. Responses: - `200` — `{ run, result }` once the research has settled. - `202` — `{ run }` while the research is still collecting — the same body `GET /v1/runs/{id}` returns, not an error. ### [`GET /v1/research/{id}/videos`](https://www.shortsintel.com/docs/reference/research/list-research-videos.md) — Filter a research's videos The videos a research collected, filtered and ordered however you like. Filters compose. Ask a narrower question of a research you paid for (TikTok only, over 100k views, best outlier first) instead of running another. - Paging: `limit`/`offset` with a `total`, no `next_cursor`. A research is a frozen set of at most 200 rows in the order you choose, so a count is cheap and more useful. - Past the end: an empty page with the true `total`, not an error. - Frozen numbers: under `as_of=run`, the default, the numbers are as the research saw them, so the list agrees with the digest. - Latest numbers: under `as_of=latest` they are the newest this API holds and may not agree. The response's `as_of` says which you got. - Errors: A research that has not finished answers 409 `run_not_ready`. **Price:** Free, forever, filtered or not. Collection is the only thing charged. Parameters: - `id` (path) required — Research id — the id of the Run that collected it. - `min_views` (query) — Keep videos with at least this many views. - `max_views` (query) — Keep videos with at most this many views. - `platforms` (query) — Comma-separated, or repeated, each one of `tiktok`, `instagram`, `youtube`, `facebook`; any other value is a 400. - `start_date` (query) — Keep videos posted at or after this ISO 8601 date (`2026-01-01`, midnight UTC) or date-time with `Z` or an explicit offset (`2026-01-01T00:00:00Z`). - `end_date` (query) — Keep videos posted at or before this ISO 8601 date or date-time (a date-time needs `Z` or an explicit offset). - `creator` (query) — A creator id or handle, with or without the `@`, matched case-insensitively. - `hashtag` (query) — A single hashtag, with or without the leading `#`. - `sound` (query) — A sound id, as `sound.id` carries it. - `order_by` (query) — `rank` is the research's own ordering — outlier, then views — which is what the digest was written from. - `sort` (query) — Direction. - `limit` (query) — Videos per page. - `offset` (query) — Videos to skip. - `as_of` (query) Responses: - `200` — `{ items, total, limit, offset, as_of }`. ### [`GET /v1/research/{id}/creators`](https://www.shortsintel.com/docs/reference/research/list-research-creators.md) — Rank a research's creators The outlier creators a research surfaced, past the 25 the research response carries inline. - Order: by outlier by default, the best multiple any of their videos in this research hit. - Filters: follower count and platform. - Nulls: `best_outlier` and `median_views` are null, never zero, for a creator with no scored video. They sort last either way, because unknown is not smallest. - Baseline: `median_views` is the baseline the outlier was measured against, frozen at collection. - Paging: `total` and `as_of` as on the videos read. - Errors: A research that has not finished answers 409 `run_not_ready`. **Price:** Free, forever, filtered or not. Collection is the only thing charged. Parameters: - `id` (path) required — Research id — the id of the Run that collected it. - `min_followers` (query) — Keep creators with at least this many followers. - `max_followers` (query) — Keep creators with at most this many followers. - `platforms` (query) — Comma-separated, or repeated, each one of `tiktok`, `instagram`, `youtube`, `facebook`; any other value is a 400. - `order_by` (query) — `outlier` is the best multiple any one of their videos hit. - `sort` (query) — Direction. - `limit` (query) — Creators per page. - `offset` (query) — Creators to skip. - `as_of` (query) Responses: - `200` — `{ items, total, limit, offset, as_of }`. ### [`GET /v1/research/{id}/hashtags`](https://www.shortsintel.com/docs/reference/research/list-research-hashtags.md) — Rank a research's hashtags The hashtags a research surfaced, past the 25 it carries inline. - Order: by `video_count` by default, or by `views`. - Across platforms: one row spans every platform the tag was seen on, because a research searches several to find what carries across. `platforms=tiktok` means "tags that appeared on TikTok", and the row still counts every video carrying the tag anywhere. - Per-platform split: `video_ids` are `platform:id`. - Paging: `total` and `as_of` as on the videos read. - Errors: A research that has not finished answers 409 `run_not_ready`. **Price:** Free, forever, filtered or not. Collection is the only thing charged. Parameters: - `id` (path) required — Research id — the id of the Run that collected it. - `platforms` (query) — Comma-separated, or repeated, each one of `tiktok`, `instagram`, `youtube`, `facebook`; any other value is a 400. - `order_by` (query) — `video_count` is how many of the shortlist carried the tag, `views` their views added up. - `sort` (query) — Direction. - `limit` (query) — Hashtags per page. - `offset` (query) — Hashtags to skip. - `as_of` (query) Responses: - `200` — `{ items, total, limit, offset, as_of }`. ### [`GET /v1/research/{id}/sounds`](https://www.shortsintel.com/docs/reference/research/list-research-sounds.md) — Rank a research's sounds The sounds a research surfaced, past the 25 it carries inline. - Order, filters, paging: as on the hashtags read. - Fields: `value` is the sound id and `title` is its name, where a hashtag has none. - Across platforms: one rollup spans every platform the sound was seen on. - Errors: A research that has not finished answers 409 `run_not_ready`. **Price:** Free, forever, filtered or not. Collection is the only thing charged. Parameters: - `id` (path) required — Research id — the id of the Run that collected it. - `platforms` (query) — Comma-separated, or repeated, each one of `tiktok`, `instagram`, `youtube`, `facebook`; any other value is a 400. - `order_by` (query) — `video_count` is how many of the shortlist used the sound, `views` their views added up. - `sort` (query) — Direction. - `limit` (query) — Sounds per page. - `offset` (query) — Sounds to skip. - `as_of` (query) Responses: - `200` — `{ items, total, limit, offset, as_of }`. ### [`GET /v1/research/{id}/digest`](https://www.shortsintel.com/docs/reference/research/get-research-digest.md) — Read a research's digest The digest alone, with the intent, keywords and coverage it was computed in, and none of the evidence. Use it to feed the synthesis into a prompt without the tokens for the rest. - Overview: `GET /v1/research/{id}` carries the digest too, beside the counts. - Paging: nothing pages, because a research has one digest. - Frozen: `as_of` is accepted as on every read, but always reads `run`. - Not finished: a research that has not finished answers 409 `run_not_ready` here, where the overview instead hands back the run to poll. **Price:** Free, forever. Collection is the only thing charged. Parameters: - `id` (path) required — Research id — the id of the Run that collected it. - `as_of` (query) — Accepted for symmetry with the other research reads, so one basis can be passed to all of them, and validated like theirs. Responses: - `200` — The digest, with the context it was computed in. ### [`POST /v1/research/{id}/refresh`](https://www.shortsintel.com/docs/reference/research/refresh-research.md) — Refresh a research's videos Sweeps fresh metrics for the videos a research serves, so you can see which of them kept growing. - Reading the numbers: afterwards `as_of=latest` on any research read serves these numbers. `as_of=run` stays byte for byte what the research recorded. - Platforms: only TikTok videos refresh today. Others are left out of the quote, sweep and charge and keep the research's numbers. - Refused before any run: 400 `unsupported_platform` with no TikTok videos, 400 `invalid_request` with no videos. - Items: one per video, each with its own status. Failed videos are uncharged, some failing makes the run partial, all failing makes it failed and free. - Short Balance: if the Balance runs short by settlement, the videos that came back are charged in order up to it and the rest fail with `insufficient_balance`, leaving the run partial. **Price:** 3 credits per video that comes back. Parameters: - `id` (path) required — Research id — the id of the Run that collected it. - `Idempotency-Key` (header) - `wait`, `max_credits` (query) - `estimate` (query) — `true` returns `{ estimate_credits, cached }` from what is already stored, creating no Run. Responses: - `200` — The sweep finished inside the wait budget: `{ run, result }`. - `202` ## [Creator Breakdown](https://www.shortsintel.com/docs/reference/breakdowns) What works for a set of Creators: a Research seeded with Creators, each Video scored against its own Creator's median. Reads answer as their Research counterparts. ### [`POST /v1/breakdowns`](https://www.shortsintel.com/docs/reference/breakdowns/create-breakdown.md) — Run a Creator Breakdown Research on Creators, not keywords: analyses each Creator's latest `videos_per_creator` Videos into one Digest of what works for them. Read it at `GET /v1/breakdowns/{id}`. - Outlier: a Video's `outlier` is its views over its Creator's median in the Run. - Lift tables: use those ratios (`lift_tables.basis: creator_median`), so size does not skew them. - Refused: keyword fields. - Cost: a Video costs the same fresh or stored. The estimate and 402 check assume every Video is analysed. **Price:** 9 credits per Creator plus 20 credits per analysed Video, at most 4,090 credits; failed ones are free. Parameters: `Idempotency-Key` (header) Body fields: - `creators` — 1 to 10 Creators of any Platforms, each named once. - `collection_id` — Or a Creator Collection, frozen at Run start. - `videos_per_creator` — Recent Videos to read and analyse per Creator. - `intent` — Drops off-intent Videos read, unanalysed and free. - `wait`, `max_credits`, `estimate` Responses: - `200` — The Run finished: a research result with `mode: creators`. - `202` ### [`GET /v1/breakdowns/{id}`](https://www.shortsintel.com/docs/reference/breakdowns/get-breakdown.md) — Read a breakdown's status A Breakdown's status, answered as `GET /v1/research/{id}` answers it. An intent-mode Research id is the same 404 as an unknown id. **Price:** Free, forever. Collection is the only thing charged. ### [`GET /v1/breakdowns/{id}/videos`](https://www.shortsintel.com/docs/reference/breakdowns/list-breakdown-videos.md) — Filter a breakdown's videos A Breakdown's Videos, answered as `GET /v1/research/{id}/videos` answers them: same filters, sort, paging and `as_of`, lift basis `creator_median`. **Price:** Free, forever, filtered or not. Collection is the only thing charged. ### [`GET /v1/breakdowns/{id}/creators`](https://www.shortsintel.com/docs/reference/breakdowns/list-breakdown-creators.md) — Read a breakdown's creators and medians A Breakdown's input Creators with their medians, answered as `GET /v1/research/{id}/creators` answers them: `median_views` is the basis each lift was computed against. **Price:** Free, forever, filtered or not. Collection is the only thing charged. ### [`GET /v1/breakdowns/{id}/hashtags`](https://www.shortsintel.com/docs/reference/breakdowns/list-breakdown-hashtags.md) — Rank a breakdown's hashtags A Breakdown's hashtags, lift basis `creator_median`, answered as `GET /v1/research/{id}/hashtags` answers them. **Price:** Free, forever, filtered or not. Collection is the only thing charged. ### [`GET /v1/breakdowns/{id}/sounds`](https://www.shortsintel.com/docs/reference/breakdowns/list-breakdown-sounds.md) — Rank a breakdown's sounds A Breakdown's sounds, lift basis `creator_median`, answered as `GET /v1/research/{id}/sounds` answers them. **Price:** Free, forever, filtered or not. Collection is the only thing charged. ### [`GET /v1/breakdowns/{id}/digest`](https://www.shortsintel.com/docs/reference/breakdowns/get-breakdown-digest.md) — Read a breakdown's digest A Breakdown's Digest, answered as `GET /v1/research/{id}/digest` answers it. **Price:** Free, forever. Collection is the only thing charged. ### [`POST /v1/breakdowns/{id}/refresh`](https://www.shortsintel.com/docs/reference/breakdowns/refresh-breakdown.md) — Refresh a breakdown's videos Sweeps fresh metrics for a Breakdown's videos, as `POST /v1/research/{id}/refresh` does: same price, rules and response. An intent-mode Research id is the same 404 as an unknown id. **Price:** 3 credits per video that comes back. ## [Videos](https://www.shortsintel.com/docs/reference/videos) Search, look up, enrich, score and read the comments of short-form videos across TikTok, Instagram Reels and YouTube Shorts. ### [`POST /v1/videos/search`](https://www.shortsintel.com/docs/reference/videos/search-videos.md) — Search videos by keyword Keyword search across TikTok, Instagram and YouTube, one page per call. Facebook is opt-in: it joins when `platforms` names it, and the default stays the three. - Coverage: `coverage` reports each platform as complete, partial or failed. - Best-effort platforms: Instagram and Facebook results are best-effort (`coverage: "partial"`). Facebook results carry a view count only where Facebook shows one, and no other counts. - Unavailable Source: reported `failed: source_unavailable`, uncharged, and leaves the Run `partial`. - Analysis: with `intelligence: true` the search runs in the request and the enrichment passes as a workflow. Each enriched video is a RunItem with its own status and charge at `GET /v1/runs/{id}/items`. - Long videos: a video over 10 minutes is not analysed or charged. Its item fails with `video_too_long`, decided from the length the search reported, else when the pass reads the video. - Photo carousels: TikTok ones are analysed from their images, at the same price. - Analysis failures: a video that cannot be analysed comes back on the page with `intelligence: null` and `intelligence_error` saying why. **Price:** 3 credits per platform searched, per page (9 credits for the default three). `intelligence: true` adds 20 credits for each of the top 20 results enriched, whether analysed now or already. `focus`: +3 credits per Video the model judges, +1 credit per Video `must_mention` rules out, nothing for one already judged under the same Focus or one that could not be judged (shown); `estimate` quotes every returned Video judged. Parameters: `Idempotency-Key` (header) Body fields: - `query` required — At most 200 characters. - `platforms` — Omit for TikTok, Instagram and YouTube. - `region` — Country code, such as `US` or `GB`, that the TikTok and YouTube searches run from; Instagram and Facebook ignore it. - `window` — Videos posted within the last `day`, `week`, `month` (the default), `quarter` or `half_year`, or `all` for no limit. - `sort` — `relevance` (the default) keeps each platform's order, `likes` puts the most liked first, `date` the newest first. - `limit` — Videos on the page, across every platform searched, interleaved. - `cursor` — The `next_cursor` of the previous page, to read the next one. - `intelligence` — Analyse the top 20 results. - `focus` — Judge each result against your Focus and hide the off-focus ones; `off_focus_count` says how many, `unjudged_count` how many shown ones could not be judged. - `include_off_focus` — With `focus`: return every result, each with `focus: { verdict, reason }`. - `wait`, `max_credits`, `estimate` Responses: `200`, `202` ### [`POST /v1/videos/lookup`](https://www.shortsintel.com/docs/reference/videos/lookup-video.md) — Look up a video by URL The same operation as `GET /v1/videos/{platform}/{id}`, addressed by whatever URL the user pasted. Platform and id are parsed out of the URL, so both spellings charge and cache alike. - Instagram: `/p/`, `/reel/` and `/reels/` URLs are one post with one cache entry. - YouTube: accepts `watch?v=`, `/shorts/`, `/embed/` and `youtu.be` URLs, e.g. `{"url":"https://www.youtube.com/shorts/myZ9kn9MIWQ"}`. - TikTok short links: `vm.tiktok.com`, `vt.tiktok.com` and `tiktok.com/t/...` are resolved by following TikTok's redirect (https only, at most 3 hops, 5 s), after the 402 check and before the Run opens, out of `wait`. - Estimates: a short link quotes the fresh price with `cached: false`, the video being unknown until resolved. - Idempotency: matches the URL as sent, so a retry replays without resolving again. **Price:** 3 credits, the same when a Snapshot under 24 h old can answer. Parameters: `Idempotency-Key` (header) Body fields: - `url` required — Any TikTok, Instagram (`/p/`, `/reel/`, `/reels/`) or Shorts URL, including a TikTok short link, or a Facebook `/reel/{id}`, `/watch?v={id}` or `/{page}/videos/{id}` URL. - `wait`, `max_credits`, `estimate` Responses: `200`, `202` ### [`GET /v1/videos/{platform}/{id}`](https://www.shortsintel.com/docs/reference/videos/get-video.md) — Look up a video by id Metadata, stats, the latest Snapshot and Scores for one video on TikTok, Instagram, YouTube or Facebook. Ids by platform - Instagram: the post's shortcode (`/p/{id}`, `/reel/{id}`) or the numeric media id search returns. Reels, photos and carousels are all videos. Instagram reports no shares or saves, so they read 0. - YouTube: the 11-character video id. `description` holds the title then the description, with no `sound` and `shares`/`saves` 0, as YouTube publishes neither. - Facebook: the numeric video or reel id. `shares` over 1,000 may be rounded as Facebook shows it (1.4K reads 1400). Scores and history - Scores: returned where the creator has a baseline, else `null` Scores rather than a fetch. `POST /videos/{platform}/{id}/score` forces it (TikTok only; other platforms are 400 `unsupported_platform` before any Run). - History: the Snapshots behind `velocity` are at `GET /v1/videos/{platform}/{id}/snapshots`. Adding analysis or a download - One Run: any `include` makes the call one video analysis Run (kind `video_intelligence`) at a single price in place of the lookup price. `include` works on every platform, YouTube long-form included. - Analysis and transcript prices: `include=intelligence` (alone or with `transcript`) is the analysis price. `include=transcript` alone is the flat transcript price. - Download link: `include=download` adds `download_url`, a link to our own short-lived copy of the file. Anyone holding it can download the file. - Link expiry: `download_expires_at`, 7 days after the copy was made and at least a day away. Ask again for a fresh link. - Download price: alone it is the download price. With `intelligence` or `transcript` it is added to theirs, copy or no copy. - Failed copy: with `download` beside `intelligence` or `transcript`, a file that cannot be copied does not fail the analysis. The result carries `download_error` and the download is not charged. Errors - Unavailable media: a post gone, private or restricted fails the Run with `media_unavailable`, uncharged. - Long videos: a video over 10 minutes is refused for analysis and download with 422 `video_too_long`, before any Run when its length is known (YouTube is asked first, free), else the Run fails uncharged. **Price:** 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. Parameters: - `platform` (path) required - `id` (path) required — Platform video id. - `include` (query) — `intelligence` adds the full analysis object (a TikTok photo carousel is analysed from its images, slide by slide); `transcript` adds the transcript; `download` adds `download_url` and `download_expires_at` (refused for a photo carousel: `media_unavailable`, reason `not_a_video`). - `refresh` (query) — Only with `include`. - `wait`, `max_credits`, `estimate` (query) - `Idempotency-Key` (header) Responses: `200`, `202` ### [`POST /v1/videos/{platform}/{id}/intelligence`](https://www.shortsintel.com/docs/reference/videos/compute-video-intelligence.md) — Analyse a video The full video pass: a scene pass over the media, then a structured pass producing one versioned object with `content`, `hook`, `persuasion`, `tone`, `visual` and `safety` groups. - Platforms: TikTok, Instagram, YouTube (Shorts and long-form) and Facebook. - Caching: cached forever per version. - No speech: videos with no speech still run. - Unfetchable media: only a post gone, private or restricted, or media the pass cannot read, fails, with terminal `media_unavailable`. A retry will not succeed. - Long videos: a video over 10 minutes is refused with 422 `video_too_long`, before any Run when its length is known (YouTube is asked first, free), else the Run fails uncharged. **Price:** 23 credits, whether computed now or already stored, and with `refresh: true`. Parameters: - `platform` (path) required - `id` (path) required — Platform video id. - `wait`, `max_credits`, `estimate` (query) - `Idempotency-Key` (header) Body fields: - `refresh` — Recompute even when a current version is stored: the scene pass over the media runs again, not just the structured pass. - `wait` - `estimate` — `true` returns `{ estimate_credits, cached }`, creates no Run and charges nothing. - `max_credits` Responses: `200`, `202` ### [`POST /v1/videos/{platform}/{id}/score`](https://www.shortsintel.com/docs/reference/videos/score-video.md) — Score a video against its creator Outlier multiple against the creator's median views, `outlier_p90`, views per hour and percentile within the creator's sample. Forces the creator fetch and the baseline computation. Velocity is `null` with `reason: aged_out` past 30 days. Numbers only, no labels. **Price:** 9 credits, always fresh — asking for a score is asking for the fetch. Parameters: - `platform` (path) required - `id` (path) required — Platform video id. - `wait`, `max_credits`, `estimate` (query) - `Idempotency-Key` (header) Responses: `200`, `202` ### [`GET /v1/videos/{platform}/{id}/comments`](https://www.shortsintel.com/docs/reference/videos/get-video-comments.md) — Read a video's comments A page of comments, optionally with a sentiment summary. Read the video first with `GET /v1/videos/{platform}/{id}`. - Authors: none. Author information is dropped as each comment is fetched, before it is stored. - Retention: raw comments are purged after 90 days. The analysis is kept. - Replies: the page holds top-level comments only. On TikTok, Instagram and Facebook a comment's replies are at `GET /v1/videos/{platform}/{id}/comments/{comment_id}/replies`. - Reply counts: TikTok and Facebook count them in `reply_count`. Instagram often shows 0 for a comment that may still have replies. - Instagram: comments may be a capped preview of a longer list. The result then carries `coverage: "partial"` and the Run completes at the normal price. - YouTube: top-level comments in its Top comments order, with an approximate `posted_at`, as YouTube shows only how long ago. - Facebook: `like_count` is the comment's reaction count. **Price:** 3 credits per page, plus 10 credits with `analyze=true`, whether the analysis is computed now or already stored. Parameters: - `platform` (path) required - `id` (path) required — Platform video id. - `limit`, `cursor` (query) - `analyze` (query) — Add a sentiment summary over the page. - `wait`, `max_credits`, `estimate` (query) - `Idempotency-Key` (header) Responses: `200`, `202` ### [`GET /v1/videos/{platform}/{id}/comments/{comment_id}/replies`](https://www.shortsintel.com/docs/reference/videos/get-comment-replies.md) — Read a comment's replies A page of the replies to one comment, in the order the platform ranks them. Read the comments page first: `comment_id` is a comment's `id` from `GET /v1/videos/{platform}/{id}/comments`. - Unlisted comment: a free 404 `comment_not_found`. - Items: each reply is a comment item with `parent_id` set to `comment_id` and, like comments, no author information. - No replies: an empty `items` and a null `next_cursor`. - Retention: purged after 90 days, like comments. - Platforms: TikTok, Instagram and Facebook. Other platforms are `unsupported_platform`. - Facebook: one level of replies is returned (replies to a reply are not walked), and a comment the platform no longer lists is a free `comment_not_found`. - Instagram: a comment's `reply_count` is often 0 even when it has replies, so a thread can be worth asking for. **Price:** 3 credits per page, the same when the replies are already stored. Parameters: - `platform` (path) required - `id` (path) required — Platform video id. - `comment_id` (path) required — The comment's `id`, as the comments page returned it. - `limit`, `cursor`, `wait`, `max_credits`, `estimate` (query) - `Idempotency-Key` (header) Responses: `200`, `202` ### [`GET /v1/videos/{platform}/{id}/snapshots`](https://www.shortsintel.com/docs/reference/videos/list-video-snapshots.md) — Read a video's metric history Views and metrics over time, newest first. `not_found` until looked up with `GET /v1/videos/{platform}/{id}`. - Nulls and zeros: a metric is null where its Snapshot marks it unreported. One a Platform never reports can still read 0, such as Instagram and Facebook shares and saves. - Ad fields: `is_ad`/`paid_partnership` appear where recorded. - Retention: shared and kept forever, so history predates your first lookup. - Gaps: a video gets Snapshots only when a lookup, search, Creator Tracker page or Keyword, Hashtag or Sound Sample reads it, so a missing day is not a drop. **Price:** Free. Parameters: - `platform` (path) required - `id` (path) required — Platform video id. - `limit`, `cursor` (query) Responses: - `200` — `{ items, next_cursor }`. ## [Creators](https://www.shortsintel.com/docs/reference/creators) Creator profiles, their stored videos, their baseline metrics and their follower history. ### [`GET /v1/creators/{platform}/{handle}`](https://www.shortsintel.com/docs/reference/creators/get-creator.md) — Look up a creator and baseline Profile, follower stats, baseline and Scores for one creator on TikTok, Instagram, YouTube or Facebook. - Baseline: median views, p90, mean engagement rate, posts per week, sample size and confidence. It is stale after 7 days and refreshed by this lookup. - Contact details: `contact` carries what the account publishes itself: a Facebook Page's public email, phone, address and website (`source: "profile"`), else the first email address in the bio on any platform (`source: "bio"`). Null when none. - Contact use: using it lawfully (anti-spam and data-protection rules) is the caller's responsibility. Instagram - Profile: adds `verified`. - Videos: `include=videos` returns the first page of the creator's Reels, or of all their posts (carousels and photos too) with `videos_from=posts`, with a `next_cursor` to pass back as `cursor`. - Feed items: they come as the source gave them. An unreported count is 0, and such a video has no Scores. YouTube - Handle: `{handle}` is an `@handle`, a channel id (`UC…`) or a channel URL. - Profile: the creator is the channel, with subscribers as `follower_count`, description as `bio`, plus `video_count` and `verified`. - Videos: `include=videos` returns one page of its Shorts (never long-form) with a `next_cursor`. Facebook - Handle: the Creator is a Page, by vanity name, numeric id, Page URL or `profile.php?id=` URL. - Profile: adds `like_count` and `category`. - Videos: `include=videos` reads its reels (default) or posts (`videos_from=posts`) with `next_cursor` as on Instagram. - Advertiser: `advertiser` links the Meta Advertiser with the same Page id when we hold it. **Price:** 6 credits, the same when a creator Snapshot under 24 h old and a baseline under 7 days old can answer. A next page of videos (`cursor`) is 3 credits. Parameters: - `platform` (path) required - `handle` (path) required - `include` (query) — `videos` adds the creator's recent videos. - `videos_from` (query) — Instagram (and Facebook): which feed `include=videos` reads, `reels` (default) or `posts`, every post including photo carousels. - `cursor` (query) — The `next_cursor` a previous lookup with `include=videos` returned: reads only the next page of that feed, for 3 credits. - `wait`, `max_credits`, `estimate` (query) - `Idempotency-Key` (header) Responses: `200`, `202` ### [`GET /v1/creators/{platform}/{handle}/videos`](https://www.shortsintel.com/docs/reference/creators/list-creator-videos.md) — Page a creator's stored videos The creator's videos as we already hold them, newest first, each with its Scores. It fetches nothing new: for fresh videos, call the creator lookup with `include=videos` first, then page here. - Analysis: with `intelligence=true` the page is analysed exactly like `POST /v1/videos/search` with `intelligence: true`, on every Platform. - Run: its passes run as a workflow, one RunItem per analysed video at `GET /v1/runs/{id}/items`, at most 20 videos analysed. - Failures: a video that cannot be analysed (`media_unavailable`, or `video_too_long` past 10 minutes) comes back with `intelligence: null` and `intelligence_error`, uncharged. A Run where none could be analysed fails free. **Price:** Free. Counts toward the per-key request limit. `intelligence=true` costs 20 credits for each of the first 20 videos analysed, whether analysed now or already; the page itself stays free. Parameters: - `platform` (path) required - `handle` (path) required - `limit`, `cursor` (query) - `intelligence` (query) — Analyse the page's first 20 videos in a Run, like search with `intelligence: true`. - `wait`, `max_credits` (query) - `estimate` (query) — `true` returns `{ estimate_credits, cached }` from what is already stored, creating no Run. - `Idempotency-Key` (header) Responses: - `200` — `{ items, next_cursor }`. - `202` ### [`GET /v1/creators/{platform}/{handle}/snapshots`](https://www.shortsintel.com/docs/reference/creators/list-creator-snapshots.md) — Read follower history Follower history, newest first. Snapshots are shared across Customers and kept forever, so history predates your first lookup. **Price:** Free. Parameters: - `platform` (path) required - `handle` (path) required - `limit`, `cursor` (query) Responses: - `200` — `{ items, next_cursor }`. ## [Hashtags](https://www.shortsintel.com/docs/reference/hashtags) Hashtag stats, trend direction and the videos carrying a tag. ### [`GET /v1/hashtags/{platform}/{tag}`](https://www.shortsintel.com/docs/reference/hashtags/get-hashtag.md) — Look up a hashtag's trend Stats, trend direction and top videos, with a Snapshot written every time so the next lookup has something to compare against. **Price:** 3 credits, the same when a Snapshot under 24 h old can answer. Parameters: - `platform` (path) required - `tag` (path) required — Tag without the `#`. - `wait`, `max_credits`, `estimate` (query) - `Idempotency-Key` (header) Responses: `200`, `202` ### [`GET /v1/hashtags/{platform}/{tag}/videos`](https://www.shortsintel.com/docs/reference/hashtags/list-hashtag-videos.md) — Page a hashtag's videos Pages the videos carrying a tag in the platform's own ordering. Always fresh: the ordering is the thing being paged, so a page cannot be served from stored data without answering a different question. **Price:** 3 credits per page. Parameters: - `platform` (path) required - `tag` (path) required — Tag without the `#`. - `limit`, `cursor`, `wait`, `max_credits` (query) - `estimate` (query) — `true` returns `{ estimate_credits, cached }` from what is already stored, creating no Run. - `Idempotency-Key` (header) Responses: `200`, `202` ## [Sounds](https://www.shortsintel.com/docs/reference/sounds) Sound and music metadata, usage counts and the videos using a track. ### [`GET /v1/sounds/{platform}/{id}`](https://www.shortsintel.com/docs/reference/sounds/get-sound.md) — Look up a sound's trend Track metadata, the platform's own count of videos using it, sample stats, trend direction and top videos, with a Snapshot written every time. On TikTok `{id}` is the `clipId` from a `/music/-` URL — not the `music.id` carried on a video payload. **Price:** 6 credits, the same when a Snapshot under 24 h old can answer. Parameters: - `platform` (path) required - `id` (path) required — Sound id — TikTok's `clipId`. - `wait`, `max_credits`, `estimate` (query) - `Idempotency-Key` (header) Responses: `200`, `202` ### [`GET /v1/sounds/{platform}/{id}/videos`](https://www.shortsintel.com/docs/reference/sounds/list-sound-videos.md) — Page a sound's videos Pages the videos using a sound, in the platform's own ordering. Always fresh, for the same reason as the hashtag videos page. **Price:** 6 credits per page. Parameters: - `platform` (path) required - `id` (path) required — Sound id. - `limit`, `cursor`, `wait`, `max_credits` (query) - `estimate` (query) — `true` returns `{ estimate_credits, cached }` from what is already stored, creating no Run. - `Idempotency-Key` (header) Responses: `200`, `202` ## [Keywords](https://www.shortsintel.com/docs/reference/keywords) What a platform's search shows for a phrase: sample stats, trend direction and the top videos. ### [`GET /v1/keywords/{platform}`](https://www.shortsintel.com/docs/reference/keywords/get-keyword.md) — Sample a keyword search One page of the platform's search for a phrase: sample stats, trend direction and the top 10 videos by views. The numbers are sample-based, not platform totals. - Search: relevance order, the past month, unfiltered, no region. - Snapshots: one per call, for the next lookup to compare against. - Matching: a phrase matches ignoring case and extra spaces, otherwise exactly. `Skin Care` is `skin care`, and `skincare` is a different keyword. - Limits: an empty phrase, or one over 100 characters, is `invalid_request` before any Run. - Coverage: best-effort on Instagram and Facebook (`coverage: "partial"`). - Focus: with `focus` the top videos are judged against it and off-focus ones hidden, `off_focus_count` saying how many. The stats and Snapshot stay unfiltered. **Price:** 3 credits, the same when a Snapshot under 24 h old can answer. `focus`: +3 credits per Video the model judges, +1 credit per Video `must_mention` rules out, nothing for one already judged under the same Focus or one that could not be judged (shown); `estimate` quotes every returned Video judged. Parameters: - `platform` (path) required - `phrase` (query) required — The search phrase, at most 100 characters. - `focus` (query) — Which Videos are relevant to you, in plain language, exclusions included, e.g. `Apple Inc. and its products (iPhone, Mac, AirPods, iOS). - `must_mention` (query) — With `focus`: one term per param, repeated (`must_mention=apple&must_mention=iphone`); a comma is part of the term. - `include_off_focus` (query) — With `focus`: `true` returns every top video, each with `focus: { verdict, reason }`. - `wait`, `max_credits`, `estimate` (query) - `Idempotency-Key` (header) Responses: `200`, `202` ## [Ads](https://www.shortsintel.com/docs/reference/ads) Keyword and advertiser search over the Meta and TikTok ad libraries. ### [`POST /v1/ads/search`](https://www.shortsintel.com/docs/reference/ads/search-ads.md) — Search ad libraries The Meta or TikTok ad library, by keyword or by advertiser. Pass exactly one of `query` or `advertiser`. Keyword searches are always live. Meta - Advertiser: a Facebook Page id, Page URL or name. - Ambiguous name: a name several Pages carry is a free 409 `advertiser_ambiguous` with `candidates` (`page_id`, `name`, `page_url`, `instagram`, `ad_count`), never a guess. An estimate answers the same 409 when two or more stored Advertisers carry the name. - Stored results: an `advertiser` search by Page id or URL within 6 hours of a complete observation is served from storage at the same price unless it sets `country`, saying `cached` and `as_of`. - Complete observation: a `status: all` search with no other filter read to the end, or a fresh `GET /v1/advertisers/{page_id}`. - Filters: `country` (omit for every country), `status` (running by default), `kind` (commercial by default), `media_type`, `placements` and a start-date range. - Paging: a `limit` up to 500, read across library pages. `next_cursor` gives more. - Storage: every Meta Ad returned is stored with its Advertiser and a Snapshot, one Run item each. TikTok - Regions: the library holds only Ads delivered in the EU/EEA, Switzerland, the UK and Turkey. - Results: one page per call, stored (media archived once looked up), with `spend` and `impressions` null. - Not available: `country`, Meta-only filters and `analyze`. - Advertiser: an advertiser id (once stored), a library.tiktok.com advertiser URL or a name. - Ambiguous name: a name several advertisers carry (case counts) is the same free 409, with `candidates` `{ advertiser_id, name, url }`. Pass one's `url` back. Analysis - Scope: `analyze: true` analyses the first 50 Ads from our archived media, the ad copy as context. - Video Ads: the video set (transcript, hook, persuasion, tone, visual, safety). - Image and carousel Ads: the image set (copy angle, offer, CTA, visual format, topics, sentiment). - Reuse: computed once per Ad and version, reused by later Runs at the same charge. Every Ad carries any stored analysis. - Timing: after the read, so expect a 202 and poll. - Failures: a failed Ad is uncharged and makes the Run `partial`. A Run with no analysis fails, uncharged. Library failures - Part-way: the Run is left `partial`, charged for the Ads delivered, with `incomplete` saying why and `next_cursor` resuming. - Unreachable: the Run (and an estimate) fails with `source_unavailable`, uncharged. **Price:** Meta: 1 credit per Ad delivered, the same when served from a recent advertiser observation, plus 20 credits per Ad analysed with `analyze`, computed or already stored; the estimate quotes `limit` Ads, all analysed up to the cap with `analyze`. TikTok: 3 credits per page. Parameters: `Idempotency-Key` (header) Body fields: - `library` required — `meta`, the Meta Ad Library (Facebook and Instagram Ads, priced per Ad delivered), or `tiktok`, the TikTok ad library (Ads delivered in the EU/EEA, Switzerland, the UK and Turkey, priced per page). - `query` — Keywords to search Ads for. - `advertiser` — Every Ad of one advertiser instead of a keyword search; pass this or `query`, exactly one. - `country` — Two-letter country code; omitted searches every country. - `status` — Running (`active`, the default), stopped (`inactive`) or `all`. - `kind` — `commercial` (the default), `political`, `issue` or `all`. - `media_type` — Only Ads of this format; omitted means every format. - `placements` — Only Ads placed on at least one of these. - `started_after` — ISO date or timestamp; Ads that started on or after it. - `started_before` — ISO date or timestamp; Ads that started before it. - `limit` — Meta: default 50, at most 500, fetched across as many library pages as it takes. - `cursor` — The `next_cursor` of the previous page, to read the next one with the same `library` and filters. - `order_by` — `relevance` (the default) keeps the library's order; `winner` sorts by winner Score, `days_running` by days run, `start_date` newest first. - `analyze` — Ad analysis on the first 50 Ads: 20 credits per Ad, whether computed or already stored at this Ad's current version. - `wait`, `max_credits` - `estimate` — Meta: If a source the call would read is unavailable and the cache cannot answer, the estimate adds `unavailable` (the `{ platform, capability }` parts it cannot reach), or is a 503 `source_unavailable` when it can reach none. Responses: `200`, `202` ### [`GET /v1/ads/meta/{library_id}`](https://www.shortsintel.com/docs/reference/ads/get-meta-ad.md) — Look up a Meta Ad by id One Meta Ad by its Ad Library id, trimmed like a search result, with `as_of` (when it was last observed in the library). - Freshness: served from our stored copy when observed under 6 hours ago. Otherwise read live, stored and given a Snapshot. - Removed Ads: served from our stored copy with `removed_from_library: true`, at the same price. - Errors: an id never stored here and not in the library is a free 404 `not_found`. An unreachable library fails the Run with `source_unavailable`, uncharged. - Analysis: `analyze=true` adds Ad analysis (the video set for a video Ad, the image set for an image or carousel Ad), computed once per Ad and version from our archived media with the ad copy as context. - Analysis timing: when it must be computed expect a 202 and poll. If it fails the Run fails, uncharged. - Stored analysis: free on every lookup. **Price:** 3 credits, read live or from our stored copy (observed under 6 h ago, or removed from the library). With `analyze=true`, plus 20 credits, whether the analysis is computed or already stored. Parameters: - `library_id` (path) required — The Meta Ad Library id: the number in `facebook.com/ads/library/?id=...`. - `analyze` (query) — `true` to add Ad analysis: 20 credits, computed or already stored. - `wait`, `max_credits`, `estimate` (query) - `Idempotency-Key` (header) Responses: `200`, `202` ### [`GET /v1/ads/tiktok/{ad_id}`](https://www.shortsintel.com/docs/reference/ads/get-tik-tok-ad.md) — Get a TikTok Ad One TikTok Ad by its ad library id: a search result plus landing page, CTA, objective, advertiser id, its TikTok account (`advertiser_account`) and `targeting`. EU/EEA, Swiss, UK and Turkish Ads only. - Targeting: countries, ages, genders, impressions per country by age and gender. - Fallback: when the library cannot answer, Creative Center may. `targeting` is then null and `performance` has CTR, likes, comments and shares. - Nulls: unpublished fields are null, never zero. - Storage: stored with archived media. Served from our copy within 6 hours, or with `removed_from_library: true` once dropped, at the same price. `as_of` says when it was last observed. - Analysis: carries `intelligence` when a Tracker analysed it. - Errors: unknown id is 404 `not_found` and an unreachable library is `source_unavailable`. Neither is charged. **Price:** 3 credits. Parameters: - `ad_id` (path) required — The TikTok ad library id: the number in `library.tiktok.com/ads/detail/?ad_id=...`, or an `id` from a TikTok `POST /ads/search`. - `wait`, `max_credits`, `estimate` (query) - `Idempotency-Key` (header) Responses: `200`, `202` ### [`GET /v1/ads/meta/{library_id}/intelligence`](https://www.shortsintel.com/docs/reference/ads/get-meta-ad-intelligence.md) — Get a Meta Ad's analysis The Ad's latest stored analysis, as an earlier `analyze` computed it. Nothing is computed here: an Ad with none yet is `not_found`; ask for it with `analyze`. Shared across Customers. **Price:** Free. Parameters: - `library_id` (path) required — The Meta Ad Library id. Responses: - `200` — `{ library_id, intelligence }`. ### [`GET /v1/ads/meta/{library_id}/snapshots`](https://www.shortsintel.com/docs/reference/ads/list-meta-ad-snapshots.md) — Read a Meta Ad's history Every observation of the Ad, newest first: running state, placements, countries, variant count, and disclosed spend and reach. Snapshots are shared across Customers and kept forever. `not_found` until the Ad has been looked up or returned by a search. **Price:** Free. Parameters: - `library_id` (path) required — The Meta Ad Library id. - `limit`, `cursor` (query) Responses: - `200` — `{ items, next_cursor }`. ### [`GET /v1/ads/tiktok/{ad_id}/snapshots`](https://www.shortsintel.com/docs/reference/ads/list-tik-tok-ad-snapshots.md) — List a TikTok Ad's snapshots Every observation of the Ad, newest first. `not_found` until the Ad has been looked up or searched. **Price:** Free. Parameters: - `ad_id` (path) required — The TikTok ad library id. - `limit`, `cursor` (query) Responses: - `200` — `{ items, next_cursor }`. ### [`GET /v1/advertisers/{page_id}`](https://www.shortsintel.com/docs/reference/ads/get-advertiser.md) — Look up an advertiser profile One advertiser's profile, from the Meta library or, with `library=tiktok`, the TikTok one. Meta - Advertiser: a Facebook Page that runs Ads. - Profile: name, Page URL, running and total Ad counts as last observed, and `last_observed_at`. - Linked accounts: its linked Instagram account and Creator, only when Meta shows the link, never guessed from the name. - Fresh lookup: reads and stores every Ad (every status and country) with a Snapshot. Reading to the end is a complete observation, which stamps the counts. - Stored results: for 6 hours after that, the profile and any `advertiser` search on it are served from storage, saying `cached` and `as_of`. - Large advertisers: one with more Ads than a lookup reads keeps its last complete counts (and Meta's own total when reported). - No Ads in the library: 404 `not_found`, free. TikTok - Profile: TikTok account, registry location, paid by and counts (running: active, shown in the past 3 days). Its Ads are stored and archived. - Complete observation: unless the library broke it off part-way. - Truncated reads: a `truncated` read counts, serving the profile for 6 hours. It is normal for a busy advertiser, because the library's paging skips Ads shown the same day. - Unobserved id: a bare TikTok id we have not observed yet is 404 `not_found`, free, because the library needs the exact name beside it. Pass its library URL or name. **Price:** 15 credits, the same when served within 6 hours of a complete observation. Parameters: - `page_id` (path) required — The numeric Facebook Page id (from a name or Page URL, search with `advertiser` first). - `library` (query) — `meta` (default) or `tiktok`. - `wait`, `max_credits`, `estimate` (query) - `Idempotency-Key` (header) Responses: `200`, `202` ## [Trackers](https://www.shortsintel.com/docs/reference/trackers) Daily watches on a creator, a hashtag, a sound, a keyword (a search phrase on one Platform) or a Meta or TikTok Advertiser, with Snapshots kept forever and a Change Report only when something notable moves. Creator, hashtag, sound, keyword and advertiser Trackers are the kinds available today. ### [`POST /v1/trackers`](https://www.shortsintel.com/docs/reference/trackers/create-tracker.md) — Start tracking a target Creates a daily creator, hashtag, sound, keyword or advertiser Tracker and runs its first cycle now, so you have a baseline at once. It then joins the daily schedule. - Duplicates: one Tracker per target. Creating it again returns 200 with the existing Tracker and `created: false`, uncharged and not a conflict. - Deleted Trackers: final. Tracking the target again creates a new one. - Collections: `collection_ids` also puts the Tracker in those Collections, checked before anything is fetched or charged. Meta advertiser cycles - Reads: the Ads the Advertiser runs or ran, up to 20 library pages (`truncated: true` past that), stored with Snapshots and archived media. - Change Report: new Ads, stopped Ads, Ads whose variant count grew, and new countries or placements. TikTok advertiser cycles - Regions: EU/EEA, Swiss, UK and Turkish Ads only. - Reads: up to 25 library pages: Ads shown in the past 3 days and Ads ended since the last cycle, stored with Snapshots and archived media, and each new Ad's details once. - Change Report: new Ads (with `targeting`, `landing_page`, `cta`), stopped Ads and `reach_growth` (audience bucket moved up), with `truncated` when the library's paging left Ads unread. - Stopped Ads: ended, or not shown for 3 days, and never for a missed read. After a `truncated` read a detail read confirms the last day shown. - Broken-off reads: a read the library breaks off is `partial`, charged 3 credits per page read up to the cycle. - No library Ads: the advertiser answers `coverage: "library_regions_only"`. Hashtag cycles - Reads: one page of the tag's videos, as no platform reports a tag's totals. Writes a Snapshot of sample stats and the top 10 video ids. - Change Report: fires when the sample's median views move 25% or more, or a video enters the top 10. Sound cycles (TikTok) - Reads: the sound (its video count is the platform's own) and one page of its videos. Writes a Snapshot of the video count, sample stats and top 10 video ids. - Change Report: fires when the video count rises 10% or more, or the sample's most viewed video changes. **Price:** The first cycle is charged on create: 6 credits for a creator, 3 credits for a hashtag, 6 credits for a sound, 3 credits for a keyword, 30 credits for an advertiser, plus 20 credits per new video when `intelligence` is on (per new Ad, on its own Run, for an advertiser). A TikTok advertiser cycle includes 10 new Ads' detail reads, then 3 credits each; the estimate and Balance check quote every running Ad as new, at most 300, the most a cycle charges for. A first (baseline) cycle reports nothing but reads up to 10 Ads' details, included, so lookups and the first Change Report carry targeting. Each later daily cycle costs the same; an already tracked target costs nothing. Parameters: - `estimate` (query) — Return `{ estimate_credits, cached, already_tracking, tracker_id, per_cycle }` and change nothing: zero when the target is already tracked, else one cycle, the first. - `max_credits` (query) Body fields: - `kind` required — `creator`, `hashtag`, `sound`, `keyword` (a search phrase on one Platform) or `advertiser` (a Meta or TikTok Advertiser). - `platform` — Required for `creator` (`tiktok`, `instagram` or `facebook`; `youtube` is refused with 400 `unsupported_platform`), `hashtag` (`tiktok` or `instagram`), `sound` (`tiktok`) and `keyword` (`tiktok`, `instagram`, `youtube` or `facebook`). - `target` required — `creator`: the handle. - `intelligence` — Analyse each new video (or new Ad) the cycle finds. - `focus` — `creator`, `hashtag`, `sound` and `keyword` only: each cycle judges the Sample's Videos (a Creator's new Videos, and any of its newest 20 not yet judged under this Focus) in focus, off focus or unjudged, and `GET /v1/trackers/{id}` hides the off-focus ones. - `collection_ids` — Also put the Tracker in these Collections, even when it already exists. - `estimate` — As in the query. Responses: - `201` — `{ tracker, created: true, run, change_report, intelligence_run, collections }` — newly created, with its first (charged) cycle. - `200` — `{ tracker, created: false, run: null, change_report: null, collections }` — you were already tracking that target. ### [`GET /v1/trackers`](https://www.shortsintel.com/docs/reference/trackers/list-trackers.md) — List your trackers The Customer's Trackers, newest first. **Price:** Free. Parameters: - `limit`, `cursor` (query) - `state` (query) — `active` or `paused`. - `kind` (query) — `creator`, `hashtag`, `sound` or `advertiser`; `video` (deprecated) lists any remaining Video Trackers. Responses: - `200` — `{ items, next_cursor }`. ### [`GET /v1/trackers/{id}`](https://www.shortsintel.com/docs/reference/trackers/get-tracker.md) — Read one tracker One Tracker. Another Customer's id is a 404, never a 403. - TikTok advertiser: when its latest observation found no Ads in the library it carries `coverage: "library_regions_only"` and `coverage_note`. The library holds only EU/EEA, Swiss, UK and Turkish Ads. - Keyword on Instagram or Facebook: carries `coverage: "partial"`, as their search is a best-effort index. **Price:** Free. Parameters: - `id` (path) required - `include_off_focus` (query) — A Tracker with a Focus: `true` returns every sampled Video in `sample.videos` (a Creator's in `recent_videos.videos`), each with `focus: { verdict, reason }`. Responses: - `200` — `{ tracker }`, plus `sample` on a Tracker with a Focus: its latest Sample with off-focus Videos hidden, `off_focus_count`, and in-focus counts and stats beside the full-Sample stats. ### [`PATCH /v1/trackers/{id}`](https://www.shortsintel.com/docs/reference/trackers/update-tracker.md) — Pause, resume or set analysis Pauses or resumes the Tracker, switches its analysis on or off, or both. A paused Tracker runs no cycles and is charged nothing. Analysis applies from the next cycle and is charged per new video or Ad it analyses. **Price:** Free. Parameters: - `id` (path) required Body fields: - `state` — Pause or resume. - `intelligence` — Switch analysis of new videos or Ads on or off, from the next cycle. Responses: - `200` — `{ tracker }`. ### [`DELETE /v1/trackers/{id}`](https://www.shortsintel.com/docs/reference/trackers/delete-tracker.md) — Stop tracking Stops the cycles. Snapshots and Change Reports are kept, and the Tracker's change reports stay readable at `GET /v1/trackers/{id}/changes` after deletion. Deleting is final: tracking the target again creates a new Tracker. **Price:** Free. Parameters: - `id` (path) required Responses: - `200` — `{ tracker }` with state `deleted`. ### [`POST /v1/trackers/{id}/refresh`](https://www.shortsintel.com/docs/reference/trackers/refresh-tracker.md) — Run a tracker cycle now Runs the Tracker's cycle now, forcing a fresh fetch rather than reading a fresh Snapshot. `change_report` is null on a quiet cycle. - Advertiser analysis: an Advertiser Tracker's new Ads are analysed in the background on `intelligence_run`, never in the request. - Focus line: with a Focus, the Run's `result.focus` is `{ judged, gated, cached, unjudged, credits }`. - Skipped Videos: a Creator's `off_focus_new_videos` counts the new Videos skipped as off focus. - Hidden Videos: `off_focus_unreported` counts the off-focus Videos a cycle with no Change Report hid, carried into the next report's `off_focus_count`. **Price:** 6 credits for a creator, 30 credits for an advertiser, plus 20 credits per new video when the Tracker opted into analysis (per new Ad, on its own Run, for an advertiser); a TikTok advertiser's new Ads' detail reads beyond 10 at 3 credits each, quoted at worst (every running Ad new, at most 300). Same price as a scheduled cycle. Parameters: - `id` (path) required - `Idempotency-Key` (header) - `estimate` (query) — Return `{ estimate_credits, cached, per_cycle }`, the cycle's floor price, and run nothing. - `max_credits` (query) Responses: - `200` — `{ run, tracker, change_report, intelligence_run }`. ### [`PUT /v1/trackers/{id}/focus`](https://www.shortsintel.com/docs/reference/trackers/set-tracker-focus.md) — Set or clear a tracker's focus Sets the Tracker's Focus and judges its latest Sample against it now, as a Run, so `sample` already shows the new verdicts. For a Creator, `sample` is `recent_videos`, its newest Videos. - Versions: each edit is a new version. Older Change Reports keep the verdicts they were built on, and going back to an earlier Focus reuses its verdicts. - Clearing: `null` clears it, and reads show every Video again. - Unsupported kinds: 422 `focus_unsupported_kind`, which lists the kinds that can. **Price:** +3 credits per Video the model judges, +1 credit per Video `must_mention` rules out; nothing for a Video already judged under this Focus (a preview included) or one that could not be judged. Clearing is free. Parameters: - `id` (path) required - `Idempotency-Key` (header) - `estimate` (query) — Return `{ estimate_credits, cached, videos, to_judge }`: every Video of the latest Sample not yet judged under this Focus at the model price. - `max_credits` (query) Body fields: - `focus` required — The new Focus, or null to clear it (free). - `estimate` — `true` returns `{ estimate_credits, cached }`, creates no Run and charges nothing. Responses: - `200` — `{ run, tracker, sample }`; `run` is null and `sample` absent when the Focus was cleared. ### [`POST /v1/trackers/{id}/focus/preview`](https://www.shortsintel.com/docs/reference/trackers/preview-tracker-focus.md) — Preview a focus on a tracker Judges a proposed Focus on the Tracker's latest Sample without saving it: every Video with its verdict and reason, and how many would be hidden. - Setting it later: its verdicts are kept under that Focus, so setting it afterwards with `PUT /v1/trackers/{id}/focus` costs nothing more. - Unsupported kinds: 422 `focus_unsupported_kind`, which lists the kinds that can. **Price:** As setting the Focus: +3 credits per Video the model judges, +1 credit per Video `must_mention` rules out, nothing for a Video already judged under it. Parameters: - `id` (path) required - `Idempotency-Key` (header) - `estimate` (query) — Return `{ estimate_credits, cached, videos, to_judge }` and judge nothing. - `max_credits` (query) Body fields: - `focus` required — The Focus to judge, not saved. - `estimate` — `true` returns `{ estimate_credits, cached }`, creates no Run and charges nothing. Responses: - `200` — `{ run, focus, sample }`; `sample` is null when the Tracker has no Sample yet. ### [`GET /v1/trackers/{id}/snapshots`](https://www.shortsintel.com/docs/reference/trackers/list-tracker-snapshots.md) — Read a target's snapshots The shared Snapshots of this Tracker's target, newest first — not copies owned by this Tracker, so rows written by another Customer's cycle or by a plain lookup are all here. A Keyword Tracker on Instagram or Facebook marks each Snapshot `coverage: "partial"`: their search is a best-effort index. **Price:** Free. Parameters: - `id` (path) required - `limit`, `cursor` (query) Responses: - `200` — `{ items, next_cursor }`. ### [`GET /v1/trackers/{id}/changes`](https://www.shortsintel.com/docs/reference/trackers/list-tracker-changes.md) — List change reports This Tracker's Change Reports, newest first, readable after the Tracker is deleted. Quiet cycles are absent by design: no report means nothing tripped. Each item is `{ id, tracker_id, run_id, cycle_key, triggers, changes, summary, created_at }`. `changes` has one key per tripped trigger, with before/after numbers. Creator changes - `followers`: `{ before, after, change, change_pct }` - `new_videos`: `{ since, count, videos }` - `outliers` and `velocity`: lists whose entries carry `before` (null for a video new to the Tracker) and `after`. History is at `GET /v1/videos/{platform}/{id}/snapshots`. - `became_ad`: entries `{ id, url, before, after }`, each side the Video's `{ is_ad, paid_partnership }`. `before` is null when not reported. - `bio_link_changed`: `{ before, after }` link lists. - `verified_changed`: `{ before, after }` booleans. - Firing: `became_ad`, `bio_link_changed` and `verified_changed` fire once, on the transition, only when the Platform reported the value on both sides. `became_ad` also counts an unreported `before`. Advertiser changes - `new_ads`: `{ since, count, ads }` - `stopped_ads`: `{ count, ads }`. An Ad gone from Meta's library counts, with `removed_from_library: true`. - `variant_growth`: entries `{ before, after, added }` - `new_countries_or_placements`: entries `{ countries, placements }`, only what is new. - `truncated: true`: the cycle hit its page cap with Ads unread. - `incomplete: true`: the library failed part-way. The Run's result says so too. - Ad entries: every one carries `id`, `library_id` and its Ad Library `url`. - TikTok `new_ads`: entries add `targeting` `{ countries, ages, genders }`, `landing_page` and `cta` (null when not read). - TikTok `reach_growth`: `{ count, ads }`, each `{ before, after }` audience buckets. - TikTok analysis: a new Ad's analysis is read from its Ad lookup, as on Meta. Hashtag and Keyword changes - `median_views`: `{ before, after, change, change_pct, sample_based: true }` - `new_top_videos`: `{ since, count, videos }`, each `{ id, url, views }` - Coverage: a Keyword Tracker on Instagram or Facebook marks each report `coverage: "partial"`. Sound changes - `video_count`: `{ before, after, change, change_pct }`, rises only. - `new_top_video`: `{ since, before, after }`, each side `{ id, url, views }` With a Focus - Filtered lists: `changes` lists only in-focus and unjudged Videos and `off_focus_count` counts the rest. Stats stay full-Sample. - Seeing the rest: `include_off_focus=true` adds them as `off_focus_videos`, each with `focus: { verdict, reason }`. - Off-focus-only cycles: a cycle whose only news is off focus writes no report and sends no webhook. Its Run's result records `off_focus_unreported`, and those Videos count in the next report's `off_focus_count`. **Price:** Free. Parameters: - `id` (path) required - `limit`, `cursor` (query) - `include_off_focus` (query) — `true`: each report with a Focus also lists the off-focus Videos it hid, as `off_focus_videos`, each with `focus: { verdict, reason }`. Responses: - `200` — `{ items, next_cursor }`. ## [Collections](https://www.shortsintel.com/docs/reference/collections) Named sets of Trackers of one kind, such as Competitors or Our accounts. A Tracker can sit in several and is still charged once per cycle; a Collection holds no state of its own. ### [`POST /v1/collections`](https://www.shortsintel.com/docs/reference/collections/create-collection.md) — Create a collection of one kind Creates a named Collection of one kind, empty or with `tracker_ids` you already have (all or nothing). The kind is fixed; members may come from any Platform. At most 50 per Customer. **Price:** Free. Body fields: - `name` required — Unique among your Collections, regardless of case. - `kind` required — What every member will be. - `tracker_ids` — Trackers you already have to put in it at once, all of `kind`. Responses: - `201` — `{ collection }`. ### [`GET /v1/collections`](https://www.shortsintel.com/docs/reference/collections/list-collections.md) — List your collections The Customer's Collections, newest first, with member counts. **Price:** Free. Parameters: - `limit`, `cursor` (query) - `kind` (query) — `creator`, `hashtag`, `sound` or `advertiser`; `video` (deprecated) lists any remaining Video Collections. Responses: - `200` — `{ items, next_cursor }`. ### [`GET /v1/collections/{id}`](https://www.shortsintel.com/docs/reference/collections/get-collection.md) — Read one collection One Collection. Another Customer's id is a 404, never a 403. **Price:** Free. Parameters: - `id` (path) required — Collection id. Responses: - `200` — `{ collection }`. ### [`PATCH /v1/collections/{id}`](https://www.shortsintel.com/docs/reference/collections/rename-collection.md) — Change a collection's name Renames the Collection. Its kind never changes. **Price:** Free. Parameters: - `id` (path) required — Collection id. Body fields: - `name` required — The new name, 1 to 100 characters, unique among your Collections regardless of case (else 409 `collection_name_taken`). Responses: - `200` — `{ collection }`. ### [`DELETE /v1/collections/{id}`](https://www.shortsintel.com/docs/reference/collections/delete-collection.md) — Delete a collection, optionally its trackers Deletes the Collection. Its Trackers keep running unless `delete_trackers=true`, which deletes the members that sit in no other Collection. The response always lists the former members still active, which are still charged every cycle. **Price:** Free. Parameters: - `id` (path) required — Collection id. - `delete_trackers` (query) — Also delete member Trackers that are in no other Collection. Responses: - `200` — `{ collection, deleted_trackers, trackers_still_active }`. ### [`GET /v1/collections/{id}/members`](https://www.shortsintel.com/docs/reference/collections/list-collection-members.md) — Rank the members The members ranked, highest first, on their latest Snapshot and Scores, with each member's Tracker and its state. Nothing is fetched: a member that has not cycled yet ranks last with nulls. **Price:** Free. Parameters: - `id` (path) required — Collection id. - `order_by` (query) — `followers`, `median_views`, `outlier` or `views`. - `platforms` (query) — Comma-separated, or repeated. - `limit`, `cursor` (query) Responses: - `200` — `{ order_by, items, next_cursor }`. ### [`GET /v1/collections/{id}/changes`](https://www.shortsintel.com/docs/reference/collections/list-collection-changes.md) — Read members' change reports Every member's Change Reports in one feed, newest first, each naming its member's platform and target. A Tracker in several Collections appears in each one's feed. Quiet cycles are absent by design. `include_off_focus=true` lists each Focus report's hidden Videos, as on a Tracker's changes. **Price:** Free. Parameters: - `id` (path) required — Collection id. - `since` (query) — Only reports written after this ISO 8601 instant. - `limit`, `cursor` (query) - `include_off_focus` (query) — `true`: each report with a Focus also lists the off-focus Videos it hid, as `off_focus_videos`, each with `focus: { verdict, reason }`. Responses: - `200` — `{ items, next_cursor }`. ### [`POST /v1/collections/{id}/members`](https://www.shortsintel.com/docs/reference/collections/add-collection-member.md) — Add a member Puts a Tracker in the Collection: by `tracker_id`, or by `platform` and `target`. - Existing Tracker: attached as it is. A paused one stays paused, as the response shows. - Untracked target: gets a new Tracker whose first cycle runs now. - Other kinds: refused. - Duplicates: not an error. - Video Collections: Video is no longer a trackable kind, so a video Collection takes only Video Trackers you have, by `tracker_id`. A target is 400 `kind_deprecated`. - Advertiser Collections: they hold Meta and TikTok Advertisers. `platform` omitted or `meta` takes a Facebook Page id, Page URL or name. `tiktok` takes a TikTok ad library advertiser id, library URL or name, as on `POST /v1/trackers`. - Ambiguous name: 409 `advertiser_ambiguous` when several carry the name. **Price:** Free, except a target not tracked yet: its first cycle, 6 credits for a creator, 3 credits for a hashtag, 6 credits for a sound, 3 credits for a keyword, 30 credits for an advertiser. Parameters: - `id` (path) required — Collection id. - `estimate` (query) — Return `{ estimate_credits, cached, already_tracking, tracker_id, per_cycle }` and change nothing: zero when the target is already tracked, else one cycle, the first. - `max_credits` (query) Body fields: - `tracker_id` — A Tracker you already have. - `platform` — With `target`, instead of `tracker_id`: the platform the target lives on, as `POST /v1/trackers` takes it for the Collection's kind. - `target` — With `platform`, instead of `tracker_id`: the handle, tag, sound id, search phrase or advertiser to track, as `POST /v1/trackers` takes it. - `kind` — Must match the Collection's kind. - `intelligence` — With `platform` and `target`: analyse each new video (or new Ad) the new Tracker's cycles find, charged per item. - `estimate` — As in the query. Responses: - `201` — `{ collection, tracker, added: true, created, run, intelligence_run }` — `run` is the first cycle when this call started tracking the target; `intelligence_run` the Run analysing an opted-in advertiser's new Ads, or null. - `200` — Already a member: the same body with `added: false`. ### [`DELETE /v1/collections/{id}/members/{tracker_id}`](https://www.shortsintel.com/docs/reference/collections/remove-collection-member.md) — Remove a member Takes the Tracker out of the Collection. The Tracker itself is untouched: same state, same cycles, same other Collections. Delete the Tracker to stop tracking. **Price:** Free. Parameters: - `id` (path) required — Collection id. - `tracker_id` (path) required — The member Tracker's id. Responses: - `200` — `{ collection, tracker }`. ### [`POST /v1/collections/{id}/actions`](https://www.shortsintel.com/docs/reference/collections/act-on-collection.md) — Act on every member Pause, resume, refresh or switch analysis for every live member Tracker at once. - Shared members: a Collection holds no state, so the action writes through to each Tracker, for all its Collections. Pausing "Competitors" also pauses a creator you track for "Influencers". - Finding them: every answer lists them in `trackers_in_other_collections` (for `refresh`, in the Run result and the estimate). - Free actions: `pause`, `resume` and `intelligence` are free, answer at once and are not Runs. - Active limit: `resume` resumes nothing when the batch would pass the active-Tracker limit. - Refresh: `refresh` runs every member's cycle now, paused ones included, as one Run with one item per member. - Refresh failures: failed members are uncharged, some failing makes the Run partial, all failing makes it failed and free. **Price:** Free, except `refresh`: one cycle per member refreshed, 6 credits for a creator, 30 credits for an advertiser, plus 20 credits per new video on members with analysis on. Parameters: - `id` (path) required — Collection id. - `wait` (query) — Seconds to hold the response open before handing back a running Run to poll. - `estimate` (query) — `true` returns `{ estimate_credits, cached }` from what is already stored, creating no Run. - `max_credits` (query) - `Idempotency-Key` (header) Body fields: - `action` required — `pause` or `resume` every member; `refresh` runs every member's cycle now (a paid Run); `intelligence` switches analysis of new videos on or off for every member. - `intelligence` — Required with `intelligence`: true switches analysis on, false off. - `wait` - `estimate` — `true` returns `{ estimate_credits, cached }`, creates no Run and charges nothing. Responses: - `200` — `pause`, `resume`, `intelligence`: `{ action, collection, trackers, changed_tracker_ids, trackers_in_other_collections }`. - `202` — `refresh` still running: `{ run, trackers_in_other_collections }`. ## [Runs](https://www.shortsintel.com/docs/reference/runs) Every charged operation creates a Run; free reads and edits do not. Re-read one to poll a long operation or to fetch a result you already paid for; re-reads are always free. ### [`GET /v1/runs`](https://www.shortsintel.com/docs/reference/runs/list-runs.md) — List your recent runs The Customer's recent Runs with their charges, newest first. **Price:** Free. Parameters: - `limit`, `cursor` (query) - `status` (query) — `running`, `completed`, `partial` or `failed`. - `kind` (query) — Filter by run kind, as `run.kind` carries it: `video_lookup`, `video_search`, `video_intelligence`, `video_score`, `video_comments`, `video_comment_replies`, `creator_lookup`, `hashtag_lookup`, `keyword_lookup`, `sound_lookup`, `ads_search`, `ad_lookup`, `advertiser_lookup`, `research`, `research_refresh`, `tracker_cycle`, `collection_refresh`, `creator_videos`, `focus_judgment`. Responses: - `200` — `{ items, next_cursor }`. ### [`GET /v1/runs/{id}`](https://www.shortsintel.com/docs/reference/runs/get-run.md) — Poll or re-read a run Re-reads one Run in the same envelope the original call returned. This is both the poll endpoint for a Run that outlived its wait budget and the permanent free re-read; it never charges and never re-runs the work. Another Customer's Run id is a 404, not a 403. **Price:** Free. Parameters: - `id` (path) required — Run id. - `wait` (query) — Seconds to hold the response while the Run runs: 200 once it settles, else 202 with poll hints. Responses: - `200` — `{ run, result }` for a completed or partial Run. - `202` — `{ run }` while the Run is still running. ### [`GET /v1/runs/{id}/items`](https://www.shortsintel.com/docs/reference/runs/list-run-items.md) — List what a run delivered The items a Run delivered, each with its own status, charge and — when it failed — the problem body explaining why. This is how a `partial` Run says what did and did not arrive. **Price:** Free: the charge happened once, when the work did. Parameters: - `id` (path) required — Run id. - `limit`, `cursor` (query) - `type` (query) — `videos`, `creators`, `hashtags`, `sounds` or `ads` (singular accepted too). Responses: - `200` — `{ items, next_cursor }`. ## [Account](https://www.shortsintel.com/docs/reference/account) Prepaid balance and the spend log. ### [`GET /v1/account/balance`](https://www.shortsintel.com/docs/reference/account/get-balance.md) — Read your Credit balance The Customer's prepaid Balance in Credits, and each unexpired Grant (such as the Starter Grant) with its remaining Credits and expiry. Grants are part of the Balance and are spent first. **Price:** Free. Responses: - `200` — `{ balance_credits, grants }`. ### [`GET /v1/account/usage`](https://www.shortsintel.com/docs/reference/account/get-usage.md) — Read your spend log The spend log, newest first: one row per charged Run (its `charge` ledger entry). Top-ups and other credits are not spend and are not listed. The Balance is `GET /v1/account/balance`. Each row is `{ id, kind, amount_credits, balance_after_credits, created_at, run }`. - `amount_credits`: signed as stored, so a charge is negative. - `balance_after_credits`: the Balance once it applied. - `run`: `{ id, kind, status, charge_credits, list_price_credits, cached }`, to audit list against charged price per Run. - `total_charged_credits`: every charge on the account, not just this page. - Amounts: whole numbers of Credits. **Price:** Free. Parameters: `limit`, `cursor` (query) Responses: - `200` — `{ items, next_cursor, total_charged_credits }`, one item per charge with the Run behind it. ## [Webhooks](https://www.shortsintel.com/docs/reference/webhooks) Signed HTTP callbacks for `run.completed` and `tracker.changed`, with a delivery log and replay. The signature header, event types and payload are described under 'Webhook delivery and verification' in llms-full.txt and in the OpenAPI `webhooks` section. ### [`POST /v1/webhooks`](https://www.shortsintel.com/docs/reference/webhooks/create-webhook.md) — Register a webhook endpoint Registers an endpoint and immediately proves it with a signed `webhook.test` event. - Status: `active` when the test got a 2xx, else `failed`. A failed endpoint receives no events until deleted and re-registered. - Secret: the `secret` appears in this response and nowhere else, ever. - Access: Owner or admin only: a MEMBER's key or connection gets 403 `forbidden`. **Price:** Free. Body fields: - `url` required — HTTPS only; private ranges are refused. - `description` — A label of your own for the endpoint, returned on reads; trimmed and cut to 200 characters. Responses: - `201` — `{ webhook, secret, test_delivery }`. ### [`GET /v1/webhooks`](https://www.shortsintel.com/docs/reference/webhooks/list-webhooks.md) — List webhook endpoints The Customer's endpoints, newest first. Secrets are never included. **Price:** Free. Parameters: `limit`, `cursor` (query) Responses: - `200` — `{ items, next_cursor }`. ### [`GET /v1/webhooks/{id}`](https://www.shortsintel.com/docs/reference/webhooks/get-webhook.md) — Get a webhook endpoint One endpoint. **Price:** Free. Parameters: - `id` (path) required — Webhook endpoint id. Responses: - `200` — `{ webhook }`. ### [`DELETE /v1/webhooks/{id}`](https://www.shortsintel.com/docs/reference/webhooks/delete-webhook.md) — Delete a webhook endpoint Stops delivering and frees a slot. The endpoint is tombstoned rather than removed, so the delivery history stays readable afterwards. Owner or admin only: a MEMBER's key or connection gets 403 `forbidden`. **Price:** Free. Parameters: - `id` (path) required — Webhook endpoint id. Responses: - `200` — `{ webhook }`. ### [`POST /v1/webhooks/{id}/rotate`](https://www.shortsintel.com/docs/reference/webhooks/rotate-webhook-secret.md) — Rotate a signing secret Mints a new signing secret. The old one keeps working for 24 h. - Overlap: during that window every delivery is signed with both. The header carries two `v1=` values over the same `t` and body. - Verifiers: a verifier written the documented way (does any `v1` match?) needs no change at all. - Access: Owner or admin only: a MEMBER's key or connection gets 403 `forbidden`. **Price:** Free. Parameters: - `id` (path) required — Webhook endpoint id. Responses: - `200` — `{ webhook, secret, overlap_expires_at }` — `secret` shown once. ### [`GET /v1/webhooks/{id}/deliveries`](https://www.shortsintel.com/docs/reference/webhooks/list-webhook-deliveries.md) — List deliveries What we sent and how it went, newest first. The row carries the response status and error text but not the payload — the payload is reachable through the event's own `links`. **Price:** Free. Parameters: - `id` (path) required — Webhook endpoint id. - `limit`, `cursor` (query) - `status` (query) — `pending`, `delivered` or `failed`. Responses: - `200` — `{ items, next_cursor }`. ### [`POST /v1/webhooks/{id}/deliveries/{deliveryId}/replay`](https://www.shortsintel.com/docs/reference/webhooks/replay-webhook-delivery.md) — Replay a delivery Queues a new delivery row carrying the same event id and the same body. - Duplicates: the stable event id lets a receiver that did eventually process the original recognise the replay as a duplicate. - Log: the new row keeps "we failed on Tuesday, you replayed on Thursday" visible in the log. - Access: Owner or admin only: a MEMBER's key or connection gets 403 `forbidden`. **Price:** Free. Parameters: - `id` (path) required — Webhook endpoint id. - `deliveryId` (path) required — Delivery id to replay. Responses: - `202` — `{ delivery }` — queued. ## MCP tools Endpoint: `https://www.shortsintel.com/api/mcp`, streamable HTTP, stateless. Authenticate with `Authorization: Bearer sk_live_...` or connect over OAuth 2.1. Tools wait up to 60 s inline, then hand back a run id for `get_run`. Every paid tool accepts `estimate`, and an optional `idempotency_key`: a retry with the same key returns the original Run and is not charged again. Setup for Claude.ai, Claude Code, Cursor and VS Code, and each tool's full description: https://www.shortsintel.com/docs/mcp.md. **Hints:** names the annotation hints that are true; an unlisted one is false. - `research` — Research a niche. 1,036 credits for up to 50 enriched videos, then 20 credits each, at most 4,036 credits **Hints:** openWorldHint - `get_research` — Read a research. Free **Hints:** readOnlyHint, idempotentHint - `breakdown` — Creator Breakdown. 9 credits per creator plus 20 credits per video analysed, at most 4,090 credits **Hints:** openWorldHint - `search_videos` — Search videos. 3 credits per platform per page (9 credits for the default three); +20 credits per video analysed with intelligence=true (top 20); focus +3 credits per video judged, +1 credit per must_mention rejection **Hints:** openWorldHint - `get_video` — Get a video. 3 credits plain; include intelligence 23 credits instead; transcript only 10 credits instead; download 3 credits alone, else +3 credits **Hints:** openWorldHint - `get_comments` — Get a video's comments. 3 credits per page; +10 credits with analyze **Hints:** openWorldHint - `get_comment_replies` — Get a comment's replies. 3 credits per page **Hints:** openWorldHint - `score_video` — Score a video. 9 credits **Hints:** openWorldHint - `get_creator` — Get a creator. 6 credits; videos pages 3 credits; intelligence=true: free page, +20 credits per analysed video (top 20) **Hints:** openWorldHint - `get_hashtag_or_sound` — Get a hashtag or sound. hashtag 3 credits, sound 6 credits **Hints:** openWorldHint - `get_keyword` — Get a keyword. 3 credits; focus +3 credits per video judged, +1 credit per must_mention rejection **Hints:** openWorldHint - `search_ads` — Search ad libraries. Meta 1 credit per Ad delivered, +20 credits per Ad analysed (computed or stored); TikTok 3 credits per page **Hints:** openWorldHint - `get_ad` — Get an Ad or Advertiser. Ad 3 credits, +20 credits with analyze (Meta); Advertiser 15 credits (Meta or TikTok); TikTok Ad 3 credits **Hints:** openWorldHint - `track` — Track a target. Per cycle, first on create: creator 6, hashtag 3, keyword 3, sound 6, advertiser 30 credits; +20 credits per new video or Ad analysed; focus +3 credits per video judged, +1 credit per must_mention rejection **Hints:** openWorldHint - `list_trackers` — List trackers. Free **Hints:** readOnlyHint, idempotentHint - `get_tracker` — Get a tracker. Free **Hints:** readOnlyHint, idempotentHint - `set_tracker_state` — Pause or resume a tracker. Free **Hints:** idempotentHint - `set_tracker_intelligence` — Switch tracker analysis on or off. Free **Hints:** idempotentHint - `set_tracker_focus` — Set, clear or preview a tracker's focus. +3 credits per video judged, +1 credit per must_mention rejection; nothing for one already judged; clearing is free **Hints:** idempotentHint - `delete_tracker` — Delete a tracker. Free **Hints:** destructiveHint, idempotentHint - `get_changes` — Get change reports. Free **Hints:** readOnlyHint, idempotentHint - `list_collections` — List collections. Free **Hints:** readOnlyHint, idempotentHint - `create_collection` — Create a collection. Free **Hints:** none - `rename_collection` — Rename a collection. Free **Hints:** idempotentHint - `delete_collection` — Delete a collection. Free **Hints:** destructiveHint, idempotentHint - `add_to_collection` — Add to a collection. Free for a Tracker you have; a new target runs its first cycle: creator 6, hashtag 3, keyword 3, sound 6, advertiser 30 credits; +20 credits per new video analysed **Hints:** openWorldHint - `remove_from_collection` — Remove from a collection. Free **Hints:** idempotentHint - `act_on_collection` — Act on every member. Free for pause, resume, intelligence; refresh is a cycle per member: creator 6, hashtag 3, keyword 3, sound 6, advertiser 30 credits; +20 credits per new video analysed **Hints:** openWorldHint - `get_run` — Get a run. Free **Hints:** readOnlyHint, idempotentHint - `get_usage` — Get usage. Free **Hints:** readOnlyHint, idempotentHint - `get_balance` — Get balance. Free **Hints:** readOnlyHint, idempotentHint ## Webhook delivery and verification Register an endpoint with `POST /v1/webhooks`; the response shows its `whsec_...` secret once. Events: - [`run.completed`](https://www.shortsintel.com/docs/reference/events/run.completed) — A Run reached a terminal state: completed, partial or failed. The type is `run.completed` for all three; branch on `status` in the payload. - [`tracker.changed`](https://www.shortsintel.com/docs/reference/events/tracker.changed) — A Tracker cycle produced a Change Report. Quiet cycles send nothing. The report's `triggers` name what tripped: on a Creator Tracker `new_videos`, `followers`, `outlier`, `velocity`, `became_ad`, `bio_link_changed` and `verified_changed`; on Hashtag and Keyword Trackers `median_views` and `new_top_videos`; on Sound Trackers `video_count` and `new_top_video`; on Advertiser Trackers `new_ads`, `stopped_ads`, `variant_growth`, `new_countries_or_placements` and, on TikTok, `reach_growth`. - [`webhook.test`](https://www.shortsintel.com/docs/reference/events/webhook.test) — Sent once when an endpoint is registered, to prove it. A 2xx makes the endpoint `active`. - Each delivery is a `POST` with `Content-Type: application/json` and `User-Agent: ShortsIntel-Webhooks/1`. - `X-ShortsIntel-Signature: t=,v1=` — `v1` is HMAC-SHA256, keyed with your endpoint secret (`whsec_...`), over the string `"."`. Verify against the raw bytes before parsing JSON. - Accept the delivery when ANY `v1` matches: during the 24 h after a secret rotation the header carries two `v1` values (new first), one per secret. Reject a `t` more than 300 s from your clock to refuse replays. - `X-ShortsIntel-Event-Id` repeats the event id and `X-ShortsIntel-Event-Type` the dotted event type, so you can route and dedupe without parsing the body. - The payload is thin: identifiers and links, never a Run's result. Fetch the detail with `links`. - Only a 2xx acknowledges. Each attempt has a 10 s timeout and redirects are not followed. Three attempts in all: immediately, then about 10 minutes and about 60 minutes after the first. After that the delivery is `failed` and can be replayed with `POST /v1/webhooks/{id}/deliveries/{deliveryId}/replay`, which re-sends the same event id and body with a fresh signature. Payload fields: - `id` (string) — Event id, `evt_...`. Stable for one fact: a replay or a re-emission carries the same id, so dedupe on it. - `type` (string) — `run.completed`, `tracker.changed` or `webhook.test`. - `created_at` (string (date-time)) — When the event was created. - `run_id` (string | null) — The Run behind the event. - `kind` (string | null) — The Run's kind, lower case, e.g. `research`. - `status` (string | null) — `completed`, `partial` or `failed`. - `charge_credits` (number | null) — What the Run cost, as `GET /v1/runs/{id}` shows it. - `tracker_id` (string | null) — On `tracker.changed`. - `change_report_id` (string | null) — On `tracker.changed`. - `collections` (array of { id, name } (optional)) — On `tracker.changed` only: the Collections the Tracker sits in as of the event, by id and name, so you can route changes without a lookup. Absent on other events. - `off_focus_count` (number (optional)) — On `tracker.changed` for a Tracker with a Focus only: how many off-focus Videos the Change Report hid. The report's Videos are at `links.changes`. - `links` (object) — Absolute URLs to fetch the detail with your own key: `run`, `tracker`, `changes`, and `webhook` on a test event. Verify in Node: ```js import { createHmac, timingSafeEqual } from "node:crypto"; function verify(rawBody, header, secret) { if (!header) return false; const parts = header.split(",").map((p) => p.trim().split("=")); const t = Number(parts.find(([k]) => k === "t")?.[1]); if (!t || Math.abs(Date.now() / 1000 - t) > 300) return false; const expected = createHmac("sha256", secret).update(`${t}.${rawBody}`).digest(); return parts .filter(([k]) => k === "v1") .some(([, v]) => { const got = Buffer.from(v, "hex"); return got.length === expected.length && timingSafeEqual(got, expected); }); } ``` ## Concept guides The rules behind the endpoints, one markdown page each (llms.txt says what each covers). Read [Runs](https://www.shortsintel.com/docs/concepts/runs.md) before polling or retrying. [Runs](https://www.shortsintel.com/docs/concepts/runs.md), [Pricing and estimates](https://www.shortsintel.com/docs/concepts/pricing-and-estimates.md), [Analysis](https://www.shortsintel.com/docs/concepts/analysis.md), [Scores](https://www.shortsintel.com/docs/concepts/scores.md), [Research](https://www.shortsintel.com/docs/concepts/research.md), [Creator Breakdown](https://www.shortsintel.com/docs/concepts/creator-breakdown.md), [Errors](https://www.shortsintel.com/docs/concepts/errors.md), [Authentication and limits](https://www.shortsintel.com/docs/concepts/authentication-and-limits.md), [Trackers](https://www.shortsintel.com/docs/concepts/trackers.md), [Webhooks](https://www.shortsintel.com/docs/concepts/webhooks.md), [Addressing videos and creators](https://www.shortsintel.com/docs/concepts/addressing.md), [Pagination](https://www.shortsintel.com/docs/concepts/pagination.md), [Platforms and coverage](https://www.shortsintel.com/docs/concepts/platforms-and-coverage.md), [Data and retention](https://www.shortsintel.com/docs/concepts/data-and-retention.md), [Ads](https://www.shortsintel.com/docs/concepts/ads.md) ## Error codes Each code, with its HTTP status, has a page (meaning, causes, what to do) listed at https://www.shortsintel.com/docs/reference/errors. - 401: `missing_authorization`, `invalid_key`, `key_revoked`, `key_expired`, `invalid_token`, `connection_revoked` - 403: `organization_not_selected`, `organization_access_revoked`, `forbidden`, `key_scope_insufficient` - 400: `invalid_request`, `unsupported_platform`, `kind_deprecated` - 422: `unsupported_kind`, `focus_unsupported_kind`, `video_too_long` - 404: `not_found`, `comment_not_found` - 409: `idempotency_conflict`, `run_not_ready`, `advertiser_ambiguous`, `tracker_limit_exceeded`, `webhook_limit_exceeded`, `webhook_rotation_in_progress`, `collection_limit_exceeded`, `collection_name_taken`, `collection_kind_mismatch` - 402: `insufficient_balance`, `max_credits_exceeded`, `key_spend_cap_exceeded` - 429: `rate_limit_exceeded`, `concurrency_limit_exceeded` - 502: `media_unavailable`, `vendor_error` - 503: `source_unavailable`, `service_unavailable` - 500: `internal_error` ## Terms and data - ShortsIntel processes public short-form video data under legitimate interest. See the privacy policy. - Media files are deleted after the analysis pass; a copy made for a download link (`include=download`) after 7 days. Raw comments are purged after 90 days; the analysis is kept and never carries usernames. - Derived works — the analyses, reports, scores and dashboards you build on the output — are allowed, including commercially. - Republishing bulk raw records, reselling or mirroring the dataset, and using the data to target or profile individuals are prohibited. Each Platform's own terms still apply. Contact: support@shortsintel.com Terms: https://www.shortsintel.com/terms — Privacy: https://www.shortsintel.com/privacy