# TikTok Profile Scraper (`bhansalisoft/tiktok-profile-scraper`) Actor

TikTok Profile Scraper - Scrape TikTok Complete profile information with Top video feed and Top post data information
,Extract followers, following, likes, and video counts

- **URL**: https://apify.com/bhansalisoft/tiktok-profile-scraper.md
- **Developed by:** [bhansalisoft](https://apify.com/bhansalisoft) (community)
- **Categories:** Automation, Lead generation, Social media
- **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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#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 Profile Scraper

Extract TikTok profile data from **TikTok profile URLs** or **discover TikTok accounts from search and explore URLs**.
This Apify actor collect accurate profile information, engagement metrics, follower counts, profile pictures, top videos, hashtags, and post data.

Whether you need influencer research, competitor analysis, lead generation, social media analytics, or TikTok account discovery, this actor provides structured JSON output that can be exported to **JSON, CSV, Excel, XML, RSS, or integrated with APIs and automation workflows**.

### Why use this TikTok Profile Scraper?

This actor supports **two collection methods**:

- **Collect by TikTok Profile URL**
- **Discover TikTok Profiles from Search or Explore URLs**

### Features

- Scrape TikTok Complete profile information with Top video feed and Top post data information
- Extract followers, following, likes, and video counts
- Get profile biography and profile picture
- Collect engagement rate metrics
- Extract top videos and post URLs
- Discover TikTok profiles from search pages
- Export structured JSON data
- Supports bulk profile collection
- Compatible with Apify API and automation tools

### Input

The actor automatically chooses the correct scraping mode based on the provided input.

#### Collect by Profile URL

Provide one or more TikTok profile URLs.

Example:

```json
{
  "profileUrls": [
    "https://www.tiktok.com/@fofimdmell",
    "https://www.tiktok.com/@username2"
  ],
  "limitPerInput": 1
}
```

#### Discover by Search URL

Provide TikTok search or explore URLs in the format:

```
search_url|country
```

Example:

```json
{
  "searchUrls": [
    "https://www.tiktok.com/explore?lang=en|US",
    "https://www.tiktok.com/search?lang=en&q=music|FR"
  ]
}
```

### Output

Each TikTok profile is stored as a structured dataset item.

Example output:

```json
[
  {
    "account_id": "footmercato",
    "nickname": "Foot Mercato",
    "biography": "⚽️ Média leader sur l’actualité du #football en France ! 🔥",
    "awg_engagement_rate": 0.014813255208333334,
    "comment_engagement_rate": 0.000132890625,
    "like_engagement_rate": 0.014680364583333333,
    "predicted_lang": "fr",
    "is_verified": true,
    "followers": 2400000,
    "following": 143,
    "likes": 81100000,
    "videos_count": 2636,
    "create_time": "2020-08-12T10:36:13.000Z",
    "id": "6820390525444604933",
    "url": "https://www.tiktok.com/@footmercato",
    "profile_pic_url": "https://p16-common-sign.tiktokcdn-us.com/tos-useast2a-avt-0068-euttp/d3985fc119d67b88e957a42aabdc4c39~tplv-tiktokx-cropcenter:720:720.jpeg?dr=9640&refresh_token=4c664ae2&x-expires=1786442400&x-signature=Na27Qb0zqydSG5b9e1G0qqcmaL4%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=81f88b70&idc=useast5",
    "like_count": 81100000,
    "digg_count": 0,
    "is_private": false,
    "profile_pic_url_hd": "https://p16-common-sign.tiktokcdn-us.com/tos-useast2a-avt-0068-euttp/d3985fc119d67b88e957a42aabdc4c39~tplv-tiktokx-cropcenter:1080:1080.jpeg?dr=9640&refresh_token=ae0336fd&x-expires=1786442400&x-signature=b3FOv8VrYgTRpp8fJbz6W2dR9QE%3D&t=4d5b0474&ps=13740610&shp=a5d48078&shcp=81f88b70&idc=useast5",
    "secu_id": "MS4wLjABAAAA5mKCs5YQwh5v3wERcsrGP2vn0p7CNV9A_glcxB3-xgqHLyc9SsX6hTZqu1SUxXGO",
    "open_favorite": false,
    "is_ad_virtual": false,
    "top_videos": [
      {
        "video_id": "7671669741324487958",
        "share_count": 88,
        "playcount": 93000,
        "diggcount": 14700,
        "commentcount": 799,
        "create_date": "2026-08-08T14:36:53.000Z",
        "video_url": "https://www.tiktok.com/@footmercato/video/7671669741324487958",
        "cover_image": "https://p16-common-sign.tiktokcdn-us.com/tos-no1a-i-photomode-no/96f772568aa04f90a00dbc5af63b433d~tplv-photomode-image.jpeg?dr=9616&x-expires=1786442400&x-signature=4D%2FXa%2FJo4JEaMQ%2BUazkLrhI13jc%3D&t=4d5b0474&ps=13740610&shp=81f88b70&shcp=9b759fb9&idc=useast5&ftpl=1",
        "favorites_count": 816
      },
      {
        "video_id": "7671316365009030433",
        "share_count": 8,
        "playcount": 10800,
        "diggcount": 1421,
        "commentcount": 12,
        "create_date": "2026-08-07T15:45:30.000Z",
        "video_url": "https://www.tiktok.com/@footmercato/video/7671316365009030433",
        "cover_image": "https://p19-common-sign.tiktokcdn-us.com/tos-useast2a-p-0037-euttp/oIXxA1GEAgpzLnBkfYeGGZZ1zCSiefRyAINIJg~tplv-tiktokx-origin.image?dr=9636&x-expires=1786442400&x-signature=3zx8rhmf%2BIN6A1mLS2FTI6QElW8%3D&t=4d5b0474&ps=13740610&shp=81f88b70&shcp=43f4a2f9&idc=useast5",
        "favorites_count": 71
      },
      
    ],
    "signature": "⚽️ Média leader sur l’actualité du #football en France ! 🔥",
    "is_commerce_user": false,
    "top_posts_data": [
      {
        "post_url": "https://www.tiktok.com/@footmercato/photo/7671669741324487958",
        "post_id": "7671669741324487958",
        "description": "Selon vous, qui mérite de remporter la prestigieuse distinction cette année ⁉️ #diomande #hakimi #senegal #papegueye",
        "likes": 14700,
        "hashtags": [
          "diomande",
          "hakimi",
          "senegal",
          "papegueye"
        ],
        "create_time": "2026-08-08T14:36:53.000Z",
        "post_type": "photo"
      },
      {
        "post_url": "https://www.tiktok.com/@footmercato/video/7671316365009030433",
        "post_id": "7671316365009030433",
        "description": "Folarin Balogun est devenu une véritable STAR… malgré lui 😭🇺🇸 La polémique autour de son carton rouge annulé lors de la Coupe du monde l’a rendu encore plus connu… et ce n’est pas pour lui déplaire. 👀 #football #balogun #USA #worldcup ",
        "likes": 1421,
        "hashtags": [
          "football",
          "balogun",
          "usa",
          "worldcup"
        ],
        "create_time": "2026-08-07T15:45:30.000Z",
        "post_type": "video"
      },
    ],
    "pinned_posts": [],
    "timestamp": "2026-08-09T10:15:01.829Z",
    "input": {
      "url": "https://www.tiktok.com/@footmercato",
      "country": ""
    }
  }
]
```

### Extracted fields

The actor can return:

- TikTok username
- Nickname
- Biography
- Followers
- Following
- Total likes
- Video count
- Engagement rate
- Profile URL
- Profile picture
- HD profile picture
- Verification status
- Privacy status
- Top videos
- Top posts
- Hashtags
- Discovery source URL
- Country
- Raw Bright Data response

### Use cases

#### Influencer marketing

Build TikTok influencer lists with follower counts, engagement rates, and recent content.

#### Competitor analysis

Monitor competitors and compare audience growth and engagement.

#### Lead generation

Collect public TikTok creator profiles for outreach campaigns.

#### Social media analytics

Export profile data into BI dashboards, spreadsheets, or reporting tools.

#### Content research

Analyze top-performing videos and hashtags across TikTok accounts.

### API integration

Run the actor using the Apify API:

```bash
curl -X POST \
  https://api.apify.com/v2/acts/YOUR_ACTOR_ID/runs \
  -H "Content-Type: application/json" \
  -d '{
    "profileUrls": [
      "https://www.tiktok.com/@fofimdmell"
    ]
  }'
```

### Data export

Apify datasets can be exported in multiple formats:

- JSON
- CSV
- Excel (XLSX)
- XML
- RSS
- HTML

You can also connect the dataset to **Google Sheets, Zapier, Make, n8n, APIs, and custom applications like datascrapify**

\#apify #datascrapify #make.com #n8n

# Actor input Schema

## `TiktokProfileUrls` (type: `array`):

Paste Tiktok Profile URLs

## `TiktokSearchUrls` (type: `array`):

Paste Search Tiktok URLs

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

Tiktok Search URL country

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

Maximum number of results per URL or per search term overall (upper cap).

## Actor input object example

```json
{
  "TiktokProfileUrls": [
    "https://www.tiktok.com/@fofimdmell",
    "https://www.tiktok.com/@s_o_h_e_l_46"
  ],
  "TiktokSearchUrls": [
    "https://www.tiktok.com/search?lang=en&q=music&t=1685628060008"
  ],
  "country": "",
  "maxResults": 1
}
```

# 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 = {
    "TiktokProfileUrls": [
        "https://www.tiktok.com/@fofimdmell",
        "https://www.tiktok.com/@s_o_h_e_l_46"
    ],
    "TiktokSearchUrls": [
        "https://www.tiktok.com/search?lang=en&q=music&t=1685628060008"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("bhansalisoft/tiktok-profile-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 = {
    "TiktokProfileUrls": [
        "https://www.tiktok.com/@fofimdmell",
        "https://www.tiktok.com/@s_o_h_e_l_46",
    ],
    "TiktokSearchUrls": ["https://www.tiktok.com/search?lang=en&q=music&t=1685628060008"],
}

# Run the Actor and wait for it to finish
run = client.actor("bhansalisoft/tiktok-profile-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 '{
  "TiktokProfileUrls": [
    "https://www.tiktok.com/@fofimdmell",
    "https://www.tiktok.com/@s_o_h_e_l_46"
  ],
  "TiktokSearchUrls": [
    "https://www.tiktok.com/search?lang=en&q=music&t=1685628060008"
  ]
}' |
apify call bhansalisoft/tiktok-profile-scraper --silent --output-dataset

```

## MCP server setup

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