Sand AISand AI MAGI-2MAGI-2 ist jetzt auf SandBase: 1080p-Video mit nativem AudioJetzt testen

Douyin UID to Sec User ID

API-Dokumentation
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.

Preis
$0.001USD / Aufruf
Methode
POST
Antwort
JSON
Parameter
1 erforderlich · 0 optional

Playground

Eingabe
User uid, which is the short_id of the Douyin number
AusgabeBeispiel
Antwortoutputs · 247 B · 8 Zeilen
[
  {
    "data": {
      "sec_user_id": "CidoC3JCKl2uZXZdDKeHoRVx8fSp6Ps5wEUmvOYF_XXU6hKqL1WA6uUaSQo8AAAAAAAAAAAAAFD8Pi8VeJyGub1s3ake08xpfa5bdwBjzbCunurZjeCdzpqvAuOxvn8YX7_peToJFz5OEPKXng4Yw8WD6gQiAQONxtE6",
      "uid": "92769419069"
    }
  }
]

Beispiele

Wählen Sie ein Beispiel aus, um seine Eingaben und das Ergebnis in den Playground zu laden.

API-README

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.

Mehr entdecken

Verwandte APIs

Alle APIs
APIPreisAntwort
Douyin$0.001 pro AufrufJSON
Douyin$0.001 pro AufrufJSON
Douyin$0.001 pro AufrufJSON
Douyin$0.001 pro AufrufJSON
Douyin$0.001 pro AufrufJSON
Douyin$0.03 pro AufrufJSON

Anleitungen:Best Douyin API in 2026: Pricing Compared

Fragen

FAQ

Wie verwende ich die Douyin UID to Sec User ID API?

Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/douyin/web/encrypt-uid-to-sec-user-id mit Ihrem SandBase API-Schlüssel im Authorization-Header (Bearer) und den Parametern als JSON-Body. Sie können das auch ohne Code direkt auf dieser Seite im Playground testen.

Was kostet die Douyin UID to Sec User ID API?

$0.001 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.

Welche Parameter akzeptiert die Douyin UID to Sec User ID API?

Erforderlich: uid (string). Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.

Was gibt die Douyin UID to Sec User ID API zurück?

Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.

Benötige ich ein Douyin-Entwicklerkonto oder einen API-Schlüssel?

Nein. Douyin UID to Sec User ID läuft über SandBase, daher deckt ein SandBase API-Schlüssel diesen Endpunkt und jede andere API sowie jedes Modell im Katalog ab. Sie müssen keinen separaten Zugang für Douyin API beantragen.