GET /v1/tiktok/challenge_detail

TikTok hashtag API: get a hashtag's video and view counts by tag name

Returns a TikTok hashtag's own page: its id, title, description, and the number of videos and views TikTok counts for it. Send tag with or without #. For the videos under the tag, use the TikTok hashtag videos API.

Price
$0.0005 per call
Batch
Yes, through /v1/batch
Failed calls
Not charged

Example request

curl
curl 'https://api.virev.ai/v1/tiktok/challenge_detail?tag=skincare' \
  -H "Authorization: Bearer $VIREV_API_KEY"
python
import os
import requests

response = requests.request(
    "GET",
    "https://api.virev.ai/v1/tiktok/challenge_detail",
    params={
        "tag": "skincare",
    },
    headers={"Authorization": f"Bearer {os.environ['VIREV_API_KEY']}"},
    timeout=60,
)
response.raise_for_status()
print(response.json())

Parameters

NameInTypeDescription
tag requiredquerystringA hashtag, with or without #. Example skincare.
cached queryauto | cache_only | liveauto (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. Default auto.
get_raw querybooleantrue returns the upstream JSON exactly as TikTok answered it instead of the normalized Challenge. Default false.

Example response

The example response of the API reference.

json
{
  "data": {
    "id": "504245",
    "title": "skincare",
    "description": "From routines to glow ups, discover how the skincare community on TikTok keeps their skin cared for.",
    "videos": 62641018,
    "views": 1001362451160,
    "extra": {}
  },
  "meta": {
    "source": "live",
    "fetched_at": "2026-10-28T08:55:54.194798+00:00",
    "cost": "$0.0005",
    "balance": "$0.9995",
    "request_id": "req_fb8da1639e69e486f1859a4ff8d7d410"
  }
}

How it works

A hashtag's own page: its id, title, description, and how many videos and views TikTok counts for it. Returns Challenge under data; with get_raw=true returns the upstream JSON.

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

StatusWhen
400The request parameters are invalid.
401Missing, malformed, or revoked API key.
402Balance is too low for this request.
404cached=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.
429Over 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.
502The upstream fetch failed. You are not charged.
503Billing could not be confirmed, so no upstream data was returned.
504The upstream request timed out. You are not charged.

TikTok API guide