TikTok downloader apps, bots and archives
Users paste a TikTok link and expect a file. IGramAPI turns a video URL or a short link into a stable download link for the video without TikTok's watermark, its sound as an MP3 or a photo from a slideshow.
How it fits together
Resolve
Send whatever the user pasted, including vm.tiktok.com short links, and show the author, caption and available qualities.
Choose
Offer the qualities from formats, best first, or just use best.
Prepare
Send the URL and the chosen quality and get a link to a stored file.
Deliver
Hand the link to the user, or fetch the file and upload it to your chat or storage.
Why a plain link is not enough
TikTok's media links expire quickly and its servers refuse to hand the file to a browser or script that did not load the video page. Downloader apps run into this as 'link works once' or 'link gives an error'. The Downloader API fetches the file for you and returns a link that works anywhere until it expires.
Because the file comes from the playback stream, it does not carry the TikTok logo and @username overlay that TikTok adds to its own downloads. Text the creator put into the video stays.
Be a good citizen
Downloaders involve other people's content. Show the creator's name, link back to the original video and make it clear that users may only save content they have the right to use. Remove content when a rights holder asks. See the acceptable use policy.
Example request: TikTok Video Data API
The first step above, as you would call it. Replace YOUR_API_KEY with your key. This call costs 1 credit.
curl "https://api.igramapi.com/v1/tiktok/videos?url=https%3A%2F%2Fwww.tiktok.com%2F%40example_creator%2Fvideo%2F7401234567890123456" \
-H "Authorization: Bearer YOUR_API_KEY" import requests
response = requests.get(
"https://api.igramapi.com/v1/tiktok/videos?url=https%3A%2F%2Fwww.tiktok.com%2F%40example_creator%2Fvideo%2F7401234567890123456",
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/videos?url=https%3A%2F%2Fwww.tiktok.com%2F%40example_creator%2Fvideo%2F7401234567890123456", {
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/videos?url=https%3A%2F%2Fwww.tiktok.com%2F%40example_creator%2Fvideo%2F7401234567890123456");
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); {
"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,
"cached": false
} Full TikTok Video Data API reference · Try endpoints in the playground
APIs used
- TikTok Video API: get any video as JSON: Turn a TikTok video URL, short link or id into JSON: plays, likes, comments, shares, music, hashtags and every video quality. 1 credit per call.
- TikTok Video Downloader API (no watermark): TikTok video downloader API: download any TikTok video without the watermark, plus MP3 sound and slideshow photos, from its URL. Free plan, 2 credits a video.
- TikTok Profile API and Profile Scraper: Get any public TikTok profile as JSON: followers, following, total likes, video count, bio and verification. One request, 1 credit. Start free.
Questions
Does it accept short links from the TikTok app?
Yes. vm.tiktok.com and vt.tiktok.com links are resolved to the video, and so is a plain video id.
How much does a download cost?
A video is 2 credits, an MP3 1 and a photo 1. You do not need to call the video endpoint first, but it costs 1 credit if you want to show the details.
Do you host the files permanently?
No. Files are available through a time-limited link of about an hour. Store the file on your side if you need it longer.
Can I download photo slideshows?
Yes. Use type image and the index of each photo.
Guides for this use case
Get your free API key
100 credits every month, no credit card.