# TikTok Scraper API Pro - All Features (`makework36/tiktok-api-premium`) Actor

All-in-one TikTok scraper with profiles, videos, comments, hashtags, search, and download add-ons. The most complete TikTok data extraction tool with 29 profile fields and 77 video fields. Granular pay-per-event pricing.

- **URL**: https://apify.com/makework36/tiktok-api-premium.md
- **Developed by:** [deusex machine](https://apify.com/makework36) (community)
- **Categories:** Social media, AI, Marketing
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## TikTok User Scraper

Scrape TikTok user profiles, their videos, and video comments. No API key or login required.

### What data does it extract?

**Profile data:**

| Field | Description |
|-------|-------------|
| `username` | TikTok handle |
| `displayName` | Profile display name |
| `bio` | Profile bio text |
| `verified` | Whether the account is verified |
| `avatar` | Avatar image URL |
| `followers` | Follower count |
| `following` | Following count |
| `totalLikes` | Total likes across all videos |
| `totalVideos` | Total video count |
| `profileUrl` | Link to the profile |

**Video data:**

| Field | Description |
|-------|-------------|
| `id` | Video ID |
| `url` | Direct link to the video |
| `description` | Video caption/description |
| `views` | View count |
| `likes` | Like count |
| `comments` | Comment count |
| `shares` | Share count |
| `duration` | Video length in seconds |
| `thumbnail` | Thumbnail image URL |
| `musicTitle` | Sound/music title used |
| `musicAuthor` | Sound author name |
| `created` | ISO timestamp of when the video was posted |

**Comment data** (optional):

| Field | Description |
|-------|-------------|
| `id` | Comment ID |
| `text` | Comment text |
| `likes` | Comment like count |
| `author` | Commenter's username |
| `authorDisplay` | Commenter's display name |
| `replyCount` | Number of replies |
| `created` | ISO timestamp |

### Use cases

- **Influencer research** — Get follower counts, engagement rates, and content stats for any TikTok creator
- **Competitor analysis** — Monitor what content competitors are posting and how it performs
- **Audience insights** — Analyze comments on videos to understand audience sentiment and interests
- **Content strategy** — Study which video formats, durations, and topics get the most engagement
- **Talent scouting** — Find creators in a niche by comparing profile stats across multiple accounts

### How to use

Scrape profile and recent videos:

```json
{
    "usernames": ["mrbeast", "cristiano"],
    "maxVideos": 30
}
````

Include comments on each video:

```json
{
    "usernames": ["@charlidamelio"],
    "maxVideos": 10,
    "includeComments": true,
    "maxComments": 50
}
```

### Input parameters

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `usernames` | array | `[]` | TikTok usernames to scrape (with or without @). Required. |
| `maxVideos` | integer | `30` | Max videos per user (1-200) |
| `includeComments` | boolean | `false` | Scrape comments for each video. Significantly slower. |
| `maxComments` | integer | `20` | Max comments per video (1-100). Only used when `includeComments` is true. |
| `proxyConfig` | object | `{"useApifyProxy": true}` | Proxy settings. TikTok blocks datacenter IPs heavily. |

### Output example

Profile record:

```json
{
    "type": "profile",
    "username": "mrbeast",
    "displayName": "MrBeast",
    "bio": "New video every Saturday!",
    "verified": true,
    "avatar": "https://p16-sign-va.tiktokcdn.com/tos-maliva-avt-0068/example.jpeg",
    "followers": 102400000,
    "following": 312,
    "totalLikes": 2100000000,
    "totalVideos": 421,
    "profileUrl": "https://www.tiktok.com/@mrbeast",
    "scrapedAt": "2026-03-28T14:30:00.000Z"
}
```

Video record:

```json
{
    "type": "video",
    "profileUsername": "mrbeast",
    "id": "7345678901234567890",
    "url": "https://www.tiktok.com/@mrbeast/video/7345678901234567890",
    "description": "I gave away $1,000,000 to random people on the street",
    "views": 85000000,
    "likes": 12500000,
    "comments": 245000,
    "shares": 890000,
    "duration": 62,
    "thumbnail": "https://p16-sign-va.tiktokcdn.com/obj/tos-maliva-p-0068/example.jpeg",
    "musicTitle": "original sound - MrBeast",
    "musicAuthor": "MrBeast",
    "created": "2026-03-15T18:00:00.000Z"
}
```

### Performance & cost

- Returns accurate engagement stats directly from the platform
- Requires ~2 GB memory. Expect 1-3 minutes per profile depending on `maxVideos` and whether comments are enabled.

### FAQ

**Can I scrape private accounts?**
No. Only public profiles and their publicly visible videos are accessible.

**How many users can I scrape in one run?**
There's no hard limit. Each user takes 1-3 minutes, so plan your timeout accordingly. The default timeout is 5 minutes, which works for 2-3 users.

**Why are some video stats showing 0?**
If the API capture doesn't trigger during page load, the scraper falls back to DOM extraction, which may have limited stat data. Running with proxies on the Apify platform generally gives better results.

# Actor input Schema

## `usernames` (type: `array`):

List of TikTok usernames to scrape (with or without @). Example: \["@mrbeast", "cristiano"]

## `maxVideos` (type: `integer`):

Maximum number of videos to scrape per user (1–200).

## `includeComments` (type: `boolean`):

Scrape comments for each video. Charges $0.0003 per comment via PPE.

## `maxComments` (type: `integer`):

Maximum comments per video (only used if includeComments is true).

## `includePlaylists` (type: `boolean`):

Scrape user's playlists (collections of videos grouped together).

## `downloadVideos` (type: `boolean`):

Download .mp4 video files to Apify Key-Value Store. Links won't expire (TikTok CDN URLs do). Charges $0.005 per video via PPE.

## `downloadCovers` (type: `boolean`):

Download cover/thumbnail images for each video. Charges $0.0005 per image.

## `downloadAvatars` (type: `boolean`):

Download profile avatar images. Charges $0.0005 per avatar.

## `downloadSlideshow` (type: `boolean`):

For carousel/slideshow posts, download all images. Charges $0.0005 per image.

## `downloadSoundCovers` (type: `boolean`):

Download music cover artwork. Charges $0.0005 per image.

## `downloadSubtitles` (type: `boolean`):

Download subtitle files (multi-language) for AI training and translation. Charges $0.001 per file.

## `kvStoreName` (type: `string`):

Optional name for the Key-Value Store. Unnamed stores are deleted after 7 days on Free plan.

## `proxyConfig` (type: `object`):

Proxy settings. TikTok requires proxies to avoid blocks.

## Actor input object example

```json
{
  "usernames": [
    "tiktok"
  ],
  "maxVideos": 30,
  "includeComments": false,
  "maxComments": 20,
  "includePlaylists": false,
  "downloadVideos": false,
  "downloadCovers": false,
  "downloadAvatars": false,
  "downloadSlideshow": false,
  "downloadSoundCovers": false,
  "downloadSubtitles": false,
  "kvStoreName": "",
  "proxyConfig": {
    "useApifyProxy": true
  }
}
```

# 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 = {
    "usernames": [
        "tiktok"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("makework36/tiktok-api-premium").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 = { "usernames": ["tiktok"] }

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

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

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

```

## CLI example

```bash
echo '{
  "usernames": [
    "tiktok"
  ]
}' |
apify call makework36/tiktok-api-premium --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=makework36/tiktok-api-premium",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "TikTok Scraper API Pro - All Features",
        "description": "All-in-one TikTok scraper with profiles, videos, comments, hashtags, search, and download add-ons. The most complete TikTok data extraction tool with 29 profile fields and 77 video fields. Granular pay-per-event pricing.",
        "version": "0.1",
        "x-build-id": "4jc6gSyyolQwb8fnX"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/makework36~tiktok-api-premium/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-makework36-tiktok-api-premium",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/makework36~tiktok-api-premium/runs": {
            "post": {
                "operationId": "runs-sync-makework36-tiktok-api-premium",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/makework36~tiktok-api-premium/run-sync": {
            "post": {
                "operationId": "run-sync-makework36-tiktok-api-premium",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "usernames"
                ],
                "properties": {
                    "usernames": {
                        "title": "TikTok Usernames",
                        "type": "array",
                        "description": "List of TikTok usernames to scrape (with or without @). Example: [\"@mrbeast\", \"cristiano\"]",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "maxVideos": {
                        "title": "Max Videos per User",
                        "minimum": 1,
                        "maximum": 200,
                        "type": "integer",
                        "description": "Maximum number of videos to scrape per user (1–200).",
                        "default": 30
                    },
                    "includeComments": {
                        "title": "Include Comments ($)",
                        "type": "boolean",
                        "description": "Scrape comments for each video. Charges $0.0003 per comment via PPE.",
                        "default": false
                    },
                    "maxComments": {
                        "title": "Max Comments per Video",
                        "minimum": 1,
                        "maximum": 100,
                        "type": "integer",
                        "description": "Maximum comments per video (only used if includeComments is true).",
                        "default": 20
                    },
                    "includePlaylists": {
                        "title": "📁 Include Playlists",
                        "type": "boolean",
                        "description": "Scrape user's playlists (collections of videos grouped together).",
                        "default": false
                    },
                    "downloadVideos": {
                        "title": "📥 Download videos to permanent storage ($)",
                        "type": "boolean",
                        "description": "Download .mp4 video files to Apify Key-Value Store. Links won't expire (TikTok CDN URLs do). Charges $0.005 per video via PPE.",
                        "default": false
                    },
                    "downloadCovers": {
                        "title": "🖼️ Download video thumbnails ($)",
                        "type": "boolean",
                        "description": "Download cover/thumbnail images for each video. Charges $0.0005 per image.",
                        "default": false
                    },
                    "downloadAvatars": {
                        "title": "👤 Download profile avatars ($)",
                        "type": "boolean",
                        "description": "Download profile avatar images. Charges $0.0005 per avatar.",
                        "default": false
                    },
                    "downloadSlideshow": {
                        "title": "🎭 Download slideshow images ($)",
                        "type": "boolean",
                        "description": "For carousel/slideshow posts, download all images. Charges $0.0005 per image.",
                        "default": false
                    },
                    "downloadSoundCovers": {
                        "title": "🎵 Download music sound covers ($)",
                        "type": "boolean",
                        "description": "Download music cover artwork. Charges $0.0005 per image.",
                        "default": false
                    },
                    "downloadSubtitles": {
                        "title": "📝 Download subtitles ($)",
                        "type": "boolean",
                        "description": "Download subtitle files (multi-language) for AI training and translation. Charges $0.001 per file.",
                        "default": false
                    },
                    "kvStoreName": {
                        "title": "Storage name for downloaded files",
                        "type": "string",
                        "description": "Optional name for the Key-Value Store. Unnamed stores are deleted after 7 days on Free plan.",
                        "default": ""
                    },
                    "proxyConfig": {
                        "title": "Proxy Configuration",
                        "type": "object",
                        "description": "Proxy settings. TikTok requires proxies to avoid blocks.",
                        "default": {
                            "useApifyProxy": true
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
