TikTok data API

TikTok Stories API

Send a TikTok username and get the creator's currently active stories as JSON: a playback link for each one, its length, caption, the time it was posted and when it expires, the public counters and the sound. A creator with no active story returns an empty list.

Request

GET /v1/tiktok/profiles/{username}/stories · 1 credit per successful call

cURL
curl "https://api.igramapi.com/v1/tiktok/profiles/example_creator/stories" \
  -H "Authorization: Bearer YOUR_API_KEY"

Response

200 OK · application/json
{
  "username": "example_creator",
  "user_id": "6812345678901234567",
  "has_story": true,
  "count": 1,
  "items": [
    {
      "story_id": "7401234500000000777",
      "type": "video",
      "media_url": "https://v16-webapp-prime.tiktok.com/video/tos/example/story.mp4",
      "thumbnail": "https://v16-webapp-prime.tiktok.com/video/tos/example/story-cover.jpeg",
      "duration": 9,
      "width": 576,
      "height": 1024,
      "caption": "Early morning at the market",
      "created_at": 1761960000,
      "expires_at": 1762046400,
      "views": 18400,
      "likes": 2100,
      "comments": 37,
      "shares": 12,
      "music": {
        "id": "7401234500000000001",
        "title": "original sound",
        "author": "Example Creator",
        "is_original": true,
        "duration": 9,
        "url": "https://v16-webapp-prime.tiktok.com/video/tos/example/sound.mp3",
        "cover": "https://v16-webapp-prime.tiktok.com/video/tos/example/sound.jpeg"
      }
    }
  ],
  "cached": false
}

All values above are made-up examples. Media links are temporary TikTok CDN addresses.

Parameters

NameInDescription
usernamerequired path TikTok username. A leading @ or a profile URL is accepted.
username query Alternative: GET /v1/tiktok/stories?username= with the same value. Same response and price.

Response fields

FieldTypeDescription
username / user_idstringThe creator's current username and numeric id.
has_storybooleanTrue when at least one story is active.
countintegerNumber of stories in items.
items[].story_id / typestringStory id, and video or photo.
items[].media_url / thumbnailstring | nullPlayback link and cover image (temporary CDN links).
items[].duration / width / heightnumber / integerLength in seconds and picture size.
items[].captionstring | nullText the creator added.
items[].created_at / expires_atinteger | nullUnix time it was posted and when it expires (24 hours later).
items[].views / likes / comments / sharesinteger | nullPublic counters, when TikTok shows them.
items[].musicobject | nullid, title, author, is_original, duration, url, cover.
cachedbooleanTrue when served from the short-lived cache.

Only what is live right now

TikTok stories disappear after 24 hours. The response lists the stories that are active at the time of the request, each with created_at and expires_at.

A playback link per story

media_url is a direct link to the story's video, with thumbnail, duration, width and height. The links are temporary TikTok CDN addresses.

Counters and sound

Each story carries its public views, likes, comments and shares when TikTok shows them, and the music it uses.

Empty is a normal answer

A creator with no active story returns has_story: false and an empty items list. It is a finished lookup and costs 1 credit.

What the endpoint returns

The response has the creator's username and user_id, has_story (true when at least one story is active), count and the items list. Each item has a story_id, a type (video or photo), media_url, thumbnail, duration, the picture size, the caption, created_at, expires_at, the public counters and the music.

The TikTok Profile API also returns has_story, so you can check a list of creators first and call this endpoint only for the ones that have a story.

Stories expire, so poll with care

A story lives for 24 hours, so a creator you watch needs a call at least once a day to catch everything. Answers can be served from a short cache, and cached tells you when that happened. The media links expire too: save the files you need soon after you read them.

Frequently asked questions

What does the TikTok Stories API return?

The 24-hour stories that a public creator has live at the moment of the request, as JSON, with a playback link, duration, caption, timestamps, public counters and the sound.

What if the creator has no story?

You get has_story: false, count: 0 and an empty items list. The lookup is complete, so it costs 1 credit.

Do I need a TikTok account or the creator's permission?

No. You need an IGramAPI key only. Only stories that TikTok shows to the public are returned; private accounts are not available.

Can I read old stories?

No. TikTok removes a story after 24 hours and the API lists only active ones. Call it regularly if you need to keep a record.

Is it on the Free plan?

Yes. The TikTok Stories API works on every plan, including Free, and costs 1 credit per call.

Our errors cost nothing. Failures on our side (status 500 or above) and invalid requests (400, 422) are refunded, and every error has the same shape. See error handling and credits and rate limits.

Try the TikTok Stories API free

Create a key and make your first request in minutes. 100 free credits every month.