Sand AISand AI MAGI-2MAGI-2 теперь на SandBase: видео 1080p с нативным звукомПопробовать сейчас

TikTok Profile Sec User ID

Документация API
https://api.sandbase.ai/v1/api/tiktok/web/sec-user-id

Returns the internal TikTok sec_user_id string for a specified user homepage URL. This identifier serves as a key parameter for downstream TikTok web endpoints.

Цена
$0.001USD / вызов
Метод
POST
Ответ
JSON
Параметры
1 обязательных · 0 необязательных

Песочница

Ввод
User homepage link
ВыходГотово

Ваш результат появится здесь

Заполните входные данные, затем нажмите «Запустить».

README по API

TikTok Profile Sec User ID API

Returns the sec_user_id string for a TikTok user. You send the full profile homepage link in url, for example https://www.tiktok.com/@tiktok.

Use cases

  • Convert a profile link into the sec_user_id that other TikTok web endpoints ask for.
  • Store a stable user key for each creator you track by profile link.
  • Prepare the input for profile, post list, or follower list calls.

Request

curl -X POST "https://api.sandbase.ai/v1/api/tiktok/web/sec-user-id" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://www.tiktok.com/@tiktok"}'

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

Parameters

NameTypeRequiredDescription
urlstringYesUser homepage link

Example response

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

"MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM"

Response fields

FieldMeaning
$The whole body is one JSON string. It is the sec_user_id of the profile in url. There is no wrapper object and there are no other keys.
$[0:8]The first 8 characters of the string. In the example they are MS4wLjAB.
$[8:]The rest of the string after the first 8 characters. Keep the full value together and pass it unchanged to other endpoints.

Notes

  • The body is a bare string, not an object. Read it directly instead of looking for a field name.
  • Send a full homepage link in the form https://www.tiktok.com/@username.
  • To resolve many profile links in one call, use TikTok User Sec User ID Extractor.
  • To get the user ID from a profile link instead, use TikTok User ID from Profile Link.

Pricing

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

Посмотреть больше

Связанные APIs

Все APIs
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

Вопросы

FAQ

Как использовать API TikTok Profile Sec User ID?

Отправьте POST-запрос на https://api.sandbase.ai/v1/api/tiktok/web/sec-user-id, указав ключ SandBase API в заголовке Authorization (Bearer), а параметры — в теле JSON. Вы также можете попробовать это в Playground на этой странице без написания кода.

Сколько стоит API TikTok Profile Sec User ID?

$0.001 за вызов, списывается с баланса SandBase. Оплата взимается только за сделанные вызовы; подписка не требуется.

Какие параметры принимает API TikTok Profile Sec User ID?

Обязательные: url (string). В таблице Parameters и в Playground на этой странице перечислены все поля.

Что возвращает API TikTok Profile Sec User ID?

JSON-ответ, возвращаемый в том же HTTP-запросе (синхронно). В README на этой странице приведен пример ответа.

Нужен ли мне аккаунт разработчика TikTok или API key?

Нет. TikTok Profile Sec User ID работает через SandBase, поэтому один API key SandBase покрывает этот endpoint и все остальные API и модели в каталоге. Вам не нужно отдельно запрашивать доступ к API TikTok.