Sand AISand AI MAGI-2MAGI-2 ist jetzt auf SandBase: 1080p-Video mit nativem AudioJetzt testen

TikTok Gift Name by ID

API-Dokumentation
https://api.sandbase.ai/v1/api/tiktok/web/gift-name-by-id

Returns the gift name associated with a specific TikTok gift identifier. Look up gift metadata using the required gift ID parameter.

Preis
$0.001USD / Aufruf
Methode
POST
Antwort
JSON
Parameter
1 erforderlich · 0 optional

Playground

Eingabe
Gift ID
AusgabeBereit

Ihre Ausgabe wird hier angezeigt

Vervollständigen Sie die Eingaben und klicken Sie dann auf Ausführen.

API-README

TikTok Gift Name by ID API

Returns the name of one TikTok gift for a given gift ID. The only input is gift_id, passed as a string.

Use cases

  • Turn numeric gift IDs from live stream messages into readable gift names.
  • Label gift columns in a live stream analytics report.
  • Build a lookup table of gift IDs and names for a single gift you see in your data.

Request

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.

Parameters

NameTypeRequiredDescription
gift_idstringYesGift ID

Example response

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

{
  "code": 0,
  "gift_id": "10001",
  "gift_name": "鞭炮"
}

Response fields

FieldMeaning
codeStatus code of the lookup. The sample response shows 0.
gift_idThe gift ID you sent in the request, returned as a string.
gift_nameThe name of the gift. The sample returns 鞭炮 for 10001, so names can be in Chinese.

Notes

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Mehr entdecken

Verwandte APIs

Alle APIs
APIPreisAntwort
TikTok$0.001 pro AufrufJSON
TikTok$0.001 pro AufrufJSON
TikTok$0.001 pro AufrufJSON
TikTok$0.001 pro AufrufJSON
TikTok$0.001 pro AufrufJSON
TikTok$0.05 pro AufrufJSON

Anleitungen:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared

Fragen

FAQ

Wie verwende ich die TikTok Gift Name by ID API?

Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/tiktok/web/gift-name-by-id mit Ihrem SandBase API-Schlüssel im Authorization-Header (Bearer) und den Parametern als JSON-Body. Sie können das auch ohne Code direkt auf dieser Seite im Playground testen.

Was kostet die TikTok Gift Name by ID API?

$0.001 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.

Welche Parameter akzeptiert die TikTok Gift Name by ID API?

Erforderlich: gift_id (string). Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.

Was gibt die TikTok Gift Name by ID API zurück?

Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.

Benötige ich ein TikTok-Entwicklerkonto oder einen API-Schlüssel?

Nein. TikTok Gift Name by ID läuft über SandBase, daher deckt ein SandBase API-Schlüssel diesen Endpunkt und jede andere API sowie jedes Modell im Katalog ab. Sie müssen keinen separaten Zugang für TikTok API beantragen.