# TikTok MCP Server & API - Profiles, Videos, Followers (`akhil_rajesh/tiktok-mcp-server`) Actor

TikTok data for AI agents, no login: an MCP server and live API that reads any public profile's exact followers, likes, videos and bio, and any video's views, likes, comments, shares, saves and engagement. Answers in seconds, with gains since your last scheduled run.

- **URL**: https://apify.com/akhil_rajesh/tiktok-mcp-server.md
- **Developed by:** [Akhil rajesh](https://apify.com/akhil_rajesh) (community)
- **Categories:** MCP servers, Social media, AI
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.70 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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

Give your AI agent **TikTok profile and video stats on demand**. This Actor is an **MCP server** and a **live HTTP API**. An agent asks "how many followers does @nasa have, and how did its latest campaign video do?" and gets the answer in seconds: a profile's **exact followers and likes** (not TikTok's rounded "2.2M"), following, video count, bio, **emails and links written in the bio**, verified badge, business and TikTok Shop marks, account creation date and **influencer size tier**; a video's **views, likes, comments, shares, saves and engagement rate**, caption, hashtags, sound, duration and posting time. No login, cookies or TikTok API key.

It runs the same code as [TikTok Profile & Video Tracker](https://apify.com/akhil_rajesh/tiktok-profile-tracker), with Apify Standby switched on, so it answers each request at once instead of starting a run. When a normal run of this Actor has tracked a profile or video, the answer also says what it **gained since that run**. For daily tracking of thousands of profiles, milestones, Only changes and Slack, Discord, Teams or Telegram alerts on a schedule, use that Actor.

### Connect your agent

Authenticate with your **Apify API token** (Apify Console → Settings → API & Integrations).

**MCP server** (Streamable HTTP): `https://akhil-rajesh--tiktok-mcp-server.apify.actor/mcp`

```json
{"mcpServers": {"tiktok": {"type": "http", "url": "https://akhil-rajesh--tiktok-mcp-server.apify.actor/mcp",
  "headers": {"Authorization": "Bearer <YOUR_APIFY_TOKEN>"}}}}
```

In Claude Code:

```bash
claude mcp add --transport http tiktok https://akhil-rajesh--tiktok-mcp-server.apify.actor/mcp --header "Authorization: Bearer <YOUR_APIFY_TOKEN>"
```

A client that can't send headers can use `https://akhil-rajesh--tiktok-mcp-server.apify.actor/mcp?token=<YOUR_APIFY_TOKEN>`. Keep that URL private, as it carries your token.

Through **Apify's MCP server** (`https://mcp.apify.com`, for Claude, ChatGPT, Cursor and other clients), add the tools with `https://mcp.apify.com?tools=akhil_rajesh/tiktok-mcp-server`. They appear as `akhil_rajesh--tiktok-mcp-server--get_profiles` and so on.

Then ask in plain words:

- *"Compare the exact follower counts of @nasa, @khaby.lame and @mrbeast."*
- *"Which of these 10 creators are micro influencers, and which put a business email in their bio?"*
- *"How many views, likes and saves does this video have, and what's its engagement rate?"* (with the link or a `vm.tiktok.com` share link)

### Tools

| Tool | What it returns |
|---|---|
| `get_profiles` | One row per profile (usernames, profile links or share links; up to 20 a call): exact followers, following, likes, video count, name, bio, bio link, bio emails, links and mentions, verified, private, business and TikTok Shop marks, creation date, size tier, likes per video, and gains since this Actor's last normal run tracked it |
| `get_videos` | One row per video (video links, share links or ids; up to 20 a call): views, likes, comments, shares, saves, reposts, engagement rate, caption, hashtags, mentions, sound, duration, posting time, region, ad and AI-generated marks, the author, and gains since this Actor's last normal run tracked it |
| `run_actor` | The whole input of [TikTok Profile & Video Tracker](https://apify.com/akhil_rajesh/tiktok-profile-tracker) in one call |

Both tools can save a copy of each avatar or video cover with a stable link (`save_images`), since TikTok's own image links stop working within days.

### HTTP API

The same reads as plain HTTP requests, with the same token (header `Authorization: Bearer <token>`):

```bash
curl "https://akhil-rajesh--tiktok-mcp-server.apify.actor/profiles?profiles=nasa|khaby.lame" \
  -H "Authorization: Bearer <YOUR_APIFY_TOKEN>"
```

| Endpoint | Parameters |
|---|---|
| `GET /profiles` | `profiles` (separate several with `\|`), `saveImages` |
| `GET /videos` | `videos` (links, share links or ids, separated with `\|`), `saveImages` |
| `POST /run` | The tracker's input as the JSON body |

The Actor's **Endpoints** tab in Apify Console lists every parameter and lets you try them.

### Limits

Counted from a request's arrival: an MCP tool call reads up to 20 profiles and videos and about 350 kB within 50 seconds (MCP clients stop waiting at 60), an HTTP request up to 100 and about 6 MB within 170 seconds. What a limit leaves out is named in the answer and not charged. Three pages are read at a time. TikTok sends a video's views, likes, comments and shares rounded from 10,000 on (as the app shows them); saves are exact, and so are a profile's followers and likes. A profile or video that didn't load is named as not loaded, never returned as an empty row.

Gains are measured against the history that normal (scheduled) runs of this Actor keep, `tiktok-profile-mcp-history`, apart from the tracker's. A request reads that history but never moves it, so asking twice a minute apart doesn't reset the gains.

On the platform, a caller that gives up doesn't stop a request that is being read, so keep requests small.

### How much does it cost?

You pay **$1.00 per 1,000 profiles or videos**, less on paid Apify plans. Profiles and videos TikTok has no public page for, private accounts and saved pictures are free. Calls to a Standby Actor also pay its platform usage while it serves you and until it has been idle for 2 minutes, a fraction of a cent for a short session.

| Apify plan | Per 1,000 profiles or videos |
|---|---|
| Free | $1.00 |
| Starter | $0.90 |
| Scale | $0.80 |
| Business and above | $0.70 |

### Is it legal?

It reads public profile and video pages that anyone can open without an account, and nothing behind a login. Emails and links in a bio are text the account published for visitors, but they can still be personal data under laws such as the GDPR: have a lawful reason before you contact anyone.

# Changelog

This Actor's version history is a separate document: https://apify.com/akhil_rajesh/tiktok-mcp-server/changelog.md

# Actor input Schema

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

Usernames (@nasa or nasa), profile links (https://www.tiktok.com/@nasa) or share links (vm.tiktok.com/...), one per line. A video link here reads its author's profile. Up to 10,000 profiles and videos in all.

## `videos` (type: `array`):

Video links (https://www.tiktok.com/@nasa/video/7679483952507276558), share links or video ids, one per line: each video's views, likes, comments, shares, saves, caption, hashtags, music, duration, posting time and engagement rate, with what it gained since the last run. TikTok doesn't list a profile's videos to visitors without a login, so videos are read by link.

## `maxResults` (type: `integer`):

Profiles and videos returned (and charged) at most per run. With Only changes, it caps the changed ones returned; changes past it are reported by the next run.

## `onlyChanges` (type: `boolean`):

Return only profiles and videos where something changed since the last run (a change of the kinds below: new videos posted, a follower milestone, a follower jump or drop, a new username, name, bio or link, or a verified badge gained or lost; for a video, a views milestone or jump, a new caption, or its removal). Every run keeps each one's history either way; the first run returns everything as its baseline. Schedule it (every day, every hour) to monitor.

## `changeTypes` (type: `array`):

With Only changes: the changes that make a profile or video come back. Leave empty for all.

## `followersJumpPercent` (type: `number`):

A follower jump or drop is a move of at least this much since the last reported one (or the first run). Smaller moves add up until they reach it.

## `viewsJumpPercent` (type: `number`):

A video's views jump is a rise of at least this much since the last reported one (or the first run). Smaller rises add up until they reach it.

## `includeHistory` (type: `boolean`):

Add the last 30 daily readings to each row (followers, likes and videos for a profile; views, likes, comments, shares and saves for a video), for charts.

## `saveImages` (type: `boolean`):

Keep a copy of each profile picture and video cover in the run's key-value store, with a stable link in the row (avatarStoredUrl, coverStoredUrl). TikTok's own image links expire within days. Free; the run takes a little longer.

## `alertWebhookUrl` (type: `string`):

Post each run's changed profiles to Slack, Discord or Microsoft Teams (their incoming-webhook URL), or to any HTTPS endpoint that takes JSON (Zapier, Make, n8n). The first run posts a short 'alerts are set up' message.

## `telegramBotToken` (type: `string`):

Post each run's changed profiles to a Telegram chat through your own bot: its token from @BotFather (123456789:AAH...). Add the bot to the chat (to a channel as an admin that can post).

## `telegramChatId` (type: `string`):

Where the bot posts: a public channel or group (@mychannel), or a chat id (-1001234567890 for a private group or channel; your own id for a direct message, from @userinfobot).

## `alertChangeTypes` (type: `array`):

The changes alerts post. Leave empty for new videos, milestones, follower jumps, username changes, views milestones and jumps, and removed videos.

## `historyName` (type: `string`):

Keep a separate history for this monitor (a-z, 0-9 and hyphens), so its gains are measured from its own runs. Leave empty to share the default one.

## `proxy` (type: `object`):

Not needed: TikTok's profile and video pages answer Apify's servers directly. You can use your own proxies or Apify's datacenter proxies; residential proxies aren't available in this Actor.

## Actor input object example

```json
{
  "profiles": [
    "@nasa",
    "@khaby.lame",
    "@mrbeast"
  ],
  "videos": [
    "https://www.tiktok.com/@nasa/video/7679483952507276558"
  ],
  "maxResults": 1000,
  "followersJumpPercent": 5,
  "viewsJumpPercent": 20,
  "includeHistory": true,
  "saveImages": false
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `videos` (type: `string`):

No description

## `growth` (type: `string`):

No description

## `changes` (type: `string`):

No description

## `notFound` (type: `string`):

No description

## `allData` (type: `string`):

No description

## `runSummary` (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 = {
    "profiles": [
        "@nasa",
        "@khaby.lame",
        "@mrbeast"
    ],
    "videos": [
        "https://www.tiktok.com/@nasa/video/7679483952507276558"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("akhil_rajesh/tiktok-mcp-server").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": [
        "@nasa",
        "@khaby.lame",
        "@mrbeast",
    ],
    "videos": ["https://www.tiktok.com/@nasa/video/7679483952507276558"],
}

# Run the Actor and wait for it to finish
run = client.actor("akhil_rajesh/tiktok-mcp-server").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": [
    "@nasa",
    "@khaby.lame",
    "@mrbeast"
  ],
  "videos": [
    "https://www.tiktok.com/@nasa/video/7679483952507276558"
  ]
}' |
apify call akhil_rajesh/tiktok-mcp-server --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,akhil_rajesh/tiktok-mcp-server"
        }
    }
}
```

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/x7gNGk2MZBoRt2qb7/builds/51dzNTPb5d5PTJwkQ/openapi.json
