app_namestring
Platform, aweme=Douyin, toutiao=Toutiao (toutiao currently returns empty)
Mặc định: "aweme"
Giá trị có thể dùng: aweme, toutiao
https://api.sandbase.ai/v1/api/douyin/index/hot-trend-wordReturns trending search words suggested in the keyword index search box. Filter by platform and word type to retrieve relevant search suggestions.
[
{
"data": {
"trend_words": [
{
"id": "0",
"word": "重庆"
},
{
"id": "0",
"word": "时代"
},
{
"id": "0",
"word": "代峰"
},
"… 2 more items in the full response"
],
"update_time": "20260818"
}
}
]Chọn một ví dụ để nạp đầu vào và kết quả của nó vào playground.
Returns the trending search words that Douyin suggests in the keyword index search box. Both inputs are optional: app_name picks the platform and type picks the word type.
update_time.curl -X POST "https://api.sandbase.ai/v1/api/douyin/index/hot-trend-word" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
app_name | string | No | Platform, aweme=Douyin, toutiao=Toutiao (toutiao currently returns empty) |
type | integer | No | Word type, 0=search words (plain words, id is always "0"), |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"trend_words": [
{
"id": "0",
"word": "百乔"
}
],
"update_time": "20261102"
}
| Field | Meaning |
|---|---|
trend_words[] | List of suggested trending search words. |
trend_words[].word | The suggested search word as plain text. |
trend_words[].id | Word ID. For type 0 (search words) it is always the string "0". |
update_time | Date of the list as a YYYYMMDD string, for example 20261102. |
{}. The defaults are app_name set to aweme and type set to 0.app_name accepts aweme (Douyin) or toutiao. Toutiao currently returns an empty result.type accepts 0 or 1. Only 0 (search words) is described in the parameter documentation.$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/index/hot-trend-word" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": 0,
"app_name": "aweme"
}'Đặ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.
app_namestringPlatform, aweme=Douyin, toutiao=Toutiao (toutiao currently returns empty)
Mặc định: "aweme"
Giá trị có thể dùng: aweme, toutiao
typeintegerWord type, 0=search words (plain words, id is always "0"),
Mặc định: 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": {
"trend_words": [
{
"id": "0",
"word": "重庆"
},
{
"id": "0",
"word": "时代"
},
{
"id": "0",
"word": "代峰"
},
"… 2 more items in the full response"
],
"update_time": "20260818"
}
}
]Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
Douyin Hot Trend WordsAPI này Douyin | $0.001 mỗi lần gọi | JSON |
Douyin | $0.001 mỗi lần gọi | JSON |
Douyin | $0.001 mỗi lần gọi | JSON |
Douyin | $0.001 mỗi lần gọi | JSON |
Douyin | $0.001 mỗi lần gọi | JSON |
Douyin | $0.001 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/index/hot-trend-word 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ý.
Không có tham số bắt buộc. Tùy chọn: app_name (một trong số aweme, toutiao) và 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 Hot Trend Words 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.