Support needed? Reach out! 📧

Tiktok Search by Keyword API

Search TikTok content by keyword to identify viral topics, influencers, and audience interests.

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 TikTok topics and creators using our TikTok keyword search API and search data API, perfect for targeted discovery and influencer outreach.

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 viral content and audience interests with the TikTok discovery API and influencer discovery API, supporting advanced keyword-based research.

  • TikTok Keyword Search
  • Trending Topics Discovery
  • Influencer Outreach
  • Advanced Research
  • Targeted Discovery
  • Content Discovery
  • Keyword trend monitoring
  • Content keyword insights

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.

Our API only accesses publicly available Tiktok data in compliance with GDPR and other privacy regulations. We do not support scraping private or restricted content, ensuring ethical and legal data usage for all clients.

Our API is designed to be easy to use for both developers and non-developers. We provide clear documentation, code samples, and a user-friendly dashboard to help you get started quickly, even if you have limited technical experience.

You can extract a wide range 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.