TikTok User Videos API
Give it a TikTok username and get the creator's videos as JSON, newest first, with the full statistics of each one: plays, likes, comments, shares and saves, the caption, hashtags, the sound and the available qualities. Page back through older videos with a cursor.
Request
GET /v1/tiktok/profiles/{username}/videos ·
1 credit per successful call
curl "https://api.igramapi.com/v1/tiktok/profiles/example_creator/videos?limit=2" \
-H "Authorization: Bearer YOUR_API_KEY" import requests
response = requests.get(
"https://api.igramapi.com/v1/tiktok/profiles/example_creator/videos?limit=2",
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/videos?limit=2", {
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/videos?limit=2");
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",
"items": [
{
"id": "7401234567890123456",
"type": "video",
"description": "Sunday market haul #streetfood #vlog",
"created_at": 1761900000,
"author": {
"user_id": "6812345678901234567",
"username": "example_creator",
"nickname": "Example Creator",
"avatar": "https://v16-webapp-prime.tiktok.com/video/tos/example/avatar.jpeg",
"is_verified": true,
"followers": 1820000
},
"plays": 2450000,
"likes": 312400,
"comments": 4120,
"shares": 9800,
"saves": 15600,
"duration": 27,
"width": 576,
"height": 1024,
"cover": "https://v16-webapp-prime.tiktok.com/video/tos/example/cover.jpeg",
"dynamic_cover": "https://v16-webapp-prime.tiktok.com/video/tos/example/dynamic.webp",
"formats": [
{
"id": "adapt_lowest_1080_1",
"quality": "1080p",
"width": 1080,
"height": 1920,
"bitrate": 803227,
"codec": "h265_hvc1",
"size_bytes": 9987936
},
{
"id": "normal_540_0",
"quality": "576p",
"width": 576,
"height": 1024,
"bitrate": 1250793,
"codec": "h264",
"size_bytes": 15553308
}
],
"photos": [],
"music": {
"id": "7401234500000000001",
"title": "original sound",
"author": "Example Creator",
"is_original": true,
"duration": 27,
"url": "https://v16-webapp-prime.tiktok.com/video/tos/example/sound.mp3",
"cover": "https://v16-webapp-prime.tiktok.com/video/tos/example/sound.jpeg"
},
"hashtags": [
"streetfood",
"vlog"
],
"mentions": [],
"subtitles": [
{
"language": "eng-US",
"format": "webvtt",
"url": "https://v16-webapp-prime.tiktok.com/video/tos/example/captions.vtt"
}
],
"is_ad": false,
"location_created": "IN",
"comments_disabled": false,
"duet_enabled": true,
"stitch_enabled": true
},
{
"id": "7399876543210987654",
"type": "video",
"description": "Trying the spiciest noodles in town #food",
"created_at": 1761300000,
"author": {
"user_id": "6812345678901234567",
"username": "example_creator",
"nickname": "Example Creator",
"avatar": "https://v16-webapp-prime.tiktok.com/video/tos/example/avatar.jpeg",
"is_verified": true,
"followers": 1820000
},
"plays": 880400,
"likes": 96100,
"comments": 1210,
"shares": 2300,
"saves": 4100,
"duration": 27,
"width": 576,
"height": 1024,
"cover": "https://v16-webapp-prime.tiktok.com/video/tos/example/cover.jpeg",
"dynamic_cover": "https://v16-webapp-prime.tiktok.com/video/tos/example/dynamic.webp",
"formats": [
{
"id": "adapt_lowest_1080_1",
"quality": "1080p",
"width": 1080,
"height": 1920,
"bitrate": 803227,
"codec": "h265_hvc1",
"size_bytes": 9987936
},
{
"id": "normal_540_0",
"quality": "576p",
"width": 576,
"height": 1024,
"bitrate": 1250793,
"codec": "h264",
"size_bytes": 15553308
}
],
"photos": [],
"music": {
"id": "7401234500000000001",
"title": "original sound",
"author": "Example Creator",
"is_original": true,
"duration": 27,
"url": "https://v16-webapp-prime.tiktok.com/video/tos/example/sound.mp3",
"cover": "https://v16-webapp-prime.tiktok.com/video/tos/example/sound.jpeg"
},
"hashtags": [
"food"
],
"mentions": [],
"subtitles": [
{
"language": "eng-US",
"format": "webvtt",
"url": "https://v16-webapp-prime.tiktok.com/video/tos/example/captions.vtt"
}
],
"is_ad": false,
"location_created": "IN",
"comments_disabled": false,
"duet_enabled": true,
"stitch_enabled": true
}
],
"page": {
"has_next_page": true,
"end_cursor": "1761300000000_7399876543210987654"
},
"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. |
cursor | query | page.end_cursor from the previous response, for the next (older) page. |
limit | query | Videos per page, 1 to 12. Default 10. |
Response fields
| Field | Type | Description |
|---|---|---|
username | string | The creator's username. |
items[] | object[] | Videos, newest first. Same fields as the TikTok Video Data API: id, type, description, created_at, author, plays, likes, comments, shares, saves, duration, cover, formats, photos, music, hashtags, mentions, subtitles and flags. |
page.has_next_page | boolean | True when there are older videos. |
page.end_cursor | string | null | Pass as cursor for the next page. |
cached | boolean | True when served from the short-lived cache. |
Full statistics per video
Every item carries plays, likes, comments, shares and saves, not just a play count, so one call gives you a creator's recent performance.
Cursor pagination
Pass page.end_cursor as cursor to get the next, older page. Stop when has_next_page is false.
Same shape as one video
Items look like the TikTok Video Data API's response: author, music, hashtags, mentions, subtitles and formats.
1 credit per page
Up to 12 videos for 1 credit. A page is kept for up to 30 minutes, so repeated calls are fast.
What the endpoint returns
The response has the creator's username, an items list and a page object. Each item is one video or photo slideshow with its id, description, created_at (Unix time), the public counters plays, likes, comments, shares and saves, the author, the music, hashtags, mentions, subtitles and the available qualities in formats.
To get a video as a file, send its id to the TikTok Downloader API. To read its comments, use the TikTok Comments API.
Paging through older videos
Videos come newest first. When page.has_next_page is true, send the same request with cursor set to page.end_cursor to get the next, older page; every page costs 1 credit. A cursor this API did not hand out is refused with invalid_cursor (HTTP 400), which is not charged.
Cap the number of pages in your loops, so a creator with thousands of videos cannot use up your credits. The pagination guide has loop examples.
Frequently asked questions
How many videos do I get per call?
Up to 12 per page, 10 by default. Use the cursor to page back to older videos; each page costs 1 credit.
Do the videos include likes and comments counts?
Yes. Every item has plays, likes, comments, shares and saves, plus the caption, hashtags and sound.
What happens if the username does not exist?
The API returns HTTP 404 with the error code profile_not_found. Failures on our side and invalid requests are refunded; see credits and rate limits.
Can I download the videos in the list?
Yes. Send a video's id to the TikTok Downloader API and you get a stable link to the file without the TikTok watermark.
How fresh is the list?
It comes from TikTok at request time. The same page may be served from a cache for up to 30 minutes, and cached tells you when.
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 User Videos API free
Create a key and make your first request in minutes. 100 free credits every month.