TikTok
TikTok Search Sounds
Search TikTok sounds by keyword - each sound's id, title, artist, album, duration, video usage count, language and play URL - with pagination, as JSON. 1 credit.
POST/api/v1/tiktok/search/music
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
application/jsonkeywordstringrequiredSearch term, up to 500 characters.
Example: espresso
cursorstringdefault:0Pagination offset. Pass the cursor from the previous response.
countintegerdefault:20Sounds per page, 1-20.
Notes
Pass a sound's id_str to Sound Detail or Sound Videos.
Raw TikTok payload. The response is TikTok's own JSON under data. Large numeric ids can lose precision when parsed as JSON numbers, so read the string forms (id_str, sec_uid, secUid) rather than numeric id fields.
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
results = client.tiktok.search_music(keyword="espresso", count=20)
print(results)Response
"cursor": 20,
"has_more": 1,
"total": 300,
"status_code": 0
},
"response_time": 2589
}