# TikTok Scraper: Profiles, Hashtags, Videos, Comments (No Login) (`zaiq/tiktok-data-scraper`) Actor

Collect public TikTok profiles, hashtag videos, video details and comments without logging in. Filter by date and plays. Includes shares, saves, music and marked ads. Deduplicated rows, clear partial-result notes and charges only for delivered data. $2 per 1,000 videos.

- **URL**: https://apify.com/zaiq/tiktok-data-scraper.md
- **Developed by:** [Zaiq](https://apify.com/zaiq) (community)
- **Categories:** Social media, Marketing
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.60 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Scraper: Profiles, Hashtags, Videos, Comments (No Login)

Collect public TikTok profile details, videos from profiles and hashtags, individual video details, and optional top-level comments. No account or login is used.

Filter videos by publication date and minimum plays. Rows include a `kind` field so you can separate videos, profiles, comments and free error notes. Duplicate videos and comments are charged once per run.

### What you get

| Field | What it holds |
|---|---|
| Video identity | `id`, `url`, `type`, `author`, `authorName`, `createdAt`, `caption`, `hashtags`, `mentions` |
| Video counts | `plays`, `likes`, `comments`, `shares`, `saves`, `durationSeconds` |
| Video context | `music`, `coverUrl`, `isPinned`, `isAd`, `sponsored`, `adLabel`, `contentLabels`, `location`, `createdIn` when supplied. Missing fields remain null. `createdIn` is the creation region, not a tagged location. |
| Requested profiles | `username`, `nickname`, `bio`, `followers`, `following`, `likes`, `videoCount`, `verified`, `private`, `bioLink`, `avatarUrl`, `url` |
| Comments | `id`, `videoId`, `videoUrl`, `videoAuthor`, `author`, `authorName`, `text`, `likes`, `replies`, `createdAt`, `likedByCreator`, `language` |
| Source and run notes | Every row has `sourceType`, `sourceInput` and `scrapedAt`. SUMMARY records returned rows, filtered counts, duplicates, timing, traffic, requests and any restrictions. |

### What people use it for

- **Content tracking:** Compare public video counts over time using scheduled runs.
- **Creator research:** Read a requested profile and the videos visible to a signed-out visitor.
- **Hashtag monitoring:** Collect the videos TikTok shows for a topic and apply consistent filters.
- **Comment collection:** Export public top-level comments for your own analysis.

### How to use it

1. Add profiles, hashtags or video links. The prefilled hashtag requests five videos.
2. Choose the maximum videos to inspect from each source. Set the date and plays filters if needed.
3. Keep comments at zero for video data only, or choose up to 500 top-level comments per returned video.
4. Set the run spending limit and start. Export the dataset, and check SUMMARY for partial results or blocked inputs.

### Input

| Field | Example | Notes |
|---|---|---|
| profiles | `["example.creator"]` | Usernames, @handles or full profile links. At most 50 unique sources across all lists. |
| hashtags | `["woodworking"]` | A tag, #tag or hashtag link. No keyword search. |
| videoUrls | A public TikTok video link | Full /video/ or /photo/ links, and TikTok short links. Query parameters on input links are discarded. |
| maxVideosPerProfile | `10` | Videos inspected before filtering: a profile's latest, about 10 on Apify (pinned included). 0 reads only profile metadata. Maximum 30. |
| maxVideosPerHashtag | `20` | Videos inspected before filtering. Up to 10 from TikTok's hashtag embed; more from the hashtag page when TikTok loads it, otherwise the top 10 with a note. Maximum 300. |
| newerThan | `2026-01-01` | Strictly newer than UTC midnight, or an ISO timestamp with timezone. Unknown dates are excluded when set. |
| minPlays | `1000` | Inclusive minimum. Default 0 disables the filter. Unknown plays are excluded when above zero. |
| commentsPerVideo | `0` | Default off. Up to 500, in the order TikTok returns. Reply counts are included; replies are not expanded. |
| includeProfiles | on | Profile rows only for profiles explicitly requested. Does not fetch all video authors. |

### Output

Each result is one row in the run's dataset (download it as JSON, CSV, Excel, XML or HTML, or read it through the API). An example row (values shortened):

```json
{
  "kind": "video",
  "id": "7697000000000000001",
  "type": "video",
  "url": "https://www.tiktok.com/@example.creator/video/7697000000000000001",
  "author": "example.creator",
  "authorName": "Example Creator",
  "createdAt": "2026-10-17T18:30:00Z",
  "caption": "Did you help her catch the last one?? #pool #catch #dog #halloween",
  "hashtags": [
    "pool",
    "catch",
    "dog",
    "halloween"
  ],
  "plays": 6566,
  "likes": 277,
  "comments": 39,
  "shares": 26,
  "saves": 97,
  "durationSeconds": 117,
  "music": {
    "title": "original sound",
    "author": "Example Creator",
    "original": true
  },
  "isAd": false,
  "sourceType": "profile",
  "sourceInput": "example.creator",
  "scrapedAt": "2026-10-17T21:05:00Z"
}
```

This example video comes from a live run on Apify on 18 October 2026 (the account, its name and the video id replaced): two profiles with their latest 10 videos each, full stats included, plus one video link: 2 profile rows and 21 video rows in 35 seconds. A hashtag's 10 videos took 51 seconds, and one video with 20 comments 3 requests. A record named `SUMMARY` in the run's key-value store lists every input's rows, notes and charges.

### Pricing

- **$0.002 per video**, **$0.002 per profile** and **$0.0005 per comment**, only for rows delivered
- Free: repeated videos, filtered videos, unavailable inputs and error rows; no browser-start or proxy fee
- No AI model is used, so there is no AI usage on top

What typical jobs cost at the list price:

| Job | Cost |
|---|---|
| A profile and its latest 10 videos | $0.022 |
| A hashtag's top 100 videos | $0.20 |
| 1 video with 100 comments | $0.052 |
| Unavailable page (error row) | $0 |

On Apify's Scale and Business plans the per-event prices are lower (Store discounts). Set **Maximum cost per run** and the Actor stops cleanly when it is reached: you never pay more than that.

### Tips

- Use explicit video links when you already know which posts you want.
- A maximum of 10 means inspect up to 10 videos, then filter; it does not promise 20 matches.
- Pinned videos can be old. Hashtag order can mix popular and recent posts.
- Inspect SUMMARY before interpreting an empty result as an empty account or topic.

### Use it through the API

**Python**

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("zaiq/tiktok-data-scraper").call(run_input={"hashtags": ["woodworking"], "maxVideosPerHashtag": 5, "commentsPerVideo": 0})
for row in client.dataset(run.default_dataset_id).iterate_items():
    print(row)
```

**JavaScript**

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

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('zaiq/tiktok-data-scraper').call({"hashtags": ["woodworking"], "maxVideosPerHashtag": 5, "commentsPerVideo": 0});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

**HTTP (one call, results back)**

```bash
curl -X POST 'https://api.apify.com/v2/acts/zaiq~tiktok-data-scraper/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>' \
  -H 'Content-Type: application/json' \
  -d '{"hashtags": ["woodworking"], "maxVideosPerHashtag": 5, "commentsPerVideo": 0}'
```

### Integrations and schedules

- **Schedules:** run it every hour, day or week from the Apify Console (Schedules) and keep a history of results.
- **Make, Zapier, n8n, Google Sheets, Slack, Airtable:** connect it through Apify's integrations, or send each finished run to a **webhook**.
- **Datasets:** results stay in the run's dataset; export them or read them by API whenever you need them.

### Use it with AI agents (MCP)

Add Apify's MCP server with this Actor already pinned (`https://mcp.apify.com?tools=zaiq/tiktok-data-scraper`) to Claude, ChatGPT, Cursor, VS Code or any MCP client. The agent can find this Actor and run it for you: ask it for "collect public videos about woodworking with their plays, shares and saves". AI agents can also pay for runs directly through Apify's agentic payments.

### Limits

- Only publicly visible, signed-out data is available. Private content, login walls and verification checks are not bypassed.
- Profiles: on Apify's servers TikTok shows a signed-out visitor a profile's latest videos only through its public creator embed, about 10 (pinned ones included); each listed video is then read from its own page for full stats. Older videos are not reachable this way. Hashtags: up to 10 top videos come from TikTok's public hashtag embed; larger requests read the hashtag page in a real Chrome, which TikTok sometimes withholds (then the embed's 10 are returned with a note).
- TikTok can withhold video lists or comments, return fewer items than requested, or change its page format. A requested maximum is not a completeness guarantee.
- Connections go direct first. When TikTok sends an address its waiting page, a 403 or a 429, the next try uses a fresh residential address (up to four); a login wall or a verification puzzle stops that input. Media, images and fonts are never downloaded.
- Filtered videos and duplicate results do not trigger additional scanning beyond the configured limit. Comments are fetched only for newly delivered videos.
- Comment totals on videos may include replies, deleted comments or comments hidden from signed-out visitors. Exported top-level rows will not necessarily match that total.
- Ad labels and sponsorship flags are reported only when explicitly present in the source payload; captions are not used to infer sponsorship.
- Video files, audio and transcripts are not downloaded. Media URLs and profile counts can change.

### FAQ

**Does it need my account or cookies?**

No. It opens public pages in a fresh session.

**How many videos per profile can I get?**

About 10: the latest videos TikTok shows a signed-out visitor in its public creator embed, pinned ones included, each with full stats from its own page. For larger sets, collect hashtags or pass video links.

**Do I pay for a failed page?**

No. An unavailable page produces an error row with charged=false. Successfully returned profile metadata can still be charged if only the videos fail.

**Why are there fewer videos than the maximum?**

The spending limit, public visibility, request ceiling, filters and deduplication can reduce the count. SUMMARY distinguishes these cases.

**Are the videos sorted by date?**

No. They follow the order supplied by TikTok. Date filtering also applies to pinned videos.

**Are comments included in the video price?**

No. They are optional, separately charged rows. The default is zero.

**Are video author profiles automatically fetched?**

No. Add a handle to profiles to request a profile row.

**Can I get transcripts or AI analysis?**

This Actor collects data only. Those functions are offered separately.

### Related Actors from Zaiq

- [tiktok-comments-scraper](https://apify.com/zaiq/tiktok-comments-scraper): Comments with optional analysis
- [tiktok-video-script-analyzer](https://apify.com/zaiq/tiktok-video-script-analyzer): Video scripts and visual analysis
- [tiktok-transcript-scraper](https://apify.com/zaiq/tiktok-transcript-scraper): Video transcripts

### Support

Questions, a site that changed, or a field you need? Open an issue on this Actor's **Issues** tab: we answer there, usually within a day.

***

Also found as: tiktok scraper, tiktok profile scraper, tiktok hashtag scraper, tiktok video scraper, tiktok comments scraper, tiktok public data.

# Actor input Schema

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

Usernames, @handles or full TikTok profile links. Up to 50 unique sources across all three lists.

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

Hashtags with or without #, or TikTok /tag/ links. Results follow the page order, not strict date order.

## `videoUrls` (type: `array`):

Full video/photo links or TikTok short links. Repeated videos are returned and charged once per run.

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

Videos inspected per profile before filtering. TikTok shows a signed-out visitor on Apify a profile's latest videos from its public creator embed, about 10 (pinned ones included), so higher values return those. Zero reads profile details only.

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

Videos inspected per hashtag before filtering. Up to 10 come from TikTok's public hashtag embed (its top videos). More are read from the hashtag page in a browser when TikTok loads that list for a signed-out visitor; otherwise the embed's top 10 are returned with a note.

## `newerThan` (type: `string`):

Optional YYYY-MM-DD (UTC midnight), or ISO timestamp with timezone. Only strictly newer videos are kept. Unknown dates are excluded when set.

## `minPlays` (type: `integer`):

Minimum plays, inclusive. Zero disables the filter; unknown plays are excluded if above zero.

## `commentsPerVideo` (type: `integer`):

Top-level comments per delivered video, including profile and hashtag videos. Zero skips comments. Replies are counted, not expanded. Spending cap can reduce the count.

## `includeProfiles` (type: `boolean`):

Return and charge profile rows for explicitly supplied profiles. Does not fetch every video author's profile.

## Actor input object example

```json
{
  "profiles": [],
  "hashtags": [
    "woodworking"
  ],
  "videoUrls": [],
  "maxVideosPerProfile": 10,
  "maxVideosPerHashtag": 5,
  "newerThan": "",
  "minPlays": 0,
  "commentsPerVideo": 0,
  "includeProfiles": true
}
```

# Actor output Schema

## `results` (type: `string`):

Dataset: the results.

## `summary` (type: `string`):

What each input returned, and notes.

# 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 = {
    "hashtags": [
        "woodworking"
    ],
    "maxVideosPerHashtag": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("zaiq/tiktok-data-scraper").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 = {
    "hashtags": ["woodworking"],
    "maxVideosPerHashtag": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("zaiq/tiktok-data-scraper").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 '{
  "hashtags": [
    "woodworking"
  ],
  "maxVideosPerHashtag": 5
}' |
apify call zaiq/tiktok-data-scraper --silent --output-dataset

```

## MCP server setup

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

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/pEhDDwjikZySShqYk/builds/GXzEnMet30TapzJXz/openapi.json
