# Tiktok User Videos Scraper (`romy/tiktok-user-videos-scraper`) Actor

Scrape all public videos from any TikTok user profile: view/like/comment/share counts, captions, hashtags, music, and cover images. No login, cookies, or manual session capture required.

- **URL**: https://apify.com/romy/tiktok-user-videos-scraper.md
- **Developed by:** [Romy](https://apify.com/romy) (community)
- **Categories:** Social media, Videos
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $6.24 / 1,000 video 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 User Videos Scraper

Scrape all videos from any public TikTok user profile — views, likes, comments, hashtags, and more.

### How it works

TikTok's mobile API (`/aweme/v1/aweme/post/`) requires **X-Argus** — a per-request signature generated by the Bdturing SDK inside the trill app. This signature cannot be generated externally: it is cryptographically tied to every parameter in the request and uses a proprietary binary format.

**Solution:** You capture the signed requests directly from the trill app via Burp Suite, then provide those captured sessions as input. The actor replays them and returns structured video data.

Each captured session = one page of videos (~9–24 videos).

### How to capture sessions from Burp Suite

1. Install **Burp Suite** and configure it as your Android proxy
2. Open the **trill** app (TikTok international), navigate to any public creator's profile
3. Scroll through their videos — each page scroll triggers a `/aweme/v1/aweme/post/` request
4. In Burp's **HTTP history**, filter for `/aweme/v1/aweme/post/`
5. For each request, copy:
   - `queryString` — everything after the `?` in the URL
   - `X-Argus` header value
   - `X-Ladon` header value
   - `X-Khronos` header value (timestamp string)
6. Provide these as the `sessions` input array

> No login or TikTok account required — the trill app makes these requests at device level (no sessionid).

### Input

```json
{
    "sessions": [
        {
            "queryString": "max_cursor=0&sec_user_id=MS4wLj...&count=18&ts=1782652403&...",
            "xArgus": "kvCpusbpis48OglGCw...",
            "xLadon": "oTtjYvpZAEFahjNJ...",
            "xKhronos": "1782652403"
        },
        {
            "queryString": "max_cursor=1761396010371&sec_user_id=MS4wLj...&count=18&ts=1782652405&...",
            "xArgus": "EmK6MWd+WAvX9+iy...",
            "xLadon": "zrBxYwCRegzAvMuj...",
            "xKhronos": "1782652404"
        }
    ]
}
```

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `sessions` | array | Yes | List of Burp-captured sessions. Each session = one page of videos. |
| `sessions[].queryString` | string | Yes | Full query string from the `/aweme/v1/aweme/post/` request URL |
| `sessions[].xArgus` | string | Yes | `X-Argus` header value from the same request |
| `sessions[].xLadon` | string | Yes | `X-Ladon` header value from the same request |
| `sessions[].xKhronos` | string | Yes | `X-Khronos` header value (Unix timestamp) |

### Output

One object per video:

```json
{
  "aweme_id": "7655293487931280658",
  "desc": "Ada satu jurus andalanku. #kucinglucu #viral #fyp",
  "create_time": 1748950412,
  "author_id": "7123456789",
  "author_unique_id": "kucinglucu1717",
  "author_nickname": "Kucing Lucu",
  "author_sec_uid": "MS4wLjABAAAAn3php...",
  "author_avatar": "https://p16-sign.tiktokcdn-us.com/...",
  "like_count": 148,
  "comment_count": 10,
  "share_count": 3,
  "play_count": 2400,
  "collect_count": 22,
  "download_count": 14,
  "hashtags": ["kucinglucu", "viral", "fyp"],
  "music_title": "original sound",
  "music_author": "kucinglucu1717",
  "cover_url": "https://p16-sign.tiktokcdn-us.com/...",
  "video_url": "https://www.tiktok.com/@kucinglucu1717/video/7655293487931280658"
}
```

### Pricing

| Event | Price |
|-------|-------|
| Actor start | $0.05 |
| Per video scraped | $0.002 |

### FAQ

**Why do I need to capture sessions from Burp?**
TikTok's X-Argus signing (Bdturing SDK v2.4.2) validates every query parameter cryptographically. No open-source reimplementation produces the correct format. Captured sessions bypass this entirely.

**Do I need a TikTok account?**
No. The trill app makes these requests at device level — no sessionid or login is involved. The captured sessions contain only device tokens (odin_tt, install_id), not your account credentials.

**How many sessions do I need?**
Each session covers one page (~9–24 videos). For a creator with 100 videos, capture 5–10 pages by scrolling through their profile in the trill app.

**Do captured sessions expire?**
X-Khronos (timestamp) is validated loosely — sessions captured hours or days ago still work. Capture once, use multiple times.

**Works for private profiles?**
No — only public profiles.

# Actor input Schema

## `username` (type: `string`):

TikTok username (with or without @). E.g. "kucinglucu1717".

## `maxVideos` (type: `integer`):

Maximum number of videos to return.

## Actor input object example

```json
{
  "username": "kucinglucu1717",
  "maxVideos": 50
}
```

# Actor output Schema

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

No description

# 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 = {
    "username": "kucinglucu1717"
};

// Run the Actor and wait for it to finish
const run = await client.actor("romy/tiktok-user-videos-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 = { "username": "kucinglucu1717" }

# Run the Actor and wait for it to finish
run = client.actor("romy/tiktok-user-videos-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 '{
  "username": "kucinglucu1717"
}' |
apify call romy/tiktok-user-videos-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,romy/tiktok-user-videos-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/ZpzVgVgTdNLt2e4nF/builds/7g0cxYbeLx4QmznRf/openapi.json
