gift_idstring必須
Gift ID
https://api.sandbase.ai/v1/api/tiktok/web/gift-name-by-idReturns the gift name associated with a specific TikTok gift identifier. Look up gift metadata using the required gift ID parameter.
出力はここに表示されます
入力を完了してから[実行]をクリックしてください。
Returns the name of one TikTok gift for a given gift ID. The only input is gift_id, passed as a string.
curl -X POST "https://api.sandbase.ai/v1/api/tiktok/web/gift-name-by-id" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"gift_id": "10001"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
gift_id | string | Yes | Gift ID |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"code": 0,
"gift_id": "10001",
"gift_name": "鞭炮"
}
| Field | Meaning |
|---|---|
code | Status code of the lookup. The sample response shows 0. |
gift_id | The gift ID you sent in the request, returned as a string. |
gift_name | The name of the gift. The sample returns 鞭炮 for 10001, so names can be in Chinese. |
$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/tiktok/web/gift-name-by-id" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"gift_id": "10001"
}'SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
gift_idstring必須Gift ID
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
保存済みレスポンスはまだ公開されていません。PlaygroundでAPIを実行し、レスポンスを確認してください。
さらに探索
| API | 価格 | レスポンス |
|---|---|---|
TikTok Gift Name by IDこの API TikTok | $0.001 / 回 | JSON |
TikTok | $0.001 / 回 | JSON |
TikTok | $0.001 / 回 | JSON |
TikTok | $0.001 / 回 | JSON |
TikTok | $0.001 / 回 | JSON |
TikTok | $0.05 / 回 | JSON |
ガイド:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared
質問
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/tiktok/web/gift-name-by-id に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.001、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。
必須: gift_id (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
いいえ。TikTok Gift Name by ID は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。TikTok の API アクセスを別途申請する必要はありません。