# TikTok Posts Scraper & Creator Analytics: Engagement Rate (`pikoulas/tiktok`) Actor

Scrape TikTok posts of any profile or hashtag, with creator analytics for influencer vetting: median views, engagement rate, views per follower, posting cadence, viral videos, top hashtags and tier, filtered by follower range. Views, likes, shares, saves, music, video URLs, comments. No login.

- **URL**: https://apify.com/pikoulas/tiktok.md
- **Developed by:** [Spyridon Pikoulas](https://apify.com/pikoulas) (community)
- **Categories:** Social media, Videos, Marketing
- **Features:** Limited permissions
- **Stats:** 6 total users, 0 monthly users, 97.1% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 1,000 videos

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## TikTok Posts Scraper & Creator Analytics: Engagement Rate

Every post of a TikTok profile or hashtag with its views, likes, shares and saves, each creator's
**numbers for vetting** (median views, engagement rate, views per follower, posts per week, viral
videos, top hashtags and size tier), and comments with their replies, without an account or a
browser. For influencer vetting, creator research and tracking what a brand or hashtag posts:

- **Profiles:** by username, @handle or URL. You get the profile's details with its creator
  numbers, and its videos, newest first, as far back as the profile goes.
- **Videos:** any video or photo post by its URL, vm.tiktok.com or vt.tiktok.com short link, or ID.
- **Hashtags:** the videos TikTok shows for a hashtag.
- **Comments:** as many as you need of every video scraped, with their replies if you want them.
- **Filters:** a publish date, minimum views or likes, and a follower range for profiles and for
  the creators of videos (micro-influencers from 10,000 to 100,000, say); what they leave out costs
  nothing.

Every video comes with its caption, views, likes, comments, shares and saves, its engagement rate
(likes, comments, shares and saves per view), date, duration, hashtags and mentions, music (title,
author, original or not, audio URL), cover URL, video URL, and its author's username, name,
verified badge and followers. Photo posts come with their images.
Every profile comes with its exact followers, following, likes and video count, bio, link,
verified and private flags, creation date, and its creator numbers. Every comment comes with its text, author, likes,
reply count, date, and whether it's pinned or liked by the creator.

It is fast: 1,000 comments of one video with their replies took 38 seconds; 250 videos with 10 comments each and their replies,
2,727 items in all, 2 minutes. It costs **$0.50 per 1,000 videos**, $1 per 1,000 profiles and
**$0.30 per 1,000 comments**.

### What people use it for

- **Influencer vetting:** whether a creator's audience watches and engages, from the median of its
  recent videos rather than one viral hit, and how often it posts; a list of creators compared
  side by side.
- **Influencer research:** every video of a creator with its views, likes, shares and dates, and
  the creator's exact follower count.
- **Trend research:** what gets posted and watched under a hashtag, and which sounds it uses.
- **Comment analysis:** audience sentiment, questions and product feedback, with the replies.
- **Monitoring:** new videos of a list of profiles since a date, day by day.
- **Datasets for AI:** captions, hashtags and comments at scale.

### How to scrape TikTok

1. Click **Try for free**; Apify's free plan covers a first run.
2. Enter **Profiles**, **Videos** or **Hashtags**, and how many videos you want.
3. Click **Start**, then download the results as JSON, CSV, Excel or HTML, or read them through
   the API.

An input with more options:

```json
{
  "profiles": ["nasa", "https://www.tiktok.com/@zachking"],
  "maxVideosPerProfile": 100,
  "videos": ["https://www.tiktok.com/@nasa/video/7689547576265149710"],
  "hashtags": ["cooking"],
  "maxVideosPerHashtag": 100,
  "publishedAfter": "2026-09-01",
  "minViews": 10000,
  "minFollowers": 10000,
  "maxFollowers": 1000000,
  "maxCommentsPerVideo": 50,
  "maxRepliesPerComment": 5
}
```

A TikTok URL works in any of the lists: a video URL pasted under profiles is scraped as a video.
`maxCommentsPerVideo` counts replies too, and applies to every video of the run. With `minViews`
or `minLikes`, a profile or hashtag stops after reading 20 times its maximum. Set
`maxVideosPerProfile` to 0 for the profiles' details only, or turn off `includeProfileDetails` for
their videos only. `minFollowers` and `maxFollowers` leave out profiles outside the range before
their videos are read, and videos whose creator is outside it.

### Creator numbers

Each profile's numbers come from the videos the run read from it, `maxVideosPerProfile` and on
(TikTok gives them 15 at a time, so 20 asked reads 30), after `publishedAfter` if given, whether or
not `minViews` or `minLikes` kept them:

- `medianViews`, `averageViews`: views a video gets. The median is what a typical post gets; an
  average far above it means a few hits carry the rest.
- `medianEngagementRate`: likes, comments, shares and saves per view, the median of the videos.
- `viewsPerFollower`: the median views over the followers, how much of its audience a post reaches.
- `viralVideos`: videos with at least 3 times the median views.
- `postsPerWeek`, `lastPostedAt`: how often it posts over the videos read, and when it last did.
- `topHashtags`: its five most used hashtags.
- `tier`: `nano` under 10,000 followers, `micro` to 100,000, `mid` to 500,000, `macro` to a
  million, `mega` past it.
- `videosAnalyzed`, `mostViewedVideo`: how many videos they come from, and the URL of the most
  watched one.

The **Creators** view on the **Output** tab shows them side by side.

### Output

A video:

```json
{
  "type": "video",
  "id": "7689547576265149710",
  "url": "https://www.tiktok.com/@nasa/video/7689547576265149710",
  "description": "There's plenty happening across NASA as September comes to a close!   🇺🇸 NASA’s Inspiration Tour heads to Arizona 🧑‍🚀 Crew-13 prepares to launch on 10/1 🔬 New discovery about life at the extremes ✈️ Studying the future of air mobility   Here's your NASA Minute!",
  "createdAt": "2026-09-25T18:52:22Z",
  "views": 58200,
  "likes": 3319,
  "comments": 164,
  "shares": 67,
  "saves": 203,
  "engagementRate": 0.0645,
  "hashtags": [],
  "mentions": [],
  "durationSeconds": 121,
  "authorUsername": "nasa",
  "authorName": "NASA",
  "authorId": "7664638705177150477",
  "authorVerified": true,
  "authorFollowers": 1800000,
  "authorAvatar": "https://p16-common-sign.tiktokcdn-eu.com/tos-maliva-avt-0068/e5143212a59c09a008bf50f487d54d1f~tplv-tiktokx-cropcenter:1080:1080.jpeg?...",
  "musicId": "7689547672985815822",
  "musicTitle": "original sound - NASA",
  "musicAuthor": "NASA",
  "musicOriginal": false,
  "musicUrl": "https://v16m.tiktokcdn-eu.com/e3beed51f48c25b8875a26fef1545ce0/6aba555e/video/tos/alisg/...",
  "coverUrl": "https://p16-common-sign.tiktokcdn-eu.com/tos-useast5-p-0068-tx/oo81DLfDSQmtRDqEWhfgltFstBcAGEJ3FCtLQg~tplv-tiktokx-origin.image?...",
  "videoUrl": "https://v16-webapp-prime.tiktok.com/video/tos/alisg/tos-alisg-ve-37c799-sg/os2wziAIpB1mWlCEwwKaAnxhIfilLRBi2wEC2Q/?a=1988&...&tk=tt_chain_token",
  "downloadUrl": "https://v16-webapp-prime.tiktok.com/video/tos/alisg/tos-alisg-ve-37c799-sg/os2wziAIpB1mWlCEwwKaAnxhIfilLRBi2wEC2Q/?a=1988&...&tk=tt_chain_token",
  "videoCookie": "tt_chain_token=pGNWw4K8GHXcO5YqPnMGgA==",
  "width": 720,
  "height": 1280,
  "isSlideshow": false,
  "images": [],
  "isAd": false,
  "language": "en",
  "locationCreated": "US",
  "place": null,
  "input": "https://www.tiktok.com/@nasa/video/7689547576265149710"
}
```

A profile:

```json
{
  "type": "profile",
  "id": "7664638705177150477",
  "username": "nasa",
  "url": "https://www.tiktok.com/@nasa",
  "name": "NASA",
  "bio": "Making the seemingly impossible, possible.✨",
  "bioLink": null,
  "followers": 1841305,
  "following": 23,
  "likes": 9661957,
  "videos": 48,
  "friends": 17,
  "verified": true,
  "private": false,
  "isOrganization": true,
  "isSeller": false,
  "category": null,
  "language": "en",
  "createdAt": "2026-07-20T15:55:49Z",
  "avatar": "https://p16-common-sign.tiktokcdn-eu.com/tos-maliva-avt-0068/e5143212a59c09a008bf50f487d54d1f~tplv-tiktokx-cropcenter:1080:1080.jpeg?...",
  "secUid": "MS4wLjABAAAAU9BRVzC8oCaegVnia8IbqWhPb_-dbU7s00Y3wS1_Nx8g5RUaYvyXrpejgjdxTwd6",
  "input": "nasa",
  "tier": "mega",
  "videosAnalyzed": 45,
  "medianViews": 368400,
  "averageViews": 771782,
  "medianEngagementRate": 0.0804,
  "viewsPerFollower": 0.166,
  "viralVideos": 5,
  "postsPerWeek": 3.16,
  "lastPostedAt": "2026-11-21T02:42:49Z",
  "topHashtags": [],
  "mostViewedVideo": "https://www.tiktok.com/@nasa/video/7675478347278863629"
}
```

A comment:

```json
{
  "type": "comment",
  "id": "7689554359626515233",
  "videoId": "7689547576265149710",
  "videoUrl": "https://www.tiktok.com/@nasa/video/7689547576265149710",
  "text": "What are the best ways to get into engineering at NASA?",
  "createdAt": "2026-09-25T19:18:36Z",
  "likes": 21,
  "replyCount": 5,
  "authorUsername": "alistair861",
  "authorName": "Alistair646",
  "authorId": "6918084157663822853",
  "authorAvatar": "https://p16-common-sign.tiktokcdn-eu.com/tos-no1a-avt-0068c001-no/3d90df37cdd9bcb7c81bc6c8b99c6e5f~tplv-tiktokx-cropcenter:100:100.jpg?...",
  "isPinned": false,
  "likedByCreator": false,
  "isReply": false,
  "parentId": null,
  "language": "en"
}
```

A photo post has `"isSlideshow": true`, its image URLs in `images`, and `/photo/` in its URL. A
reply has `"isReply": true` and its comment's ID as `parentId`.

### Use it as an API

One call runs it and returns the results as JSON (for runs under 5 minutes; longer ones start a
run and read its dataset). Apify's Python and JavaScript clients, and its Make, Zapier and n8n
integrations, work the same way.

```bash
curl -X POST "https://api.apify.com/v2/acts/pikoulas~tiktok/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"profiles": ["nasa"], "maxVideosPerProfile": 5, "videos": ["https://www.tiktok.com/@nasa/video/7689547576265149710"], "hashtags": ["space"], "maxVideosPerHashtag": 5, "maxCommentsPerVideo": 3}'
```

AI agents can call it as a tool through Apify's MCP server: `https://mcp.apify.com?tools=pikoulas/tiktok`.

### How much does it cost to scrape TikTok?

You pay **$0.0005 per video or photo post**, which is $0.50 per 1,000, **$0.001 per profile** with
its creator numbers, and
**$0.0003 per comment or reply**, which is $0.30 per 1,000. Traffic through Apify's residential
proxy is paid as well, at $0.0012 per 100 KB. Hashtags always go through it, since
TikTok cuts them short from Apify's own IPs, and the rest of a run goes through it only when TikTok
refuses those IPs. A video from a profile or hashtag is about 3.5 KB, a video or profile by its URL about 90 KB (its whole page), 1,000 comments
about 0.9 MB from one video and up to 2.5 MB when taking a few from each of many videos. There are
no monthly fees.

### Good to know

- Logged out, TikTok shows a few hundred videos per hashtag (150 to 360 in our runs). A profile's
  videos have no such limit.
- TikTok rounds videos' views, likes and shares over 10,000 to three figures (942.2K), and the
  author's followers on a video. A profile's own counts are exact.
- Video, audio, cover and avatar URLs are signed and expire after a few hours to a day. Covers,
  avatars and audio download as they are. A `videoUrl` downloads with the item's `videoCookie`
  as its Cookie header and `https://www.tiktok.com/` as its Referer.
- Hashtag videos come without `videoUrl` and `downloadUrl`: TikTok refuses the ones it gives
  there. Put their URLs in `videos` to get ones that download.
- A video found under several profiles or hashtags is given once per run.
- It doesn't search by keyword: TikTok's web search stopped answering it. Hashtags are the nearest
  thing.
- Private accounts give their profile details but not their videos; deleted and private videos
  can't be scraped, and the log names them.

### FAQ

#### Is it legal to scrape TikTok?

It collects only what TikTok shows publicly, without logging in. [TikTok's terms](https://www.tiktok.com/legal/page/us/terms-of-service/en) prohibit this, and your use of it is your own responsibility. Personal data is also protected by laws such as the GDPR and the CCPA. If you're unsure, ask a lawyer;
Apify's [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/) is a good start.

#### Something missing or not working?

Open an issue on the **Issues** tab with the input you used, or ask there for a field you need.

If it does what you need, a review on the **Reviews** tab helps others find it.

# Actor input Schema

## `profiles` (type: `array`):

Usernames, @handles or profile URLs (tiktok.com/@nasa). Gives the profile's details and its videos, newest first, as set below.

## `maxVideosPerProfile` (type: `integer`):

Videos from each profile, newest first, as far back as the profile goes. 0 for the profile's details only.

## `includeProfileDetails` (type: `boolean`):

One item per profile: exact followers, following, likes and video count, bio, link, verified and private flags, and its creator numbers off the videos read: median views, engagement rate, views per follower, posts per week, viral videos, top hashtags and tier.

## `videos` (type: `array`):

Video or photo post URLs (tiktok.com/@user/video/...), vm.tiktok.com and vt.tiktok.com short links, or video IDs.

## `hashtags` (type: `array`):

Hashtags, with or without the #, or hashtag URLs (tiktok.com/tag/cooking).

## `maxVideosPerHashtag` (type: `integer`):

How many videos to take from each hashtag. TikTok shows a few hundred per hashtag to visitors who aren't logged in.

## `publishedAfter` (type: `string`):

Only videos posted on or after this date (YYYY-MM-DD). A profile's videos stop once they get past it.

## `minViews` (type: `integer`):

Leave out videos with fewer views. Left-out videos cost nothing; a source stops after reading 20 times its maximum.

## `minLikes` (type: `integer`):

Leave out videos with fewer likes, the same way.

## `minFollowers` (type: `integer`):

Leave out profiles, and videos by creators, with fewer followers: micro-influencers from 10000, say. Left-out ones cost nothing.

## `maxFollowers` (type: `integer`):

Leave out profiles, and videos by creators, with more followers, the same way.

## `maxCommentsPerVideo` (type: `integer`):

Comments of every video scraped, replies included. 0 for none.

## `maxRepliesPerComment` (type: `integer`):

Replies to take under each comment. 0 for none.

## `proxyConfiguration` (type: `object`):

Not needed for most runs. When TikTok refuses the run's IP on Apify, the run switches to Apify's residential proxy by itself.

## Actor input object example

```json
{
  "profiles": [
    "nasa"
  ],
  "maxVideosPerProfile": 20,
  "includeProfileDetails": true,
  "videos": [
    "https://www.tiktok.com/@nasa/video/7689547576265149710"
  ],
  "maxVideosPerHashtag": 20,
  "maxCommentsPerVideo": 0,
  "maxRepliesPerComment": 0,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `videos` (type: `string`):

No description

## `profiles` (type: `string`):

No description

## `comments` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "profiles": [
        "nasa"
    ],
    "videos": [
        "https://www.tiktok.com/@nasa/video/7689547576265149710"
    ],
    "maxVideosPerHashtag": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("pikoulas/tiktok").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "profiles": ["nasa"],
    "videos": ["https://www.tiktok.com/@nasa/video/7689547576265149710"],
    "maxVideosPerHashtag": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("pikoulas/tiktok").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "profiles": [
    "nasa"
  ],
  "videos": [
    "https://www.tiktok.com/@nasa/video/7689547576265149710"
  ],
  "maxVideosPerHashtag": 20
}' |
apify call pikoulas/tiktok --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pikoulas/tiktok"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/PsEQvbV4gGMWiCZjy/builds/G2O2wnw8X5Yz4UHt0/openapi.json
