Douyin Hashtag detail API
API health
- 24h health
- Normal
- 24h average time
- —
- Healthy / normal
- Available
- Limited
- Mostly down
Last 24 hours
Last 30 days
Read one Douyin hashtag by its numeric hashtag_id from hashtag_search. Get its name, total views since it was created, the number of users who have joined it, creation time and share link. Totals are platform counts for the whole hashtag, not for a period.
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
Paste this into your AI assistant. It already holds this endpoint's parameters, response fields and an example request, so the assistant can ask what you need and then write the scraper.
Please help me write a data collection script with the EveryInfra Douyin Hashtag detail endpoint (douyin/hashtag_detail).
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_detail, and put the parameters inside params.
- Required parameters:
- hashtag_id: The numeric ID of a Douyin hashtag for hashtag_detail, such as 1767586897793101, taken from the hashtag_id of a hashtag_search row. A hashtag name or #name is rejected before any charge.
- Returns one object. Main fields: hashtag_id (Hashtag ID (a digit string)), hashtag_name (Hashtag name, without the #), total_view_count (All-time views of the hashtag since it…), participant_count (Users who have joined the hashtag, all-…), created_at, url.
- Example request body:
{
"platform": "douyin",
"action": "hashtag_detail",
"params": {
"hashtag_id": "1767586897793101"
}
}
- 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_detail | Capability identifier, fixed value. |
hashtag_id | body.params | string | Yes | - | The numeric ID of a Douyin hashtag for hashtag_detail, such as 1767586897793101, taken from the hashtag_id of a hashtag_search row. A hashtag name or #name is rejected 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_detail",
"params": {
"hashtag_id": "1767586897793101"
}
}'OpenAPI definition (JSON)Samples read the key from the EVERYINFRA_API_KEY environment variable; copied code never contains your key.
Response example
No sample response is available for these parameters yet. This preview shows the response shape and fields from the API definition, with … as placeholders; it is not the result of a live call.
{
"id": "req_…",
"platform": "douyin",
"action": "hashtag_detail",
"results": {
"hashtag_id": …,
"hashtag_name": …,
"total_view_count": …,
"participant_count": …,
"created_at": …,
"url": …,
"platform": …
},
"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 #. |
total_view_count | All-time views of the hashtag since it was created (hashtag_detail), as counted by the platform. |
participant_count | Users who have joined the hashtag, all-time (hashtag_detail). |
created_at | Creation time, same format as posted_at. |
url | Link to the record on the platform. |
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.