Skip to content
For AI agents: a documentation index is available at /llms.txt. Every docs page is also available as markdown: add .md to its URL. To connect, read /agents.md.

Concepts

Pagination

How lists page with items and a cursor, and how to read every page without paying twice.

Shape
Each page is an items array and a next_cursor.
Last page
next_cursor is null. There is no page number or total.
Page size
limit is 25 by default and 100 at most on lists over stored results. Paid lists set their own ceiling.
Price
Lists over stored results are free. A hashtag's videos cost 3 credits per page, a sound's 6 credits per page.

Lists in this API page with an items array and a next_cursor. Pass the cursor back to get the next page. When it comes back null, you have every page. There is no page number, no total count and no offset.

A page is items and a cursor

200 · `{ items, next_cursor }`. With `intelligence=true`, the Run envelope `{ run, result }` instead, `result` being the page with `intelligence` on each analysed video (or `{ estimate_credits, ... }` with `estimate=true`).

{
  "items": [
    {
      "platform": "tiktok",
      "id": "7300000000000000000",
      "url": "https://www.tiktok.com/@someone/video/7300000000000000000",
      "description": "3 minutes at 4°C every morning for 30 days. Here is what actually changed. #coldplunge #recovery",
      "posted_at": "2026-09-05T06:32:11.000Z",
      "duration_seconds": 41,
      "thumbnail_url": "https://p16-sign.tiktokcdn.com/obj/tos-cover-7300000000000000000.jpeg",
      "hashtags": [
        "coldplunge",
        "recovery",
        "morningroutine"
      ],
      "sound": {
        "id": "7180000000000000000",
        "title": "original sound - someone",
        "author": "someone",
        "is_original": true
      },
      "creator": {
        "id": "cre_9d4b2a7f1c",
        "handle": "someone",
        "name": "Someone",
        "follower_count": 184300,
        "avatar_url": "https://p16-sign.tiktokcdn.com/obj/tos-avatar-someone.jpeg",
        "verified": false
      },
      "region": "US",
      "language": "en",
      "title": null,
      "commerce": {
        "is_ad": false,
        "paid_partnership": null,
        "affiliate": null,
        "shop_url": null,
        "anchors": [
          {
            "kind": "54",
            "label": "CapCut · Editing made easy"
          }
        ]
      },
      "people": {
        "mentions": [
          "coldplungeco"
        ],
        "collaborators": []
      },
      "location": null,
      "topics": {
        "keywords": [],
        "genre": null,
        "labels": [
          "Fitness",
          "Health"
        ]
      },
      "chapters": null,
      "ai_generated": false,
      "snapshot": {
        "at": "2026-09-08T09:14:04.219Z",
        "views": 1284000,
        "likes": 143200,
        "comments": 2810,
        "shares": 9040,
        "saves": 21600
      },
      "scores": {
        "outlier": 4.21,
        "outlier_p90": 1.6,
        "percentile": 95,
        "velocity": {
          "views_per_hour": 6698.6,
          "window": "snapshot"
        },
        "reason": null,
        "baseline": {
          "median_views": 305000,
          "p90_views": 802000,
          "engagement_rate": 0.1342,
          "posts_per_week": 4.1,
          "sample": 20,
          "confidence": "high",
          "source": "videos",
          "computed_at": "2026-09-08T09:14:03.902Z",
          "stale": false
        }
      }
    },
    {
      "platform": "tiktok",
      "id": "7300000000000000042",
      "url": "https://www.tiktok.com/@anotherone/video/7300000000000000042",
      "description": "I tried cold plunging before every workout for a week. #coldplunge",
      "posted_at": "2026-09-06T13:04:52.000Z",
      "duration_seconds": 28,
      "thumbnail_url": "https://p16-sign.tiktokcdn.com/obj/tos-cover-7300000000000000042.jpeg",
      "hashtags": [
        "coldplunge",
        "gym"
      ],
      "sound": {
        "id": "7180000000000000099",
        "title": "Winter Air",
        "author": "Northbound",
        "is_original": false
      },
      "creator": {
        "id": "cre_1a77c0b3de",
        "handle": "anotherone",
        "name": "Another One",
        "follower_count": 21400,
        "avatar_url": null,
        "verified": null
      },
      "region": "GB",
      "language": "en",
      "title": null,
      "commerce": {
        "is_ad": false,
        "paid_partnership": null,
        "affiliate": null,
        "shop_url": null,
        "anchors": []
      },
      "people": null,
      "location": null,
      "topics": null,
      "chapters": null,
      "ai_generated": null,
      "snapshot": {
        "at": "2026-09-08T09:14:04.219Z",
        "views": 96200,
        "likes": 8140,
        "comments": 212,
        "shares": 401,
        "saves": 1180
      },
      "scores": null
    }
  ],
  "next_cursor": "eyJpZCI6ImNsdjRxOHkifQ"
}

next_cursor is a string when there is more and null when there is not. Do not test the length of items to decide whether to stop. A full page can still be the last one, and an empty page can still carry a cursor. The cursor is the only signal.

When to walk every page

Walk a list to the end when you need all of it, such as every video a creator posted or every item of a Run. Read only the first page when the newest rows are enough.

The research list reads are the exception. They page with limit and offset and report a total, because a research is a fixed set. See Research.

How a cursor works

A cursor is an opaque token. It is not an id, an offset or a timestamp, and what it encodes differs by operation. A simple list holds one keyset position. A cross-platform search holds one position per platform, since one page there is one request per platform.

Do not construct, decode or edit a cursor. A cursor that cannot be read is an invalid_request problem.

A cursor belongs to the list it came from. A cursor from GET /v1/runs means nothing to GET /v1/runs/{id}/items. Keep each cursor with the loop that produced it and discard it when the loop ends.

Keyset paging is stable under inserts. Rows added while you walk do not shift the pages you have already read, as they would with an offset. New rows at the top of a newest-first list are not in your walk. Start again from the first page to get them.

Limits and prices

LimitValue
limit on lists over stored results25 by default, 100 at most
limit on GET /v1/hashtags/{platform}/{tag}/videos25 by default, 30 at most
limit on GET /v1/sounds/{platform}/{id}/videos25 by default, 30 at most
limit on POST /v1/ads/searchMeta: 50 by default, 500 at most. TikTok: 25 by default, 30 at most.
GET /v1/runs/{id}/itemsFree: the charge happened once, when the work did.
GET /v1/runsFree.
GET /v1/hashtags/{platform}/{tag}/videos3 credits per page.
GET /v1/sounds/{platform}/{id}/videos6 credits per page.

A limit over the ceiling is an invalid_request problem. The API does not clamp it to a smaller page.

Lists over stored results are free to page as often as you like. These are a Run, its items, a creator’s videos, a Tracker’s Snapshots and Change Reports, your Runs and your webhook deliveries.

Paging back through a Run you already paid for is free. The work happened once, when the Run ran, and reading its items again does not repeat it. Walk a fifty-item Run to the last page, walk it again tomorrow, and the total charge is unchanged.

GET /v1/runs/{id}/items · Free: the charge happened once, when the work did.

Use ShortsIntel to list what a run delivered.

- id: run_8f2c1ad04b
- limit: 25
- type: videos

Tell me what it will cost before you run it, then summarise what you find.

If you don't have ShortsIntel tools, don't guess: read https://www.shortsintel.com/agents.md, follow it to connect, then retry this request.

A hashtag’s or a sound’s videos are a fetch. Each page asks the platform for its current ordering, which stored rows cannot answer, so each page is a Run and is charged. The price line on each operation says which kind of list it is.

See Runs for why re-reads are free, and pricing and estimates for pricing a paid page before you ask for it.

Example: walk every page

Request the largest page the endpoint allows. That means fewer round trips and, on the paid lists, fewer pages to pay for.

GET /v1/creators/{platform}/{handle}/videos · 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.

Use ShortsIntel to page a creator's stored videos.

- platform: tiktok
- handle: someone
- limit: 100

Tell me what it will cost before you run it, then summarise what you find.

If you don't have ShortsIntel tools, don't guess: read https://www.shortsintel.com/agents.md, follow it to connect, then retry this request.

Run it in the Playground (no API Key needed)

The walk is a loop that passes each next_cursor back and stops on null:

const key = process.env.SHORTSINTEL_API_KEY ?? "sk_live_YOUR_KEY";

// Pass the largest `limit` the operation allows: it differs by list.
async function* pages(url: string, limit: number) {
  let cursor: string | null = null;
  do {
    const query = new URLSearchParams({ limit: String(limit) });
    if (cursor) query.set("cursor", cursor);

    const response = await fetch(`${url}?${query}`, {
      headers: { Authorization: `Bearer ${key}` },
    });
    if (!response.ok) throw new Error(`${response.status} from ${url}`);

    const page = (await response.json()) as {
      items: unknown[];
      next_cursor: string | null;
    };
    yield page.items;
    cursor = page.next_cursor;
  } while (cursor !== null); // null means this was the last page
}
import os

import httpx

key = os.environ.get("SHORTSINTEL_API_KEY", "sk_live_YOUR_KEY")


# Pass the largest limit the operation allows: it differs by list.
def pages(url: str, limit: int):
    cursor = None
    while True:
        params = {"limit": limit}
        if cursor:
            params["cursor"] = cursor

        response = httpx.get(url, params=params,
                             headers={"Authorization": f"Bearer {key}"})
        response.raise_for_status()

        page = response.json()
        yield page["items"]

        cursor = page["next_cursor"]
        if cursor is None:  # None means that was the last page
            return

Questions about Pagination

How do I know I have reached the last page?

next_cursor is null. Do not rely on the length of items.

How many items can one page hold?

On lists over stored results, up to 100, and 25 without limit. Paid lists differ: a hashtag’s videos go up to 30, a sound’s to 30, Meta Ads to 500 and TikTok Ads to 30.

Does paging a list cost Credits?

Not for lists over stored results, such as a Run’s items. A hashtag’s videos cost 3 credits per page and a sound’s 6 credits per page.

Can I build or reuse a cursor myself?

No. Pass back the next_cursor you were given, on the same list.