# 🎬 TikTok Data Scraper (`simpleapi/tiktok-data-scraper`) Actor

🎬 TikTok Data Scraper extracts high-value insights from TikTok—captions, hashtags, engagement stats, creators & trends. 🚀 Perfect for market research, influencer discovery, and content strategy. ⚡ Fast, reliable, and automation-friendly.

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

## Pricing

from $2.99 / 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/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 Data Scraper

Extract **public TikTok data at scale** — creator profiles, videos, favourites, followers, following, comments & replies, hashtag feeds, music feeds, playlist feeds and full single-video details — and get clean, structured records in one standalone Apify Actor.

No login, no cookies, no browser automation headaches. Just paste what you want and press **Start**.

---

### ✨ Why Choose This Actor?

- 🧩 **8 data types in one place** — videos, favourites, followers, following, user info, search, comments/replies, hashtags, music, playlists and video details.
- 🌊 **Unlimited or capped** — grab the first *N* items or scrape everything available.
- 🛡️ **Smart proxy ladder** — starts on a fast direct connection and only escalates to datacenter → residential proxies when TikTok pushes back, then sticks with residential.
- 💾 **Live results** — every record is saved the moment it's collected, so you never lose a long run.
- 📊 **Tidy output** — a consistent envelope (`section`, `category`, `input`, `user`, `userType`, `data`) that's easy to filter, join and export.
- 🪄 **Friendly input** — clearly grouped sections with emojis; fill in only what you need.

---

### 🚀 Key Features

| Section | What you get |
|--------|--------------|
| 👥 **User data** | Videos, favourite videos, followers, following, user info, in-profile search |
| 💬 **Comments** | Comments and (optionally) nested replies for any video |
| #️⃣ **Hashtags** | Top/recent videos for any hashtag, with region localization |
| 🎵 **Music** | Videos using a given sound/track |
| ▶️ **Playlists** | Videos inside a playlist (mix) |
| 📹 **Video details** | Full HD detail record for individual videos |

---

### 🧾 Input

You only need to fill the section(s) you care about — leave the rest empty.

```json
{
  "userUrls": ["https://www.tiktok.com/@taylorswift"],
  "categories": ["videos"],
  "maxUserResults": 100,
  "scrapeAllUserResults": false,

  "videoUrlsComments": ["https://www.tiktok.com/@user/video/7300000000000000000"],
  "commentsPerUrl": 100,
  "repliesPerComment": 0,

  "hashtags": ["dance"],
  "videosPerHashtag": 100,
  "hashtagRegion": "US",

  "musicUrls": [],
  "playlistIDs": [],
  "videoDetailsList": [],

  "minRequestInterval": 1.2,
  "maxRetries": 3,
  "proxyConfiguration": { "useApifyProxy": false }
}
````

#### Field reference

| Field | Type | Description |
|-------|------|-------------|
| `userUrls` | array | Profile URLs, `@handles`, usernames or numeric user IDs. |
| `categories` | array | Which user data to collect: `videos`, `favourite_videos`, `followers`, `following`, `user_playlists`, `search`, `user_info`. |
| `maxUserResults` | integer | Max items per profile/section (min 40). |
| `scrapeAllUserResults` | boolean | Ignore the limit and fetch everything. |
| `videoUrlsComments` | array | Video URLs/IDs to scrape comments from. |
| `commentsPerUrl` / `scrapeAllComments` | integer / boolean | Comment cap or "all". |
| `repliesPerComment` / `scrapeAllReplies` | integer / boolean | Replies per comment (`0` = skip) or "all". |
| `hashtags` | array | Hashtag names or URLs. |
| `videosPerHashtag` / `scrapeAllHashtagVideos` | integer / boolean | Hashtag video cap or "all". |
| `hashtagRegion` | string | Two-letter country code (e.g. `US`, `GB`, `IN`). |
| `musicUrls` | array | Music URLs/IDs. |
| `videosPerMusic` / `scrapeAllMusicVideos` | integer / boolean | Music video cap or "all". |
| `playlistIDs` | array | Numeric playlist (mix) IDs. |
| `videosPerPlaylist` / `scrapeAllPlaylistVideos` | integer / boolean | Playlist video cap or "all". |
| `videoDetailsList` | array | Video IDs/URLs for full detail records. |
| `minRequestInterval` | number | Seconds between requests (pacing). |
| `maxRetries` | integer | Retries per request before giving up. |
| `apiKey` | string | Optional premium key that lifts the rate limit. |
| `proxyConfiguration` | object | Proxy settings. Default: **no proxy** with automatic escalation. |

***

### 📦 Output

Every record uses the same envelope so different sections sit happily in one dataset:

```json
{
  "section": "users",
  "category": "videos",
  "input": "https://www.tiktok.com/@taylorswift",
  "user": "taylorswift",
  "userType": "unique_id",
  "data": {
    "aweme_id": "7647758735229635871",
    "video_id": "7647758735229635871",
    "region": "US",
    "title": "…",
    "duration": 25,
    "play_count": 13686605,
    "digg_count": 2579867,
    "comment_count": 34525,
    "share_count": 115161,
    "create_time": 1780632608,
    "music_info": { "id": "…", "title": "…", "author": "Taylor Swift" },
    "author": { "id": "…", "unique_id": "taylorswift", "nickname": "Taylor Swift", "avatar": "…" }
  }
}
```

| Envelope field | Meaning |
|----------------|---------|
| `section` | `users`, `videos`, `hashtags`, `music`, `playlists`, `search` |
| `category` | The specific data type (`videos`, `comments`, `replies`, `user_info`, …) |
| `input` | The exact input string you provided |
| `user` | Resolved username / id / hashtag / music id / playlist id |
| `userType` | `unique_id`, `user_id`, `video_id`, `hashtag`, `music_id`, `mix_id`, `keywords` |
| `data` | The full record (video, comment, follower, profile, …) |

The **Output** tab ships with ready-made table views: 🗂️ Overview, 📹 Videos, 💬 Comments & Replies, and 👥 Users & Followers.

***

### 🚀 How to Use (Apify Console)

1. Log in at [console.apify.com](https://console.apify.com) → **Actors**.
2. Open **TikTok Data Scraper**.
3. Fill in the section(s) you need (e.g. paste a profile URL under 👥 *Scrape User Data*).
4. Click **Start**.
5. Watch the live log fill up with collection progress. 🎬
6. Open the **Output** tab and export to JSON / CSV / Excel.

### 🤖 Use via API

```bash
curl -X POST "https://api.apify.com/v2/acts/<ACTOR_ID>/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
     -H "Content-Type: application/json" \
     -d '{"userUrls":["https://www.tiktok.com/@taylorswift"],"categories":["videos"],"maxUserResults":40}'
```

***

### 💡 Best Use Cases

- 📈 Creator & competitor analytics (engagement, posting cadence).
- 🔎 Hashtag / sound trend discovery.
- 💬 Audience & sentiment research from comments.
- 🗂️ Building datasets for dashboards and ML.

### 💳 Pricing

This Actor uses the **pay-per-event** model. You're billed per **result item** saved to the dataset, so your cost scales directly with the data you collect. Capped runs (`maxUserResults`, `commentsPerUrl`, …) give you predictable spend; enable the 🌊 *Scrape all* toggles for full coverage.

### ❓ FAQ

**Do I need to fill every section?** No — fill only the ones you need; leave the rest empty.

**Why a minimum of 40 results?** Data is fetched in pages; 40 is the smallest sensible batch. Use the *Scrape all* toggle for everything.

**It says my direct connection was blocked — is that bad?** No. The Actor automatically escalates to datacenter then residential proxies and keeps going. You'll see clear 🛡️/🏠 log lines when this happens.

**Is this legal?** Only public data is collected. You are responsible for complying with TikTok's Terms, GDPR/CCPA and any applicable laws.

### 🛟 Support & Feedback

Found a bug or want a new field? Open an issue on the Actor's **Issues** tab — feedback is welcome and shapes the roadmap.

# Actor input Schema

## `userUrls` (type: `array`):

One or more profiles. Examples: https://www.tiktok.com/@taylorswift · taylorswift · @taylorswift · 107955

## `categories` (type: `array`):

Pick which kinds of content to collect for each profile above. Multiple selections are supported.

## `maxUserResults` (type: `integer`):

Maximum items to fetch per profile / section. Ignored when '🌊 Scrape all results' is enabled. Minimum 40.

## `scrapeAllUserResults` (type: `boolean`):

Ignore the limit above and collect everything available for each profile.

## `videoUrlsComments` (type: `array`):

TikTok video URLs or IDs to scrape comments from.

## `commentsPerUrl` (type: `integer`):

Maximum comments per video. Ignored when '🌊 Scrape all comments' is on. Minimum 40.

## `scrapeAllComments` (type: `boolean`):

Collect every available comment per video (slower, more usage).

## `repliesPerComment` (type: `integer`):

Maximum replies per comment. Set to 0 to skip replies entirely. Ignored when '🌊 Scrape all replies' is on.

## `scrapeAllReplies` (type: `boolean`):

Collect every available reply for each comment (slower, more usage).

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

TikTok hashtag names or URLs to scrape videos from.

## `videosPerHashtag` (type: `integer`):

Maximum videos per hashtag. Ignored when '🌊 Scrape all hashtag videos' is on. Minimum 40.

## `scrapeAllHashtagVideos` (type: `boolean`):

Collect every available video for each hashtag (slower, more usage).

## `hashtagRegion` (type: `string`):

Two-letter country code used for localization (e.g. US, GB, IN).

## `musicUrls` (type: `array`):

TikTok music URLs or IDs to scrape videos from.

## `videosPerMusic` (type: `integer`):

Maximum videos per music track. Ignored when '🌊 Scrape all music videos' is on. Minimum 40.

## `scrapeAllMusicVideos` (type: `boolean`):

Collect every available video for each music track (slower, more usage).

## `playlistIDs` (type: `array`):

TikTok playlist IDs to scrape videos from.

## `videosPerPlaylist` (type: `integer`):

Maximum videos per playlist. Ignored when '🌊 Scrape all playlist videos' is on. Minimum 40.

## `scrapeAllPlaylistVideos` (type: `boolean`):

Collect every available video for each playlist (slower, more usage).

## `videoDetailsList` (type: `array`):

TikTok video IDs or URLs to retrieve full details for.

## `minRequestInterval` (type: `number`):

Seconds to wait between consecutive requests. Lower is faster but more likely to be rate-limited.

## `maxRetries` (type: `integer`):

How many times to retry a failed/blocked request before giving up.

## `apiKey` (type: `string`):

Optional key that lifts the rate limit for faster collection. Leave empty for the free tier.

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

By default the scraper runs WITHOUT a proxy. If TikTok blocks the direct connection, it automatically escalates: 🛡️ datacenter → 🏠 residential, then sticks with residential. You can also force a proxy here.

## Actor input object example

```json
{
  "userUrls": [
    "https://www.tiktok.com/@taylorswift"
  ],
  "categories": [
    "videos"
  ],
  "maxUserResults": 10,
  "scrapeAllUserResults": false,
  "commentsPerUrl": 10,
  "scrapeAllComments": false,
  "repliesPerComment": 0,
  "scrapeAllReplies": false,
  "videosPerHashtag": 10,
  "scrapeAllHashtagVideos": false,
  "hashtagRegion": "US",
  "videosPerMusic": 10,
  "scrapeAllMusicVideos": false,
  "videosPerPlaylist": 10,
  "scrapeAllPlaylistVideos": false,
  "minRequestInterval": 1.2,
  "maxRetries": 3,
  "apiKey": "",
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# 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 = {
    "userUrls": [
        "https://www.tiktok.com/@taylorswift"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("simpleapi/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 = { "userUrls": ["https://www.tiktok.com/@taylorswift"] }

# Run the Actor and wait for it to finish
run = client.actor("simpleapi/tiktok-data-scraper").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 '{
  "userUrls": [
    "https://www.tiktok.com/@taylorswift"
  ]
}' |
apify call simpleapi/tiktok-data-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "🎬 TikTok Data Scraper",
        "description": "🎬 TikTok Data Scraper extracts high-value insights from TikTok—captions, hashtags, engagement stats, creators & trends. 🚀 Perfect for market research, influencer discovery, and content strategy. ⚡ Fast, reliable, and automation-friendly.",
        "version": "0.1",
        "x-build-id": "RfMOaKeAgBJValbEL"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/simpleapi~tiktok-data-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-simpleapi-tiktok-data-scraper",
                "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/simpleapi~tiktok-data-scraper/runs": {
            "post": {
                "operationId": "runs-sync-simpleapi-tiktok-data-scraper",
                "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/simpleapi~tiktok-data-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-simpleapi-tiktok-data-scraper",
                "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",
                "properties": {
                    "userUrls": {
                        "title": "🔗 User URLs, Usernames or IDs",
                        "type": "array",
                        "description": "One or more profiles. Examples: https://www.tiktok.com/@taylorswift · taylorswift · @taylorswift · 107955",
                        "items": {
                            "type": "string"
                        }
                    },
                    "categories": {
                        "title": "🗂️ Categories to scrape",
                        "type": "array",
                        "description": "Pick which kinds of content to collect for each profile above. Multiple selections are supported.",
                        "items": {
                            "type": "string",
                            "enum": [
                                "videos",
                                "favourite_videos",
                                "followers",
                                "following",
                                "user_playlists",
                                "search",
                                "user_info"
                            ],
                            "enumTitles": [
                                "📹 User Videos",
                                "❤️ User Favourite Videos",
                                "👥 Followers",
                                "🫂 Following",
                                "▶️ User Playlists",
                                "🔍 User Search",
                                "👤 User Info"
                            ]
                        },
                        "default": [
                            "videos"
                        ]
                    },
                    "maxUserResults": {
                        "title": "🔢 Max results per category",
                        "minimum": 1,
                        "type": "integer",
                        "description": "Maximum items to fetch per profile / section. Ignored when '🌊 Scrape all results' is enabled. Minimum 40.",
                        "default": 10
                    },
                    "scrapeAllUserResults": {
                        "title": "🌊 Scrape all available results",
                        "type": "boolean",
                        "description": "Ignore the limit above and collect everything available for each profile.",
                        "default": false
                    },
                    "videoUrlsComments": {
                        "title": "🔗 Video URLs or IDs",
                        "type": "array",
                        "description": "TikTok video URLs or IDs to scrape comments from.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "commentsPerUrl": {
                        "title": "🔢 Max comments per video",
                        "minimum": 1,
                        "type": "integer",
                        "description": "Maximum comments per video. Ignored when '🌊 Scrape all comments' is on. Minimum 40.",
                        "default": 10
                    },
                    "scrapeAllComments": {
                        "title": "🌊 Scrape all comments",
                        "type": "boolean",
                        "description": "Collect every available comment per video (slower, more usage).",
                        "default": false
                    },
                    "repliesPerComment": {
                        "title": "↳ Max replies per comment",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Maximum replies per comment. Set to 0 to skip replies entirely. Ignored when '🌊 Scrape all replies' is on.",
                        "default": 0
                    },
                    "scrapeAllReplies": {
                        "title": "🌊 Scrape all replies",
                        "type": "boolean",
                        "description": "Collect every available reply for each comment (slower, more usage).",
                        "default": false
                    },
                    "hashtags": {
                        "title": "#️⃣ Hashtag names or URLs",
                        "type": "array",
                        "description": "TikTok hashtag names or URLs to scrape videos from.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "videosPerHashtag": {
                        "title": "🔢 Max videos per hashtag",
                        "minimum": 1,
                        "type": "integer",
                        "description": "Maximum videos per hashtag. Ignored when '🌊 Scrape all hashtag videos' is on. Minimum 40.",
                        "default": 10
                    },
                    "scrapeAllHashtagVideos": {
                        "title": "🌊 Scrape all hashtag videos",
                        "type": "boolean",
                        "description": "Collect every available video for each hashtag (slower, more usage).",
                        "default": false
                    },
                    "hashtagRegion": {
                        "title": "🌍 Region",
                        "pattern": "^[A-Za-z]{2}$",
                        "type": "string",
                        "description": "Two-letter country code used for localization (e.g. US, GB, IN).",
                        "default": "US"
                    },
                    "musicUrls": {
                        "title": "🔗 Music URLs or IDs",
                        "type": "array",
                        "description": "TikTok music URLs or IDs to scrape videos from.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "videosPerMusic": {
                        "title": "🔢 Max videos per music",
                        "minimum": 1,
                        "type": "integer",
                        "description": "Maximum videos per music track. Ignored when '🌊 Scrape all music videos' is on. Minimum 40.",
                        "default": 10
                    },
                    "scrapeAllMusicVideos": {
                        "title": "🌊 Scrape all music videos",
                        "type": "boolean",
                        "description": "Collect every available video for each music track (slower, more usage).",
                        "default": false
                    },
                    "playlistIDs": {
                        "title": "🆔 Playlist IDs",
                        "type": "array",
                        "description": "TikTok playlist IDs to scrape videos from.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "videosPerPlaylist": {
                        "title": "🔢 Max videos per playlist",
                        "minimum": 1,
                        "type": "integer",
                        "description": "Maximum videos per playlist. Ignored when '🌊 Scrape all playlist videos' is on. Minimum 40.",
                        "default": 10
                    },
                    "scrapeAllPlaylistVideos": {
                        "title": "🌊 Scrape all playlist videos",
                        "type": "boolean",
                        "description": "Collect every available video for each playlist (slower, more usage).",
                        "default": false
                    },
                    "videoDetailsList": {
                        "title": "🔗 Video IDs or URLs",
                        "type": "array",
                        "description": "TikTok video IDs or URLs to retrieve full details for.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "minRequestInterval": {
                        "title": "⏱️ Minimum delay between requests (seconds)",
                        "minimum": 0,
                        "maximum": 10,
                        "type": "number",
                        "description": "Seconds to wait between consecutive requests. Lower is faster but more likely to be rate-limited.",
                        "default": 1.2
                    },
                    "maxRetries": {
                        "title": "🔁 Max retries per request",
                        "minimum": 0,
                        "maximum": 10,
                        "type": "integer",
                        "description": "How many times to retry a failed/blocked request before giving up.",
                        "default": 3
                    },
                    "apiKey": {
                        "title": "🔑 Premium data key (optional)",
                        "type": "string",
                        "description": "Optional key that lifts the rate limit for faster collection. Leave empty for the free tier.",
                        "default": ""
                    },
                    "proxyConfiguration": {
                        "title": "🛡️ Proxy configuration",
                        "type": "object",
                        "description": "By default the scraper runs WITHOUT a proxy. If TikTok blocks the direct connection, it automatically escalates: 🛡️ datacenter → 🏠 residential, then sticks with residential. You can also force a proxy here.",
                        "default": {
                            "useApifyProxy": false
                        }
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
