# TikTok Profile Scraper — Followers & Videos, No Login (`valev-lab/tiktok-profile-scraper`) Actor

Scrape public TikTok profiles, followers, videos, photo carousels and engagement rates. Export CSV, Excel or JSON. Filter dates and views, enrich creator shortlists and monitor unseen posts. No TikTok login or user cookies.

- **URL**: https://apify.com/valev-lab/tiktok-profile-scraper.md
- **Developed by:** [Daniel Valev](https://apify.com/valev-lab) (community)
- **Categories:** Social media, Videos
- **Features:** Limited permissions
- **Stats:** 2 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.60 / 1,000 post scrapeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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** extracts public [TikTok](https://www.tiktok.com/) profiles, follower counts, videos, photo carousels and engagement metrics. Export **CSV, Excel or JSON** for influencer vetting, competitor tracking and creator shortlist research. **No TikTok login, user cookies or TikTok developer API key required.**

Get biography links, profile hearts, post views, likes, comments, shares and saves. Compare supplied creators using average views, view-based engagement rate and posting frequency, or monitor unseen posts across repeat runs.

**Try the small example first:** one public profile plus four posts. The verified cloud default completed in **5.46 seconds with zero errors**, including a seven-image carousel. This is one measured run, not a speed or reliability guarantee. Pay-per-event pricing is active. Start/profile/post event registration, spending limits and error/duplicate exclusions were verified in cloud tests.

### What does TikTok Profile Scraper do?

| Capability | Result |
| --- | --- |
| **Profile statistics** | Followers, following, total hearts, bio links, avatar and verification status |
| **Video and photo metadata** | Captions, hashtags, mentions, music, available media URLs and counters |
| **Engagement analysis** | Per-post view-based engagement and profile summaries over delivered posts |
| **Filtering and sorting** | Video/photo selection, UTC dates, minimum views and local popularity sorting |
| **Repeat monitoring** | Refresh profile statistics and skip post IDs already saved by your workflow |
| **Automation** | Apify API access, saved tasks, separately configured schedules and dataset exports |

Supply @usernames, public profile URLs or secure user IDs (`secUid`). Choose profile-only extraction, a limited sample or all available posts. The Actor collects public data over HTTP. It does not export follower account lists, search for creators by keyword, detect fake followers or access private profiles.

### What can you use TikTok profile data for?

| Use case | Workflow |
| --- | --- |
| **Influencer vetting** | Compare public followers with sampled post views, engagement and publishing cadence; inspect verified status and bio links |
| **Competitor tracking** | Refresh profile statistics and keep a named history of delivered post IDs for scheduled repeats |
| **Creator discovery shortlist enrichment** | Enrich a supplied shortlist with public stats, post topics and performance, then rank it in your own analysis |

This Actor enriches supplied profiles; it does not search TikTok by topic or prove that an audience is authentic. Averages describe the posts actually delivered, not a creator's entire history. Apify supplies schedules, API access, exports and integrations with Make, Zapier and n8n.

For conversations and audience feedback, use our [TikTok Comments Scraper](https://apify.com/valev-lab/tiktok-comments-scraper). Each post can include a prefilled `commentsActorUrl`; opening the link does not run that Actor or incur a comments fee. For advertiser and campaign research, use our [TikTok Ads Library](https://apify.com/valev-lab/tiktok-ads-library).

### How to scrape a TikTok profile

1. Add TikTok @usernames, full public profile URLs or secUids.
2. Choose videos, photos or both and a maximum matching result count. Set `0` to follow available pages to their end.
3. Optionally apply inclusive UTC dates, minimum views, local popularity sorting or monitoring.
4. Use `profileOnly: true` when you only need profile statistics.
5. Inspect **Profiles overview** and **Posts overview**, then download JSON, HTML, CSV or Excel.

Both views select columns from one mixed dataset. Filter `type == "profile"` or `type == "post"` downstream for separate tables. Free profile diagnostics retain `type: "profile"` and add `error` / `errorCode`; check these fields before analysis.

### Ready-made TikTok scraping tasks

Open a ready-made task below, replace the demo profiles and adjust the result limit. Saved tasks do not enable schedules automatically.

| Task | Preset | Best for |
| --- | --- | --- |
| [Export TikTok profile followers and bios](https://apify.com/valev-lab/tiktok-profile-scraper/examples/tiktok-profile-followers-export) | Three demo profiles, profile-only mode | Follower counts and profile enrichment without post extraction |
| [Analyze TikTok influencer engagement](https://apify.com/valev-lab/tiktok-profile-scraper/examples/tiktok-influencer-engagement) | Up to 30 posts | Views, engagement and publishing cadence |
| [Monitor unseen TikTok competitor posts](https://apify.com/valev-lab/tiktok-profile-scraper/examples/tiktok-competitor-post-monitor) | Up to 30 unseen posts and a dedicated named store | Repeat content tracking |
| [Export TikTok photo carousels](https://apify.com/valev-lab/tiktok-profile-scraper/examples/tiktok-photo-carousel-export) | Up to five photo posts | Image URLs, captions and music |
| [Rank a TikTok post sample by views](https://apify.com/valev-lab/tiktok-profile-scraper/examples/tiktok-popular-post-sample) | Up to 30 posts, local popularity sort | Ranking the fetched window, not all-time top posts |
| [Enrich a TikTok creator shortlist](https://apify.com/valev-lab/tiktok-profile-scraper/examples/tiktok-creator-shortlist-enrichment) | Two demo profiles, ten posts each | Comparing supplied creators; no keyword discovery |
| [Export all available TikTok profile posts](https://apify.com/valev-lab/tiktok-profile-scraper/examples/tiktok-all-profile-posts) | `maxPostsPerProfile: 0` | Available account history, subject to budget and timeout |
| [Export TikTok posts to CSV](https://apify.com/valev-lab/tiktok-profile-scraper/examples/tiktok-posts-csv-export) | Up to 20 videos/photos | Spreadsheet research and API exports |

### Input example

```json
{
  "profiles": ["@tiktok"],
  "maxPostsPerProfile": 4,
  "postTypes": "both",
  "sortBy": "newest",
  "includePinned": true,
  "profileOnly": false,
  "monitorMode": false,
  "includeCommentsActorUrl": true,
  "proxyConfiguration": { "useApifyProxy": false }
}
```

See the Input tab for the complete form. Ordinary source inputs default to 30 posts. Without profiles, the health check requests one `@tiktok` profile plus four posts, for five records; the Console prefill also uses four posts. A custom profile plus 30 posts produces 31 dataset rows.

| Option | Default | Meaning |
| --- | --- | --- |
| `profiles` | Small health-check target when empty | @handles, bare usernames, profile URLs or secUids; aliases deduplicate by resolved user ID |
| `maxPostsPerProfile` | 30 | Delivered matching unseen posts per profile; `0` means all available pages, not profile-only |
| `postTypes` | `both` | `videos`, `photos` or `both` |
| `dateFrom`, `dateTo` | None | Inclusive UTC dates in `YYYY-MM-DD`; unknown dates fail an active date filter |
| `minViews` | 0 | Minimum reported plays; unknown counts fail only a positive minimum |
| `sortBy` | `newest` | Sort the fetched candidate window locally by timestamp or plays (`popular`) |
| `includePinned` | `true` | All exposed posts are eligible; `false` requires known pin flags and produces `PIN_STATUS_UNAVAILABLE` when the route omits them |
| `profileOnly` | `false` | Profile statistics only, no post output/events; post-derived summaries are null |
| `monitorMode` | `false` | Deliver only post IDs not previously saved by the named workflow |
| `monitorStoreName` | `tiktok-profile-scraper-monitor` | Persistent store name; use separate names for independent workflows |
| `includeCommentsActorUrl` | `true` | Add a prefilled link to the companion Comments Actor |
| `proxyConfiguration` | Direct HTTP | Explicit Apify/custom/residential selections respected; no automatic residential escalation |

A finite limit stops after enough matching unseen candidates have been fetched. The last 15-item page can supply extra candidates before sorting and truncation. Popularity sorts that fetched window, not the full account; use `maxPostsPerProfile: 0` to rank every available post locally. Tight photo/date/view/monitor filters can require many more requests than the delivered count suggests.

A secUid resolves through an exposed public post author before the profile HTML is requested. This adds an identity-resolution request even in profile-only mode. Use the username for a public account with no exposed posts; secUid-only resolution cannot identify an empty account from an empty post list.

### What data does it extract?

| Profile (`type: "profile"`) | Post (`type: "post"`) |
| --- | --- |
| `userId`, `secUid`, `username`, `nickname`, `profileUrl` | `postId`, `url`, `authorUsername`, `postType` (`video` / `photo`) |
| `bio`, `bioLink`, `avatar`, `isVerified`, `isPrivate` | `description`, `hashtags[]`, `mentions[]`, ISO `createdAt`, `isPinned`, `isAd` |
| `followerCount`, `followingCount`, `likeCount` (hearts), `videoCount`, `friendCount` | `durationSec`, `playCount`, `likeCount`, `commentCount`, `shareCount`, `collectCount`, `engagementRate` |
| `region`, `language`, `createdAt` when exposed | `musicTitle`, `musicAuthor`, `musicId`, `isOriginalSound` |
| `avgViews`, `avgEngagementRate`, `postsPerWeek`, `scrapedPostCount` | `coverUrl`, exposed `videoUrl`, `photoUrls[]`, explicit public `location` |
| `status`, `paginationComplete`, `pages`, `errorCode`, `error`, `scrapedAt` | `commentsActorUrl`, `isNew`, `scrapedAt` |

IDs remain strings. Exact `statsV2` counters take precedence over rounded public stats. Unknown optional values are `null`, arrays can be empty, and signed media URLs can expire. Region/language come only from explicit creator fields; the visitor's egress country is not the creator's region. Media is not downloaded and private accounts are not accessed.

#### How is TikTok engagement rate calculated?

`engagementRate = (likes + comments + shares) / plays` is a **ratio**: `0.05` means 5%. It is null for zero/missing plays or incomplete component counts. `avgViews` and `avgEngagementRate` are arithmetic means of known values over delivered posts. `postsPerWeek = (number of dated delivered posts - 1) × 7 days / (newest timestamp - oldest timestamp)`; it is null with fewer than two distinct timestamps. Filters, monitoring, budget and partial failures change the sample.

Illustrative abbreviated output with synthetic identities:

```json
[
  {"type":"profile","userId":"7000000000000000001","username":"exampleuser","followerCount":750,"likeCount":25000,"videoCount":200,"avgViews":1200,"avgEngagementRate":0.115,"postsPerWeek":1,"scrapedPostCount":2,"status":"limit","paginationComplete":false},
  {"type":"post","postId":"7000000000000000010","url":"https://www.tiktok.com/@exampleuser/video/7000000000000000010","authorUsername":"exampleuser","postType":"video","playCount":1200,"likeCount":120,"commentCount":12,"shareCount":6,"engagementRate":0.115,"isPinned":null,"isNew":null},
  {"type":"profile","source":"@unavailableexample","errorCode":"PROFILE_PRIVATE","error":"The profile is private."}
]
```

Posts can be delivered before the profile row so summary calculations reflect actual delivered results. Join on the author's username/profile data; dataset order is not a parent/child guarantee.

### How much does TikTok profile scraping cost?

**Pay-per-event pricing is configured.** Free means the Apify Free plan, not zero-cost extraction. Check the Pricing tab for the effective tier prices.

| Event | Free | Bronze | Silver | Gold and above |
| --- | ---: | ---: | ---: | ---: |
| `apify-actor-start`, once at default memory | $0.00005 | $0.00005 | $0.00005 | $0.00005 |
| `profile-scraped`, successful profile | $0.001 | $0.0009 | $0.00075 | $0.0006 |
| `post-scraped`, delivered unique post | $0.0009 | $0.0008 | $0.0007 | $0.0006 |
| Errors, incomplete profiles, duplicates, filtered/seen posts | $0 | $0 | $0 | $0 |

One successful profile plus 1,000 posts would cost **$0.90105 Free / $0.60065 Gold+** including one start. At a 30-post cap, 1,000 posts over 34 successful profiles would cost **$0.93405 / $0.62045**. Profile-only retrieval of 1,000 profiles would cost **$1.00005 / $0.60005**. These are event estimates for the stated workloads. Standard-run platform usage is included; post-run storage interactions follow Apify platform pricing. The small cloud default had $0.00008128 in reported infrastructure usage; cloud cost samples now cover 50-post, 188-post and 30-carousel workloads. Per-1,000 figures extrapolate those samples rather than claiming a full 1,000-post benchmark.

Set Apify's **maximum total charge**. The Actor includes all charged event types in affordability checks, reserves the profile fee while delivering posts, bounds fetching by affordable result capacity and honors the SDK's charge-limit response. The platform supplies the synthetic start event; code does not charge it again. `apify-default-dataset-item` must have no fee. Unavailable profiles and incomplete profile/listing rows are free; independently successful posts from earlier pages can still be billed. A start fee can apply even if every profile fails.

#### Compared with Clockworks and API Dojo

Public [Clockworks pricing metadata](https://api.apify.com/v2/acts/clockworks~tiktok-profile-scraper) and [API Dojo pricing metadata](https://api.apify.com/v2/acts/apidojo~tiktok-scraper) checked 10 November 2026. These compare different result bundles, not proven feature/reliability superiority.

| Actor | Base posts per 1,000: Free / Gold / Diamond | Relevant scope |
| --- | --- | --- |
| **This Actor** | **$0.90 / $0.60 / $0.60**, plus profile/start events | Separate profile/post records, included date/view filters, local sorting, named-store monitoring and computed engagement summaries |
| [Clockworks TikTok Profile Scraper](https://apify.com/clockworks/tiktok-profile-scraper) | $3.00 / $1.00 / $0.30 | Established profile/video extraction; separate date/popularity filter and other add-ons |
| [API Dojo TikTok Scraper](https://apify.com/apidojo/tiktok-scraper) | $0.30 / $0.30 / $0.30 | Established public post extraction |
| [Headply TikTok Profile Scraper](https://apify.com/headply/tiktok-profile-scraper) | $2.00 / $1.40 / $1.40, plus profile/start events | Profile/post extraction; profile event also $2.00 / $1.40 per 1,000 on Free / Gold |
| [Solarg TikTok Profile Scraper](https://apify.com/solarg/tiktok-profile-scraper) | Not a post scraper | Profile-only: $0.50 / $0.35 per 1,000 profiles on Free / Gold |

The **post event** is 70% lower than Clockworks on Free and 40% lower on Gold. Profile/start fees reduce that saving. Clockworks ties the post rate on Platinum and costs less on Diamond; API Dojo costs less. At one post per profile, Gold profile+post fees exceed Clockworks' base result rate. There is no claim to be cheapest on every plan or to have matched API Dojo reliability.

### Monitoring and reliability

Reuse the same named key-value store between runs. Profile stats refresh on each successful run. Post IDs are saved only after successful dataset delivery, every 50 delivered posts, at profile completion and on persist events. Later runs continue past saved IDs to find unseen matches. `isNew: true` means unseen by this workflow, including older posts never delivered before; it is null outside monitoring. Avoid concurrent runs sharing one store: dataset delivery and monitor state are not atomic, so a crash before a checkpoint can redeliver a post.

The shared HTTP transport retries with exponential backoff and rotates anonymous cookie jars and configured proxy sessions together on blocks, empty bodies or explicit token/signature refusals. The working route is unsigned and refreshes site-issued anonymous cookies. Explicit residential proxies can cost more than the result-event revenue and are never enabled automatically. The measured profitability applies to direct HTTP; proxy-heavy or low-yield scans require their own cost assessment.

Profile identity and pagination progress are checked. Posts are deduplicated before charging, and the scan follows TikTok's available end signal. Missing or stalled pages produce explicit diagnostics instead of being presented as a complete history. One unavailable profile does not stop other profiles. Inspect `paginationComplete` and `error` before treating a scan as complete.

Large unlimited scans need suitable memory, budget and timeout settings. The profile's reported `videoCount` is not an end condition: a measured account reported 186 but exposed 188 unique public posts to cursor exhaustion.

#### Verified cloud and local results

The no-input cloud run on build **1.0.1** returned **one profile and four posts**, including a seven-image carousel, with zero errors in **5.459 seconds total run duration**. Peak memory was 103.7 MiB at a 256 MB allocation. It used direct HTTP, zero proxy bytes and zero retries.

On 9 November 2026, direct anonymous HTTP delivered 50 Zach King posts in 3.865 s, all five posts from a five-follower account in 1.192 s, 14 Bulgarian-creator posts in 1.341 s, 30 photo carousels in 33.353 s and 188 MIT posts to an explicit end in 11.782 s. Private/missing profiles returned free diagnostics. The five public extraction cases all succeeded; this small sample does not establish sustained 99% reliability.

The photo filter inspected 33 pages to find 30 matching posts, illustrating that a tight filter can cost more than an unfiltered sample. The no-input health check returned one profile and four posts with no errors in 1.306–1.441 s locally. These are Actor-processing measurements, not cloud speed guarantees.

Cloud default output and eight monetized owner-run checks are verified: 277 delivered post rows across the checks, deduplicated within each run, 12 successful profile results, expected private/missing diagnostics, duplicate skips and repeat-monitor state. Final registered start/profile/post counts matched successful output after asynchronous platform counters updated. These owner tests verify event registration, not customer revenue or a payout. Sustained direct/proxy reliability, very large monitoring histories and actual paid-customer tier billing still need broader validation. These results do not establish a 99% SLA. The verification dates above describe fixed test samples; they are not live service-status claims.

### Use the TikTok profile scraper API

Call `valev-lab/tiktok-profile-scraper` through the [Apify API](https://docs.apify.com/api/v2). Access follows Actor visibility and account permissions. An Apify token is needed for programmatic Apify access; no TikTok API key is needed.

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

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('valev-lab/tiktok-profile-scraper').call({
    profiles: ['@tiktok'],
    maxPostsPerProfile: 4,
    postTypes: 'both',
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
const posts = items.filter(item => item.type === 'post');
// Paginate listItems() for larger exports.
```

Save an input as an Apify task for repeat runs and add a schedule separately. Send exported results to your spreadsheet, warehouse or automation tool. For AI workflows, [Apify’s MCP server](https://docs.apify.com/mcp) supports Actor discovery and execution subject to visibility, authentication and permissions. AI clients use your Apify authorization for paid execution. Discovery does not guarantee ranking or inclusion in an AI-generated answer.

### FAQ

#### Does this export a TikTok follower list?

No. `followerCount` is the public follower total. This Actor does not export follower or following account lists.

#### Can I get profile statistics without scraping videos?

Yes. Set `profileOnly: true` for public followers, following, hearts, biography and available profile fields without post rows or post events. Post-derived averages remain null. Usernames or profile URLs offer the simplest identity resolution.

#### Can it find creators by keyword or detect fake followers?

It enriches supplied profiles for your own discovery and vetting workflow. It does not search TikTok for creators, provide audience demographics or classify fake followers.

#### Does monitoring return only posts published since the last run?

It returns matching post IDs not previously saved by your workflow. Older undelivered posts can appear after a capped first run. Add a date filter if you also need a publication-date window. Configure scheduling separately.

#### How do I export only profiles or only posts to CSV?

Select the matching overview for useful columns, export CSV or Excel, then filter the `type` column. Views select columns from a mixed dataset; they do not remove the other record type. Check `error` before treating a profile row as successful.

#### Can I scrape TikTok profiles without login or user cookies?

Yes. The verified path reads public profile HTML and an unsigned creator endpoint using only anonymous site-issued cookies. No TikTok login, user cookie, paid data API or external signing service is used.

#### How do I export all posts from a profile?

Set `maxPostsPerProfile: 0`. The Actor follows timestamp pages until TikTok signals the available end, a spending limit is reached or an explicit failure occurs. Inspect `paginationComplete` and diagnostics. Private, deleted or restricted content may be unavailable, and a reported profile count can differ from exposed posts.

#### Can it scrape photo carousels?

Yes. Live acceptance delivered 30 photo posts with exposed image arrays. The Actor exports image URLs, captions, music and available counters; it does not download image files. Photo posts have null video duration/URL.

#### Can I exclude pinned posts?

The working creator route omits pin flags, even when pin-related query parameters are supplied. Pin status stays null. With `includePinned: false`, the Actor returns a free `PIN_STATUS_UNAVAILABLE` diagnostic instead of guessing. With the default `true`, all exposed posts are eligible; finite newest/popular caps do not force an old pinned post into the result.

#### Does popular mean the most viewed posts on the whole account?

It sorts the fetched matching unseen candidate window locally by views. A finite cap searches a finite window. Use `0` to fetch every available page before ranking, subject to budget, timeout and target availability.

#### Can I use a secUid without a username?

Yes, when at least one public creator post exposes its author identity. The Actor resolves that author and requests profile HTML. For an empty or unavailable account, provide the username so the public profile can be checked directly.

#### What happens to private, banned or missing accounts?

They return free profile diagnostics and other sources continue. No successful-profile/post event is charged for an unavailable account. The platform's start event can still apply. Private content is not accessed.

#### Do I need a proxy?

Direct HTTP is the default and worked in both local acceptance and the cloud default run. You can supply custom proxies or select Apify Proxy; sustained reliability across regions is not yet established. Public free proxies were used only for research and are not bundled into the Actor.

#### Does it guarantee 99% success or API Dojo reliability?

No. That target needs sustained, representative measurement. The local acceptance matrix demonstrates working extraction and expected negative cases, not production parity or an SLA. Competitor run-status rates do not establish per-profile completeness.

#### How do I report a failure?

Include a public source URL, run ID, relevant input and diagnostic code in the Actor's Issues tab after deployment. Use public data for an appropriate purpose and respect applicable rules, target terms and rate limits. Do not send login cookies or credentials.

This is an independent tool by **Valev Lab**, not affiliated with TikTok.

# Actor input Schema

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

@usernames, public profile URLs or secUids. Each invalid/unavailable profile produces a free diagnostic.

## `profileOnly` (type: `boolean`):

Followers, hearts, biography and profile metadata without post rows or post events. Post-derived averages remain null. Prefer a username or URL for this mode.

## `maxPostsPerProfile` (type: `integer`):

Matching unseen posts per profile; 0 follows all available cursors. Profile-only mode skips posts.

## `postTypes` (type: `string`):

Include videos, photos or both.

## `sortBy` (type: `string`):

Local sorting of the fetched window. Popular does not fetch the whole catalogue unless maxPostsPerProfile is 0.

## `includePinned` (type: `boolean`):

Pinned posts are eligible by default. The creator route omits pin status; excluding pins returns a free PIN_STATUS_UNAVAILABLE diagnostic when flags are unknown.

## `dateFrom` (type: `string`):

Inclusive YYYY-MM-DD start date; posts with unknown dates are excluded.

## `dateTo` (type: `string`):

Inclusive YYYY-MM-DD end date. Must be on or after dateFrom.

## `minViews` (type: `integer`):

Require this many reported plays. Missing counts are excluded only when the minimum is positive.

## `monitorMode` (type: `boolean`):

Persist successfully delivered post IDs in a named key-value store; profile stats refresh on every run.

## `monitorStoreName` (type: `string`):

Reuse for the same workflow. Avoid overlapping runs against one store.

## `includeCommentsActorUrl` (type: `boolean`):

Add a prefilled TikTok Comments Actor link for each post; does not run or charge the Comments Actor.

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

Direct HTTP by default. Explicit Apify/custom/residential choices are respected; no automatic residential escalation.

## Actor input object example

```json
{
  "profiles": [
    "@tiktok"
  ],
  "profileOnly": false,
  "maxPostsPerProfile": 4,
  "postTypes": "both",
  "sortBy": "newest",
  "includePinned": true,
  "minViews": 0,
  "monitorMode": false,
  "monitorStoreName": "tiktok-profile-scraper-monitor",
  "includeCommentsActorUrl": true,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `dataset` (type: `string`):

Mixed dataset; filter type for separate profile/post tables.

## `profiles` (type: `string`):

Mixed dataset; filter type for separate profile/post tables.

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

Mixed dataset; filter type for separate profile/post tables.

## `summary` (type: `string`):

Counts, completeness, HTTP body bytes and event estimates; not a billing invoice.

# 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": [
        "@tiktok"
    ],
    "maxPostsPerProfile": 4
};

// Run the Actor and wait for it to finish
const run = await client.actor("valev-lab/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 = {
    "profiles": ["@tiktok"],
    "maxPostsPerProfile": 4,
}

# Run the Actor and wait for it to finish
run = client.actor("valev-lab/tiktok-profile-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": [
    "@tiktok"
  ],
  "maxPostsPerProfile": 4
}' |
apify call valev-lab/tiktok-profile-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,valev-lab/tiktok-profile-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/vKLPaqPfy2opuojlg/builds/aj4ebwLBc2m5Mmaa0/openapi.json
