uidstringobbligatorio
User uid, which is the short_id of the Douyin number
https://api.sandbase.ai/v1/api/douyin/web/encrypt-uid-to-sec-user-idConverts a standard Douyin user UID into an encrypted sec_user_id. It takes a short_id value and returns the corresponding secure identifier.
[
{
"data": {
"sec_user_id": "CidoC3JCKl2uZXZdDKeHoRVx8fSp6Ps5wEUmvOYF_XXU6hKqL1WA6uUaSQo8AAAAAAAAAAAAAFD8Pi8VeJyGub1s3ake08xpfa5bdwBjzbCunurZjeCdzpqvAuOxvn8YX7_peToJFz5OEPKXng4Yw8WD6gQiAQONxtE6",
"uid": "92769419069"
}
}
]Seleziona un esempio per caricare i suoi input e il risultato nel playground.
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.
sec_user_id for an account when you only have its numeric uid.sec_user_id, such as a user's video posts or profile.uid and its sec_user_id in a creator database.uid in a list resolves to the account you expect before running bulk lookups.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.
| Name | Type | Required | Description |
|---|---|---|---|
uid | string | Yes | User uid, which is the short_id of the Douyin number |
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"
}
| Field | Meaning |
|---|---|
sec_user_id | The 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. |
uid | The uid value from the request, returned unchanged. Use it to match a response to its request. |
uid as a string, not a number.sec_user_id without trimming it. The value is long.sec_user_id to Douyin User Video Posts to list the user's videos, or to Douyin User Profile (Web) to read the profile.uid, use Douyin sec_user_id from URL.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Inizia a costruire
Endpoint API della piattaforma con autenticazione unificata e tracciamento dell'utilizzo.
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"
}'Imposta la tua SandBase API key nell'ambiente del server. Le richieste usano l'autenticazione Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserva la tua key sul server. Non esporla nel codice del browser.
uidstringobbligatorioUser uid, which is the short_id of the Douyin number
Risposta di esempio salvata per questa API; durante la visualizzazione non viene eseguita alcuna richiesta live.
[
{
"data": {
"sec_user_id": "CidoC3JCKl2uZXZdDKeHoRVx8fSp6Ps5wEUmvOYF_XXU6hKqL1WA6uUaSQo8AAAAAAAAAAAAAFD8Pi8VeJyGub1s3ake08xpfa5bdwBjzbCunurZjeCdzpqvAuOxvn8YX7_peToJFz5OEPKXng4Yw8WD6gQiAQONxtE6",
"uid": "92769419069"
}
}
]Esplora altro
| API | Prezzo | Risposta |
|---|---|---|
Douyin UID to Sec User IDQuesta API Douyin | $0.001 per chiamata | JSON |
Douyin | $0.001 per chiamata | JSON |
Douyin | $0.001 per chiamata | JSON |
Douyin | $0.001 per chiamata | JSON |
Douyin | $0.001 per chiamata | JSON |
Douyin | $0.03 per chiamata | JSON |
Domande
Invia una richiesta POST a https://api.sandbase.ai/v1/api/douyin/web/encrypt-uid-to-sec-user-id con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.
$0.001 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.
Richiesti: uid (string). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.
Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.
No. Douyin UID to Sec User ID funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API Douyin.