GET /v1/tiktok/search_user_full
TikTok user search API: find accounts by keyword
Returns the accounts TikTok's user search finds for a keyword, each with id, username, display name and verified flag. Send keyword; a brand name finds its regional handles. Use max_pages=1 for one page of up to 10 accounts, or omit it to run a job.
- Price
- $0.0005 per 10 results
- Billing
- $0.0005/10
- Batch
- Yes, through /v1/batch
- Failed calls
- Not charged
Example request
curl 'https://api.virev.ai/v1/tiktok/search_user_full?keyword=khaby&max_pages=1' \
-H "Authorization: Bearer $VIREV_API_KEY"import os
import requests
response = requests.request(
"GET",
"https://api.virev.ai/v1/tiktok/search_user_full",
params={
"keyword": "khaby",
"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 | Not accepted on this operation: its items carry no timestamp, so since returns 400 before billing. |
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 10. TikTok answers at most 10. Billed per 10 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[Account]. |
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.
{
"data": {
"items": [
{
"id": "127905465618821121",
"username": "khaby.lame",
"full_name": "Khabane lame",
"is_verified": true,
"is_private": false,
"avatar_url": null,
"latest_story_at": null,
"extra": {
"sec_uid": null
}
},
{
"id": "7115770598617809926",
"username": "khaby00_reacting",
"full_name": "Khaby00",
"is_verified": false,
"is_private": false,
"avatar_url": null,
"latest_story_at": null,
"extra": {
"sec_uid": null
}
},
{
"id": "6983989895064814619",
"username": "khaby_official_dute_",
"full_name": "khaby official fan dute",
"is_verified": false,
"is_private": false,
"avatar_url": null,
"latest_story_at": null,
"extra": {
"sec_uid": null
}
}
],
"pages": [
{
"cursor": null,
"fetched_at": "2026-10-12T12:57:43.728153+00:00",
"count": 10
}
],
"next_cursor": "eyJjdXJzb3IiOiIxMCIsIm9wIjoic2VhcmNoX3VzZXJfZnVsbCJ9",
"has_more": true,
"stop_reason": "pages",
"coverage": {
"since": null,
"oldest_at": null,
"since_reached": false
}
},
"meta": {
"source": "db",
"fetched_at": "2026-10-12T12:57:43.728153+00:00",
"cost": "$0.0005",
"balance": "$3.3627",
"request_id": "req_395e70802f2552d912a62e08d25455d1"
}
}How it works
TikTok's account search, such as a brand's regional handles. With max_pages=1, returns Page[Account] 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 10 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. |