secUidstringобязательно
User secUid
https://api.sandbase.ai/v1/api/tiktok/web/user-likeReturns a list of videos liked by a specific TikTok profile based on their secUid. Supports pagination via cursor tokens and optional sort type settings.
[
{
"data": {
"cookie": "tt_chain_token=0k5cdiqY7uSA4maNu10+1w==;",
"cursor": "1790127969000",
"extra": {
"fatal_item_ids": [],
"logid": "202610062041350618B3DF2EF7F9783D8D",
"now": 1791290496000
},
"hasMore": true,
"log_pb": {
"impr_id": "202610062041350618B3DF2EF7F9783D8D"
},
"statusCode": 0,
"status_code": 0,
"status_msg": "",
"tt_chain_token": "0k5cdiqY7uSA4maNu10+1w=="
}
}
]Выберите пример, чтобы загрузить его входные данные и результат в playground.
Returns a page of videos liked by a TikTok profile. It needs the profile's secUid as input and returns a cursor for the next page.
curl -X POST "https://api.sandbase.ai/v1/api/tiktok/web/user-like" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"secUid": "MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
secUid | string | Yes | User secUid |
count | integer | No | Number per page, default is 20, cannot be changed. |
coverFormat | integer | No | Cover format |
cursor | integer | No | Page cursor |
post_item_list_request_type | integer | No | Sort type |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"cookie": "tt_chain…",
"cursor": "1791417327000",
"extra": {
"fatal_item_ids": [],
"logid": "202611031544314BAB8FBD2CDB3104FCC3",
"now": 1793691871000
},
"hasMore": true,
"log_pb": {
"impr_id": "202611031544314BAB8FBD2CDB3104FCC3"
},
"statusCode": 0,
"status_code": 0,
"status_msg": "",
"tt_chain_token": "0k5cdiqY…"
}
| Field | Meaning |
|---|---|
cursor | Cursor value for the next page. Pass it as cursor in the next request to continue. |
hasMore | true when more liked videos remain after this page. |
statusCode / status_code | Result code of the call. 0 means the request succeeded. |
status_msg | Status message text. It is an empty string in this response. |
extra.fatal_item_ids | List of item IDs that could not be returned. It is empty in this response. |
extra.now | Server timestamp of the response, as a 13-digit number. |
extra.logid / log_pb.impr_id | Request log identifier. Both fields hold the same value in this response. |
secUid for a profile with TikTok Profile Sec User ID, or from profile links with TikTok User Sec User ID Extractor.cursor value as the cursor parameter while hasMore is true.count parameter defaults to 20 and cannot be changed.$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/user-like" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"secUid": "MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM"
}'Укажите свой ключ SandBase API в окружении сервера. Запросы используют аутентификацию Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Храните ключ на сервере. Не раскрывайте его в коде браузера.
secUidstringобязательноUser secUid
countintegerNumber per page, default is 20, cannot be changed.
coverFormatintegerCover format
cursorintegerPage cursor
post_item_list_request_typeintegerSort type
Сохранённый пример ответа для этого API; при просмотре живой запрос не выполняется.
[
{
"data": {
"cookie": "tt_chain_token=0k5cdiqY7uSA4maNu10+1w==;",
"cursor": "1790127969000",
"extra": {
"fatal_item_ids": [],
"logid": "202610062041350618B3DF2EF7F9783D8D",
"now": 1791290496000
},
"hasMore": true,
"log_pb": {
"impr_id": "202610062041350618B3DF2EF7F9783D8D"
},
"statusCode": 0,
"status_code": 0,
"status_msg": "",
"tt_chain_token": "0k5cdiqY7uSA4maNu10+1w=="
}
}
]Посмотреть больше
| API | Цена | Ответ |
|---|---|---|
TikTok User LikesЭтот 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
Вопросы
Отправьте POST-запрос на https://api.sandbase.ai/v1/api/tiktok/web/user-like, указав ключ SandBase API в заголовке Authorization (Bearer), а параметры — в теле JSON. Вы также можете попробовать это в Playground на этой странице без написания кода.
$0.001 за вызов, списывается с баланса SandBase. Оплата взимается только за сделанные вызовы; подписка не требуется.
Обязательные: secUid (string). Необязательные: count (integer), coverFormat (integer), cursor (integer) и post_item_list_request_type (integer). В таблице Parameters и в Playground на этой странице перечислены все поля.
JSON-ответ, возвращаемый в том же HTTP-запросе (синхронно). В README на этой странице приведен пример ответа.
Нет. TikTok User Likes работает через SandBase, поэтому один API key SandBase покрывает этот endpoint и все остальные API и модели в каталоге. Вам не нужно отдельно запрашивать доступ к API TikTok.