GET /v1/tiktok/item_detail
TikTok video API: get views, likes, comments and caption by video URL
Returns one TikTok video from its public page: caption, hashtags, mentions, views, likes and comments, the sound, the cover and the author. Send url as the full tiktok.com/@handle/video/<id> URL; a bare video id is refused because the read needs the author.
- Price
- $0.0005 per call
- Batch
- Yes, through /v1/batch
- Failed calls
- Not charged
Example request
curl 'https://api.virev.ai/v1/tiktok/item_detail?url=https%3A%2F%2Fwww.tiktok.com%2F%40khaby.lame%2Fvideo%2F7681719358225239326' \
-H "Authorization: Bearer $VIREV_API_KEY"import os
import requests
response = requests.request(
"GET",
"https://api.virev.ai/v1/tiktok/item_detail",
params={
"url": "https://www.tiktok.com/@khaby.lame/video/7681719358225239326",
},
headers={"Authorization": f"Bearer {os.environ['VIREV_API_KEY']}"},
timeout=60,
)
response.raise_for_status()
print(response.json())Parameters
| Name | In | Type | Description |
|---|---|---|---|
url required | query | string | TikTok video URL, https://www.tiktok.com/@handle/video/<id>. A bare video id is refused, because the read needs the author. |
cached | query | auto | cache_only | live | auto (default) serves a read saved within the last 24 hours for these exact arguments, otherwise fetches. cache_only never contacts TikTok (404 not_cached when nothing is saved, whatever its age). live always fetches. Anything else is a 400. |
get_raw | query | boolean | Not available on this operation: the upstream document is an HTML page, and true answers 400. The default false returns the normalized type. |
Example response
The example response of the API reference, with lists cut to their first 3 items and long text shortened.
{
"data": {
"id": "7681719358225239326",
"shortcode": null,
"taken_at": "2026-09-04T16:34:44+00:00",
"kind": "video",
"product_type": null,
"caption": "Well… that didn’t go as planned #learnfromkhaby #comedy ",
"hashtags": [
"comedy",
"learnfromkhaby"
],
"mentions": [],
"accessibility_caption": null,
"likes": 2400000,
"comments": 33100,
"views": 20700000,
"counts_hidden": null,
"comments_disabled": null,
"is_pinned": null,
"is_paid_partnership": false,
"owner": {
"id": "127905465618821121",
"username": "khaby.lame",
"full_name": "Khabane lame",
"is_verified": true,
"is_private": false,
"avatar_url": "https://p16-common-sign.tiktokcdn.com/tos-useast8-avt-0068-tx2/08987e23b94057953fd4f1738694bf5f~tplv-tiktokx-cropcenter:1080:1080.jpeg?dr=14579&refresh_token=afc4eb0a&x-expires=1795737600&x-signature=HwheyiW8xqU9Fr0h%2BSqjL0CUyzc%3D&t=4d5b0…",
"latest_story_at": null,
"extra": {
"sec_uid": "MS4wLjABAAAAwAg0rSzO65WQfz4RzQgGv2Xdv108BgPXhRrrmNVIHQZ9PO8-flwwRtEppYTS0OjA"
}
},
"coauthors": [],
"sponsors": [],
"tagged": [],
"location": null,
"audio": {
"id": "7681719448159619870",
"title": "original sound",
"artist": "Khabane lame",
"is_original": true
},
"thumbnail_url": "https://p16-common-sign.tiktokcdn.com/tos-useast8-p-0068-tx2/ocklIYFbAlVjfsD1EADAQMmzRZqA5CEEAvEcfg~tplv-tiktokx-origin.image?dr=14575&x-expires=1795737600&x-signature=2iwvv7S7jL56bmBLqpbo8H8gJ7E%3D&t=4d5b0474&ps=13740610&shp=81f88b70&shcp=…",
"video_duration": 48,
"media": [
{
"kind": "video",
"url": "https://v16-webapp-prime.tiktok.com/video/tos/alisg/tos-alisg-ve-37c799-sg/ooEBHqvBF3KEEjFRmfEQQ1AVJ8AfP1taPqmIzD/?a=1988&bti=ODszNWYuMDE6&&bt=1219&ft=ytpHh9DfxxOusd.9ZXyE8lcLVWOuRx_HFKKgKPIwK~5QZ.z7T&mime_type=video_mp4&rc=ZGZmPDhpZ2U3aTgz…",
"width": 720,
"height": 1280,
"duration": 48
}
],
"media_urls": [
"https://v16-webapp-prime.tiktok.com/video/tos/alisg/tos-alisg-ve-37c799-sg/ooEBHqvBF3KEEjFRmfEQQ1AVJ8AfP1taPqmIzD/?a=1988&bti=ODszNWYuMDE6&&bt=1219&ft=ytpHh9DfxxOusd.9ZXyE8lcLVWOuRx_HFKKgKPIwK~5QZ.z7T&mime_type=video_mp4&rc=ZGZmPDhpZ2U3aTgz…"
],
"extra": {
"url": "https://www.tiktok.com/@khaby.lame/video/7681719358225239326",
"shares": 42100,
"saves": 107158
}
},
"meta": {
"source": "db",
"fetched_at": "2026-11-25T00:06:09.436646+00:00",
"cost": "$0.0005",
"balance": "$326.8567",
"request_id": "req_1f2e05e820bf8304230ed9fb8f68a447"
}
}How it works
One video from its public page: caption, counts, sound, cover and author. Returns Post under data; the upstream document is an HTML page, so get_raw is not available.
A field TikTok does not carry is null, a list it does not carry is [], and TikTok-only facts sit under extra. Unknown, unsupported, and repeated query parameters return 400 before acquisition or billing.
Errors
| Status | When |
|---|---|
400 | The request parameters are invalid. |
401 | Missing, malformed, or revoked API key. |
402 | Balance is too low for this request. |
404 | cached=cache_only found nothing saved for these arguments (not_cached; call again with cached=auto to fetch it), or the TikTok account or item does not exist (not_found). You are not charged. |
429 | Over the per-minute limit. The limit belongs to your organization and all its API keys share it: 100 requests per minute unless an increase was granted. Wait for the Retry-After seconds, then retry. On a live read, code rate_limited means the platform itself rate-limited this read; retry after the Retry-After seconds. You are not charged. |
502 | The upstream fetch failed. You are not charged. |
503 | Billing could not be confirmed, so no upstream data was returned. |
504 | The upstream request timed out. You are not charged. |