怎么发
用 POST 带 JSON 请求体,或者用 GET 把同样的参数放进查询串。key 放在 Authorization 头里。
curl -X POST "https://api.silklinedata.com/v1/douyin/board" \
-H "Authorization: Bearer $SILKLINE_KEY" \
-H "Content-Type: application/json" \
-d '{"limit":5,"board":"videos","timeWindowHours":24}'import os, requests
response = requests.post(
"https://api.silklinedata.com/v1/douyin/board",
headers={"Authorization": "Bearer " + os.environ["SILKLINE_KEY"]},
json={
"limit": 5,
"board": "videos",
"timeWindowHours": 24,
},
)
answer = response.json()
print(answer["data"], answer["meta"]["charged_usd"])const response = await fetch("https://api.silklinedata.com/v1/douyin/board", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.SILKLINE_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({
"limit": 5,
"board": "videos",
"timeWindowHours": 24
}),
});
const { data, cursor, meta } = await response.json();
console.log(data, meta.charged_usd);返回什么
这是 2026-11-09 一次真实请求返回的记录。普通用户的名字、头像和主页链接显示为 <masked>;长文字只在这里截短,接口里是完整的。
200 OK · 取数日期 2026-11-09
{
"data": [
{
"type": "boardEventDetail",
"board": "eventDetail",
"eventId": "2000",
"word": "全国年味巡游开始啦",
"category": "话题互动",
"eventCity": null,
"coverUrl": "http://p6-dyhot.byteimg.com/tos-cn-i-…",
"startDate": "2026-01-29T16:00:00Z",
"endDate": "2026-02-24T15:59:59Z",
"publishStartDate": "2026-01-30T12:00:00+08:00",
"publishEndDate": "2026-02-24T12:00:00+08:00",
"activityDescription": "年味在哪?上抖音过春节,吃喝玩乐寻年…",
"reward": null,
"publishCount": 8332,
"relatedTopics": [
"全国年味巡游开始啦"
],
"challenges": [
{
"challengeId": "7600748480302155776",
"name": "全国年味巡游开始啦"
}
],
"exampleVideos": [
{
"awemeId": "7600260688858102203",
"url": "https://www.douyin.com/video/76002606…",
"description": "2026年宾阳新春炮龙非遗盛宴!将集结13…",
"createdAt": "2026-01-28T04:13:10Z",
"coverUrl": "https://p9-sign.douyinpic.com/tos-cn-…"
},
{
"awemeId": "7599600074317948017",
"url": "https://www.douyin.com/video/75996000…",
"description": "甘肃高台社火,是一场没有围墙的博物馆…",
"createdAt": "2026-01-26T09:29:40Z",
"coverUrl": "https://p11-sign.douyinpic.com/tos-cn…"
},
{
"awemeId": "7599475900514504612",
"url": "https://www.douyin.com/video/75994759…",
"description": "上次的金龙巡游视频火了。很多人问下次…",
"createdAt": "2026-01-26T01:27:49Z",
"coverUrl": "https://p3-sign.douyinpic.com/tos-cn-…"
}
]
}
],
"cursor": "c1.Hq8vR2mTn5wK.yJ0dXA…",
"meta": {
"request_id": "req_01JD8Q…",
"charged_usd": "0.001800",
"balance_usd": "9.875000",
"items": 1
}
}字段 17
| 字段 | 类型 | 示例值 |
|---|---|---|
| type | string | boardEventDetail |
| board | string | eventDetail |
| eventId | string | 2000 |
| word | string | 全国年味巡游开始啦 |
| category | string | 话题互动 |
| eventCity | null | null |
| coverUrl | string | http://p6-dyhot.byteimg.com/tos-cn-i-jid1fmi4d3/93c6a5aa2070… |
| startDate | string | 2026-01-29T16:00:00Z |
| endDate | string | 2026-02-24T15:59:59Z |
| publishStartDate | string | 2026-01-30T12:00:00+08:00 |
| publishEndDate | string | 2026-02-24T12:00:00+08:00 |
| activityDescription | string | 年味在哪?上抖音过春节,吃喝玩乐寻年味,2月10日至2月23日,吃喝玩乐好货福利拉满,快来晒出你的过年新生活,跟着抖音一… |
| reward | null | null |
| publishCount | number | 8332 |
| relatedTopics | array | ["全国年味巡游开始啦"] |
| challenges | array | [{"challengeId":"7600748480302155776","name":"全国年味巡游开始啦"}] |
| exampleVideos | array | [{"awemeId":"7600260688858102203","url":"https://www.douyin.… |
参数 3
| 参数名 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| limit | integer | 否 | 返回的记录条数,1 到 100。一次请求返回的条数不会超过这个数。 | 5 |
| board | string | 否 | 要读取的榜单。视频类:热门视频、低粉爆款、高完播、高点赞、涨粉。话题类:热门和上升话题、挑战。热点类:上升、同城、总榜(需要 dateFrom/dateTo,默认最近两天)。词和账号类:搜索榜、上升搜索、热点内容词、热门账号。其他:活动日历、音乐榜、品牌榜。按 ID 查详情:eventDetail(`eventIds` 里每个 ID 返回一个日历活动)和 hotWordDetail(`wordIds` 里每个 ID 返回一个热点内容词,附相关视频和相关词)。创作者中心(热点、话题、音乐、道具、视频)和 DOU+(视频排行、分类创作者)榜单读取一个 10 到 300 条的列表,忽略关键词和时间窗口。 | videos |
| timeWindowHours | integer | 否 | 榜单回看的时间范围,单位小时。可选值:1、24、72 或 168。 | 24 |
翻页
把上一次返回的 cursor 连同同样的参数传回来,拿下一页。每一页是一次独立的请求,单独计费;最后一页的 cursor 是 null。
JavaScript
const params = {"board":"videos","timeWindowHours":24};
const records = [];
let cursor = null;
do {
const response = await fetch("https://api.silklinedata.com/v1/douyin/board", {
method: "POST",
headers: { Authorization: `Bearer ${process.env.SILKLINE_KEY}`, "Content-Type": "application/json" },
body: JSON.stringify({ ...params, limit: 100, ...(cursor ? { cursor } : {}) }),
});
const answer = await response.json();
records.push(...answer.data);
cursor = answer.cursor;
} while (cursor);
console.log(records.length);一次请求花多少
按条计费;一次请求条数少或没有结果时,每取一页收费不超过这个接口每页的最低收费,可能更低;我们这边出错或超时不收费。
这个接口一页最多 10 条,每页最低收费 $0.001325;要 100 条的请求会取 10 页。
- 1 条:最多 $0.0018
- 20 条:最多 $0.036
- 100 条:最多 $0.18
上面几行只按最便宜的那种记录算。别的种类按各自的价格另算:记录 $0.00405。
返回的 meta 里写着这次扣了多少(charged_usd)和还剩多少(balance_usd)。我们这边出错不收费。
常见问题
「扩展榜单」要传哪些参数?
没有必填参数。可选:board、timeWindowHours。另外都可以传 limit(1 到 100)。
一次请求最多返回多少条?
每次请求最多 100 条(limit 1 到 100)。每页最多 10 条,要 100 条时一次请求取 10 页。
能接着往后取吗?
能。回答里有 cursor 时,带上同样的参数和这个 cursor 再请求一次,就从上次停下的地方接着取。
怎么收费?
每条 榜单或列表行 $0.0018、记录 $0.00405。每页最低收费 $0.001325:条数少或没有结果时,每取一页最多收这么多,可能更低。取 100 条最多 $0.18。
请求失败或者没有结果时怎么收费?
按条计费;一次请求条数少或没有结果时,每取一页收费不超过这个接口每页的最低收费,可能更低;我们这边出错或超时不收费。回答里的 meta 写着这次收了多少、余额还剩多少。