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

Douyin Index User ID Encryption

Dokumentasi API
https://api.sandbase.ai/v1/api/douyin/index/encrypt-user-id

Converts a standard numeric Douyin uid into the encrypted user_id required by Douyin Index endpoints for debugging or custom queries.

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

Playground

Input
Douyin uid, numeric string
OutputSiap

Output Anda akan muncul di sini

Lengkapi input, lalu klik Run.

README API

Douyin Index User ID Encryption API

This API converts a numeric Douyin uid into the encrypted user_id string used by Douyin Index endpoints. It needs one input, the uid as a numeric string, and returns both values.

Use cases

  • Get the encrypted user_id for a creator before you build a custom Douyin Index query.
  • Check that your own uid-to-user_id conversion matches the value this API returns.
  • Convert a list of numeric creator uids into the IDs that Douyin Index creator endpoints expect.

Request

curl -X POST "https://api.sandbase.ai/v1/api/douyin/index/encrypt-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
uidstringYesDouyin uid, numeric string

Example response

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

{
  "uid": "92769419069",
  "user_id": "jchgjebjagj"
}

Response fields

FieldMeaning
uidThe numeric Douyin uid you sent in the request, returned unchanged.
user_idThe encrypted form of the uid. Pass this value to Douyin Index endpoints that ask for an encrypted user ID.

Notes

  • Send uid as a string of digits, for example 92769419069. Do not send it as a number.
  • The response has only two keys, uid and user_id. The call returns no creator profile data.
  • Use the returned user_id in creator endpoints such as Douyin Creator Top Videos or Douyin Daren Fan Analysis, if their parameters ask for an encrypted ID.

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.001 per panggilanJSON

Panduan:Best Douyin API in 2026: Pricing Compared

Pertanyaan

FAQ

Bagaimana cara menggunakan API Douyin Index User ID Encryption?

Kirim permintaan POST ke https://api.sandbase.ai/v1/api/douyin/index/encrypt-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 Index User ID Encryption?

$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 Index User ID Encryption?

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

Apa yang dikembalikan API Douyin Index User ID Encryption?

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 Index User ID Encryption 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.