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

Douyin sec_user_id from URL

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

Extracts the Douyin sec_user_id identifier from a provided web link or profile URL. Input the target link in the query parameter to resolve the user identifier.

Цена
$0.001USD / вызов
Метод
POST
Ответ
JSON
Параметры
1 обязательных · 0 необязательных
100 бесплатных вызовов в деньПервые 100 вызовов в день — бесплатно (общий лимит для организации) · Сброс в 00:00 UTC. Далее оплата за каждый вызов.

Песочница

Ввод
ВыходГотово

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

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

README по API

Douyin sec_user_id from URL API

This API takes a Douyin web link in the url parameter and returns a single JSON string. It is meant to extract the sec_user_id from a user profile link. In the sample call, a video link came back as the same URL text.

Use cases

  • Turn a shared Douyin profile link into a sec_user_id before you request that user's data.
  • Prepare user identifiers for Douyin User Profile (Web) from profile links you collected.
  • Check whether a pasted Douyin link resolves to an identifier or comes back unchanged.

Request

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

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

Parameters

NameTypeRequiredDescription
urlstringYes

Example response

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

"https://www.douyin.com/video/7691553968815623478"

Response fields

FieldMeaning
$The whole response is one plain JSON string, not an object, so it has no named fields.
$For a user profile link, this string is the resolved sec_user_id, according to the API description.
$In the sample call with a video link, the string was the same URL that was sent in url.

Notes

  • Send a user profile or homepage URL in url if you want a sec_user_id. The sample video URL https://www.douyin.com/video/7691553968815623478 returned the input unchanged.
  • For a video link, call Douyin Video ID Extractor to get the video ID.
  • To process many profile links in one call, use Douyin sec_user_ids from URLs (Batch).

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ЦенаОтвет
Douyin$0.001 за запросJSON
Douyin$0.001 за запросJSON
Douyin$0.001 за запросJSON
Douyin$0.001 за запросJSON
Douyin$0.001 за запросJSON
Douyin$0.03 за запросJSON

Руководства:Best Douyin API in 2026: Pricing Compared

Вопросы

FAQ

Как использовать API Douyin sec_user_id from URL?

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

Сколько стоит API Douyin sec_user_id from URL?

$0.001 за вызов. Каждой организации предоставляется 100 бесплатных вызовов в сутки по UTC, общих для всех подходящих API SandBase, включая этот; после этого каждый вызов тарифицируется по этой цене и списывается с баланса SandBase. Подписка не требуется.

Какие параметры принимает API Douyin sec_user_id from URL?

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

Что возвращает API Douyin sec_user_id from URL?

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

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

Нет. Douyin sec_user_id from URL работает через SandBase, поэтому один API key SandBase покрывает этот endpoint и все остальные API и модели в каталоге. Вам не нужно отдельно запрашивать доступ к API Douyin.