# TikTok Scraper - Profiles, Videos & Hashtags (No API Key) (`get_anything/tiktok-scraper`) Actor

Scrape TikTok profiles, videos and hashtags without an API key. Get views, likes, comments, shares, author, followers, music, hashtags, duration and timestamps. Camoufox-powered to pass bot detection. Export JSON/CSV for influencer research, trend tracking and market analysis.

- **URL**: https://apify.com/get\_anything/tiktok-scraper.md
- **Developed by:** [Get Anything](https://apify.com/get_anything) (community)
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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, Videos & Hashtags (No API Key)

Scrape public TikTok data without an API key or request signing. Give it profiles, video URLs or hashtags and get rich, structured records with full engagement metrics.

Powered by **Camoufox** (a hardened, fingerprint-spoofing browser) so it passes TikTok's bot detection, then reads data straight from the page's embedded JSON and the video-feed API responses the app itself loads — no `X-Bogus` / `msToken` signing to maintain.

### What it does

- **Profiles** — profile record (followers, total likes, video count, bio, verified, region) **+** the profile's recent videos.
- **Videos** — per video: description, view/play count, likes, comments, shares, saves, duration, author, author follower count, music (title/author), hashtags, timestamp, cover.
- **Hashtags** — top videos for each tag.

### Inputs

| Field | Type | Notes |
|---|---|---|
| `profiles` | array | Usernames (`mrbeast`, `@mrbeast`) or profile URLs. |
| `videoUrls` | array | Direct video URLs (`.../@user/video/123…`). One record each. |
| `hashtags` | array | Tags with or without `#`. |
| `resultsPerPage` | int | Max videos per profile / hashtag (default 30). |
| `includeProfileInfo` | bool | Also emit a profile record per profile (default true). |
| `proxyConfiguration` | proxy | **Residential strongly recommended** — TikTok blocks datacenter IPs. |

### Output

One dataset item per video (`type: "video"`), plus one per profile when enabled (`type: "profile"`). Example video:

```json
{
  "type": "video",
  "id": "7689501576511245598",
  "url": "https://www.tiktok.com/@mrbeast/video/7689501576511245598",
  "description": "…",
  "authorUniqueId": "mrbeast",
  "playCount": 16100000,
  "diggCount": 1200000,
  "commentCount": 24400,
  "shareCount": 29300,
  "durationSeconds": 6,
  "hashtags": ["highprotein", "recipe"],
  "createTimeISO": "2026-09-25T15:53:49+00:00"
}
```

### How it handles blocking

TikTok challenges some IPs. The Actor runs each source in its own Camoufox session and **retries up to 3 times on fresh residential IPs** until the page returns real data. Use a residential proxy for best results.

### Monetization (set in Apify Console → Publication → Monetization)

Pay-per-event charges are already wired in the code:

| Event name | Fires on |
|---|---|
| `video-scraped` | Each video record |
| `profile-scraped` | Each profile record |

Benchmark: `clockworks/tiktok-scraper` charges ~$0.0037/result.

### Notes

- `hashtags` populate from a video's description tags; videos without tags return `[]`.
- Direct video download URLs are intentionally not included (they expire and inflate bandwidth); `cover` and metadata are provided.

# Actor input Schema

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

TikTok usernames (with or without @) or profile URLs, e.g. 'mrbeast' or 'https://www.tiktok.com/@mrbeast'. Scrapes each profile's info and recent videos.

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

Direct TikTok video URLs, e.g. 'https://www.tiktok.com/@user/video/1234567890'.

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

Hashtags (with or without #), e.g. 'fyp'. Scrapes top videos for each tag.

## `resultsPerPage` (type: `integer`):

How many videos to scrape per profile or hashtag. Video-URL inputs return one each.

## `includeProfileInfo` (type: `boolean`):

For each profile, also output a profile record (followers, likes, video count, bio).

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

TikTok blocks datacenter IPs. Residential proxy is strongly recommended.

## Actor input object example

```json
{
  "profiles": [
    "mrbeast"
  ],
  "resultsPerPage": 30,
  "includeProfileInfo": true,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

One item per video (and per profile, if enabled) in the default dataset.

# 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": [
        "mrbeast"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

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

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

```

## MCP server setup

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