Resolve a TikTok username to a user id · TikTok API
Accepts a public TikTok username (handle) and returns the user's stable opaque id (sec_uid) that other /tiktok/users/{id} endpoints accept. Returns 404 not_found if no user with that username exists.
curl https://api.unifapi.com/tiktok/users/resolve \ -H "Authorization: Bearer $UNIFAPI_KEY"
This operation is part of the TikTok API in the social platforms category. It uses the same Bearer token, request tracing, error model, and billing envelope as every UnifAPI endpoint, so agents can switch between platforms without custom per-vendor glue code.
Use it when a workflow needs TikTok public data but should still keep one API key, one account balance, and one predictable JSON contract across social, live public-data sources.
Common agent workflows
- Resolve a public TikTok identity into structured profile metadata for enrichment agents.
- Refresh creator, company, or account snapshots without managing upstream-specific response shapes.
- Give an AI agent a stable TikTok data source without building a per-platform integration.
- Normalize TikTok responses into the same UnifAPI envelope used across the catalog.
Unified envelope, platform-native fields
- Lookup responses return one canonical object in `data` with stable identifiers, source URLs where available, and platform-specific metadata normalized into predictable JSON.
- Successful responses include `request_id` for support/debugging and `billing` with credits charged, records charged, and remaining balance.
- A not-found or invalid-input condition uses the unified UnifAPI error shape, so callers do not need special handling for each upstream platform.
Billing
Every successful call costs at least one credit. List and search operations charge by billable records returned; single-object lookups charge one record when they succeed. Platform-caused failures can be refunded, and public responses include billing metadata with the credits charged and remaining workspace balance.
Errors and retries
Authentication, validation, rate-limit, not-found, and upstream errors use the unified UnifAPI error format. Agents should log `request_id`, retry only retryable failures, and treat invalid API keys, disabled keys, and expired keys as the same public `unauthorized` error type.
More TikTok operations
Combine endpoints from the same platform, then join the results with other UnifAPI categories without changing authentication or response parsing.
Get TikTok home-feed recommendation videos
Returns recommendation videos from TikTok's home feed. Optionally pass the caller's TikTok cookie in the request body for personalized recs; without it the response is a generic recommendation set.
Get a TikTok hashtag by ID
Get a TikTok hashtag by ID
List videos tagged with a TikTok hashtag
List videos tagged with a TikTok hashtag
Get a TikTok live room by ID
Get a TikTok live room by ID