# Titok Post Scraper | No Login | No Cookie (`rexreus/titik-post-scraper`) Actor

Fast, lightweight, and cost-effective TikTok scraper for bulk extraction of profiles, videos, hashtags, search queries, top comments, and direct HD video download URLs without login.

- **URL**: https://apify.com/rexreus/titik-post-scraper.md
- **Developed by:** [REXREUS D.O](https://apify.com/rexreus) (community)
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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 Bulk Scraper & Comment Extractor

[![Apify Actor](https://img.shields.io/badge/Apify-Actor-green.svg)](https://apify.com)
[![TypeScript](https://img.shields.io/badge/TypeScript-5.6-blue.svg)](https://www.typescriptlang.org/)
[![Node.js](https://img.shields.io/badge/Node.js-20-brightgreen.svg)](https://nodejs.org)
[![License](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)

A commercial-grade, high-speed, cost-effective Apify Actor for **bulk TikTok data extraction**. Extract profiles, posts/videos, hashtags, and search keywords in bulk with rich metadata, direct video download links, instant browser-playable embed links, music info, top comment scraping, and engagement filtering.

***

### 🌟 Key Features

- 📦 **Bulk Multi-Source Scraping**: Scrape multiple TikTok profiles (`usernames`), direct post URLs (`postUrls`), hashtags (`hashtags`), and search keywords (`searchQueries`) in a single execution.
- 🎬 **Browser-Playable Links (`embedUrl`)**: Clean embed player URLs (`https://www.tiktok.com/embed/v2/{id}`) that play instantly in any web browser without 403 Forbidden or hotlink blocks.
- 📥 **Signed HD 720p Video Streams (`downloadUrl`)**: Direct signed MP4 stream URLs for automated video downloading scripts.
- ⚡ **HTTP-First Architecture**: Built on `Crawlee` and `got-scraping` with Mobile User-Agent HTML Rehydration for maximum throughput and **10x cheaper Apify compute costs** compared to browser scrapers.
- 💬 **Top Comment Extractor**: Extract top N comments per video (`maxCommentsPerPost`) with comment author, timestamp, and like count.
- 🎯 **Engagement Filtering**: Filter output dataset items by minimum likes (`minLikes`) or video play count (`minViews`).
- 🔒 **Proxy & Session Support**: Full integration with Apify Residential/Datacenter Proxies and optional custom cookie inputs.

***

### 📁 Architecture Layout

```text
src/
├── main.ts                # Apify Actor composition & lifecycle
├── domain/                # Pure domain models, types, interfaces, error classes
│   ├── types.ts
│   └── errors.ts
├── input/                 # Input parsing & Zod runtime validation
│   └── input-parser.ts
├── parsers/               # Pure payload parsing & transformers
│   ├── post-parser.ts
│   └── comment-parser.ts
└── clients/               # Got-scraping HTTP client & TikTok Embed Engine
    └── tiktok-client.ts
```

***

### 🚀 Input Example

```json
{
  "usernames": ["@tiktok", "@khaby.lame"],
  "postUrls": ["https://www.tiktok.com/@tiktok/video/7464673322108718368"],
  "hashtags": ["fyp", "tech"],
  "searchQueries": ["dance challenge"],
  "maxItems": 20,
  "maxCommentsPerPost": 5,
  "minLikes": 100,
  "minViews": 1000,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

***

### 📤 Output Example

```json
{
  "id": "7672718286085197064",
  "webVideoUrl": "https://www.tiktok.com/@owa_aya/video/7672718286085197064",
  "embedUrl": "https://www.tiktok.com/embed/v2/7672718286085197064",
  "downloadUrl": "https://v9-id.tiktokcdn.com/a113192d35b4b8086c0c90357855128f/6a9486cd/kmoat/mps/.../mp4/main.mp4?a=1233&definition=720p&policy=...",
  "text": "my boyfriend, my bestie🫰🏻🫰🏻",
  "createTime": "2026-08-28T18:42:59.000Z",
  "authorMeta": {
    "id": "u_owa_aya",
    "name": "owa_aya",
    "nickName": "oooaa",
    "verified": true,
    "signature": "Official Account",
    "avatar": "https://p16-common-sign.tiktokcdn.com/tos-alisg-p-0037/..."
  },
  "musicMeta": {
    "musicName": "Original Sound - owa_aya",
    "musicAuthor": "owa_aya",
    "musicOriginal": true
  },
  "diggCount": 45000,
  "shareCount": 680,
  "commentCount": 1200,
  "playCount": 520000,
  "hashtags": ["video"],
  "comments": [
    {
      "id": "7672973828378067732",
      "text": "pauso kayo! pag yan nakita ng gf ko ha!",
      "createTime": "2026-08-12T02:57:48.000Z",
      "diggCount": 95315,
      "user": "weirdo_ej"
    }
  ],
  "scrapedAt": "2026-08-28T19:42:59.116Z",
  "sourceType": "postUrl",
  "sourceQuery": "https://www.tiktok.com/@owa_aya/video/7672718286085197064"
}
```

***

### 🔗 Understanding Video URLs

| Field | Description | Best Used For |
|---|---|---|
| `embedUrl` | Official TikTok Embed Player link (`https://www.tiktok.com/embed/v2/{id}`) | Instant video playback directly in any web browser without 403 Forbidden errors. |
| `webVideoUrl` | TikTok Web Page link (`https://www.tiktok.com/@user/video/{id}`) | Opening the video post on TikTok's web application. |
| `downloadUrl` | Direct HD 720p Signed Stream MP4 URL | Automated video downloading via Python/Node.js scripts (requires `Referer: https://www.tiktok.com/`). |

***

### 💡 Cost & Performance Estimation

| Data Volume | Estimated Compute Cost | Time Taken | Recommended Proxy |
|---|---|---|---|
| 100 Videos | ~$0.01 - $0.02 | ~10-20 seconds | Datacenter Proxy |
| 1,000 Videos | ~$0.05 - $0.10 | ~1-2 minutes | Residential Proxy |
| 10,000 Videos | ~$0.50 - $0.90 | ~10-15 minutes | Residential Proxy |

***

### ❓ FAQ

**Q: Why does opening `downloadUrl` directly in my browser show 403 Forbidden?**\
A: TikTok's raw CDN server enforces anti-hotlinking and checks the HTTP `Referer` header. To watch the video directly in your browser, click **`embedUrl`**. To download `downloadUrl` programmatically in Python/Node.js, send `Referer: https://www.tiktok.com/` in your request headers.

**Q: Do I need a TikTok account or login cookies?**\
A: No, public profiles, videos, hashtags, and search results do not require login. You can optionally provide `customCookie` for restricted regions or private items.

**Q: What proxy setup should I use?**\
A: We recommend using Apify Residential Proxies for large volume bulk scraping to avoid IP rate limits.

***

### 📄 License

MIT License.

# Actor input Schema

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

List of TikTok profile handles or URLs to scrape in bulk (e.g. \['@tiktok', 'khaby.lame']).

## `postUrls` (type: `array`):

List of direct TikTok video URLs to scrape in bulk.

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

List of hashtags to scrape in bulk (e.g. \['fyp', 'tech']).

## `searchQueries` (type: `array`):

List of search queries to scrape videos for.

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

Maximum number of videos to scrape per username, hashtag, or search query.

## `maxCommentsPerPost` (type: `integer`):

Number of top comments to extract per video (0 to disable comment scraping).

## `minLikes` (type: `integer`):

Filter out videos with fewer likes than specified.

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

Filter out videos with fewer plays/views than specified.

## `customCookie` (type: `string`):

Optional session cookie (sessionid) for authenticated API endpoints.

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

Apify proxy settings (Residential proxies recommended for high volume scraping).

## Actor input object example

```json
{
  "usernames": [
    "@tiktok"
  ],
  "maxItems": 20,
  "maxCommentsPerPost": 0,
  "minLikes": 0,
  "minViews": 0,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

Dataset containing all scraped TikTok posts and comments

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

// Run the Actor and wait for it to finish
const run = await client.actor("rexreus/titik-post-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": ["@tiktok"] }

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

```

## MCP server setup

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