keyword_liststringwajib
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"
}
]
}
}
]Pilih contoh untuk memuat input dan hasilnya ke 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.
Mulai membangun
Endpoint API platform dengan autentikasi dan pelacakan penggunaan terpadu.
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": "华为"
}'Atur SandBase API key Anda di environment server Anda. Permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key Anda di server. Jangan tampilkan di kode browser.
keyword_liststringwajibBrand name list, comma separated
Contoh respons yang disimpan untuk API ini; tidak ada permintaan langsung yang dibuat saat melihatnya.
[
{
"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"
}
]
}
}
]Jelajahi lebih lanjut
| API | Harga | Respons |
|---|---|---|
Douyin | $0.001 per panggilan | JSON |
Douyin | $0.001 per panggilan | JSON |
Douyin | $0.001 per panggilan | JSON |
Douyin | $0.001 per panggilan | JSON |
Douyin | $0.001 per panggilan | JSON |
Douyin | $0.001 per panggilan | JSON |
Pertanyaan
Kirim permintaan POST ke https://api.sandbase.ai/v1/api/douyin/index/brand-valid-info dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.
$0.001 per panggilan. Setiap organisasi mendapat 100 panggilan gratis per hari UTC, dibagi di seluruh API SandBase yang memenuhi syarat termasuk yang ini; setelah itu setiap panggilan ditagihkan dengan harga ini dari saldo SandBase Anda. Tidak ada langganan.
Wajib: keyword_list (string). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.
Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.
Tidak. Douyin Brand Valid Information berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API Douyin secara terpisah.