bodyarrayrequerido
User homepage link
https://api.sandbase.ai/v1/api/tiktok/web/all-unique-idResolves a batch of TikTok user homepage links to retrieve their corresponding unique identifiers. Accepts a list of profile URLs in the request payload.
Su salida aparecerá aquí
Complete las entradas y luego haga clic en Ejecutar.
Takes a list of TikTok profile URLs and returns the matching unique IDs (the handles) as a JSON array of strings. The request needs one field, body, which holds the profile links.
https://www.tiktok.com/@name links into plain handles for a spreadsheet or database.curl -X POST "https://api.sandbase.ai/v1/api/tiktok/web/all-unique-id" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"body": ["https://www.tiktok.com/@tiktok"]}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
body | array | Yes | User homepage link |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
[
"tiktok"
]
| Field | Meaning |
|---|---|
[] | One TikTok unique ID, which is the handle shown after the @ in the profile URL. For https://www.tiktok.com/@tiktok the value is tiktok. |
[0] | The first item in the array. In the sample request, the single link in body returned tiktok at this position. |
body, for example ["https://www.tiktok.com/@tiktok"].sec_user_id for each profile link in one call, use TikTok User Sec User ID Extractor.$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/tiktok/web/all-unique-id" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"body": [
"https://www.tiktok.com/@tiktok"
]
}'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.
bodyarrayrequeridoUser homepage link
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 |
|---|---|---|
TikTok Profile Unique IDsEsta API TikTok | $0.001 por llamada | JSON |
TikTok | $0.001 por llamada | JSON |
TikTok | $0.001 por llamada | JSON |
TikTok | $0.001 por llamada | JSON |
TikTok | $0.05 por llamada | JSON |
TikTok | $0.002 por llamada | JSON |
Guías:TikTok API pricing: official access vs per-call dataBest TikTok API in 2026: Pricing Compared
Preguntas
Envía una solicitud POST a https://api.sandbase.ai/v1/api/tiktok/web/all-unique-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: body (array). 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. TikTok Profile Unique IDs 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 TikTok por separado.