Douyin content duration analysis by category id
tikhub.x.douyin-index-fetch-content-creative-durationDouyin: fetch content creative duration (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-durationPreviewTry onlineComing soonProvider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| Query parameters | ||||
period | string | Optional | 时间粒度/Period: week=周, month=月 | week |
tag_id | string | Required | Category ID, **required, does NOT support 0=all**. Get full list via fetch_item_filter_options (excluding id=0) | |
end_date | string | Required | End date YYYYMMDD | |
- Query parameters
periodstringOptional时间粒度/Period: week=周, month=月
Example:
weektag_idstringRequiredCategory ID, **required, does NOT support 0=all**. Get full list via fetch_item_filter_options (excluding id=0)
end_datestringRequiredEnd date YYYYMMDD
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-duration' \
-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-duration",
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-duration", {
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.