curl --request POST \
--url https://api.scrapeunblocker.com/social/tiktok-search \
--header 'x-scrapeunblocker-key: <api-key>'import requests
url = "https://api.scrapeunblocker.com/social/tiktok-search"
headers = {"x-scrapeunblocker-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-scrapeunblocker-key': '<api-key>'}};
fetch('https://api.scrapeunblocker.com/social/tiktok-search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Search TikTok videos by keyword
Runs a TikTok video search for query in a real browser session and returns the results as JSON: query, url, results - the videos in TikTok’s ranking, each in the full /social/tiktok-video shape (exact plays, likes, comments, shares, saves, hashtags, author with stats, music, media URLs, subtitles) - resultsCollected and hasMore. proxy_country picks the region TikTok ranks for. No login or cookies. Takes 10-30 s because the page is scrolled for each batch.
curl --request POST \
--url https://api.scrapeunblocker.com/social/tiktok-search \
--header 'x-scrapeunblocker-key: <api-key>'import requests
url = "https://api.scrapeunblocker.com/social/tiktok-search"
headers = {"x-scrapeunblocker-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-scrapeunblocker-key': '<api-key>'}};
fetch('https://api.scrapeunblocker.com/social/tiktok-search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Your ScrapeUnblocker API key. Apply on every request.
Query Parameters
Search keywords, e.g. 'space telescope'.
How many videos to return (1-200). About 12 arrive per scroll; deep pages take longer (10-30 s).
1 <= x <= 200Exit-IP country (ISO-2). TikTok ranks search by region, so set it to get the results a user in that country sees.
Response
JSON search object with a results array.

