# TikTok Profile Scraper (`arisma_tech/tiktok-scraper`) Actor

Scrape videos from public TikTok profiles: captions, plays, likes, comments, shares, saves, duration, music, hashtags, mentions and author stats. Filter by date and exclude pinned posts. No login needed. Pay only $0.50 per 1,000 videos. Failed profiles are free.

- **URL**: https://apify.com/arisma\_tech/tiktok-scraper.md
- **Developed by:** [Arishma](https://apify.com/arisma_tech) (community)
- **Stats:** 2 total users, 1 monthly users, 66.7% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 1,000 video-scrapeds

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 Profile Scraper

Extract videos from public TikTok profiles: caption, plays, likes, comments, shares, saves, duration, music, hashtags, mentions and full author stats. Filter by date and pay only for the videos you get.

No TikTok account or login required.

### Pricing

This Actor uses **Pay Per Event (PPE)** monetization.

| Event | Price |
| --- | --- |
| `video-scraped`: one video saved to the dataset | **$0.0005** |
| `apify-actor-start`: run start (per GB of memory) | $0.00005 |

- **1,000 videos = $0.50**
- Apart from a tiny start fee per run, you pay only for videos saved to your dataset.
- Failed profiles (not found, private, blocked) are **not charged**.
- Profiles with no videos matching your filters are **not charged**.
- Set a **maximum cost per run** in the Apify Console. The Actor saves only as many videos as your limit allows, then stops.

### What it extracts

#### Video

- Video ID and URL
- Caption text and language
- Created date (ISO 8601 and Unix timestamp)
- Plays, likes, comments, shares, saves and reposts
- Duration, size, cover image and subtitle links
- Hashtags and mentions
- Slideshow flag and image links
- Pinned, ad and sponsored flags

#### Music

- Music name, author and album
- Original sound flag
- Music URL and cover

#### Author

- Username, nickname, ID and profile URL
- Verified and private flags
- Bio and bio link
- Avatar
- Followers, following, total likes and video count

### Input

| Field | Default | Description |
| --- | --- | --- |
| `profiles` | | Profile URLs or usernames (`https://www.tiktok.com/@name`, `@name`, `name`). |
| `resultsPerPage` | `100` | Maximum latest videos per profile (1 to 1,000). |
| `oldestPostDate` | | Only videos posted on or after this date. Absolute (`2026-09-18`) or relative (`7 days`, `2 weeks`, `3 months`). |
| `excludePinnedPosts` | `false` | Skip videos pinned to the top of the profile. |
| `proxy` | Apify Proxy | Proxy configuration. Use the RESIDENTIAL group if you see captcha or block errors. |
| `maxConcurrency` | `2` | Profiles processed in parallel. |
| `maxRequestRetries` | `4` | Retries for a blocked or failed profile, each with a new browser session and IP. |

Input field names match other popular TikTok scrapers, so you can reuse an existing input. Unsupported fields (download options, search, `profileSorting` other than `latest`) are ignored.

#### Example

```json
{
  "profiles": ["https://www.tiktok.com/@hyundaiuk"],
  "resultsPerPage": 100,
  "oldestPostDate": "2026-09-18",
  "excludePinnedPosts": false
}
```

### Output

Results are written to the default Apify Dataset and can be exported as JSON, CSV, XLSX, XML, or retrieved through the Apify API.

Example video record (shortened):

```json
{
  "id": "7691760853527399713",
  "text": "Me: \"I need coffee.\"\nHyundai Coffee Club: \"We've got that covered.\" ☕😏\n#HyundaiUK #WorldCoffeeDay #CoffeeMoments #CarTok #fyp",
  "textLanguage": "en",
  "createTime": 1790877613,
  "createTimeISO": "2026-10-01T18:00:13.000Z",
  "isAd": false,
  "authorMeta": {
    "id": "7418943130583778337",
    "name": "hyundaiuk",
    "profileUrl": "https://www.tiktok.com/@hyundaiuk",
    "nickName": "hyundaiuk",
    "verified": true,
    "signature": "Home of #HyundaiUK.",
    "bioLink": null,
    "avatar": "https://p16-common-sign.tiktokcdn.com/...",
    "privateAccount": false,
    "following": 18,
    "friends": 5,
    "fans": 3284,
    "heart": 30200,
    "video": 117,
    "digg": 0
  },
  "musicMeta": {
    "musicName": "original sound",
    "musicAuthor": "hyundaiuk",
    "musicOriginal": true,
    "musicAlbum": null,
    "playUrl": "https://v16m.tiktokcdn.com/...",
    "coverMediumUrl": "https://p16-common-sign.tiktokcdn.com/...",
    "musicId": "7691760883806014240"
  },
  "webVideoUrl": "https://www.tiktok.com/@hyundaiuk/video/7691760853527399713",
  "videoMeta": {
    "height": 1024,
    "width": 576,
    "duration": 18,
    "coverUrl": "https://p16-common-sign.tiktokcdn.com/...",
    "originalCoverUrl": "https://p16-common-sign.tiktokcdn.com/...",
    "definition": "540p",
    "format": "mp4",
    "subtitleLinks": []
  },
  "diggCount": 15,
  "shareCount": 0,
  "playCount": 307,
  "collectCount": 0,
  "commentCount": 1,
  "repostCount": 0,
  "mentions": [],
  "detailedMentions": [],
  "hashtags": [
    { "id": "1681351558161410", "name": "hyundaiuk" },
    { "id": "1646155974970369", "name": "worldcoffeeday" }
  ],
  "isSlideshow": false,
  "slideshowImageLinks": [],
  "isPinned": false,
  "isSponsored": false,
  "input": "https://www.tiktok.com/@hyundaiuk",
  "fromProfileSection": "videos"
}
```

Notes:

- Videos are returned newest first. Pinned videos appear first and never stop a date-filtered scrape early.
- `videoMeta.duration` is `0` for photo slideshows (`isSlideshow: true`).
- Media URLs (avatar, cover, music) are signed by TikTok and expire after some time.
- Counts are as shown by TikTok at the time of the run.

Failed profiles are returned with `status: "failed"` and a `note` explaining why. They are not charged:

```json
{
  "input": "@doesnotexist",
  "status": "failed",
  "note": "Profile not found.",
  "isProxyUsed": true
}
```

### Important

This Actor collects only publicly available information. Users are responsible for complying with TikTok's terms, applicable laws, and privacy/data-protection requirements.

The Actor is not affiliated with, endorsed by, or sponsored by TikTok or ByteDance.

# Changelog

This Actor's version history is a separate document: https://apify.com/arisma\_tech/tiktok-scraper/changelog.md

# Actor input Schema

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

TikTok profile URLs or usernames, e.g. https://www.tiktok.com/@hyundaiuk, @hyundaiuk or hyundaiuk.

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

Maximum number of latest videos to return for each profile.

## `oldestPostDate` (type: `string`):

Only return videos posted on or after this date. Absolute (2026-09-18) or relative (7 days, 2 weeks, 3 months). Pinned videos never stop the scrape.

## `excludePinnedPosts` (type: `boolean`):

Skip videos pinned to the top of the profile.

## `proxy` (type: `object`):

Proxy used to access TikTok. Apify Proxy is recommended. Switch to the RESIDENTIAL group if you see captcha or block errors.

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

Number of profiles processed in parallel. Each one runs a browser tab.

## `maxRequestRetries` (type: `integer`):

How many times a blocked or failed profile is retried with a new browser session and proxy IP.

## Actor input object example

```json
{
  "profiles": [
    "https://www.tiktok.com/@hyundaiuk"
  ],
  "resultsPerPage": 20,
  "excludePinnedPosts": false,
  "proxy": {
    "useApifyProxy": true
  },
  "maxConcurrency": 2,
  "maxRequestRetries": 4
}
```

# Actor output Schema

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

Video records from the run.

# 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": [
        "https://www.tiktok.com/@hyundaiuk"
    ],
    "resultsPerPage": 20,
    "proxy": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("arisma_tech/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": ["https://www.tiktok.com/@hyundaiuk"],
    "resultsPerPage": 20,
    "proxy": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("arisma_tech/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": [
    "https://www.tiktok.com/@hyundaiuk"
  ],
  "resultsPerPage": 20,
  "proxy": {
    "useApifyProxy": true
  }
}' |
apify call arisma_tech/tiktok-scraper --silent --output-dataset

```

## MCP server setup

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