TikTok API endpoint
Searches TikTok users for `keyword`, with `cursor` (default 0) for paging. The response has `user_list` with the matching accounts, plus a `cursor` and `has_more` to continue. Pass the returned `cursor` back to fetch the next page.
/tiktok/search/userQuery parameters:
keyword: required. Search keyword. Example: chatgpt.cursor: optional. Pagination cursor. Default: 0.Notable response behavior:
cursor value from a previous response to continue pagination.| Field | Filled in, of 10 checked |
|---|---|
| challenges | 0 |
| effects | 0 |
| items | 0 |
| mix_list | 0 |
| musics | 0 |
| position | 0 |
| uniqid_position | 0 |
| user_info | 10 |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| x-api-key (header) | string | Yes | API key required | ||
| keyword | string | Yes | Search keyword | chatgpt | |
| cursor | integer | No | Pagination cursor |
curl -X GET "https://api.crawlora.net/api/v1/tiktok/search/user?keyword=chatgpt" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"type": 1,
"user_list": [
{
"challenges": null,
"effects": null,
"items": null,
"mix_list": null,
"musics": null,
"position": null
}
],
"challenge_list": null,
"music_list": null,
"cursor": 10,
"has_more": 1
}
}Request schema
No body schema
Response schema
#/definitions/tiktok.searchUserResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | tiktok.SearchUserResp | No | ||||
| data.challenge_list | unknown | No | Matching hashtags, as TikTok returns them. Usually `null` for a user search. | |||
| data.cursor | integer | No | Cursor to pass in the next request to get the next page of results. | |||
| data.extra | unknown | No | Response metadata from TikTok, such as the request log id. | |||
| data.feedback_type | string | No | Feedback type label that TikTok returns with the search results. | |||
| data.global_doodle_config | unknown | No | Search page doodle settings that TikTok returns with the results. | |||
| data.has_more | integer | No | Whether more results remain after this page, as a number (`1` for yes). | |||
| data.input_keyword | string | No | Search keyword that was run. | |||
| data.log_pb | object | No | Request tracking information from TikTok, holding the `impr_id` impression id. | |||
| data.log_pb.impr_id | string | No | ||||
| data.music_list | unknown | No | Matching sounds, as TikTok returns them. Usually `null` for a user search. | |||
| data.qc | string | No | Query token that TikTok returns with the search results. | |||
| data.rid | string | No | Request id that TikTok returns with the search results. | |||
| data.status_code | integer | No | TikTok status code for the request. `0` on a successful response. | |||
| data.status_msg | string | No | Status message that goes with the status code. | |||
| data.type | integer | No | Result type code that TikTok returns with the search results. | |||
| data.user_list | array | No | Accounts matching the keyword, one entry per account, as TikTok returns them. | |||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 400 | Invalid input | #/definitions/app.Response |
| 429 | Rate limit exceeded | #/definitions/app.Response |
| 500 | Internal server error | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/tiktok/search/user?keyword=chatgpt" \
-H "x-api-key: $CRAWLORA_API_KEY"