GET /v1/tiktok/search_item_full
TikTok search API: search videos by keyword
Returns TikTok's video search results for a keyword, ranked by relevance across years, each with caption, views, likes, comments and author. Send keyword (up to 100 characters); a brand name finds the videos that talk about it. Use max_pages=1 for one page of up to 20 videos, or omit it to run a job.
- Price
- $0.0005 per 20 results
- Billing
- $0.0005/20
- Batch
- Yes, through /v1/batch
- Failed calls
- Not charged
Example request
curl 'https://api.virev.ai/v1/tiktok/search_item_full?keyword=nike&max_pages=1' \
-H "Authorization: Bearer $VIREV_API_KEY"import os
import requests
response = requests.request(
"GET",
"https://api.virev.ai/v1/tiktok/search_item_full",
params={
"keyword": "nike",
"max_pages": "1",
},
headers={"Authorization": f"Bearer {os.environ['VIREV_API_KEY']}"},
timeout=60,
)
response.raise_for_status()
print(response.json())Parameters
| Name | In | Type | Description |
|---|---|---|---|
keyword required | query | string | The search term, up to 100 characters. |
since | query | string | Stop at this date. 2025-09-21 means midnight UTC (2025-09-21T00:00:00Z). Datetimes must use RFC3339 with a timezone, for example 2025-09-21T09:00:00+09:00. 365d means 365 days before submission. Invalid calendar dates return 400. With max_pages, the first boundary reached stops the walk. since alone creates a job. |
max_pages | query | integer | Maximum pages to fetch. -1 walks until exhaustion or since with no page cap, and must be written. Omitted, since alone bounds the walk; with neither, the job stops after 10 pages. Any positive integer is accepted. 1 returns one page synchronously with HTTP 200; any other value creates a durable job with HTTP 202. |
cursor | query | string | Opaque next_cursor from an earlier answer of this operation, also with get_raw=true. A native TikTok cursor from a raw page answers 400. Result download cursors belong to the results route. |
page_size | query | integer | Native count, default 20. TikTok answers at most 20. Billed per 20 unique returned items, one native page. |
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. cache_only reads one saved page per request: omit max_pages or pass 1, and continue with next_cursor. |
get_raw | query | boolean | true returns the upstream JSON exactly as TikTok answered it instead of the normalized Page[Post]. |
Idempotency-Key | header | string | Reuse this key with the same inputs to recover a lost job submission. A different input with the same key returns 409. |
Example response
The example response of the API reference, with lists cut to their first 3 items and long text shortened.
{
"data": {
"items": [
{
"id": "7694624183157935390",
"shortcode": null,
"taken_at": "2026-10-09T23:00:00+00:00",
"kind": "video",
"product_type": null,
"caption": "Nike air mags were every hypebeast dream sneaker ππ₯",
"hashtags": [],
"mentions": [],
"accessibility_caption": null,
"likes": 37000,
"comments": 95,
"views": 352300,
"counts_hidden": null,
"comments_disabled": null,
"is_pinned": null,
"is_paid_partnership": null,
"owner": {
"id": "7035523887404450821",
"username": "calithekid1",
"full_name": "calithekid",
"is_verified": false,
"is_private": false,
"avatar_url": "https://p16-common-sign.tiktokcdn-eu.com/tos-maliva-avt-0068/c74493c7461ea519d18e4296b5f0a179~tplv-tiktokx-cropcenter:1080:1080.jpeg?dr=10399&refresh_token=961be57b&x-expires=1791982800&x-signature=iWuuWOgZbda7qfaZ%2FQxRkG3KigA%3D&t=4d5b047β¦",
"latest_story_at": null,
"extra": {
"sec_uid": null
}
},
"coauthors": [],
"sponsors": [],
"tagged": [],
"location": null,
"audio": {
"id": null,
"title": "son original",
"artist": "Lenny",
"is_original": null
},
"thumbnail_url": "https://p16-common-sign.tiktokcdn-eu.com/tos-useast8-p-0068-tx2/oo5I5WvEETRyKQFQZBFqAzfDAoVWZEIAfMyEqj~tplv-tiktokx-origin.image?dr=10395&x-expires=1791982800&x-signature=5L79EzEhLIjMKumx0jYWnPzVSD8%3D&t=4d5b0474&ps=13740610&shp=81f88b70&shβ¦",
"video_duration": 10,
"media": [],
"media_urls": [],
"extra": {
"url": "https://www.tiktok.com/@calithekid1/video/7694624183157935390",
"shares": 3819,
"saves": 1698
}
},
{
"id": "7695674192158657825",
"shortcode": null,
"taken_at": "2026-10-12T07:06:24+00:00",
"kind": "video",
"product_type": null,
"caption": "β€οΈπ«Άπ»ππΈπ¦π¦π¦πΌπ€π€π₯°πππ",
"hashtags": [],
"mentions": [],
"accessibility_caption": null,
"likes": 29,
"comments": 3,
"views": 141,
"counts_hidden": null,
"comments_disabled": null,
"is_pinned": null,
"is_paid_partnership": null,
"owner": {
"id": "6808106188887557126",
"username": "karynhaizelden",
"full_name": "Karyn Haizelden",
"is_verified": false,
"is_private": false,
"avatar_url": "https://p16-common-sign.tiktokcdn-eu.com/tos-useast2a-avt-0068-euttp/ebcaae3838aef127a03d51dc8fdddbf3~tplv-tiktokx-cropcenter:1080:1080.jpeg?dr=10399&refresh_token=5f0be20c&x-expires=1791982800&x-signature=s3GgKpA4R2JIXCrwCwoTi8GQBAM%3D&t=4β¦",
"latest_story_at": null,
"extra": {
"sec_uid": null
}
},
"coauthors": [],
"sponsors": [],
"tagged": [],
"location": null,
"audio": {
"id": null,
"title": "Ψ§ΩΨ΅ΩΨͺ Ψ§ΩΨ£Ψ΅ΩΩ",
"artist": "ΨΨ³Ω",
"is_original": null
},
"thumbnail_url": "https://p16-common-sign.tiktokcdn-eu.com/tos-useast2a-p-0037-euttp/owiQmIICIBAfvIzMD11oy3FozAiMHhZBkOUN6z~tplv-tiktokx-origin.image?dr=10395&x-expires=1791982800&x-signature=T1OZKG%2Bc3dakAozHDNYhisp0M%2FY%3D&t=4d5b0474&ps=13740610&shp=81f8β¦",
"video_duration": 45,
"media": [],
"media_urls": [],
"extra": {
"url": "https://www.tiktok.com/@karynhaizelden/video/7695674192158657825",
"shares": 0,
"saves": 0
}
},
{
"id": "7689374995503484192",
"shortcode": null,
"taken_at": "2026-09-25T07:42:19+00:00",
"kind": "video",
"product_type": null,
"caption": "Nike sneaker collection #nike #sneakers #shoes #sneakercollection #sneakerrotation ",
"hashtags": [
"nike",
"shoes",
"sneakercollection"
],
"mentions": [],
"accessibility_caption": null,
"likes": 277,
"comments": 6,
"views": 3623,
"counts_hidden": null,
"comments_disabled": null,
"is_pinned": null,
"is_paid_partnership": null,
"owner": {
"id": "7418673935666365472",
"username": "arthur.vngs",
"full_name": "arthur.vngs",
"is_verified": false,
"is_private": false,
"avatar_url": "https://p16-common-sign.tiktokcdn-eu.com/tos-useast2a-avt-0068-euttp/08d14a7439fafdccf34eb3bdb5f0a5f2~tplv-tiktokx-cropcenter:1080:1080.jpeg?dr=10399&refresh_token=2cb62bd4&x-expires=1791982800&x-signature=pC1TUS3TqsqEb06Sa5dQmo%2B4IOw%3D&tβ¦",
"latest_story_at": null,
"extra": {
"sec_uid": null
}
},
"coauthors": [],
"sponsors": [],
"tagged": [],
"location": null,
"audio": {
"id": null,
"title": "original sound",
"artist": "arthur.vngs",
"is_original": null
},
"thumbnail_url": "https://p19-common-sign.tiktokcdn-eu.com/tos-useast2a-p-0037-euttp/osAAxIAs2x1AR0kJpxihBiWCIBdByoLTiEfCxQ~tplv-tiktokx-origin.image?dr=10395&x-expires=1791982800&x-signature=H%2FkbmN4prkWRcwLwmwJas5oHk4k%3D&t=4d5b0474&ps=13740610&shp=81f88bβ¦",
"video_duration": 88,
"media": [],
"media_urls": [],
"extra": {
"url": "https://www.tiktok.com/@arthur.vngs/video/7689374995503484192",
"shares": 3,
"saves": 15
}
}
],
"pages": [
{
"cursor": null,
"fetched_at": "2026-10-12T13:43:02.330943+00:00",
"count": 20
}
],
"next_cursor": "eyJjdXJzb3IiOiIyMCIsIm9wIjoic2VhcmNoX2l0ZW1fZnVsbCJ9",
"has_more": true,
"stop_reason": "pages",
"coverage": {
"since": null,
"oldest_at": "2026-09-25T07:42:19+00:00",
"since_reached": false
}
},
"meta": {
"source": "live",
"fetched_at": "2026-10-12T13:43:02.330943+00:00",
"cost": "$0.0005",
"balance": "$3.3627",
"request_id": "req_23525c0a79ea897d3a8c31e6608545e5"
}
}How it works
TikTok's video search, ranked by relevance across years. Search a brand name to find the videos that talk about it. With max_pages=1, returns Page[Post] under data; with get_raw=true returns the upstream JSON.
The default request creates a durable job (202). Use max_pages=1 for one synchronous Page response (200). Poll status_url, then read results_url with its opaque cursor. Acquisition stops at the first of since, max_pages, or exhaustion. Jobs continue after disconnects. Result responses are bounded to 3 MiB; this does not limit the crawl. Supply Idempotency-Key to recover a lost submission response; reuse it with the same inputs.
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.
Billing: $0.0005 per 20 unique returned items (one native page), rounded up to a minimum of one billing unit. Jobs settle once after successful completion. Submission, polling and repeat downloads are free.
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. |