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 का उपयोग कैसे करें?

https://api.sandbase.ai/v1/api/tiktok/web/gift-names-by-ids पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।

TikTok Gift Names by IDs API की लागत कितनी है?

$0.025 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।

TikTok Gift Names by IDs API कौन-से parameters स्वीकार करती है?

आवश्यक: gift_ids (array)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।

TikTok Gift Names by IDs API क्या लौटाती है?

एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।

क्या मुझे एक TikTok developer account या API key चाहिए?

नहीं। TikTok Gift Names by IDs SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से TikTok API access के लिए आवेदन करने की आवश्यकता नहीं है।