TikTok API endpoint
Keyword search over sounds, returning `music_info_list` of full sound objects unmodified with `cursor`, `has_more` and `total`.
/tiktok/mobile/search/musicQuery parameters:
keyword: required. Search keyword. Example: lofi.count: optional. Sounds per page (max 50). Default: 20.offset: optional. Result offset. Default: 0.| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| x-api-key (header) | string | Yes | API key required | ||
| keyword | string | Yes | Search keyword | lofi | |
| count | integer | No | Sounds per page (max 50) | ||
| offset | integer | No | Result offset |
curl -X GET "https://api.crawlora.net/api/v1/tiktok/mobile/search/music?keyword=lofi&count=10" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"music_info_list": [
{
"music": {
"id_str": "6799585653702019073",
"title": "Lofi",
"user_count": 1538008
}
}
],
"music": [],
"cursor": 20,
"has_more": true,
"total": 19,
"status_code": 0,
"status_msg": ""
}
}Request schema
No body schema
Response schema
#/definitions/tiktokmobile.searchMusicResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | tiktokmobile.SearchMusicResponse | No | ||||
| data.cursor | integer | No | ||||
| data.has_more | boolean | No | ||||
| data.music | array | No | ||||
| data.music_info_list | array | No | ||||
| data.status_code | integer | No | ||||
| data.status_msg | string | No | ||||
| data.total | integer | No | ||||
| 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/mobile/search/music?keyword=lofi&count=10" \
-H "x-api-key: $CRAWLORA_API_KEY"