oAuthorIdstringbắt buộc
Author's unique ID.
https://api.sandbase.ai/v1/api/douyin/xingtu-v3/data-sp-author-fans-distributionGet Douyin Creator Marketplace (Xingtu) follower or loyal-follower distribution data for a specified creator. Use it to compare audience-profile distributions during creator selection.
Đầu ra của bạn sẽ xuất hiện ở đây
Hoàn tất đầu vào, rồi nhấp Run.
This API returns follower distribution data for one creator on Douyin Creator Marketplace (Xingtu). It needs the creator's oAuthorId, and an optional authorType switches between all followers and loyal followers.
DIE_HARD_FAN) against all followers to see how the core audience differs.curl -X POST "https://api.sandbase.ai/v1/api/douyin/xingtu-v3/data-sp-author-fans-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. |
authorType | string | No | Author 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": "分布最多的3个省份广东(11%),江苏(7%),山东(6%)",
"distribution_list": [
{
"distribution_key": "广西",
"distribution_value": "4619384"
}
],
"image": [
"广东,江苏,山东居多"
],
"origin_type": 2,
"type": 4,
"type_display": "省份分布"
}
],
"last_update_time": "1793691175"
}
| Field | Meaning |
|---|---|
distributions[] | One block per audience dimension. This response includes province, city and device brand blocks. |
distributions[].type_display | Name of the dimension, for example 省份分布 (province), 城市分布 (city) or 设备品牌分布 (device brand). |
distributions[].description | Short summary text written by the platform. It names the top entries and their percentages, for example the top 3 provinces. |
distributions[].distribution_list[].distribution_key | Label of one bucket in the dimension, such as a province, city or phone brand. |
distributions[].distribution_list[].distribution_value | Value for that bucket, returned as a string. It looks like a count, not a percentage, so compare it with the other buckets in the same block. |
distributions[].image[] | Very short tag text that sums up the block, for example 北京居多. |
distributions[].type / origin_type | Numeric codes for the dimension. Use them to match the same dimension across calls. |
last_update_time | Unix timestamp in seconds, returned as a string. |
base_resp.status_code / base_resp.status_message | Call status from the platform. 0 with an empty message means success. |
authorType as FAN (default) or DIE_HARD_FAN to switch between followers and loyal followers.description, image and type_display is in Chinese.$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/data-sp-author-fans-distribution" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"oAuthorId": "6870161898013196295",
"authorType": "FAN"
}'Đặ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.
authorTypestringAuthor type filter.
Mặc định: "FAN"
Giá trị có thể dùng: FAN, DIE_HARD_FAN
Đâ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/data-sp-author-fans-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: authorType (một trong số FAN, DIE_HARD_FAN). 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 Follower 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.