o_author_idstring必填
Creator/author ID
https://api.sandbase.ai/v1/api/douyin/xingtu-v2/author-spread-infoRetrieves commercial spread and reach capability data for a specific creator. Accepts filtering by time range, video type, flow type, and assignment status.
[
{
"data": {
"avg_duration": "20100",
"base_resp": {
"status_code": 0,
"status_message": ""
},
"comment_avg": "1825",
"expect_cpe": {
"cpe_21_60": "124",
"cpe_60": "227"
},
"expect_cpm": {
"cpm_21_60": "5786",
"cpm_60": "10609"
},
"interact_rate": {
"label": "美食",
"overtake": 6712,
"value": 392
},
"item_num": "7",
"item_rate": {
"interact_rate": {},
"item_num": {
"label": "",
"overtake": 6700,
"value": 7
},
"play_mid": {
"label": "",
"overtake": 9998,
"value": 4038696
}
},
"like_avg": "111069",
"play_mid": "4038696",
"play_over_rate": {
"label": "美食",
"overtake": 3937,
"value": 526
},
"play_stability": {
"label": "美食"
},
"sales_expect_cpm": {
"cpm_21_60": "7062",
"cpm_60": "12947"
},
"share_avg": "60849"
}
}
]选择一个示例,将其输入和结果加载到 playground 中。
Returns commercial spread metrics for one Douyin Xingtu creator, such as median plays, average likes, comments and shares, and expected CPM and CPE. It needs the creator's o_author_id. You can narrow the data by time range, video type, flow type and assigned-only videos.
item_num.curl -X POST "https://api.sandbase.ai/v1/api/douyin/xingtu-v2/author-spread-info" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"o_author_id": "7589271892177518598"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
o_author_id | string | Yes | Creator/author ID |
flow_type | integer | No | Flow type, default 0 |
only_assign | boolean | No | Only assigned videos, default False |
platform_channel | integer | No | Platform channel, default 1 |
platform_source | integer | No | Platform source, default 1 |
range | integer | No | Time range, 2=last 30 days, 3=last 90 days |
type | integer | No | Video type, 1=personal video |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"avg_duration": "5800",
"base_resp": {
"status_code": 0,
"status_message": ""
},
"comment_avg": "35",
"expect_cpe": {
"cpe_21_60": "6153",
"cpe_60": "7692"
},
"expect_cpm": {
"cpm_21_60": "776699",
"cpm_60": "970873"
},
"interact_rate": {
"overtake": 1555,
"value": 50
},
"item_num": "5",
"item_rate": {
"interact_rate": {},
"item_num": {
"label": "",
"value": 5
},
"play_mid": {
"label": "",
"overtake": 7588,
"value": 986
}
},
"like_avg": "61",
"play_mid": "986",
"play_over_rate": {
"overtake": 1701,
"value": 185
},
"play_stability": {}
}
| Field | Meaning |
|---|---|
play_mid | Median play count of the creator's videos in the selected window. |
like_avg / comment_avg / share_avg | Average likes, comments and shares per video. Values are returned as strings. |
avg_duration | Average video duration. The response does not show the unit. |
item_num | Number of videos counted in these stats. |
expect_cpm.cpm_21_60 / expect_cpm.cpm_60 | Expected CPM for videos of 21 to 60 seconds and for videos over 60 seconds. |
expect_cpe.cpe_21_60 / expect_cpe.cpe_60 | Expected CPE for the same two video length bands. |
sales_expect_cpm.cpm_21_60 / sales_expect_cpm.cpm_60 | Expected CPM in the sales context for the same two video length bands. |
interact_rate.value / interact_rate.overtake | The creator's interaction rate value and an overtake figure that shows how the creator ranks against others. |
play_over_rate.value / play_over_rate.overtake | The creator's play-over rate value and its overtake ranking figure. |
item_rate.play_mid.value / item_rate.play_mid.overtake | Median plays with its overtake ranking figure, grouped under item_rate. |
o_author_id is required. Add range (2 for 30 days, 3 for 90 days) to change the time window.play_mid and like_avg come back as strings, while overtake and value inside rate objects are numbers.play_stability and item_rate.interact_rate can come back as empty objects.$0.002 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
开始构建
具备统一身份验证和使用情况跟踪的平台 API 端点。
curl -X POST "https://api.sandbase.ai/v1/api/douyin/xingtu-v2/author-spread-info" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"o_author_id": "6677767167234015243",
"range": 2,
"type": 1
}'将您的 SandBase API 密钥设置到服务器环境中。请求使用 Bearer 身份验证。
export SANDBASE_API_KEY="YOUR_API_KEY"请将密钥保存在服务器端。不要在浏览器代码中暴露它。
o_author_idstring必填Creator/author ID
flow_typeintegerFlow type, default 0
only_assignbooleanOnly assigned videos, default False
platform_channelintegerPlatform channel, default 1
platform_sourceintegerPlatform source, default 1
rangeintegerTime range, 2=last 30 days, 3=last 90 days
typeintegerVideo type, 1=personal video
这是该 API 保存的示例响应;查看时不会发起实时请求。
[
{
"data": {
"avg_duration": "20100",
"base_resp": {
"status_code": 0,
"status_message": ""
},
"comment_avg": "1825",
"expect_cpe": {
"cpe_21_60": "124",
"cpe_60": "227"
},
"expect_cpm": {
"cpm_21_60": "5786",
"cpm_60": "10609"
},
"interact_rate": {
"label": "美食",
"overtake": 6712,
"value": 392
},
"item_num": "7",
"item_rate": {
"interact_rate": {},
"item_num": {
"label": "",
"overtake": 6700,
"value": 7
},
"play_mid": {
"label": "",
"overtake": 9998,
"value": 4038696
}
},
"like_avg": "111069",
"play_mid": "4038696",
"play_over_rate": {
"label": "美食",
"overtake": 3937,
"value": 526
},
"play_stability": {
"label": "美食"
},
"sales_expect_cpm": {
"cpm_21_60": "7062",
"cpm_60": "12947"
},
"share_avg": "60849"
}
}
]探索更多
| API | 价格 | 响应 |
|---|---|---|
Douyin | $0.002 每次调用 | JSON |
Douyin | $0.002 每次调用 | JSON |
Douyin | $0.002 每次调用 | JSON |
Douyin | $0.01 每次调用 | JSON |
Douyin | $0.003 每次调用 | JSON |
Douyin | $0.001 每次调用 | JSON |
问题
向 https://api.sandbase.ai/v1/api/douyin/xingtu-v2/author-spread-info 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。
每次调用 $0.002,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。
必填:o_author_id (string)。 可选:flow_type (integer), only_assign (boolean), platform_channel (integer), platform_source (integer), range (integer) 和 type (integer)。 Parameters 表和本页的 Playground 列出了每个字段。
在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。
不需要。Douyin Xingtu Author Spread Info 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Douyin API 访问权限。