TikTok data API

TikTok Video API: get any video as JSON

Send a TikTok video URL, a vm.tiktok.com short link or a video id and get everything about the video as JSON: statistics, author, caption, hashtags, the sound, subtitles and every available video quality. To get the file itself, use the TikTok Downloader API.

Request

GET /v1/tiktok/videos · 1 credit per successful call

cURL
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"

Response

200 OK · application/json
{
  "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
}

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

Parameters

NameInDescription
urlrequired query A video URL, a vm.tiktok.com or vt.tiktok.com short link, or the numeric video id.
video_id path Alternative: GET /v1/tiktok/videos/{video_id} with the numeric id.

Response fields

FieldTypeDescription
id / typestringVideo id, and video or photo for a photo slideshow.
description / created_atstring / integerCaption and the Unix time it was posted.
authorobjectuser_id, username, nickname, avatar, is_verified and followers of the creator.
plays / likes / comments / shares / savesintegerPublic counters.
duration / width / heightintegerLength in seconds and picture size.
cover / dynamic_coverstringStill cover image and animated preview (temporary links).
formats[]object[]Every quality, best first: quality, width, height, bitrate, codec, size_bytes. Pass quality to the downloader to get that file.
photos[]object[]Images of a photo slideshow: url, width, height.
musicobjectid, title, author, is_original, duration, url, cover.
hashtags[] / mentions[]string[]Hashtags and @mentions in the caption.
subtitles[]object[]Caption files: language, format, url.
is_ad / location_created / comments_disabled / duet_enabled / stitch_enabledmixedFlags and the country the video was created in.
cachedbooleanTrue when served from the short-lived cache.

Every statistic

Plays, likes, comments, shares and saves as integers, plus the author's follower count at request time.

Every quality

formats lists each resolution and codec with its file size, best first, so you can show the choices and pass the one you want to the downloader.

Sound, tags and captions

The music track, hashtags, mentions and subtitle files in one response.

Slideshows too

Photo posts return type: photo with every image in photos.

What the TikTok video endpoint returns

The response describes one video or photo slideshow. author identifies the creator, plays, likes, comments, shares and saves are the public counters, and created_at is the Unix time it was posted. duration is in seconds.

formats is sorted best first. Each entry has quality, codec (h264 plays everywhere, h265_hvc1 is smaller at the same quality), bitrate and size_bytes. music carries the sound's title, author, duration and a link to the audio, with is_original telling you whether it is the creator's own sound.

Video files and other links

This endpoint does not return links to the video file. TikTok's own video links only work inside its own page and answer other clients with an error, so a link in the response would be useless to you. To get the video as a file, send the same URL to the TikTok Downloader API, which returns a stable download link without the TikTok watermark. You do not need to call this endpoint first.

The cover, the profile picture, the sound and the subtitle files are links to TikTok's CDN. They work in a browser or from a server, but they expire after a while, so do not store them as permanent references.

Short links and ids

Links copied from the TikTok app are usually short links such as https://vm.tiktok.com/ZMabc123/. The endpoint resolves them for you, so you can pass whatever your users paste. You can also call GET /v1/tiktok/videos/{video_id} when you already have the numeric id.

Frequently asked questions

Can I pass a short link copied from the TikTok app?

Yes. Links such as vm.tiktok.com/ZMabc123 and vt.tiktok.com/ZSabc123 are resolved to the video automatically.

Which videos are not available?

Videos that were deleted, are private, or are restricted by TikTok by region or age return HTTP 404 with video_unavailable.

Does the API return comments?

This endpoint returns the comment count (comments) and whether comments are turned off. The comments themselves, with replies, come from the TikTok Comments API.

Can I get the video file?

Not from this endpoint. Send the same URL to the TikTok Downloader API and you get a stable download link to the MP4 without the TikTok watermark.

How fresh are the numbers?

They come from TikTok at request time. A video's data may be served from a short cache of 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 Video Data API free

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