# TikTok Posts Scraper (`icoe-man/tiktok-posts-scraper`) Actor

A tiktok posts scraper: collect the public videos from any TikTok profile, with captions, counts, hashtags and media links. Export clean JSON, CSV or Excel.

- **URL**: https://apify.com/icoe-man/tiktok-posts-scraper.md
- **Developed by:** [Icoe Man](https://apify.com/icoe-man) (community)
- **Categories:** Social media
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 profile posts

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

Compare public TikTok posts in a table you can sort and share. Enter TikTok usernames or profile links to see what each account posted and when, along with counts such as views and likes. The table includes video and media links, captions, authors, and hashtags. Download it to share or use the data in other tools.

### What you get

Enter up to 100 usernames in **Usernames**, and set **Sort by** (optional), **Videos from** (optional), **Videos before** (optional). By default, you get up to 100 public posts for each username. To change that limit, enter a number no higher than 10000 in **Result limit per username**. Each post gets its own row in the results table. Choose **Live** under **Data freshness** to collect fresh data on every run.

### Ways to use the data

- Review what a brand has published by putting its public TikTok videos in one list.
- Compare how often competing brands post and how many views and likes their videos get.
- Export views, likes, and other counts from a brand's recent TikTok videos for your campaign report.
- Keep a record of captions, hashtags, and counts to refer to later.

### What to enter

| Field key | Name on the form | What to enter |
| --- | --- | --- |
| `usernames` | Usernames | Enter TikTok usernames with or without the @ sign, or paste profile links. |
| `sortBy` | Sort by | The default, latest, shows the newest videos first. Choose popular to see TikTok's most popular videos first, and leave Videos from and Videos before blank. |
| `postedAfter` | Videos from | Enter the first day to include, such as 2026-11-01 (UTC). Leave blank for no start date or when sorting by popular. The tool may check dates after collecting videos, so you may get fewer results than requested. The run stops early after three pages in a row with no matches. |
| `postedBefore` | Videos before | Enter a cutoff date, such as 2026-11-15 (UTC). The tool only includes videos posted before that day. Leave blank for no cutoff or when sorting by popular. The tool may check dates after collecting videos, so you may get fewer results than requested. The run stops early after three pages in a row with no matches. |
| `maxItems` | Result limit per username | Enter the maximum number of results to collect for each username. |
| `freshness` | Data freshness | Standard can return results faster when recently collected data is available. Choose Live to collect fresh data on every run. |

Example input:

```json
{
  "usernames": [
    "nasa",
    "natgeo"
  ],
  "maxItems": 20,
  "freshness": "standard"
}
```

### Your results

Example result for one post:

```json
{
  "status": "ok",
  "type": "post",
  "platform": "tiktok",
  "id": "7706264639297850637",
  "url": "https://www.tiktok.com/@user_6bfc2269/video/7706264639297850637",
  "author": {
    "id": "914370527053640559",
    "username": "user_6bfc2269",
    "displayName": "Fixture User 0b2cbe",
    "verified": null
  },
  "text": "This is what American ambition looks like. 🇺🇸🚀",
  "language": "en",
  "createdAt": "2026-11-09T20:03:07Z",
  "metrics": {
    "likes": 4256,
    "comments": 128,
    "shares": 167,
    "views": 28100,
    "saves": 427
  },
  "hashtags": [],
  "mentions": [],
  "media": [
    {
      "kind": "video",
      "url": "https://v16-webapp-prime.tiktok.com/video/tos/alisg/tos-alisg-ve-37c799-sg/oAzDUOD1FP0K8oyXvR7dABsEOwDIESQfgqieiE/",
      "thumbnailUrl": "https://p16-common-sign.tiktokcdn.com/tos-useast5-p-0068-tx/oInJvAABqDD8qwEyC9iigNBeEeARSpAIE7vYSR~tplv-tiktokx-origin.image",
      "durationSec": 86,
      "width": 1920,
      "height": 1080
    }
  ],
  "details": {
    "tiktok": {
      "music": {
        "id": "7706264754948098830",
        "title": "original sound - user_0f8224d8",
        "artist": "Fixture Artist",
        "durationSec": 30,
        "isOriginal": true
      },
      "isAd": false,
      "authorFollowers": 1250000,
      "authorFollowing": 12,
      "authorLikes": 48300000,
      "downloads": 85,
      "isPinned": false,
      "paidPartnership": false,
      "aiGenerated": false,
      "placeName": null,
      "postedFromCountry": "US"
    }
  },
  "collectedAt": "2026-11-10T15:21:27Z",
  "input": {
    "username": "nasa",
    "maxItems": 30
  }
}
```

Every row has a `status` field. For each entry that fails, the Actor returns one row with `status: "error"`. The `error` field has a `code` and a `message`.

### Pricing

You pay per result. Prices for each Apify plan are in USD per 1,000 results.

| What you pay for | Free | Bronze | Silver | Gold | Platinum | Diamond |
| --- | --- | --- | --- | --- | --- | --- |
| Profile posts | $4.501 | $3.001 | $2.251 | $1.500 | $1.500 | $1.500 |

You don't pay for errors or empty results. The run stops when it reaches your spending limit.

On the free plan, you can collect up to 10 results per run and make up to 20 runs per day.

### Common questions

#### What data do I get for each video?

Each video has its own row. The row can include the post link, caption, author, date posted, hashtags, mentions, and media links. It can also show how many views, likes, comments, shares, and saves the video got. When sound details are available, you'll see the sound's title, artist, and length. Depending on the video, you may also see the author's follower and like counts, the video's download count, the tagged place, and the country it was posted from. Some rows also show whether the video was pinned, part of a paid partnership, or AI-generated.

#### Can I sort by popularity or choose a date range?

Choose popular in Sort by to see TikTok's most popular videos first. For a date range, use Videos from, Videos before, or both. Neither date field works with popular.

#### Should I enter a username or a profile link?

Usernames accepts both. Enter a TikTok username with or without the @ sign, or paste a full profile link like https://www.tiktok.com/@nasa.

#### Do I need to sign in to TikTok?

No. The tool collects public TikTok data, so you don't need to sign in or share any cookies from your browser.

#### How do I limit the number of videos, and what do I pay for?

Set the most videos you want from each profile in Result limit per username. You pay only for the videos you receive. Errors and empty results cost nothing. The run stops if it reaches your spending limit.

#### Is this tool affiliated with TikTok?

No. This independent tool has no affiliation with, endorsement from, or sponsorship from TikTok or ByteDance. It collects only public information from TikTok.

### Disclaimer

This Actor is not affiliated with, endorsed by, or sponsored by TikTok. All trademarks belong to their owners.

# Actor input Schema

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

Enter TikTok usernames with or without the @ sign, or paste profile links.

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

The default, latest, shows the newest videos first. Choose popular to see TikTok's most popular videos first, and leave Videos from and Videos before blank.

## `postedAfter` (type: `string`):

Enter the first day to include, such as 2026-11-01 (UTC). Leave blank for no start date or when sorting by popular. The tool may check dates after collecting videos, so you may get fewer results than requested. The run stops early after three pages in a row with no matches.

## `postedBefore` (type: `string`):

Enter a cutoff date, such as 2026-11-15 (UTC). The tool only includes videos posted before that day. Leave blank for no cutoff or when sorting by popular. The tool may check dates after collecting videos, so you may get fewer results than requested. The run stops early after three pages in a row with no matches.

## `maxItems` (type: `integer`):

Enter the maximum number of results to collect for each username.

## `freshness` (type: `string`):

Standard can return results faster when recently collected data is available. Choose Live to collect fresh data on every run.

## Actor input object example

```json
{
  "usernames": [
    "nasa",
    "natgeo"
  ],
  "sortBy": "latest",
  "maxItems": 20,
  "freshness": "standard"
}
```

# Actor output Schema

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

See everything this run collected in one table.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

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

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "usernames": [
        "nasa",
        "natgeo"
    ],
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("icoe-man/tiktok-posts-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 = {
    "usernames": [
        "nasa",
        "natgeo",
    ],
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("icoe-man/tiktok-posts-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 '{
  "usernames": [
    "nasa",
    "natgeo"
  ],
  "maxItems": 20
}' |
apify call icoe-man/tiktok-posts-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,icoe-man/tiktok-posts-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/ggP0thjPxcrBpgNqy/builds/rtz7DhnaTDbeHjY2X/openapi.json
