Support needed? Reach out! 📧

Tiktok Posts API

Access TikTok user posts and video content for content analysis, trend discovery, and audience insights.

python-logo Python
Tiktok User Posts From Username
1 import requests
2  
3 root = "https://ensembledata.com/apis"
4 endpoint = "/tt/user/posts"
5 params = {
6   "username""daviddobrik",
7   "depth"1,
8   "start_cursor"0,
9   "oldest_createtime"1667843879,
10   "new_version"False,
11   "download_video"False,
12   "token""YOUR-TOKEN-HERE"
13 }
14  
15 res = requests.get(root+endpoint, params=params)
16 print(res.json())
17  

Parameters

username (string) Username of the user. REQUIRED
depth (integer) Abstraction of the API pagination. Depth 1 returns X results, depth N returns N * X results. Note that the exact number of results per depth (X) may differ per endpoint. Please refer to the specific endpoint description for more information. REQUIRED
start_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 `start_cursor`. If the `nextCursor` is not present in the response, it means that there are no more results to retrieve.
oldest_createtime (integer) This parameter is used as a stopping condition for fetching posts. If a post older than the provided `oldest_createtime` is found, the system will stop fetching posts and return the results. For instance, if depth is 10, the system will aim to send 10 requests. However, if an `oldest_createtime` is set, and we find a post which is older than the `oldest_createtime`, the system will not send any more requests and return the results. Note: we do not filter out posts older than the provided `oldest_createtime` before returning the results. Please do this filtering in your own integration if required.
new_version (boolean) Set to True to enable an alternate version of the TikTok API that returns only the essential fields, resulting in a faster response.
download_video (boolean) When new_version=True, set this parameter to True to have the API include the cookie_download field within the video object, which is required for downloading content via the play or download URLs. This will NOT consume more units.
token (string) Private token assigned to each client to access the APIs. REQUIRED

Scrape Tiktok Data Effortlessly

Collect TikTok posts and videos at scale with our TikTok video scraper and TikTok content scraping API, enabling deep content and trend analysis.

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

Discover viral trends and audience engagement using the TikTok video analytics API and TikTok trending videos API, tailored for content strategists.

  • TikTok Posts Scraper
  • Video Content Analysis
  • Trend Discovery
  • Audience Insights
  • Viral Video Trends
  • Content Extraction
  • TikTok video insights
  • Hashtag trend analysis

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.