Douyin creative topics by category id
tikhub.x.douyin-index-fetch-content-creative-topicDouyin: fetch content creative topic (index)
- Price
- $0.001/successAt provider cost
- Success rate
- —No success-rate data yetNo success-rate data yet
- Latency p50
- ——
- Last verified
- —Not verified yet
POSThttps://toolswitch.dev/v1/tools/tikhub.x.douyin-index-fetch-content-creative-topicPreview- Uses platform quota
- Synchronous response
- Reads public data
Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Query parameters | ||||
period | string | Optional | Period: 1, 3, 7 | 7 |
tag_id | string | Required | Category ID, **required, does NOT support 0=all** | |
end_date | string | Required | End date YYYYMMDD (**must be a Sunday only when period=7**; any day for period=1/3) | |
rank_type | string | Optional | 排序类型/Rank type: index=指数排序, rise=飙升排序 | index |
- Query parameters
periodstringOptionalPeriod: 1, 3, 7
Example:
7tag_idstringRequiredCategory ID, **required, does NOT support 0=all**
end_datestringRequiredEnd date YYYYMMDD (**must be a Sunday only when period=7**; any day for period=1/3)
rank_typestringOptional排序类型/Rank type: index=指数排序, rise=飙升排序
Example:
index
Code samples
Replace $TOOLSWITCH_KEY with the key you created in the console.
Preview
curl -X POST 'https://toolswitch.dev/v1/tools/tikhub.x.douyin-index-fetch-content-creative-topic' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"POST",
"https://toolswitch.dev/v1/tools/tikhub.x.douyin-index-fetch-content-creative-topic",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/tikhub.x.douyin-index-fetch-content-creative-topic", {
method: "POST",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());This gateway API is in preview; its URL and authentication may change. The example parameters are sample data. Calls are billed at $0.001/success, including the service fee.