keywordstringbắt buộc
Brand name keyword
https://api.sandbase.ai/v1/api/douyin/index/brand-suggestReturns a list of brand auto-complete suggestions based on a query keyword. Results include brand identifiers, names, categories, and logo image links.
[
{
"data": {
"BaseResp": {
"StatusCode": 0,
"StatusMessage": ""
},
"suggestion_list": [
{
"brand_id": "9117",
"brand_name": "华为",
"category_id": "11",
"category_name": "手机",
"logo_url": "https://p1.douyinpic.com/large/ad-brand/9117.jpg"
},
{
"brand_id": "9117",
"brand_name": "华为",
"category_id": "28",
"category_name": "家用电器",
"logo_url": "https://p3.toutiaoimg.com/large/ad-brand/9117.jpg"
}
]
}
}
]Chọn một ví dụ để nạp đầu vào và kết quả của nó vào playground.
Returns a list of brand auto-complete suggestions on Douyin for a brand name keyword. Each suggestion has a brand ID, brand name, category, and logo image link. The only input is keyword.
华为 into a brand_id for other Douyin Index calls.curl -X POST "https://api.sandbase.ai/v1/api/douyin/index/brand-suggest" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"keyword": "华为"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
keyword | string | Yes | Brand name keyword |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"BaseResp": {
"StatusCode": 0,
"StatusMessage": ""
},
"suggestion_list": [
{
"brand_id": "9117",
"brand_name": "华为",
"category_id": "11",
"category_name": "手机",
"logo_url": "https://p1.douyinpic.com/large/ad-brand/9117.jpg"
}
]
}
| Field | Meaning |
|---|---|
suggestion_list | List of brand suggestions that match keyword. Each item is one brand and category pair. |
suggestion_list[].brand_id | ID of the brand, returned as a string. The same brand can appear in several items with the same ID. |
suggestion_list[].brand_name | Display name of the brand. |
suggestion_list[].category_id / suggestion_list[].category_name | ID and name of the category the brand is listed under, for example 手机 (phones) or 家用电器 (home appliances). |
suggestion_list[].logo_url | Link to the brand logo image. |
BaseResp.StatusCode | Status code of the response. 0 appears in a successful call. |
BaseResp.StatusMessage | Status text. It is an empty string in a successful call. |
brand_id can repeat across items when the brand has more than one category, so group by brand_id if you need unique brands.brand_id and brand_name from this response as input for brand analysis APIs such as Douyin Brand Popularity Cycles or Douyin Brand Trend Lines.$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/brand-suggest" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"keyword": "华为"
}'Đặ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.
keywordstringbắt buộcBrand name keyword
Đâ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": {
"BaseResp": {
"StatusCode": 0,
"StatusMessage": ""
},
"suggestion_list": [
{
"brand_id": "9117",
"brand_name": "华为",
"category_id": "11",
"category_name": "手机",
"logo_url": "https://p1.douyinpic.com/large/ad-brand/9117.jpg"
},
{
"brand_id": "9117",
"brand_name": "华为",
"category_id": "28",
"category_name": "家用电器",
"logo_url": "https://p3.toutiaoimg.com/large/ad-brand/9117.jpg"
}
]
}
}
]Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
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/brand-suggest 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: keyword (string). 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 Brand Search Suggestions 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.