app_namestring
Platform, aweme=Douyin, toutiao=Toutiao
デフォルト: "aweme"
指定可能な値: aweme, toutiao
https://api.sandbase.ai/v1/api/douyin/index/hot-wordsReturns a list of current trending search keywords and their growth rates on Douyin or Toutiao. Results can be filtered by the target platform application.
[
{
"data": {
"BaseResp": {
"StatusCode": 0,
"StatusMessage": ""
},
"hot_words": [
{
"growth": "50",
"growth_rate": 100,
"index": "100",
"keyword": "美食"
},
{
"growth": "50",
"growth_rate": 100,
"index": "100",
"keyword": "零食"
},
{
"growth": "50",
"growth_rate": 100,
"index": "100",
"keyword": "游戏"
},
"… 17 more items in the full response"
]
}
}
]例を選択すると、その入力と結果がプレイグラウンドに読み込まれます。
Returns a list of trending search keywords on Douyin or Toutiao. Each keyword comes with an index value and growth figures. The only input is the optional app_name parameter, which defaults to aweme (Douyin).
aweme and toutiao lists to see which keywords trend on one platform but not the other.growth_rate to spot terms that are rising fast.curl -X POST "https://api.sandbase.ai/v1/api/douyin/index/hot-words" \
-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 |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"BaseResp": {
"StatusCode": 0,
"StatusMessage": ""
},
"hot_words": [
{
"growth": "50",
"growth_rate": 100,
"index": "100",
"keyword": "美食"
}
]
}
| Field | Meaning |
|---|---|
hot_words[] | List of trending search keywords. |
hot_words[].keyword | The trending search term, as text in Chinese. |
hot_words[].index | Index value for the keyword, returned as a string. In the sample, all three keywords have 100. |
hot_words[].growth | Growth value for the keyword, returned as a string. |
hot_words[].growth_rate | Growth rate for the keyword, returned as a number. |
BaseResp.StatusCode / BaseResp.StatusMessage | Status of the call. StatusCode of 0 with an empty StatusMessage means the call succeeded. |
app_name to aweme for Douyin (the default) or toutiao for Toutiao.index and growth come back as strings, while growth_rate is a number. Convert the strings before you sort or compare them.$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/hot-words" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"app_name": "aweme"
}'SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
app_namestringPlatform, aweme=Douyin, toutiao=Toutiao
デフォルト: "aweme"
指定可能な値: aweme, toutiao
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
[
{
"data": {
"BaseResp": {
"StatusCode": 0,
"StatusMessage": ""
},
"hot_words": [
{
"growth": "50",
"growth_rate": 100,
"index": "100",
"keyword": "美食"
},
{
"growth": "50",
"growth_rate": 100,
"index": "100",
"keyword": "零食"
},
{
"growth": "50",
"growth_rate": 100,
"index": "100",
"keyword": "游戏"
},
"… 17 more items in the full response"
]
}
}
]さらに探索
| 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/hot-words に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.001、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。
必須パラメータはありません。 任意: app_name(aweme, toutiao のいずれか)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
いいえ。Douyin Hot Search Keywords は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Douyin の API アクセスを別途申請する必要はありません。