Douyin Hashtag search API
API health
- 24h health
- Normal
- Healthy / normal
- Available
- Limited
- Mostly down
Last 24 hours
Last 30 days
Find Douyin hashtags whose names contain a keyword, ranked by heat. Each hashtag has its numeric ID, a heat index and the videos, likes and views it gathered over the last 7 full days in China time, with the period dates on every row. Up to 200 hashtags per call, 20 by default; pass hashtag_id to hashtag_detail for all-time totals.
Send POST https://api.everyinfra.com/api/v1/social with platform set to douyin and action set to hashtag_search. Price $15.56 per 1,000 requests ($0.01556 per call). Failed calls and empty results are not charged. Synchronous. For slow jobs add "mode": "async" to the body, take the job_id and poll.
AI prompt
#Please help me write a data collection script with the EveryInfra Douyin Hashtag search endpoint (douyin/hashtag_search).
How the endpoint works:
- Request: POST https://api.everyinfra.com/api/v1/social with the header Authorization: Bearer <API key>. Read the key from the EVERYINFRA_API_KEY environment variable and never hard-code it.
- In the request body, set platform to douyin and action to hashtag_search, and put the parameters inside params.
- Required parameters:
- keyword: The word to look for in Douyin hashtag names, such as food; Chinese terms usually match more hashtags. It finds hashtags, not videos.
- Optional parameters:
- limit: The most rows to return in this call, an integer from 1 to 200. The default applies when you leave it out, and a call can return fewer rows. Larger values return 422 before any charge. (default: 20)
- Returns a list of records. Main fields of each record: hashtag_id (Hashtag ID (a digit string)), hashtag_name (Hashtag name, without the #), search_rank, heat_index (The hashtag's heat index over the perio…), period_video_count (Videos posted under the hashtag during…), period_like_count (Likes the hashtag's videos received dur…), period_view_count (Views of the hashtag's videos during th…), period_start (First day of the period, YYYY-MM-DD (ha…), period_end (Last day of the period, YYYY-MM-DD (has…).
- Example request body:
{
"platform": "douyin",
"action": "hashtag_search",
"params": {
"keyword": "美食"
}
}
- Price: $15.56 per 1,000 requests; failed and empty results are not charged.
- For dozens or hundreds of targets, add "mode": "async" to the body: you get a job_id at once and poll GET https://api.everyinfra.com/api/v1/jobs/{job_id} for the result.
- On 422, fix the request using the suggested parameter names and allowed values in the error; on 429 or 503, wait for Retry-After and try again.
Before writing code, ask me which targets I need, how many, which fields, and what output format I want; then confirm the plan and the rough cost with me.Request parameters
#| Name | In | Type | Required | Default | Description |
|---|---|---|---|---|---|
Authorization | header | string | Yes | - | Bearer followed by your API key. Create it in the console; never put it in a URL or a code repository. |
platform | body | string | Yes | douyin | Platform identifier, fixed value. |
action | body | string | Yes | hashtag_search | Capability identifier, fixed value. |
keyword | body.params | string | Yes | - | The word to look for in Douyin hashtag names, such as food; Chinese terms usually match more hashtags. It finds hashtags, not videos. |
limit | body.params | integer (1–200) | No | 20 | The most rows to return in this call, an integer from 1 to 200. The default applies when you leave it out, and a call can return fewer rows. Larger values return 422 before any charge. |
Code samples
#curl -X POST 'https://api.everyinfra.com/api/v1/social' \
-H "Authorization: Bearer $EVERYINFRA_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"platform": "douyin",
"action": "hashtag_search",
"params": {
"keyword": "美食"
}
}'OpenAPI definition (JSON)Samples read the key from the EVERYINFRA_API_KEY environment variable; copied code never contains your key.
Response example
#{ "id": "req_…", "platform": "douyin", "action": "hashtag_search", "results": [ { "hashtag_id": "1767586897793101", "hashtag_name": "美食", "search_rank": 1, "heat_index": 58567572, "period_video_count": 393945, "period_like_count": 68080130, "period_view_count": 5177091488, "period_start": "2026-10-31", "period_end": "2026-11-06", "platform": "douyin" }, { "hashtag_id": "1581688162541582", "hashtag_name": "美食教程", "search_rank": 2, "heat_index": 18339337, "period_video_count": 50914, "period_like_count": 23681506, "period_view_count": 1957784078, "period_start": "2026-10-31", "period_end": "2026-11-06", "platform": "douyin" } ], "count": 20, "billing": { "charged": …, "charged_usd": …, "balance_after_usd": …, … }, "quota": { … }}
Response fields
#Business data is in results. The table lists the fields a record can contain; values the platform does not show are never made up.
| Field | Meaning |
|---|---|
hashtag_id | Hashtag ID (a digit string); pass it as hashtag_id to hashtag_detail. |
hashtag_name | Hashtag name, without the #. |
search_rank | Keeps the platform's own meaning |
heat_index | The hashtag's heat index over the period (hashtag_search), a Douyin metric to compare only within one result. |
period_video_count | Videos posted under the hashtag during the period (hashtag_search). |
period_like_count | Likes the hashtag's videos received during the period (hashtag_search). |
period_view_count | Views of the hashtag's videos during the period (hashtag_search), as counted by the platform. |
period_start | First day of the period, YYYY-MM-DD (hashtag_search); always the last 7 full days up to yesterday in China time. |
period_end | Last day of the period, YYYY-MM-DD (hashtag_search): yesterday in China time. |
platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |
Errors and billing
#- 401
- Missing or invalid key.
- 402
- Insufficient balance. Top up first.
- 422
- Invalid parameter name or value. Fix it using the suggestions in the error. No charge.
- 429
- Per-minute request limit reached. Wait for Retry-After, then try again.
- 503
- Could not complete. The held charge is returned to your balance. If the outcome is unknown, verify it before you retry.
- 200 empty
- No data. No charge.