uidstringrequerido
Douyin uid, numeric string
https://api.sandbase.ai/v1/api/douyin/index/encrypt-user-idConverts a standard numeric Douyin uid into the encrypted user_id required by Douyin Index endpoints for debugging or custom queries.
Su salida aparecerá aquí
Complete las entradas y luego haga clic en Ejecutar.
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.
user_id for a creator before you build a custom Douyin Index query.user_id conversion matches the value this API returns.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.
| Name | Type | Required | Description |
|---|---|---|---|
uid | string | Yes | Douyin uid, numeric string |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"uid": "92769419069",
"user_id": "jchgjebjagj"
}
| Field | Meaning |
|---|---|
uid | The numeric Douyin uid you sent in the request, returned unchanged. |
user_id | The encrypted form of the uid. Pass this value to Douyin Index endpoints that ask for an encrypted user ID. |
uid as a string of digits, for example 92769419069. Do not send it as a number.uid and user_id. The call returns no creator profile data.user_id in creator endpoints such as Douyin Creator Top Videos or Douyin Daren Fan Analysis, if their parameters ask for an encrypted ID.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Empiece a construir
Endpoint de la API de la plataforma con autenticación unificada y seguimiento de uso.
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"
}'Configure su clave de API de SandBase en el entorno de su servidor. Las solicitudes usan autenticación Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserve su clave en el servidor. No la exponga en código del navegador.
uidstringrequeridoDouyin uid, numeric string
Respuesta de ejemplo guardada para esta API; no se realiza ninguna solicitud en vivo al verla.
No se ha publicado ninguna respuesta guardada. Ejecute la API en Playground para inspeccionar su respuesta.
Explorar más
| API | Precio | Respuesta |
|---|---|---|
Douyin Index User ID EncryptionEsta API Douyin | $0.001 por llamada | JSON |
Douyin | $0.001 por llamada | JSON |
Douyin | $0.001 por llamada | JSON |
Douyin | $0.001 por llamada | JSON |
Douyin | $0.001 por llamada | JSON |
Douyin | $0.001 por llamada | JSON |
Preguntas
Envía una solicitud POST a https://api.sandbase.ai/v1/api/douyin/index/encrypt-user-id con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.
$0.001 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.
Requeridos: uid (string). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.
Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.
No. Douyin Index User ID Encryption funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de Douyin por separado.