Sand AISand AI MAGI-2MAGI-2 kini tersedia di SandBase: video 1080p dengan audio nativeCoba sekarang

Douyin UID to Sec User ID

Dokumentasi API
https://api.sandbase.ai/v1/api/douyin/web/encrypt-uid-to-sec-user-id

Converts a standard Douyin user UID into an encrypted sec_user_id. It takes a short_id value and returns the corresponding secure identifier.

Harga
$0.001USD / panggilan
Metode
POST
Respons
JSON
Parameter
1 wajib · 0 opsional

Playground

Input
User uid, which is the short_id of the Douyin number
OutputContoh
Responsoutputs · 247 B · 8 baris
[
  {
    "data": {
      "sec_user_id": "CidoC3JCKl2uZXZdDKeHoRVx8fSp6Ps5wEUmvOYF_XXU6hKqL1WA6uUaSQo8AAAAAAAAAAAAAFD8Pi8VeJyGub1s3ake08xpfa5bdwBjzbCunurZjeCdzpqvAuOxvn8YX7_peToJFz5OEPKXng4Yw8WD6gQiAQONxtE6",
      "uid": "92769419069"
    }
  }
]

Contoh

Pilih contoh untuk memuat input dan hasilnya ke playground.

README API

Douyin UID to Sec User ID API

This API converts a Douyin user uid into the encrypted sec_user_id for the same account. It needs one input, uid, which is the short_id of the Douyin number. The response returns the sec_user_id and echoes the uid.

Use cases

  • Get the sec_user_id for an account when you only have its numeric uid.
  • Build the input for Douyin endpoints that accept a sec_user_id, such as a user's video posts or profile.
  • Store a stable mapping between a known uid and its sec_user_id in a creator database.
  • Check that a uid in a list resolves to the account you expect before running bulk lookups.

Request

curl -X POST "https://api.sandbase.ai/v1/api/douyin/web/encrypt-uid-to-sec-user-id" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uid": "92769419069"}'

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

Parameters

NameTypeRequiredDescription
uidstringYesUser uid, which is the short_id of the Douyin number

Example response

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

{
  "sec_user_id": "Cif6qQhZHylHHSzYUXX8PqJZ8x70Q7irzjB64CSSdp2mIJIW-Vi_qlgaSQo8AAAAAAAAAAAAAFEYeqIM…",
  "uid": "92769419069"
}

Response fields

FieldMeaning
sec_user_idThe encrypted user identifier for the account. It is a long string of letters, digits, hyphens and underscores. Pass it as-is to endpoints that ask for a sec_user_id.
uidThe uid value from the request, returned unchanged. Use it to match a response to its request.

Notes

Pricing

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

Jelajahi lebih lanjut

API Terkait

Semua APIs
APIHargaRespons
Douyin$0.001 per panggilanJSON
Douyin$0.001 per panggilanJSON
Douyin$0.001 per panggilanJSON
Douyin$0.001 per panggilanJSON
Douyin$0.001 per panggilanJSON
Douyin$0.03 per panggilanJSON

Panduan:Best Douyin API in 2026: Pricing Compared

Pertanyaan

FAQ

Bagaimana cara menggunakan API Douyin UID to Sec User ID?

Kirim permintaan POST ke https://api.sandbase.ai/v1/api/douyin/web/encrypt-uid-to-sec-user-id dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.

Berapa biaya API Douyin UID to Sec User ID?

$0.001 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.

Parameter apa yang diterima API Douyin UID to Sec User ID?

Wajib: uid (string). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.

Apa yang dikembalikan API Douyin UID to Sec User ID?

Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.

Apakah saya memerlukan akun developer atau kunci API Douyin?

Tidak. Douyin UID to Sec User ID berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API Douyin secara terpisah.