TikTok Video API
Full public metadata for one TikTok: caption, hashtags, mentions, author, sound, duration, and view/like/comment/share counts. Photo posts return every image in mediaUrls. Accepts a full URL, a share link (vm.tiktok.com), or a numeric video id. Calls cost 1 credit each. A cache hit is free, and a failed or empty response is never charged.
Try it
Prefilled with the request that produced the example below. No key yet? Get a free key.
Request
GET
/v1/tiktok/video| Parameter | Type | Required | Description |
|---|---|---|---|
| url | string | yes | Video URL (preferred), share link, or numeric video id |
Also accepts cache_max_age (a hit costs 0 credits) and include_raw (returns the untouched upstream payload under raw).
curl
curl "$API/v1/tiktok/video?url=https%3A%2F%2Fwww.tiktok.com%2F%40nike%2Fvideo%2F7698749827965799693&cache_max_age=7d" \
-H "x-api-key: $KEY"JavaScript
const query = new URLSearchParams({
url: 'https://www.tiktok.com/@nike/video/7698749827965799693',
cache_max_age: '7d',
});
const response = await fetch(`${API}/v1/tiktok/video?${query}`, {
headers: { 'x-api-key': KEY },
});
const body = await response.json();
if (!body.success) throw new Error(body.error.code);
// 1 credit, 0 on a cache hit
console.log(body.data, body.meta.creditsCharged);Python
import os, httpx
r = httpx.get(
f"{os.environ['API']}/v1/tiktok/video",
params={
"url": "https://www.tiktok.com/@nike/video/7698749827965799693",
"cache_max_age": "7d",
},
headers={"x-api-key": os.environ["KEY"]},
timeout=30,
)
body = r.json()
if not body["success"]:
raise RuntimeError(body["error"]["code"])
print(body["data"], body["meta"]["creditsCharged"])Example response
Captured on , with raw removed and lists cut to two items. A live call returns current data.
response
{
"success": true,
"data": {
"platform": "tiktok",
"id": "7698749827965799693",
"type": "video",
"url": "https://www.tiktok.com/@nike/video/7698749827965799693",
"title": "Ready? Ok! The all-new NikeSKIMS collection drops October 22nd.",
"text": "Ready? Ok! The all-new NikeSKIMS collection drops October 22nd.",
"authorId": "208464585232822272",
"authorHandle": "nike",
"authorName": "Nike",
"thumbnailUrl": "https://p16-common-sign.tiktokcdn.com/tos-useast5-p-0068-tx/ocA0AfYIBBD1iA8CnXid7NEEaBJIObvw28I0oA~tplv-tiktokx-origin.image?dr=14575&x-expires=1792720800&x-signature=hACwCie63V2Ww29IQFYPKUMqB9Y%3D&t=4d5b0474&ps=13740610&shp=81f88b70&shcp=43f4a2f9&idc=my",
"mediaUrls": [
"https://v16-webapp-prime.tiktok.com/video/tos/alisg/tos-alisg-ve-37c799-sg/oYCnA6mrpLeUpIuAgVIG1MekRFcfAgn0Hku5Aj/?a=1988&bti=ODszNWYuMDE6&&bt=2404&ft=I~da4os3D12NvcJgMzIxRnTNWlBF-UjNSVopiX&mime_type=video_mp4&rc=aTllNDNpODk5PGRkZTs7OUBpajw6Onc5cjpxZTMzZzczNEAzLS82Y2EuXjExNmJhMzJfYSNoLTZhMmQ0NV9hLS1kMS9zcw%3D%3D&expire=1792720854&l=20261021100037B3E6BB531CE91E576E38&ply_type=2&policy=2&signature=ec911c3fc46acd3088f2124358923c58&tk=tt_chain_token&btag=e000b8000"
],
"durationSeconds": 17,
"viewCount": 12800,
"likeCount": 459,
"commentCount": 32,
"shareCount": 13,
"hashtags": [],
"mentions": [],
"isSponsored": false,
"publishedAt": "2026-10-20T14:01:52.000Z",
"fetchedAt": "2026-10-21T02:00:38.210Z"
},
"meta": {
"platform": "tiktok",
"endpoint": "tiktok.video",
"creditsCharged": 1,
"cached": false,
"cacheAgeSeconds": null,
"durationMs": 4720,
"requestId": "req_kr1oncpq1ntq5agvcxhg"
}
}Returns
Returns one Post.
Cost and behaviour
| Credits | 1 per live request, 0 on a cache hit |
| Cacheable | yes: cache_max_age accepts a cached copy |
| Batchable | yes: usable as a target in POST /v1/jobs/batch |
| Subscribable | yes: as often as every 3600 seconds, firing a webhook only on a change |
Other TikTok endpoints
- /v1/tiktok/ad-library/ad One TikTok ad
- /v1/tiktok/ad-library/search Search the TikTok Ads Library
- /v1/tiktok/collection/videos Collection videos
- /v1/tiktok/comment-replies Replies to a comment
- /v1/tiktok/comments Comments on a video
- /v1/tiktok/creators/popular Popular creators
- /v1/tiktok/followers Accounts following a creator
- /v1/tiktok/following Accounts a creator follows