Get hashtag (challenge) detail & total views
GET/v1/challenge/info10 Credits / request($1.00 / 1K requests)
Look up a hashtag by name to retrieve its numeric cid (data.id), description, video count (data.userCount), and total view count (data.viewCount).
Query Parameters
challenge_namestringrequiredHashtag name without
#, e.g.fyportiktokmademebuyit.Example:
fyp
Example Request (cURL / Python / JavaScript)
curl "https://api.shortvidapi.com/v1/challenge/info?challenge_name=fyp" \
-H "x-api-key: tk_your_api_key"Live Response Preview
{
"code": 0,
"provider": "https://shortvidapi.com",
"status": "ok",
"msg": "success",
"data": {
"id": "229207",
"cha_name": "fyp",
"desc": "",
"user_count": 881330816,
"view_count": 131052214999855,
"is_pgcshow": false,
"is_commerce": false,
"is_challenge": false,
"is_strong_music": false,
"type": 2,
"cover": ""
}
}Response Fields
Success (code === 0). Charged according to the endpoint credit rate.
| Field | Type | Sample / Notes |
|---|---|---|
code | integer | Example: 0 |
provider | string | Example: https://shortvidapi.com |
status | string | Example: ok |
msg | string | Example: success |
data | object | |
id | string | Example: 229207 |
cha_name | string | Example: fyp |
desc | string | Example: |
user_count | integer | Example: 881330816 |
view_count | integer | Example: 131052214999855 |
is_pgcshow | boolean | Example: false |
is_commerce | boolean | Example: false |
is_challenge | boolean | Example: false |
is_strong_music | boolean | Example: false |
type | integer | Example: 2 |
cover | string | Example: |
Status Codes
- 200
- Success (
code === 0). Charged according to the endpoint credit rate. - 400
- Invalid parameters, or API key placed in the URL query string (not charged).
- 401
- Missing or invalid
x-api-keyheader (not charged). - 402
- Insufficient credit balance (not charged).
- 403
- Account disabled (not charged).
- 404
- Unknown endpoint or disabled unstable endpoint (not charged).
- 405
- Method not allowed — all
/v1/*data endpoints useGET(not charged). - 429
- Rate limit exceeded (not charged). Respect the
Retry-Afterheader. - 503
- Temporary upstream or gateway error (not charged). Retry with exponential backoff.
Migrating from direct scraping and hitting HTTP 403 Forbidden or empty responses on www.tiktok.com? Read How to Fix TikTok HTTP Error 403 or compare quota limits in our TikTok API Quota & Cost Calculator.