API DocsdouyinSearchFetch item search keywords statistics
Fetch item search keywords statistics
What this API is for
- Get Douyin item search keywords statistics
- Understand which search keywords users used to find and watch the item
- Help creators optimize content titles, tags, and descriptions to improve search exposure
- **This API requires users to provide valid Douyin Creator Platform Cookie**
- **Use POST method, Cookie is transmitted in request body, more secure**
POST
/openapi/api/v1/douyin/creator_v2/fetch_item_search_keywordPrice:Price unavailable · Actual charges depend on free quota and account discounts
Authentication
All API requests require a Bearer project token in the Authorization header
Authorization header
Authorization: Bearer YOUR_API_TOKENRequest parameters
- cookie: User's Douyin Creator Platform Cookie (required, transmitted in request body)
- item_id: Item ID (required)
| Name | Location / type | Required | Notes | Example |
|---|---|---|---|---|
| cookie | body / string | Yes |
| Your_Cookie_Here |
| item_id | body / string | Yes |
| 7559536212910853422 |
Request body example
{
"cookie": "Your_Cookie_Here",
"item_id": "7559536212910853422"
}Request examples
curl -X POST "https://api.trmesh.com/openapi/api/v1/douyin/creator_v2/fetch_item_search_keyword" \ -H "Authorization: Bearer sdc_your_project_token"
Response fields
- Returns a list of keywords users searched for to find this item, including:
- keyword: Search keyword
- count: Number of times this keyword was searched
- percentage: Percentage of this keyword in total searches
- **Note**: If an empty list is returned, it means there is currently no search keyword data for this item, possible reasons:
- Item was just published and no users have searched for it yet
- Item is mainly spread through recommendations, follows, etc., not through search
- No search behavior during the statistics period
| Field | Type | Notes | Example |
|---|---|---|---|
| keyword | unknown |
| |
| count | unknown |
| |
| percentage | unknown |
| |
| Note | unknown |
|
Common response envelope
Common fields for response status, request identifiers and data
| Field | Type | Notes | Example |
|---|---|---|---|
| code | integer |
| |
| request_id | string | null |
| |
| message | string |
| |
| message_zh | string |
| |
| support | string |
| |
| time | string |
| |
| time_stamp | integer |
| |
| time_zone | string |
| |
| docs | string | null |
| |
| cache_message | string | null |
| |
| cache_message_zh | string | null |
| |
| cache_url | string | null |
| |
| router | string |
| |
| params | unknown |
| |
| data | unknown | null |
|
Response example
{
"keywords": [
{
"keyword": "搞笑视频",
"count": 1250,
"percentage": 35.5
},
{
"keyword": "热门音乐",
"count": 850,
"percentage": 24.2
},
{
"keyword": "舞蹈教学",
"count": 620,
"percentage": 17.6
}
],
"total_count": 3520,
"status_code": 0,
"status_msg": ""
}Errors and limits
The docs cover not only success responses, but also auth failures, rate limits, and data-service errors
| Code | Meaning | Notes |
|---|---|---|
| 200 | Success | The request completed and returned the standard response envelope. |
| 401 | Unauthorized | The token is missing, invalid, or no longer active. |
| 429 | Rate limited | The request exceeded token, user, or plan-level throughput limits. |
| 502 | Service unavailable | The gateway could not obtain a healthy result. Retry in a moment. |
Next steps
New to the API? Read the guide or explore examples