keyword_liststringbắt buộc
Brand name list, comma separated
https://api.sandbase.ai/v1/api/douyin/index/brand-valid-infoReturns brand details including brand ID and category information on Douyin. Queries are filtered using comma-separated brand keywords.
[
{
"data": {
"BaseResp": {
"StatusCode": 0,
"StatusMessage": ""
},
"keyword_info": [
{
"brand_info": [
{
"brand_id": "9117",
"brand_name": "华为",
"category_id": "11",
"category_name": "手机"
},
{
"brand_id": "9117",
"brand_name": "华为",
"category_id": "28",
"category_name": "家用电器"
}
],
"brand_status": "1",
"keyword": "华为",
"yuntu_status": "1"
}
]
}
}
]Chọn một ví dụ để nạp đầu vào và kết quả của nó vào playground.
Returns the Douyin brand records that match each keyword you send, including brand_id and the categories the brand is listed under. It needs one input, keyword_list, a comma-separated string of brand names.
华为 is a recognized Douyin brand before you query other brand endpoints.brand_id for a brand name so you can store it or pass it to later lookups.手机 and 家用电器 for 华为.brand_status and yuntu_status for a batch of brand names in one call.curl -X POST "https://api.sandbase.ai/v1/api/douyin/index/brand-valid-info" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"keyword_list": "华为"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
keyword_list | string | Yes | Brand name list, comma separated |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"BaseResp": {
"StatusCode": 0,
"StatusMessage": ""
},
"keyword_info": [
{
"brand_info": [
{
"brand_id": "9117",
"brand_name": "华为",
"category_id": "11",
"category_name": "手机"
}
],
"brand_status": "1",
"keyword": "华为",
"yuntu_status": "1"
}
]
}
| Field | Meaning |
|---|---|
keyword_info[].keyword | The keyword from your request that this result belongs to. |
keyword_info[].brand_info[] | List of brand and category matches for the keyword. The same brand can appear more than once, once per category. |
keyword_info[].brand_info[].brand_id | ID of the brand, returned as a string. It stays the same across the category rows of one brand. |
keyword_info[].brand_info[].brand_name | Name of the matched brand. |
keyword_info[].brand_info[].category_id / keyword_info[].brand_info[].category_name | ID and name of a category the brand is listed under, such as 手机 (11) or 家用电器 (28). |
keyword_info[].brand_status | Status flag for the brand, returned as a string. 1 for 华为. |
keyword_info[].yuntu_status | Status flag named yuntu_status, returned as a string. 1 for 华为. |
BaseResp.StatusCode / BaseResp.StatusMessage | Status of the call. 0 with an empty message means the request succeeded. |
keyword_list as one comma-separated string. Each name gets its own entry in keyword_info.brand_info holds one row per category with the same brand_id.$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-valid-info" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"keyword_list": "华为"
}'Đặ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.
keyword_liststringbắt buộcBrand name list, comma separated
Đâ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": ""
},
"keyword_info": [
{
"brand_info": [
{
"brand_id": "9117",
"brand_name": "华为",
"category_id": "11",
"category_name": "手机"
},
{
"brand_id": "9117",
"brand_name": "华为",
"category_id": "28",
"category_name": "家用电器"
}
],
"brand_status": "1",
"keyword": "华为",
"yuntu_status": "1"
}
]
}
}
]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-valid-info 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. Mỗi tổ chức được 100 lần gọi miễn phí mỗi ngày UTC, dùng chung cho các API SandBase đủ điều kiện, bao gồm API này; sau đó mỗi lần gọi sẽ được tính theo mức giá này từ số dư SandBase của bạn. Không có gói đăng ký.
Bắt buộc: keyword_list (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 Valid Information 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.