# TikTok Scraper - Hashtags, Profiles, Sounds & Video Stats (`clearfetch/tiktok-scraper`) Actor

Scrape TikTok without login: a hashtag's total views and top videos, a profile's stats and latest videos, a sound's top videos, and full stats for any video link (views, likes, shares, comments, saves, date, duration, hashtags, sound, author). No cookies, no proxy.

- **URL**: https://apify.com/clearfetch/tiktok-scraper.md
- **Developed by:** [Nada Hanad](https://apify.com/clearfetch) (community)
- **Categories:** Social media, Videos
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.70 / 1,000 results

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 - Hashtags, Profiles, Sounds & Video Stats

Scrape TikTok without logging in: a hashtag's total views and its top videos, a profile's followers and its
latest videos, a sound's top videos, and full public stats for any video link: views, likes, shares, comments,
saves, post time, duration, hashtags, sound and author. **$1.00 per 1,000 results.** No cookies, no proxy, no
browser.

### What data you get

**Videos** (one row each, same columns every time):

- `playCount`, `diggCount` (likes), `shareCount`, `commentCount`, `collectCount` (saves), `repostCount`
- `createTimeISO`, `durationSeconds`, `text` (caption), `hashtags`, `mentions`, `textLanguage`,
  `locationCreated`, `isAd`, `isAiGenerated` (TikTok's own AI label)
- Sound: `musicTitle`, `musicAuthor`, `musicOriginal` (the creator's own audio or not), `musicUrl`
- Author: `authorUsername`, `authorNickname`, `authorFollowers`, `authorLikes`, `authorVideoCount`,
  `authorVerified`, `authorId`, `authorSecUid`
- Where it came from: `source` (hashtag, profile, sound or url), `sourceValue`, and `sourceRank`, its position
  in that list

**Hashtags**: total `viewCount` and `videoCount` across all of TikTok. **Profiles**: `followers`, `following`,
`likes`, `videoCount`, `bio`, `bioLink`, `verified`, account creation date. **Sounds**: `artist`, `videoCount`,
`title`.

### How to use

1. Add hashtags, usernames, sound links or video links, one per line (or mix them all in **startUrls**).
2. Optionally keep only recent videos (**Only videos newer than**: "7 days", "2026-09-01") or widen a niche
   with **Related hashtags to follow**.
3. Run it, then download JSON, CSV or Excel, or pull the rows through the API.

### Input

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `hashtags` | array | — | Hashtags, with or without `#`. Summary row plus the hashtag's top videos. |
| `profiles` | array | — | Usernames or profile links. Summary row plus the latest 10 videos. |
| `sounds` | array | — | Sound links or ids. Summary row plus the sound's top videos. Also `musics`. |
| `postURLs` | array | — | Video links, share links or ids. Also `urls`, `videoUrls`, `startUrls` (any mix). |
| `fetchVideoDetails` | boolean | `true` | Read each video's page for likes, shares, comments, saves, sound and author stats. Off is several times faster and keeps views, caption, cover, author and date. |
| `newerThan` | string | — | A date or an age like `"7 days"`. Older videos are left out and not charged. |
| `relatedHashtags` | integer | `0` | Also scrape this many hashtags that appear most on the videos found. |
| `maxVideosPerSource` | integer | `0` | Cap per hashtag, profile or sound. `0` means all TikTok lists. |
| `includeSummaryRows` | boolean | `true` | One row per hashtag, profile and sound alongside the videos. |
| `includeRaw` | boolean | `false` | Add TikTok's untouched objects as `raw`. |
| `maxConcurrency` | integer | `3` | Pages read in parallel. |
| `timeoutSecs` | integer | `30` | Per request. Pages without data are retried. |
| `proxyConfiguration` | object | off | Not needed. Available for very large volumes. |

### Output example

From a real run with `"postURLs": ["https://www.tiktok.com/@tiktok/video/7106594312292453675"]` (media links shortened):

```json
{
  "ok": true,
  "type": "video",
  "id": "7106594312292453675",
  "webVideoUrl": "https://www.tiktok.com/@tiktok/video/7106594312292453675",
  "text": "how many frogs did you find? 🐸 check out tiktok’s #Minecraft community today! @Gorillo",
  "createTime": 1654632929,
  "createTimeISO": "2022-06-07T20:15:29.000Z",
  "playCount": 581200,
  "diggCount": 98900,
  "shareCount": 358,
  "commentCount": 1337,
  "collectCount": 59239,
  "repostCount": 0,
  "durationSeconds": 24,
  "hashtags": [
    "minecraft"
  ],
  "mentions": [
    "gorilloyt"
  ],
  "isAd": false,
  "isAiGenerated": false,
  "locationCreated": "US",
  "textLanguage": "en",
  "musicId": "7106594280055130923",
  "musicTitle": "original sound",
  "musicAuthor": "TikTok",
  "musicOriginal": true,
  "musicUrl": "https://www.tiktok.com/music/-7106594280055130923",
  "coverUrl": "https://p16-common-sign.tiktokcdn-eu.com/tos-useast5-p-0068-tx...",
  "authorUsername": "tiktok",
  "authorNickname": "TikTok",
  "authorId": "107955",
  "authorSecUid": "MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM",
  "authorVerified": true,
  "authorFollowers": 96000000,
  "authorFollowing": 1,
  "authorLikes": 464000000,
  "authorVideoCount": 1494,
  "authorProfileUrl": "https://www.tiktok.com/@tiktok",
  "source": "url",
  "sourceValue": null,
  "sourceRank": null,
  "detailed": true,
  "detailError": null,
  "inputUrl": "https://www.tiktok.com/@tiktok/video/7106594312292453675",
  "scrapedAt": "2026-09-29T13:21:23.991Z"
}
```

And the hashtag's own row:

```json
{
  "ok": true,
  "type": "hashtag",
  "hashtag": "bouncingball",
  "relatedHashtag": false,
  "hashtagId": "1315136",
  "url": "https://www.tiktok.com/tag/bouncingball",
  "viewCount": 6278235673,
  "videoCount": 56944,
  "description": null,
  "videosListed": 8,
  "inputUrl": "bouncingball",
  "scrapedAt": "2026-09-24T21:22:28.790Z"
}
```

Inputs that cannot be read (a hashtag that does not exist, a deleted video, a private account, a dead share
link) come back as rows with `"ok": false` and a plain-language `error`. They are never charged.

### Pricing

**$1.00 per 1,000 results**: one charge per video, hashtag, profile or sound row written. Failed inputs,
repeats (a video listed by two hashtags is written once) and videos filtered out by `newerThan` are free.

Paid Apify plans pay less: 10% off on Bronze, 20% on Silver and 30% on Gold and higher tiers.

### Use cases

- **Trend research**: which videos lead a hashtag, and how many views the hashtag has in total. Widen with
  related hashtags to map a niche in one run.
- **Competitor tracking**: schedule a daily run on a list of creators and watch their latest videos' views,
  likes and shares move.
- **Sound research**: which videos use a sound, and how big it is.
- **Enrich a list of video links** with full public stats, for reports, dashboards or influencer vetting.

### FAQ

**Do I need a proxy or cookies?** No. Everything comes from public TikTok pages that load without an account.
The proxy option exists for very large scheduled volumes only.

**How many videos per hashtag or profile?** What TikTok's embed player lists: a hashtag's top 8 videos
(its most viewed, which can be months old), a profile's latest 10, and a sound's top videos. TikTok's own
infinite-scroll feeds need signed requests, which this Actor does not forge, so it does not page further. To
go wide instead of deep, add more hashtags or turn on **Related hashtags to follow**.

**Why does a big hashtag like #fashion return an error?** TikTok refuses to list some hashtags without a login,
many of them large generic or brand ones (#fashion, #travel, #gaming, #minecraft when checked in September 2026;
\#cooking, #nba and #fyp work). Those come back as a free error row saying so. More specific hashtags, profiles and
video links are not affected.

**Can it search by keyword?** Not directly: TikTok's search needs a logged-in, signed request. Use hashtags
and related hashtags instead.

**Why is a listed video's date a few seconds before the post time?** With **Full stats** off, the date is
read from the video id, which TikTok stamps just before publishing. With it on, `createTimeISO` is TikTok's
own post time.

**Is it legal?** It reads only public pages, the same ones anyone sees without logging in. You are responsible
for how you use the data, including data protection rules for personal data such as usernames.

### Integrations

Run it from the Apify API or a client library, schedule it in Apify Console, or connect it to n8n, Make,
Zapier or any MCP client through Apify's integrations. Results are available as JSON, CSV, Excel and through
the dataset API.

### More tools from clearfetch

- [TikTok Profile Scraper](https://apify.com/clearfetch/tiktok-profile-scraper): followers, likes and the latest videos of any account
- [TikTok Video Scraper](https://apify.com/clearfetch/tiktok-video-scraper): full stats for any video link
- [TikTok Comments Scraper](https://apify.com/clearfetch/tiktok-comments-scraper): every comment and reply under a video
- [Google Trends Scraper](https://apify.com/clearfetch/google-trends-scraper): interest over time, by region and related queries, plus today's trending searches

### Changelog

- **1.0.3** (2026-09) — hashtags TikTok refuses to list are reported as such, not as "not found".

- **1.0** — Hashtags, profiles, sounds and video links; full stats per video; date filter; related hashtags;
  summary rows; error rows for anything that cannot be read.

# Actor input Schema

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

One per line, with or without the #. Each returns the hashtag's total views and video count, and its top videos (TikTok's embed player shows 8).

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

Usernames (with or without @) or profile links. Each returns the account's followers, likes, video count and bio, and its latest 10 videos.

## `sounds` (type: `array`):

Sound links (tiktok.com/music/...) or sound ids. Each returns the sound's artist and video count, and its top videos. Also accepts "musics".

## `postURLs` (type: `array`):

Full stats for specific videos. Full links, share links (vm.tiktok.com/..., tiktok.com/t/...), photo posts and bare video ids work. Also accepts "urls", "videoUrls" and "startUrls" (which may mix hashtag, profile, sound and video links).

## `fetchVideoDetails` (type: `boolean`):

Reads each listed video's own page for likes, shares, comments, saves, exact post time, duration, sound and author stats. Off: listed videos keep only what the list shows (views, caption, cover, author, date), and the run is several times faster.

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

A date (2026-09-01) or an age ("7 days", "48 hours", "2 weeks"). Older videos are left out and not charged. Empty: no filter.

## `relatedHashtags` (type: `integer`):

Also scrape this many extra hashtags: the ones that appear most often on the videos found. A way to widen a niche without a search.

## `maxVideosPerSource` (type: `integer`):

0 means everything TikTok lists for it.

## `includeSummaryRows` (type: `boolean`):

One row per hashtag (views, video count), profile (followers, likes, bio) and sound (artist, video count), alongside the video rows.

## `includeRaw` (type: `boolean`):

Adds the untouched objects TikTok returned as "raw", for fields this Actor does not map. Makes each row several times larger.

## `maxConcurrency` (type: `integer`):

How many pages to read at once.

## `timeoutSecs` (type: `integer`):

Per request. Pages TikTok returns without data are retried before an item is reported as failed.

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

Not needed: TikTok serves these pages to Apify's own servers. Turn it on only for very large volumes if you start seeing rate-limit errors.

## Actor input object example

```json
{
  "hashtags": [
    "bouncingball"
  ],
  "profiles": [
    "tiktok"
  ],
  "fetchVideoDetails": true,
  "relatedHashtags": 0,
  "maxVideosPerSource": 0,
  "includeSummaryRows": true,
  "includeRaw": false,
  "maxConcurrency": 3,
  "timeoutSecs": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Video rows (type "video"): views, likes, shares, comments, saves, post time, duration, hashtags, sound and author stats. Summary rows (type "hashtag", "profile", "sound"): total views and video counts, followers, likes and bio. Inputs that could not be read appear with ok=false and a reason, and are not charged.

# 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": [
        "bouncingball"
    ],
    "profiles": [
        "tiktok"
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("clearfetch/tiktok-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": ["bouncingball"],
    "profiles": ["tiktok"],
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("clearfetch/tiktok-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": [
    "bouncingball"
  ],
  "profiles": [
    "tiktok"
  ],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call clearfetch/tiktok-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,clearfetch/tiktok-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/gQ33mQfHatlGepjhd/builds/vKOxGT4f3NSFDm4No/openapi.json
