# Addressing videos and creators

> For the complete documentation index, see [llms.txt](https://www.shortsintel.com/llms.txt). Every docs page is also available as markdown: add .md to its URL. To connect, read [agents.md](https://www.shortsintel.com/agents.md).

> How to name a video, creator, hashtag or sound, whether you hold a URL or a platform id.

- Address: A platform and an id: a video id, a handle, a tag or a sound id.
- Video URLs: Paste the link into `POST /v1/videos/lookup`. It costs what the id form costs, 3 credits.
- Platforms: Videos and creators on tiktok, instagram, youtube, facebook. Hashtags on tiktok, instagram. Sounds on tiktok.
- Cache: Keyed on the platform and the id, so a URL and an id share one stored answer.

You usually start with a URL somebody pasted into a chat. The API addresses everything by a platform and an id. This page maps one to the other for each subject, so you never parse a TikTok link yourself.

## Every subject is a platform and an id

A video, creator, hashtag or sound is named by the platform it lives on and the id that platform gives it. Videos also take a pasted URL, and creators take a profile URL in place of the handle.

| Subject | Addressed by | Platforms | Endpoint |
| --- | --- | --- | --- |
| Video | platform and platform id | tiktok, instagram, youtube, facebook | `GET /v1/videos/{platform}/{id}` |
| Video by URL | `url` in the body | tiktok, instagram, youtube, facebook | `POST /v1/videos/lookup` |
| Creator | platform and handle, `@handle` or a profile URL | tiktok, instagram, youtube, facebook | `GET /v1/creators/{platform}/{handle}` |
| Hashtag | platform and tag, without the `#` | tiktok, instagram | `GET /v1/hashtags/{platform}/{tag}` |
| Sound | platform and sound id | tiktok | `GET /v1/sounds/{platform}/{id}` |

## When to pass a URL and when to pass an id

Pass the URL when a person gave you a link. Pass the platform and id when an earlier response gave you one, such as a search result or a research shortlist. The URL form parses the link, then runs the same operation the path form runs.

Both create the same kind of Run, at the same price, and both read and write the same stored Snapshot. Look a video up by URL, then by platform and id a minute later, and the second call is a cached read. Two teams holding one video in two notations share one stored fetch.

## Videos

If you know the platform and the id, put them in the path. The ids are the platform’s own: TikTok’s numeric video id, Instagram’s reel shortcode, YouTube’s 11-character id and Facebook’s numeric video id. Instagram’s numeric media id, which search results carry, is accepted too.

`GET /v1/videos/{platform}/{id}` · 3 credits. With `include=intelligence`: 23 credits instead of the lookup price. With `include=transcript` only: a flat 10 credits. With `include=download`: 3 credits alone, else 3 credits on top of the analysis or transcript price. A stored answer (or an existing copy) costs the same as a fresh one.

curl:

```bash
curl "https://www.shortsintel.com/v1/videos/tiktok/7300000000000000000" \
  -H "Authorization: Bearer sk_live_YOUR_KEY"
```

TypeScript:

```typescript
const response = await fetch(
  "https://www.shortsintel.com/v1/videos/tiktok/7300000000000000000",
  {
    method: "GET",
    headers: {
      "Authorization": "Bearer sk_live_YOUR_KEY",
    },
  },
);

if (!response.ok) {
  throw new Error(`ShortsIntel ${response.status}`);
}

const data = await response.json();
```

Python:

```python
import requests

response = requests.get(
    "https://www.shortsintel.com/v1/videos/tiktok/7300000000000000000",
    headers={
        "Authorization": "Bearer sk_live_YOUR_KEY",
    },
)
response.raise_for_status()

data = response.json()
```

[Run it in the Playground](https://www.shortsintel.com/console/playground?op=getVideo&platform=tiktok&id=7300000000000000000) (no API Key needed)

If you hold a link, send it as `url` to `POST /v1/videos/lookup`. These URL shapes parse:

```text
https://www.tiktok.com/@someone/video/7300000000000000000
https://vm.tiktok.com/ZMabc1234/
https://www.instagram.com/reel/C8xKq2mR1aB/
https://www.youtube.com/shorts/dQw4w9WgXcQ
https://www.youtube.com/watch?v=dQw4w9WgXcQ
https://youtu.be/dQw4w9WgXcQ
https://www.facebook.com/reel/1234567890123456
```

Instagram `/p/` and `/reels/` links, YouTube `/embed/` links, and Facebook `/watch?v=` and Page video links parse as well. A TikTok short link is followed to the video it points at before the lookup runs.

## Creators

A creator is a platform and a handle. The handle segment accepts what the user pasted:

```text
someone
@someone
https://www.tiktok.com/@someone
https://www.instagram.com/someone/
https://www.youtube.com/@someone
https://www.facebook.com/someone
```

URL-encode a profile URL, since it contains slashes. A leading `@` is stripped and letter case is ignored, so `@Someone` and `someone` are one creator. A URL that is not a profile URL for the platform in the path is rejected rather than guessed at.

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

curl:

```bash
curl "https://www.shortsintel.com/v1/creators/tiktok/someone?include=videos&videos_from=reels&wait=30" \
  -H "Authorization: Bearer sk_live_YOUR_KEY"
```

TypeScript:

```typescript
const response = await fetch(
  "https://www.shortsintel.com/v1/creators/tiktok/someone?include=videos&videos_from=reels&wait=30",
  {
    method: "GET",
    headers: {
      "Authorization": "Bearer sk_live_YOUR_KEY",
    },
  },
);

if (!response.ok) {
  throw new Error(`ShortsIntel ${response.status}`);
}

const data = await response.json();
```

Python:

```python
import requests

response = requests.get(
    "https://www.shortsintel.com/v1/creators/tiktok/someone?include=videos&videos_from=reels&wait=30",
    headers={
        "Authorization": "Bearer sk_live_YOUR_KEY",
    },
)
response.raise_for_status()

data = response.json()
```

[Run it in the Playground](https://www.shortsintel.com/console/playground?op=getCreator&platform=tiktok&handle=someone&include=videos&videos_from=reels) (no API Key needed)

## Hashtags and sounds

A hashtag is a platform and the tag without the `#`: `coldplunge`, not `#coldplunge`.

`GET /v1/hashtags/{platform}/{tag}` · 3 credits, the same when a Snapshot under 24 h old can answer.

curl:

```bash
curl "https://www.shortsintel.com/v1/hashtags/tiktok/coldplunge?wait=30" \
  -H "Authorization: Bearer sk_live_YOUR_KEY"
```

TypeScript:

```typescript
const response = await fetch(
  "https://www.shortsintel.com/v1/hashtags/tiktok/coldplunge?wait=30",
  {
    method: "GET",
    headers: {
      "Authorization": "Bearer sk_live_YOUR_KEY",
    },
  },
);

if (!response.ok) {
  throw new Error(`ShortsIntel ${response.status}`);
}

const data = await response.json();
```

Python:

```python
import requests

response = requests.get(
    "https://www.shortsintel.com/v1/hashtags/tiktok/coldplunge?wait=30",
    headers={
        "Authorization": "Bearer sk_live_YOUR_KEY",
    },
)
response.raise_for_status()

data = response.json()
```

[Run it in the Playground](https://www.shortsintel.com/console/playground?op=getHashtag&platform=tiktok&tag=coldplunge) (no API Key needed)

A sound is a platform and the sound id. On TikTok that is the `clipId` at the end of a `/music/<slug>-<clipId>` URL. The `music.id` on a video payload is a different number and will not resolve.

`GET /v1/sounds/{platform}/{id}` · 6 credits, the same when a Snapshot under 24 h old can answer.

curl:

```bash
curl "https://www.shortsintel.com/v1/sounds/tiktok/7180000000000000000?wait=30" \
  -H "Authorization: Bearer sk_live_YOUR_KEY"
```

TypeScript:

```typescript
const response = await fetch(
  "https://www.shortsintel.com/v1/sounds/tiktok/7180000000000000000?wait=30",
  {
    method: "GET",
    headers: {
      "Authorization": "Bearer sk_live_YOUR_KEY",
    },
  },
);

if (!response.ok) {
  throw new Error(`ShortsIntel ${response.status}`);
}

const data = await response.json();
```

Python:

```python
import requests

response = requests.get(
    "https://www.shortsintel.com/v1/sounds/tiktok/7180000000000000000?wait=30",
    headers={
        "Authorization": "Bearer sk_live_YOUR_KEY",
    },
)
response.raise_for_status()

data = response.json()
```

[Run it in the Playground](https://www.shortsintel.com/console/playground?op=getSound&platform=tiktok&id=7180000000000000000) (no API Key needed)

## Trackers address the same way

`POST /v1/trackers` takes a `kind`, a `platform` and a `target`. The target is the string the matching lookup takes: a handle for a creator, a video id, a tag or a sound id. Targets are normalised before they are compared, so two people who write one creator differently share one Tracker and one daily fetch.

## Limits

| Input | Result |
| --- | --- |
| A link to a host we do not support | `unsupported_platform` |
| A link on a supported platform with no id in it | `invalid_request` |
| A path id in the wrong shape for its platform | `invalid_request`, before any Run opens |
| A TikTok short link | Followed on `POST /v1/videos/lookup` only |
| An `fb.watch` short link | `invalid_request`: paste the full Facebook URL |
| A profile URL for another platform than the path | `invalid_request` |

## Example: look up a video by URL

Send the link as it was pasted:

`POST /v1/videos/lookup` · 3 credits, the same when a Snapshot under 24 h old can answer.

curl:

```bash
curl -X POST "https://www.shortsintel.com/v1/videos/lookup" \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://www.tiktok.com/@someone/video/7300000000000000000"}'
```

TypeScript:

```typescript
const response = await fetch(
  "https://www.shortsintel.com/v1/videos/lookup",
  {
    method: "POST",
    headers: {
      "Authorization": "Bearer sk_live_YOUR_KEY",
      "Content-Type": "application/json",
    },
    body: JSON.stringify({
      "url": "https://www.tiktok.com/@someone/video/7300000000000000000"
    }),
  },
);

if (!response.ok) {
  throw new Error(`ShortsIntel ${response.status}`);
}

const data = await response.json();
```

Python:

```python
import requests

response = requests.post(
    "https://www.shortsintel.com/v1/videos/lookup",
    headers={
        "Authorization": "Bearer sk_live_YOUR_KEY",
        "Content-Type": "application/json",
    },
    json={
        "url": "https://www.tiktok.com/@someone/video/7300000000000000000",
    },
)
response.raise_for_status()

data = response.json()
```

[Run it in the Playground](https://www.shortsintel.com/console/playground?op=lookupVideo&url=https%3A%2F%2Fwww.tiktok.com%2F%40someone%2Fvideo%2F7300000000000000000) (no API Key needed)

200 · The Run finished inside the wait budget: `{ run, result }`. The example was answered from a Snapshot under 24 h old, which is why `run.cached` is true; a stored answer costs the same as a fresh one, so `charge_credits` equals `list_price_credits`.

```json
{
  "run": {
    "id": "run_8f2c1ad04b",
    "kind": "video_lookup",
    "status": "completed",
    "created_at": "2026-09-08T09:14:02.418Z",
    "completed_at": "2026-09-08T09:14:04.930Z",
    "charge_credits": 3,
    "list_price_credits": 3,
    "cached": true
  },
  "result": {
    "platform": "tiktok",
    "id": "7300000000000000000",
    "url": "https://www.tiktok.com/@someone/video/7300000000000000000",
    "description": "3 minutes at 4°C every morning for 30 days. Here is what actually changed. #coldplunge #recovery",
    "posted_at": "2026-09-05T06:32:11.000Z",
    "duration_seconds": 41,
    "thumbnail_url": "https://p16-sign.tiktokcdn.com/obj/tos-cover-7300000000000000000.jpeg",
    "hashtags": [
      "coldplunge",
      "recovery",
      "morningroutine"
    ],
    "sound": {
      "id": "7180000000000000000",
      "title": "original sound - someone",
      "author": "someone",
      "is_original": true
    },
    "creator": {
      "id": "cre_9d4b2a7f1c",
      "handle": "someone",
      "name": "Someone",
      "follower_count": 184300,
      "avatar_url": "https://p16-sign.tiktokcdn.com/obj/tos-avatar-someone.jpeg",
      "verified": false
    },
    "region": "US",
    "language": "en",
    "title": null,
    "commerce": {
      "is_ad": false,
      "paid_partnership": null,
      "affiliate": null,
      "shop_url": null,
      "anchors": [
        {
          "kind": "54",
          "label": "CapCut · Editing made easy"
        }
      ]
    },
    "people": {
      "mentions": [
        "coldplungeco"
      ],
      "collaborators": []
    },
    "location": null,
    "topics": {
      "keywords": [],
      "genre": null,
      "labels": [
        "Fitness",
        "Health"
      ]
    },
    "chapters": null,
    "ai_generated": false,
    "is_pinned": null,
    "is_sponsored": null,
    "sponsor": null,
    "snapshot": {
      "at": "2026-09-08T09:14:04.219Z",
      "views": 1284000,
      "likes": 143200,
      "comments": 2810,
      "shares": 9040,
      "saves": 21600
    },
    "engagement": {
      "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",
        "since": "2026-10-03T08:00:00.000Z"
      },
      "engagement_rate": 0.1376,
      "anomaly": false,
      "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
      }
    }
  }
}
```

200 · With `estimate=true`: the price, no Run, no charge.

```json
{
  "estimate_credits": 3,
  "cached": true
}
```

`run.cached` says which answer you got. `true` is the answer served from what was already stored, at the same price as a fresh one.

Once you can name a thing, [pagination](https://www.shortsintel.com/docs/concepts/pagination) covers reading lists of them, and [platforms and coverage](https://www.shortsintel.com/docs/concepts/platforms-and-coverage) covers what each platform can answer.

## Questions about addressing

### Does a URL lookup cost more than an id lookup?

No. 3 credits, the same when a Snapshot under 24 h old can answer. Both forms run the same operation and share one stored answer.

### Can I pass a TikTok short link?

Yes, to `POST /v1/videos/lookup`. A `vm.tiktok.com`, `vt.tiktok.com` or `tiktok.com/t/` link is followed to the video it points at.

### Why does the sound id from a video not resolve?

A video payload carries `music.id`. Sound lookup takes the `clipId` from the sound’s `/music/` URL, which is a different number.
