Support needed? Reach out! 📧

Tiktok Search by Keyword API

Search TikTok by keyword to find trending content, relevant creators, and topics your target audience is actively discussing.

python-logo Python
Tiktok Keyword Search
1 import requests
2  
3 root = "https://ensembledata.com/apis"
4 endpoint = "/tt/keyword/search"
5 params = {
6   "name""tesla",
7   "cursor"0,
8   "period""1",
9   "sorting""0",
10   "country""us",
11   "match_exactly"False,
12   "get_author_stats"False,
13   "token""YOUR-TOKEN-HERE"
14 }
15  
16 res = requests.get(root+endpoint, params=params)
17 print(res.json())
18  

Parameters

name (string) The keyword to search. REQUIRED
cursor (integer) Parameter to manually handle pagination. Each response contains a `nextCursor` which can be used to retrieve the next page of results by sending it as the next `cursor`. If the `nextCursor` is not present in the response, it means that there are no more results to retrieve.
period Only return posts more recent than the given period. The value corresponds to the number of days to filter on. REQUIRED
sorting The posts are sorted by relevance if sorting=0, by most liked if sorting=1, most recent if sorting=2.
country (string) Retrieve the posts as if in the specified country (US, FR, UK, DE, etc.)
match_exactly (boolean) Fetch only videos where the input keyword has to be exactly present in the video caption. If true, it returns 10 posts per request.
get_author_stats (boolean) Whether to include extra statistics about the author of the post such as their following count, follower count, favoriting (likes) count etc.
token (string) Private token assigned to each client to access the APIs. REQUIRED

Scrape Tiktok Data Effortlessly

Find trending topics and creators on TikTok without scrolling the app manually, just query our keyword search API and get ranked results fast.

deco-icon

Plug & Play API

Integrate in minutes with clear docs and code samples. Get started with a single REST call.

deco-icon

Real-Time Results

Every request scrapes the latest data in seconds. No stale datasets, just up-to-date insights.

deco-icon

Flexible APIs

Need something special? We tailor endpoints and data delivery to your unique business needs.

Tiktok Scraping Features

Uncover what resonates on TikTok for any keyword, useful for influencer outreach, competitor research, and spotting content that is gaining traction.

  • Tiktok Keyword Search Api
  • Tiktok Search Results Scraper
  • Tiktok Video Search By Topic
  • Tiktok Trending Videos By Keyword
  • Tiktok Content Discovery Api
  • Tiktok Creator Search Api
  • Tiktok Niche Keyword Data
  • Tiktok Search Ranking Extractor

Starting crawling Tiktok now!

deco-icon

Get Your API Key in Minutes

Create a free account (no credit card required) and receive an API token instantly to test endpoints, pull live data, and rapidly prototype integrations. Upgrade as your needs grow.

Get started free
deco-icon

Developer Support

Need help integrating or customizing data for your workflows? Our developer success team offers onboarding, guidance, and enterprise support to get your project production-ready.

Contact us

Frequently Asked Questions

A Tiktok data scraping API allows you to programmatically collect and analyze public data from Tiktok and other platforms. This helps businesses, researchers, and marketers gain insights, monitor trends, and automate data collection for various use cases.

We only collect publicly available data, nothing behind a login wall or marked as private. We're GDPR-compliant and follow applicable data protection laws. That said, you're responsible for how you use the data on your end.

Yes, though some basic comfort with HTTP requests helps. We have copy-paste code snippets in Python, JavaScript, and cURL, plus a dashboard where you can test endpoints without writing any code. Most non-technical users get up and running within an afternoon.

You can fetch different type of public data from Tiktok, including user profiles, posts, videos, comments, hashtags, followers, and engagement statistics.

Our platform delivers real-time Tiktok data with high reliability and minimal downtime. Most requests are processed in under 5 seconds, ensuring you always have access to the latest public Tiktok data for your needs.