# TikTok Profile & Video Scraper (`inexhaustible_glass/tiktok-profile-video-scraper`) Actor

Scrape TikTok profile stats and full video lists (views, likes, comments, shares, hashtags, video URLs) by username. No login, no cookies required.

- **URL**: https://apify.com/inexhaustible_glass/tiktok-profile-video-scraper.md
- **Developed by:** [Hitman studio](https://apify.com/inexhaustible_glass) (community)
- **Categories:** Agents, MCP servers
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.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?

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 & Video Scraper

> Scrape TikTok profile stats and full video lists — views, likes, comments,
> shares, hashtags, video URLs — by username. No login, no cookies required.

Uses TikTok's own public `api/creator/item_list` endpoint, which needs no
session cookie or signature — just a username.

***

### 👥 Who needs this

| You are a… | You get… |
|---|---|
| 📊 **Social media analyst** | Bulk profile + video stats for any creator |
| 🎯 **Influencer marketer** | Follower counts, engagement, and recent video performance before outreach |
| 📈 **Trend researcher** | Hashtags and view/like/comment counts across many creators' recent videos |

### ✨ What you get

**Per profile:** display name, bio, verified badge, private-account flag,
avatar, follower/following count, total likes received, total video count.

**Per video:** views, likes, comments, shares, hashtags, video URL, post date.

### 🚀 How to use

1. Add one or more TikTok usernames (with or without `@`).
2. Set how many recent videos per user to fetch (0 = profile stats only).
3. Press **Start**.

#### Example input

```json
{
  "usernames": ["khaby.lame", "charlidamelio", "mrbeast"],
  "maxVideosPerUser": 30,
  "country": "US"
}
```

### 📦 Output

Rows come in three types — `profile`, `video`, or `error` — distinguished by
the `type` field. Profile rows carry follower/like/video counts; video rows
carry per-video engagement stats and the hashtags used.

### ✅ Why it's reliable

Reads TikTok's own public `item_list` endpoint directly — the same data a public profile page already shows — no session cookie, signature-spoofing or private API needed.

### 💰 Cost

Pay-per-result, no subscription — no proxy or browser overhead.

### 🔌 Integrations

- **Zapier / Make / n8n** — feed fresh creator stats into an influencer-outreach or reporting workflow.
- **API** — call this Actor directly from your backend with the Apify API client or plain REST.

### 👤 About the developer

Built and maintained by an indie developer running a suite of social-media and lead-generation Actors. Need another field (e.g. comments, music info) added? Reach out — custom builds are welcome.

### ❓ FAQ

**Q: Do I need TikTok login or cookies?** No — it uses TikTok's own public endpoint that any visitor's browser already calls, no session required.

**Q: What does an `error` row mean?** The username doesn't exist, is private, or the request failed — never a fabricated guess at the profile's data.

***

Public data only — profile and video stats TikTok itself displays on each
public profile page. No login, no private data, no DMs.

# Actor input Schema

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

TikTok usernames to scrape (with or without @). Example: khaby.lame, charlidamelio, mrbeast. Leave empty if you only want hashtags.

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

Hashtags to scrape videos for (with or without #). Example: football, fyp, cooking. Each returns the hashtag's stats plus its videos (each with its own author).

## `maxVideosPerUser` (type: `integer`):

How many of each user's most recent videos to fetch (profile stats are always included even if this is 0).

## `maxVideosPerHashtag` (type: `integer`):

How many videos to fetch per hashtag. Defaults to the same as max videos per user.

## `country` (type: `string`):

Residential proxy exit country. US is the most reliable; CN (China) is the other supported option.

## Actor input object example

```json
{
  "usernames": [
    "khaby.lame",
    "charlidamelio",
    "mrbeast"
  ],
  "hashtags": [],
  "maxVideosPerUser": 30,
  "maxVideosPerHashtag": 30,
  "country": "US"
}
```

# Actor output Schema

## `results` (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 = {
    "usernames": [
        "khaby.lame",
        "charlidamelio",
        "mrbeast"
    ],
    "hashtags": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("inexhaustible_glass/tiktok-profile-video-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": [
        "khaby.lame",
        "charlidamelio",
        "mrbeast",
    ],
    "hashtags": [],
}

# Run the Actor and wait for it to finish
run = client.actor("inexhaustible_glass/tiktok-profile-video-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": [
    "khaby.lame",
    "charlidamelio",
    "mrbeast"
  ],
  "hashtags": []
}' |
apify call inexhaustible_glass/tiktok-profile-video-scraper --silent --output-dataset

```

## MCP server setup

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