Research a video idea
Search a phrase and collect examples for your next creative brief.
Search videos, explore sounds and hashtags, and read creator profiles and comments. Get the context behind a TikTok trend.
PUT IT TO WORK
Three ways to use TikTok data.
Search a phrase and collect examples for your next creative brief.
Find the videos using a song and see how different creators interpret it.
Collect video comments to see what viewers ask, quote and disagree about.
YOUR FIRST REQUEST
Search a phrase and collect examples for your next creative brief.
Set SCRAPEATLAS_API_KEY in your environment.
Use the sample request as a starting point.
Send the result to your app, sheet or research tool.
# ScrapeAtlas · use your customer API key
export BASE_URL="https://api.scrapeatlas.com"
curl --get "$BASE_URL/v1/tiktok/search/keyword" \
-H "x-api-key: $SCRAPEATLAS_API_KEY" \
--data-urlencode "query=example"const baseUrl = "https://api.scrapeatlas.com";
const url = new URL('/v1/tiktok/search/keyword', baseUrl);
url.searchParams.set("query", "example");
const response = await fetch(url, {
method: 'GET',
headers: {
'x-api-key': process.env.SCRAPEATLAS_API_KEY
}
});
const data = await response.json();
console.log(data);type Result = {
status: "success" | "partial" | "failed" | "challenged";
requestId: string;
[field: string]: unknown;
};
const response = await fetch(
"https://api.scrapeatlas.com/v1/tiktok/search/keyword?query=example",
{
headers: {
"x-api-key": process.env.SCRAPEATLAS_API_KEY!
}
}
);
const data = (await response.json()) as Result;
if (data.status === "failed" || data.status === "challenged") {
throw new Error(`TikTok request failed: ${data.requestId}`);
}
console.log(data);import requests
response = requests.get(
"https://api.scrapeatlas.com/v1/tiktok/search/keyword",
headers={"x-api-key": "YOUR_API_KEY"},
params={
"query": "example"
},
timeout=60,
)
data = response.json()
print(data["status"], data)package main
import (
"encoding/json"
"fmt"
"net/http"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.scrapeatlas.com/v1/tiktok/search/keyword?query=example", nil)
req.Header.Set("x-api-key", "YOUR_API_KEY")
resp, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
var data map[string]interface{}
json.NewDecoder(resp.Body).Decode(&data)
fmt.Println(data["status"], data)
}import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Main {
public static void main(String[] args) throws Exception {
var client = HttpClient.newHttpClient();
var request = HttpRequest.newBuilder()
.uri(URI.create("https://api.scrapeatlas.com/v1/tiktok/search/keyword?query=example"))
.GET()
.header("x-api-key", "YOUR_API_KEY")
.build();
var response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
}
}/v1/tiktok/search/keywordJSON responseUse your ScrapeAtlas API key. Replace the sample input with your own.
API DIRECTORY / 17
/v1/tiktok/profileGETList a TikTok profile's videos/v1/tiktok/profile/videosGETGet a TikTok video or photo post/v1/tiktok/videoGETGet a TikTok video transcript/v1/tiktok/video/transcriptGETList TikTok video comments/v1/tiktok/video/commentsGETList replies to a TikTok comment/v1/tiktok/video/comment/replies/v1/tiktok/user/followersGETList the accounts a TikTok user follows/v1/tiktok/user/followingGETGet a TikTok user's live room/v1/tiktok/user/liveGETSearch TikTok users/v1/tiktok/search/usersGETSearch TikTok videos by keyword/v1/tiktok/search/keywordGETGet TikTok top search results/v1/tiktok/search/topGETList TikTok videos for a hashtag/v1/tiktok/search/hashtagGETGet TikTok hashtag details/v1/tiktok/hashtagGETGet TikTok song details/v1/tiktok/songGETList TikTok videos using a song/v1/tiktok/song/videosGETGet the TikTok trending feed/v1/tiktok/trendingCreate a ScrapeAtlas API key, send it in the x-api-key header, and pass the endpoint’s request fields. The example above is ready to adapt to your own input.
Search videos, explore sounds and hashtags, and read creator profiles and comments. Get the context behind a TikTok trend. Each endpoint’s reference shows its response fields and a JSON example.
Yes. Connect ScrapeAtlas through MCP to use TikTok tools from your assistant. You can also call the same API from your own scripts or the CLI.
We use essential storage to keep the site working. With your permission, optional analytics cookies help us understand visits. You can change your choice anytime. Privacy policy
Google Analytics and PostHog measure visits, page engagement, signup-link clicks and website performance. Rejecting optional cookies does not affect access to the site.
Allow Affonso to record your referral visit and store a cookie for 30 days. If you sign up, we share your verified email with Affonso to attribute purchases. Privacy policy