TikTok user search API
TikTok accounts for a name, an artist, brand or creator, each with its profile and stats. Exact names and verified accounts first.
GET /v1/tiktok/search/users1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/tiktok/search/users?q=Jorge+e+Mateus",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()No bundled sample for this call. The response is a TikTokUserListResponse; its fields are listed below.
Parameters
| Name | Type | Description |
|---|---|---|
qquery · required | string | Name or handle to look up. Example: Jorge e Mateus. |
cursorquery | string | The previous page’s cursor, for the next page. Omit for the first. |
Response fields
200 with a TikTokUserListResponse, in TikTok’s own web JSON (itemStruct, userInfo, comments).
| Field | Type | Description |
|---|---|---|
userList | object[] | |
cursor | string | Pass as cursor for the next page (TikTok’s minCursor). |
hasMore | boolean | |
total | number |
Status codes
| Status | Meaning |
|---|---|
200 | Matching accounts (userList), best match first. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | The account, video, comment, hashtag or sound does not exist on TikTok, or was removed. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | TikTok is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Questions
Where do the accounts come from?
From the accounts TikTok’s search box suggests to a logged-out visitor, each read from its profile page. TikTok’s full account search tab needs a login, so it is not offered.
What if nobody matches?
You get an empty userList and are not charged.
TikTok is a trademark of ByteDance Ltd. We are not affiliated with or endorsed by TikTok or ByteDance.