gift_idsarrayобязательно
Gift ID list, recommend 50/call for best value ($0.025), auto-process first 50 if more than 50
https://api.sandbase.ai/v1/api/tiktok/web/gift-names-by-idsReturns gift names for a batch of TikTok gift identifiers. Provide a list of gift IDs to look up their corresponding gift labels.
[
{
"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
}
}
]Выберите пример, чтобы загрузить его входные данные и результат в playground.
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.
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.
| Name | Type | Required | Description |
|---|---|---|---|
gift_ids | array | Yes | Gift ID list, recommend 50/call for best value ($0.025), auto-process first 50 if more than 50 |
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
}
| Field | Meaning |
|---|---|
results[].gift_id | The gift ID from your request that this row answers. |
results[].gift_name | The name of the gift. The sample values are in Chinese, such as 鞭炮 and 红包. |
results[].code | Result code for this single lookup. It is 0 on every row in the sample, where all IDs returned a name. |
found / not_found | Number of IDs that returned a name and number of IDs that did not. |
original_count / total | Count of IDs in the request and total count of results. Both are 3 in the sample. |
truncated | Boolean flag. It is false in the sample. |
message | Text message about the call. It is null in the sample. |
"10001". The gift_ids list accepts 1 to 1000 items.found, not_found and truncated with your request to see whether any IDs were unresolved or skipped.$0.025 per successful call. Failed calls are not charged.
Начните разработку
Конечная точка платформенного API с единообразной аутентификацией и учётом использования.
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"
]
}'Укажите свой ключ SandBase API в окружении сервера. Запросы используют аутентификацию Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Храните ключ на сервере. Не раскрывайте его в коде браузера.
gift_idsarrayобязательноGift ID list, recommend 50/call for best value ($0.025), auto-process first 50 if more than 50
Сохранённый пример ответа для этого API; при просмотре живой запрос не выполняется.
[
{
"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 | Цена | Ответ |
|---|---|---|
TikTok Gift Names by IDsЭтот 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
Вопросы
Отправьте POST-запрос на https://api.sandbase.ai/v1/api/tiktok/web/gift-names-by-ids, указав ключ SandBase API в заголовке Authorization (Bearer), а параметры — в теле JSON. Вы также можете попробовать это в Playground на этой странице без написания кода.
$0.025 за вызов, списывается с баланса SandBase. Оплата взимается только за сделанные вызовы; подписка не требуется.
Обязательные: gift_ids (array). В таблице Parameters и в Playground на этой странице перечислены все поля.
JSON-ответ, возвращаемый в том же HTTP-запросе (синхронно). В README на этой странице приведен пример ответа.
Нет. TikTok Gift Names by IDs работает через SandBase, поэтому один API key SandBase покрывает этот endpoint и все остальные API и модели в каталоге. Вам не нужно отдельно запрашивать доступ к API TikTok.