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 "https://api.igramapi.com/v1/tiktok/profiles/example_creator/stories" \
-H "Authorization: Bearer YOUR_API_KEY" import requests
response = requests.get(
"https://api.igramapi.com/v1/tiktok/profiles/example_creator/stories",
headers={"Authorization": "Bearer YOUR_API_KEY"},
timeout=30,
)
response.raise_for_status()
print(response.json()) const response = await fetch("https://api.igramapi.com/v1/tiktok/profiles/example_creator/stories", {
method: "GET",
headers: {
Authorization: "Bearer YOUR_API_KEY",
},
});
if (!response.ok) throw new Error((await response.json()).error.message);
console.log(await response.json()); <?php
$ch = curl_init("https://api.igramapi.com/v1/tiktok/profiles/example_creator/stories");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer YOUR_API_KEY",
],
]);
$data = json_decode(curl_exec($ch), true);
print_r($data); Response
{
"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
| Name | In | Description |
|---|---|---|
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
| Field | Type | Description |
|---|---|---|
username / user_id | string | The creator's current username and numeric id. |
has_story | boolean | True when at least one story is active. |
count | integer | Number of stories in items. |
items[].story_id / type | string | Story id, and video or photo. |
items[].media_url / thumbnail | string | null | Playback link and cover image (temporary CDN links). |
items[].duration / width / height | number / integer | Length in seconds and picture size. |
items[].caption | string | null | Text the creator added. |
items[].created_at / expires_at | integer | null | Unix time it was posted and when it expires (24 hours later). |
items[].views / likes / comments / shares | integer | null | Public counters, when TikTok shows them. |
items[].music | object | null | id, title, author, is_original, duration, url, cover. |
cached | boolean | True 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.