oAuthorIdstringbắt buộc
Author's unique ID.
https://api.sandbase.ai/v1/api/douyin/xingtu-v3/aggregator-author-live-watch-distributionGet Douyin Creator Marketplace (Xingtu) live audience or follower watch-distribution data for a creator and selected live-room type. Use it to assess live audience fit for a campaign.
Đầu ra của bạn sẽ xuất hiện ở đây
Hoàn tất đầu vào, rồi nhấp Run.
Returns watch-distribution breakdowns for a creator's Douyin live streams on Xingtu, such as city, city tier and audience segment. It needs the creator's oAuthorId. You can choose the audience type (liveCrowdType) and the live room type (liveType).
AUDIENCE and once with FANS to see how live viewers differ from followers.ECOMMERCE and GAME live rooms for the same creator to pick the right live format.curl -X POST "https://api.sandbase.ai/v1/api/douyin/xingtu-v3/aggregator-author-live-watch-distribution" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"oAuthorId": "6870161898013196295"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
oAuthorId | string | Yes | Author's unique ID. |
liveCrowdType | string | No | Live audience profile type. |
liveType | string | No | Live room type filter. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"base_resp": {
"status_code": 0,
"status_message": ""
},
"distributions": [
{
"description": "分布最多的1个城市北京(4%)",
"distribution_list": [
{
"distribution_key": "北京",
"distribution_value": "2203379"
}
],
"image": [
"北京居多"
],
"origin_type": 8,
"type": 256,
"type_display": "城市分布"
}
]
}
| Field | Meaning |
|---|---|
distributions[] | One entry per breakdown type. Each entry holds a summary text and a list of values. |
distributions[].type_display | Name of the breakdown, such as 城市分布 (city distribution), 八大人群分布 (eight-segment audience distribution) or 城市等级分布 (city tier distribution). |
distributions[].description | Short text that names the top group and its share, for example 新锐白领居多,占比20%. |
distributions[].distribution_list[].distribution_key | Label of one group in the breakdown, such as a city name, a city tier or an audience segment. |
distributions[].distribution_list[].distribution_value | Value for that group, returned as a string of digits. Convert it to a number before you sort or add values. |
distributions[].image[] | Short label text for the top group, such as 北京居多. |
distributions[].type / origin_type | Numeric codes for the breakdown type. Use type to match the same breakdown across calls. |
base_resp.status_code / base_resp.status_message | Status of the request. 0 with an empty message appears in this response. |
oAuthorId from Douyin Xingtu Creator Search.liveCrowdType accepts AUDIENCE or FANS. liveType accepts ALL, GAME, ECOMMERCE or OTHER. Both are optional.$0.021429 per successful call. Failed calls are not charged.
Bắt đầu xây dựng
Endpoint API của nền tảng với xác thực và theo dõi mức sử dụng thống nhất.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/xingtu-v3/aggregator-author-live-watch-distribution" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"oAuthorId": "6870161898013196295"
}'Đặt SandBase API key của bạn trong môi trường máy chủ. Các request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key của bạn trên máy chủ. Không hiển thị trong mã chạy trên trình duyệt.
oAuthorIdstringbắt buộcAuthor's unique ID.
liveCrowdTypestringLive audience profile type.
Giá trị có thể dùng: AUDIENCE, FANS
liveTypestringLive room type filter.
Giá trị có thể dùng: ALL, GAME, ECOMMERCE, OTHER
Đây là phản hồi ví dụ đã lưu cho API này; không có request thực nào được gửi khi xem mục này.
Chưa có phản hồi đã lưu nào được công bố. Chạy API trong Playground để xem phản hồi.
Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
Douyin | $0.021429 mỗi lần gọi | JSON |
Douyin | $0.021429 mỗi lần gọi | JSON |
Douyin | $0.021429 mỗi lần gọi | JSON |
Douyin | $0.021429 mỗi lần gọi | JSON |
Douyin | $0.071429 mỗi lần gọi | JSON |
Douyin | $0.021429 mỗi lần gọi | JSON |
Câu hỏi
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/douyin/xingtu-v3/aggregator-author-live-watch-distribution với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.
$0.021429 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.
Bắt buộc: oAuthorId (string). Tùy chọn: liveCrowdType (một trong số AUDIENCE, FANS) và liveType (một trong số ALL, GAME, ECOMMERCE, OTHER). Bảng Parameters và Playground trên trang này liệt kê mọi trường.
Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.
Không. Douyin Xingtu Live Watch Distribution chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Douyin.