author_idstringbắt buộc
Creator/author ID
https://api.sandbase.ai/v1/api/douyin/xingtu-v2/author-content-hot-keywordsReturns trending content keywords for a Douyin creator. Filter results by creator ID and specify an optional keyword type.
[
{
"data": {
"base_resp": {
"status_code": 0,
"status_message": ""
},
"keyword_item_distribution": {
"平板": 1,
"平板电脑": 1,
"店铺": 1,
"电脑": 1,
"笔记本": 1
},
"keyword_map": {
"一口价": 1,
"保护壳": 2,
"卡针": 2,
"国货": 2,
"小型": 1,
"平板": 2,
"平板电脑": 2,
"店铺": 2,
"快充线": 2,
"数码科技": 2,
"新款": 1,
"民族品牌": 1,
"电脑": 2,
"电脑桌面": 1,
"直播间": 2,
"砍一刀": 1,
"笔记本": 2,
"联想": 2,
"连接": 1,
"降维打击": 1
}
}
}
]Chọn một ví dụ để nạp đầu vào và kết quả của nó vào playground.
Returns a set of content keywords for one Douyin creator on Xingtu, each paired with a number. It needs the creator's author_id and accepts an optional keyword_type.
直播间 or 砍一刀 to see how a creator frames promotions.curl -X POST "https://api.sandbase.ai/v1/api/douyin/xingtu-v2/author-content-hot-keywords" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"author_id": "7146074596666507300"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
author_id | string | Yes | Creator/author ID |
keyword_type | integer | No | Keyword type, default 0 |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"base_resp": {
"status_code": 0,
"status_message": ""
},
"keyword_item_distribution": {
"平板": 1,
"平板电脑": 1,
"店铺": 1,
"电脑": 1,
"笔记本": 1
},
"keyword_map": {
"一口价": 1,
"保护壳": 2,
"卡针": 2,
"国货": 2,
"小型": 1,
"平板": 2,
"平板电脑": 2,
"店铺": 2,
"快充线": 2,
"数码科技": 2,
"新款": 1,
"民族品牌": 1
}
}
| Field | Meaning |
|---|---|
keyword_map | Object that maps each keyword to an integer, for example 平板电脑 or 快充线. The key is the keyword text in Chinese. This is the main and longest keyword list. |
keyword_item_distribution | Object with the same shape as keyword_map, with fewer keywords, for example 笔记本 or 店铺. Each key is a keyword and each value is an integer. |
base_resp.status_code | Status of the call. 0 means the call succeeded. |
base_resp.status_message | Text message that goes with the status. It is an empty string in this response. |
keyword_type is optional and defaults to 0. The example request omitted it.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
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-v2/author-content-hot-keywords" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"author_id": "7146074596666507300"
}'Đặ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.
author_idstringbắt buộcCreator/author ID
keyword_typeintegerKeyword type, default 0
Đâ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.
[
{
"data": {
"base_resp": {
"status_code": 0,
"status_message": ""
},
"keyword_item_distribution": {
"平板": 1,
"平板电脑": 1,
"店铺": 1,
"电脑": 1,
"笔记本": 1
},
"keyword_map": {
"一口价": 1,
"保护壳": 2,
"卡针": 2,
"国货": 2,
"小型": 1,
"平板": 2,
"平板电脑": 2,
"店铺": 2,
"快充线": 2,
"数码科技": 2,
"新款": 1,
"民族品牌": 1,
"电脑": 2,
"电脑桌面": 1,
"直播间": 2,
"砍一刀": 1,
"笔记本": 2,
"联想": 2,
"连接": 1,
"降维打击": 1
}
}
}
]Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
Douyin | $0.001 mỗi lần gọi | JSON |
Douyin | $0.002 mỗi lần gọi | JSON |
Douyin | $0.002 mỗi lần gọi | JSON |
Douyin | $0.01 mỗi lần gọi | JSON |
Douyin | $0.003 mỗi lần gọi | JSON |
Douyin | $0.002 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-v2/author-content-hot-keywords 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.001 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: author_id (string). Tùy chọn: keyword_type (integer). 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 Author Content Hot Keywords 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.