# Tiktok Profile Scraper (`pratikdani/tiktok-profile-scraper`) Actor

Scrapes publicly available profile information, including follower/following counts, bio, videos, and more, from TikTok.

- **URL**: https://apify.com/pratikdani/tiktok-profile-scraper.md
- **Developed by:** [Pratik Dani](https://apify.com/pratikdani) (community)
- **Categories:** Social media, Lead generation, Automation
- **Features:** Limited permissions
- **Stats:** 180 total users, 4 monthly users, 100.0% runs succeeded, 4 bookmarks
- **User rating**: No ratings yet

## Pricing

from $15.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/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 Scraper

This TikTok Profile Scraper actor efficiently extracts comprehensive profile data from TikTok, including user ID, username, full name, biography, follower count, following count, like count, video count, profile picture URL, is_verified status, and potentially related social media links. This data is invaluable for market research, competitive analysis, influencer marketing, identifying emerging trends, and understanding audience demographics on the platform. By collecting and analyzing these profile attributes, users can gain actionable insights into user behavior, content strategy, and overall TikTok ecosystem dynamics.

### Features

- **Profile Information Extraction:** Extracts key details like username, bio, profile picture URL, follower count, following count, like count, and video count, enabling competitor analysis, influencer discovery, and audience research.
- **Verification Status Detection:** Identifies verified accounts, allowing for filtering and prioritization of credible or authoritative sources for marketing campaigns and partnerships.
- **Video Information Capture:** Retrieves data about the most recent videos, including URLs, descriptions, and potentially engagement metrics (likes, comments, shares), which is beneficial for identifying trending content and popular creators.
- **Private Account Detection:** Flags private accounts, saving time and resources by identifying profiles whose content is not publicly accessible.
- **Link Extraction:** Gathers URLs shared in bios or video descriptions, facilitating lead generation, affiliate marketing research, and the discovery of external resources promoted by TikTok users.

### Output Fields

| Field Name         | Type    | Description                                                                                                                                                                                                 |
|----------------------|---------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| id                 | String  | The TikTok user ID.                                                                                                                                                                                         |
| username           | String  | The TikTok username (handle).                                                                                                                                                                               |
| nickname           | String  | The user's display name.                                                                                                                                                                                     |
| bio                | String  | The user's profile bio.                                                                                                                                                                                    |
| profilePictureUrl  | String  | URL of the user's profile picture.                                                                                                                                                                          |
| signature          | String  | User signature text shown on profile.                                                                                                                                                                      |
| followingCount     | Integer | Number of accounts the user is following.                                                                                                                                                                   |
| followerCount      | Integer | Number of followers the user has.                                                                                                                                                                          |
| likesCount         | Integer | Number of likes the user has received.                                                                                                                                                                    |
| videoCount         | Integer | Number of videos the user has posted.                                                                                                                                                                       |
| isVerified         | Boolean | Whether the user has a verified account (true) or not (false).                                                                                                                                                |
| isPrivate          | Boolean | Whether the user's account is private (true) or public (false).                                                                                                                                               |
| tiktokUrl          | String  | The full URL of the user's TikTok profile.                                                                                                                                                                     |
| externalLink       | String | The URL of the external website link available on the user's profile, if any. This may be empty.                                                                                                             |
| externalLinkTitle  | String | The title of the external website link. This may be empty or null.                                                                                                                                            |
| ipCountry  | String  | The country where the scraping occurred.                                                                                                                                                                          |
| timestamp | String  | The timestamp of when the data was scraped, in ISO 8601 format.  |

### Possible Usage of the Actor

- **Competitor Analysis:** Identify trending content formats, engagement rates, and audience demographics of competitors to inform content strategy.
- **Influencer Marketing Optimization:** Evaluate potential influencers based on follower demographics, engagement metrics, and content relevance for targeted campaigns.
- **Brand Monitoring & Sentiment Analysis:** Track brand mentions, analyze audience sentiment towards the brand, and identify potential PR crises.
- **Audience Segmentation & Targeting:** Understand the interests, demographics, and behaviors of followers to create targeted advertising campaigns and personalized content.
- **Trend Identification & Forecasting:** Analyze trending hashtags, sounds, and content themes to predict future trends and capitalize on emerging opportunities.

### Example Output

```json
{
  "account_id": "yan***zen***",
  "nickname": "\u042f\u043d \u0420\u0435\u0439\u0437\u0435\u043d",
  "biography": "~*-*~\nInst: @yanreyzen\n\ud83c\uddf0\ud83c\uddf7\ud83c\udf5c\u2708\ufe0f\ud83e\udd0d \n\u0422\u0433: yanreyzen\n\u044e\u0442\u044c\u044e\u0431 \u043a\u0430\u043d\u0430\u043b: \u042f\u043d \u0420\u0435\u0439\u0437\u0435\u043d",
  "awg_engagement_rate": 0.06352648153449757,
  "comment_engagement_rate": 0.0003915831663326653,
  "like_engagement_rate": 0.0631348983681649,
  "bio_link": null,
  "predicted_lang": "en",
  "is_verified": true,
  "followers": 499000,
  "following": 78,
  "likes": 10500000,
  "videos_count": 481,
  "create_time": null,
  "id": "14944611",
  "url": "https://www.tiktok.com/@yanreyzen",
  "profile_pic_url": "https://p16-sign-sg.tiktokcdn.com/aweme/720x720/tos-alisg-avt-0068/f76f268294a0c98589eb4aeec2826bac.jpeg?x-expires=1691852400&x-signature=y5kU83qyrfl%2FtPRkRtCZMPWav9k%3D",
  "like_count": null,
  "digg_count": 0,
  "is_private": null,
  "profile_pic_url_hd": "https://p16-sign-sg.tiktokcdn.com/aweme/1080x1080/tos-alisg-avt-0068/f76f268294a0c98589eb4aeec2826bac.jpeg?x-expires=1691852400&x-signature=wB5wcFjZuoPQpccrzSsbjwFKFl0%3D",
  "secu_id": null,
  "short_id": null,
  "ftc": null,
  "relation": null,
  "open_favorite": null,
  "comment_setting": null,
  "duet_setting": null,
  "stitch_setting": null,
  "is_ad_virtual": false,
  "room_id": null,
  "is_under_age_18": null,
  "region": "KR",
  "top_videos": [
    "https://www.tiktok.com/@yanreyzen/video/7265692312905272594",
    "https://www.tiktok.com/@yanreyzen/video/7265652109041880328",
    "https://www.tiktok.com/@yanreyzen/video/7264878328266378503",
    "https://www.tiktok.com/@yanreyzen/video/7264531958498102546",
    "https://www.tiktok.com/@yanreyzen/video/7264185365110541586",
    "https://www.tiktok.com/@yanreyzen/video/7264160653852658951",
    "https://www.tiktok.com/@yanreyzen/video/7263872497592913160",
    "https://www.tiktok.com/@yanreyzen/video/7263718425950719250",
    "https://www.tiktok.com/@yanreyzen/video/7263490458968460562",
    "https://www.tiktok.com/@yanreyzen/video/7263470941701737736",
    "https://www.tiktok.com/@yanreyzen/video/7263350406858722578",
    "https://www.tiktok.com/@yanreyzen/video/7262380511929142535",
    "https://www.tiktok.com/@yanreyzen/video/7261241091821751559",
    "https://www.tiktok.com/@yanreyzen/video/7259761254938463495",
    "https://www.tiktok.com/@yanreyzen/video/7257827551098293505",
    "https://www.tiktok.com/@yanreyzen/video/7257492617217264898",
    "https://www.tiktok.com/@yanreyzen/video/7256115142671322370",
    "https://www.tiktok.com/@yanreyzen/video/7256106618289442050",
    "https://www.tiktok.com/@yanreyzen/video/7255674102827224321",
    "https://www.tiktok.com/@yanreyzen/video/7253506519050784002",
    "https://www.tiktok.com/@yanreyzen/video/7252789464475389185",
    "https://www.tiktok.com/@yanreyzen/video/7252742885118921986",
    "https://www.tiktok.com/@yanreyzen/video/7252432427530964226",
    "https://www.tiktok.com/@yanreyzen/video/7251661625491475714",
    "https://www.tiktok.com/@yanreyzen/video/7248944752144502018",
    "https://www.tiktok.com/@yanreyzen/video/7248917080513187074",
    "https://www.tiktok.com/@yanreyzen/video/7248231891327913218",
    "https://www.tiktok.com/@yanreyzen/video/7247842912459902209",
    "https://www.tiktok.com/@yanreyzen/video/7247812309073153281",
    "https://www.tiktok.com/@yanreyzen/video/7247529225178107138",
    "https://www.tiktok.com/@yanreyzen/video/7247507780184116482",
    "https://www.tiktok.com/@yanreyzen/video/7247110269489483010",
    "https://www.tiktok.com/@yanreyzen/video/7247074729280998657",
    "https://www.tiktok.com/@yanreyzen/video/7246478355565006082",
    "https://www.tiktok.com/@yanreyzen/video/7246339297333234946"
  ],
  "signature": "~*-*~\nInst: @yanreyzen\n\ud83c\uddf0\ud83c\uddf7\ud83c\udf5c\u2708\ufe0f\ud83e\udd0d \n\u0422\u0433: yanreyzen\n\u044e\u0442\u044c\u044e\u0431 \u043a\u0430\u043d\u0430\u043b: \u042f\u043d \u0420\u0435\u0439\u0437\u0435\u043d",
  "discovery_input": null,
  "is_commerce_user": null
}
```

# Actor input Schema

## `url` (type: `string`):

The TikTok profile URL to scrape.

## Actor input object example

```json
{
  "url": "https://www.tiktok.com/@fofimdmell"
}
```

# 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 = {
    "url": "https://www.tiktok.com/@fofimdmell"
};

// Run the Actor and wait for it to finish
const run = await client.actor("pratikdani/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 = { "url": "https://www.tiktok.com/@fofimdmell" }

# Run the Actor and wait for it to finish
run = client.actor("pratikdani/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 '{
  "url": "https://www.tiktok.com/@fofimdmell"
}' |
apify call pratikdani/tiktok-profile-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pratikdani/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/m1CrXQdK4DFe6g2Hx/builds/4MAkK3x7ACWHSLUfF/openapi.json
