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

Scrape posts from any public TikTok profile. Extracts posts with video/CDN URLs, engagement stats (likes, comments, shares, views), music metadata, hashtags, tagged users, author profile info, and more.

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

## Pricing

from $5.00 / 1,000 posts

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

**Extract all posts** from any public TikTok profile. Get video/CDN URLs, engagement stats (likes, comments, shares, views), music metadata, hashtags, tagged users, author profile info, and more — perfect for content analysis, influencer research, or competitive intelligence.

For just **$5 per 1,000 posts**, you can scrape TikTok profiles with ease.

---

### Features

- Extract all posts from any public TikTok profile:
  - Post ID & URL
  - Description / caption
  - Creation date (Unix + ISO 8601)
  - Video URLs (play, download, best quality) + cover images
  - Image/slideshow post support (extracts all images)
  - Engagement stats: likes, comments, shares, views, saves
  - Music metadata: title, artist, duration, play URL, cover art
  - Hashtags with IDs and descriptions
  - Tagged users with positions
  - Effect stickers used
  - Author profile metadata: username, nickname, avatar, bio, verified, follower/following/heart/video counts
  - Item controls: can repost, can duet, can stitch
- Fast two-phase extraction: SSR parsing for instant first batch, stealth browser for complete pagination
- Proxy support for geo-restrictions and rate-limit avoidance
- Reliable with retry mechanisms

### Pricing

- **$5 per 1,000 posts**
- No hidden fees or limits on usage.

---

### Input

The actor accepts the following input:

- `profileUrls` (array, required): TikTok profile URLs. Supports any format (e.g. `https://www.tiktok.com/@fcbarcelona`, `https://m.tiktok.com/@narins.beauty_`, or just a username).
- `maxPosts` (integer, optional): Max posts to scrape per profile. 0 = unlimited. Default: 0.
- `proxy` (object, optional): Proxy configuration. Highly recommended for large-scale scraping.

#### Input Example

```json
{
  "profileUrls": [
    {"url": "https://www.tiktok.com/@fcbarcelona"},
    {"url": "https://www.tiktok.com/@narins.beauty_"}
  ],
  "maxPosts": 100,
  "proxy": {
    "useApifyProxy": true
  }
}
````

***

### Output

Each post is saved as a structured JSON object in the dataset. Example:

```json
{
  "id": "7639302892674944278",
  "url": "https://www.tiktok.com/@fcbarcelona/video/7639302892674944278",
  "description": "#fcbarcelona #barçaontiktok 🔵🔴",
  "createdAt": 1778663821,
  "createdAtISO": "2026-05-12T19:57:01+00:00",
  "isImagePost": false,
  "hashtags": [
    {"id": "26656", "title": "fcbarcelona", "description": ""},
    {"id": "12345", "title": "barçaontiktok", "description": ""}
  ],
  "taggedUsers": [],
  "video": {
    "duration": 30,
    "cover": "https://p16-common-sign.tiktokcdn-eu.com/...",
    "dynamicCover": "https://p16-common-sign.tiktokcdn-eu.com/...",
    "playUrl": "https://v16-webapp-prime.tiktok.com/video/tos/...",
    "downloadUrl": "https://v16-webapp-prime.tiktok.com/video/tos/...",
    "bestQualityUrl": "https://v16-webapp-prime.tiktok.com/video/tos/...",
    "width": 1080,
    "height": 1920,
    "ratio": "9:16"
  },
  "stats": {
    "diggCount": 26200,
    "shareCount": 141,
    "commentCount": 364,
    "playCount": 149800,
    "collectCount": 847
  },
  "music": {
    "id": "7420525641043855361",
    "title": "New Skills",
    "authorName": "Prodbyecho",
    "duration": 59,
    "playUrl": "https://sf16-ies-music-sg.tiktokcdn.com/...",
    "coverLarge": "https://p77-sg.tiktokcdn.com/...",
    "isOriginal": false
  },
  "authorMeta": {
    "id": "6594121926820872197",
    "uniqueId": "fcbarcelona",
    "nickname": "FC Barcelona",
    "verified": true,
    "avatar": "https://p16-common-sign.tiktokcdn-eu.com/...",
    "signature": "🏆 Get the OR jersey 🏆",
    "followerCount": 66800000,
    "followingCount": 31,
    "heartCount": 2700000000,
    "videoCount": 5681
  },
  "itemControl": {
    "canRepost": true,
    "canDuet": true,
    "canStitch": true
  }
}
```

***

### Running via Apify Console

Go to the [Apify Console](https://console.apify.com), find the TikTok Profile Scraper actor, enter your profile URLs, and click Run.

#### Running via API (Python)

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")

run_input = {
    "profileUrls": [
        {"url": "https://www.tiktok.com/@fcbarcelona"}
    ],
    "maxPosts": 100
}

run = client.actor("rigelbytes/tiktok-profile-scraper").call(run_input=run_input)
```

#### Running via API (JavaScript)

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: '<YOUR_API_TOKEN>' });

const input = {
    profileUrls: [{ url: 'https://www.tiktok.com/@fcbarcelona' }],
    maxPosts: 100,
};

const run = await client.actor('rigelbytes/tiktok-profile-scraper').call(input);
```

#### Running with cURL

```bash
API_TOKEN=<YOUR_API_TOKEN>

cat > input.json <<'EOF'
{
  "profileUrls": [{"url": "https://www.tiktok.com/@fcbarcelona"}],
  "maxPosts": 100
}
EOF

curl "https://api.apify.com/v2/acts/rigelbytes/tiktok-profile-scraper/runs?token=$API_TOKEN" \
  -X POST -d @input.json -H 'Content-Type: application/json'
```

***

### Why Choose This Scraper?

- **Affordable**: Just $10 for 1,000 posts.
- **Comprehensive**: Extracts every post with full metadata, engagement stats, music info, and author profile.
- **Fast**: SSR parsing for instant first batch, optimized browser for pagination.
- **Easy to Use**: Simple input format, runs with one click.
- **Reliable**: Built with retry mechanisms and stealth browser technology.

***

### Recommended Proxy Providers

#### **Shifter**

- Reliable residential proxies worldwide
- Competitive rates
- [Order Shifter Now](https://shifter.io/r/YoBB/order)
- Get 10% Off with coupon `rigelbytes-YoBB`

#### **OxyLabs**

- 100M+ Proxies
- Fastest proxies in the market
- Real profile, human-like Residential IPs
- [Get Proxies](https://oxylabs.go2cloud.org/aff_c?offer_id=7\&aff_id=1366\&url_id=7)

#### **DataImpulse**

- Covers 200+ Countries
- Reliable Residential Proxies for just $1/GB
- [Get Residential Proxies](https://dataimpulse.com/?aff=89421)

### About Rigel Bytes

Rigel Bytes specializes in web scraping, automation, and data analytics. We help businesses extract and leverage valuable data for informed decision-making.

### Contact Us

Ready to unlock the power of data? Reach out to us at (contact@rigelbytes.com) or [book an appointment](https://cal.com/faizanali/appointments).

# Actor input Schema

## `profileUrls` (type: `array`):

One or more TikTok profile URLs. Supports any profile link format (e.g. https://www.tiktok.com/@fcbarcelona, https://m.tiktok.com/@narins.beauty\_, or just @username).

## `maxPosts` (type: `integer`):

Stop after collecting this many posts per profile. Leave 0 for unlimited.

## `concurrency` (type: `integer`):

Max number of parallel signed API requests during pagination. Higher = faster, more proxy pressure. Default 6 is safe for residential proxies on a single container.

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

Proxy settings for scraping. Apify proxy is recommended to avoid rate limiting and geo-restrictions.

## Actor input object example

```json
{
  "profileUrls": [
    {
      "url": "https://www.tiktok.com/@fcbarcelona"
    },
    {
      "url": "https://www.tiktok.com/@narins.beauty_"
    }
  ],
  "maxPosts": 0,
  "concurrency": 6,
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `posts` (type: `string`):

All scraped TikTok posts with full metadata, video URLs, stats, music info, and author details.

# 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 = {
    "profileUrls": [
        {
            "url": "https://www.tiktok.com/@fcbarcelona"
        },
        {
            "url": "https://www.tiktok.com/@narins.beauty_"
        }
    ],
    "proxy": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("rigelbytes/tiktok-profile-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 = {
    "profileUrls": [
        { "url": "https://www.tiktok.com/@fcbarcelona" },
        { "url": "https://www.tiktok.com/@narins.beauty_" },
    ],
    "proxy": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("rigelbytes/tiktok-profile-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 '{
  "profileUrls": [
    {
      "url": "https://www.tiktok.com/@fcbarcelona"
    },
    {
      "url": "https://www.tiktok.com/@narins.beauty_"
    }
  ],
  "proxy": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call rigelbytes/tiktok-profile-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "TikTok Profile Scraper",
        "description": "Scrape posts from any public TikTok profile. Extracts posts with video/CDN URLs, engagement stats (likes, comments, shares, views), music metadata, hashtags, tagged users, author profile info, and more.",
        "version": "1.0",
        "x-build-id": "zZS7Wbe68gWeQQcrf"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/rigelbytes~tiktok-profile-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-rigelbytes-tiktok-profile-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/rigelbytes~tiktok-profile-scraper/runs": {
            "post": {
                "operationId": "runs-sync-rigelbytes-tiktok-profile-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/rigelbytes~tiktok-profile-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-rigelbytes-tiktok-profile-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",
                "required": [
                    "profileUrls"
                ],
                "properties": {
                    "profileUrls": {
                        "title": "TikTok Profile URLs",
                        "uniqueItems": true,
                        "type": "array",
                        "description": "One or more TikTok profile URLs. Supports any profile link format (e.g. https://www.tiktok.com/@fcbarcelona, https://m.tiktok.com/@narins.beauty_, or just @username).",
                        "items": {
                            "type": "object",
                            "required": [
                                "url"
                            ],
                            "properties": {
                                "url": {
                                    "type": "string",
                                    "title": "URL of a web page",
                                    "format": "uri"
                                }
                            }
                        }
                    },
                    "maxPosts": {
                        "title": "Maximum Posts per Profile",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Stop after collecting this many posts per profile. Leave 0 for unlimited.",
                        "default": 0
                    },
                    "concurrency": {
                        "title": "API Pagination Concurrency",
                        "minimum": 1,
                        "maximum": 16,
                        "type": "integer",
                        "description": "Max number of parallel signed API requests during pagination. Higher = faster, more proxy pressure. Default 6 is safe for residential proxies on a single container.",
                        "default": 6
                    },
                    "proxy": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Proxy settings for scraping. Apify proxy is recommended to avoid rate limiting and geo-restrictions."
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
