Sand AISand AI MAGI-2MAGI-2 が SandBase に登場しました: ネイティブ音声付き 1080p 動画今すぐ試す

TikTok Gift Names by IDs

APIドキュメント
https://api.sandbase.ai/v1/api/tiktok/web/gift-names-by-ids

Returns gift names for a batch of TikTok gift identifiers. Provide a list of gift IDs to look up their corresponding gift labels.

料金
$0.025USD / 回
メソッド
POST
レスポンス
JSON
パラメータ
必須 1 件 · 任意 0 件

プレイグラウンド

入力
Gift ID list, recommend 50/call for best value ($0.025), auto-process first 50 if more than 50
出力例
レスポンスoutputs · 495 B · 29 行
[
  {
    "data": {
      "found": 3,
      "message": null,
      "not_found": 0,
      "original_count": 3,
      "results": [
        {
          "code": 0,
          "gift_id": "10001",
          "gift_name": "鞭炮"
        },
        {
          "code": 0,
          "gift_id": "10002",
          "gift_name": "红包"
        },
        {
          "code": 0,
          "gift_id": "10003",
          "gift_name": "龙年幸运福袋"
        }
      ],
      "total": 3,
      "truncated": false
    }
  }
]

例

例を選択すると、その入力と結果がプレイグラウンドに読み込まれます。

API README

TikTok Gift Names by IDs API

Returns the gift name for each TikTok gift ID in a list. You send gift_ids as an array of strings and get one result row per ID, plus counts for found and missing IDs.

Use cases

  • Turn raw gift IDs in live stream gift event logs into readable gift names.
  • Build a local lookup table of TikTok gift IDs and names.
  • Check which gift IDs in a stored dataset have no known name.
  • Label gift columns in a report on live stream gifting.

Request

curl -X POST "https://api.sandbase.ai/v1/api/tiktok/web/gift-names-by-ids" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"gift_ids": ["10001", "10002", "10003"]}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
gift_idsarrayYesGift ID list, recommend 50/call for best value ($0.025), auto-process first 50 if more than 50

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "found": 3,
  "message": null,
  "not_found": 0,
  "original_count": 3,
  "results": [
    {
      "code": 0,
      "gift_id": "10001",
      "gift_name": "鞭炮"
    }
  ],
  "total": 3,
  "truncated": false
}

Response fields

FieldMeaning
results[].gift_idThe gift ID from your request that this row answers.
results[].gift_nameThe name of the gift. The sample values are in Chinese, such as 鞭炮 and 红包.
results[].codeResult code for this single lookup. It is 0 on every row in the sample, where all IDs returned a name.
found / not_foundNumber of IDs that returned a name and number of IDs that did not.
original_count / totalCount of IDs in the request and total count of results. Both are 3 in the sample.
truncatedBoolean flag. It is false in the sample.
messageText message about the call. It is null in the sample.

Notes

  • Send each ID as a string, for example "10001". The gift_ids list accepts 1 to 1000 items.
  • If you send more than 50 IDs, only the first 50 are processed.
  • Compare found, not_found and truncated with your request to see whether any IDs were unresolved or skipped.
  • To look up one ID, use TikTok Gift Name by ID.

Pricing

$0.025 per successful call. Failed calls are not charged.

さらに探索

関連 APIs

すべての APIs
API価格レスポンス
TikTok$0.025 / 回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

質問

FAQ

TikTok Gift Names by IDs API はどのように使いますか?

Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/tiktok/web/gift-names-by-ids に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。

TikTok Gift Names by IDs API の料金はいくらですか?

1回あたり $0.025、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。

TikTok Gift Names by IDs API はどのパラメータを受け付けますか?

必須: gift_ids (array)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。

TikTok Gift Names by IDs API は何を返しますか?

同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。

TikTok の開発者アカウントまたは API key は必要ですか?

いいえ。TikTok Gift Names by IDs は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。TikTok の API アクセスを別途申請する必要はありません。