keyword_liststring必須
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"
}
]
}
}
]例を選択すると、その入力と結果がプレイグラウンドに読み込まれます。
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.
開発を始める
統一認証と使用状況の追跡を備えたプラットフォームAPIエンドポイントです。
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": "华为"
}'SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
keyword_liststring必須Brand name list, comma separated
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
[
{
"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"
}
]
}
}
]さらに探索
| API | 価格 | レスポンス |
|---|---|---|
Douyin | $0.001 / 回 | JSON |
Douyin | $0.001 / 回 | JSON |
Douyin | $0.001 / 回 | JSON |
Douyin | $0.001 / 回 | JSON |
Douyin | $0.001 / 回 | JSON |
Douyin | $0.001 / 回 | JSON |
質問
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/douyin/index/brand-valid-info に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.001。各組織には UTC 日ごとに 100 回の無料呼び出しが付与され、この API を含む対象の SandBase API 全体で共有されます。それ以降は、各呼び出しが SandBase 残高からこの料金で課金されます。サブスクリプションはありません。
必須: keyword_list (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
いいえ。Douyin Brand Valid Information は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Douyin の API アクセスを別途申請する必要はありません。