# TikTok User Profile Scraper (`xtdata/tiktok-user-information-scraper`) Actor

TikTok Profile Scraper: Extract profile data by username, user ID, or URL. Real-time, authentic data. No pre-built databases. Perfect for market research and influencer analysis. Scrape TikTok profiles easily. No proxy, no limit.

- **URL**: https://apify.com/xtdata/tiktok-user-information-scraper.md
- **Developed by:** [xtdata](https://apify.com/xtdata) (community)
- **Categories:** Social media, Lead generation
- **Features:** Limited permissions
- **Stats:** 3,486 total users, 37 monthly users, 100.0% runs succeeded, 17 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $6.80 / 1,000 user queries

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

### Introduction about TikTok Profile Scraper

This scraper provides comprehensive information about TikTok users, including details such as name, nickname, ID, bio,
follower/following counts, and engagement metrics like play, share, and comment counts.

As TikTok lacks a robust and free official API, this actor serves as an unofficial API, enabling you to retrieve
valuable user data.

**The TikTok User Information Data scraper supports the following features:**

- **User details** - Retrieve all user-related information.

##### If you want to get specific data from TikTok

You can use the scrapers below. Each scraper is made to help you get different kinds of TikTok data, like hashtags,
search results, profiles, or everything at once. You can look at them to see which one you need.

| [🎹️ Fast TikTok API](https://apify.com/novi/fast-tiktok-api)            | [📹️ TikTok Trend API](https://apify.com/novi/tiktok-trend-api)         | [🔍️ TikTok Search API](https://apify.com/novi/tiktok-search-api)             |
|:-------------------------------------------------------------------------|:------------------------------------------------------------------------|:------------------------------------------------------------------------------|
| [🧛️ TikTok User API](https://apify.com/novi/tiktok-user-api)            | [🧛️ TikTok User Info API](https://apify.com/novi/tiktok-user-info-api) | [#️ TikTok Hashtag API](https://apify.com/novi/tiktok-hashtag-api)            |
| [🛍️ TikTok Shop API](https://apify.com/novi/tiktok-shop-scraper)        | [👤️ TikTok Followers API](https://apify.com/novi/tiktok-followers-api) | [⚡️ TikTok Scraper (pay-per-result)](https://apify.com/xtdata/tiktok-scraper) |
| [💬 TikTok Comment API](https://apify.com/novi/tiktok-comment-api)       | [🎶 TikTok Music API](https://apify.com/novi/tiktok-sound-api)          | [🎶 TikTok Music Trend API](https://apify.com/novi/tiktok-music-trend-api)    |
| [🐦 Twitter - X.com Scraper](https://apify.com/xtdata/twitter-x-scraper) |                                                                         |                                                                               |

### Bugs, fixes, updates and changelog

This scraper is under active development. If you have any feature requests you can create an issue from here.

### Input Parameters

https://www.youtube.com/watch?v=PY9zHsiPk7Y

The input of this scraper should be JSON containing the list of pages on TikTok User Info API that should be visited.
Required fields are:

| Parameter   | Description                                               | Type  | Example                                  |
|-------------|-----------------------------------------------------------|-------|------------------------------------------|
| `usernames` | List of TikTok usernames to scrape. Has highest priority. | Array | `["nike", "example_user"]`               |
| `userIds`   | List of TikTok user IDs (UIDs) to scrape.                 | Array | `["6714563164218679553", "1234567890"]`  |
| `urls`      | List of TikTok user profile URLs to scrape.               | Array | `["https://www.tiktok.com/@nickiminai"]` |

### Compute Unit Consumption

**Cost saving because 128MB memory is very enough for this actor.**

The actor optimized to run blazing fast and scrape many as listings as possible. Therefore, it forefronts all listing
detail requests. If actor doesn't block very often it'll scrape 100 listings in 30 seconds with ~0.03-0.07 compute
units.

### How to Scrape TikTok User Data

#### 1. Scrape User Data using username

```json
{
  "usernames": [
    "breannashiveley"
  ]
}
```

#### 2. Scrape User Data using user's ID

```json
{
  "userIds": [
    "208464585232822272"
  ]
}
```

#### 3. Scrape User Data using URL to profile

```json
{
  "urls": [
    "https://www.tiktok.com/@nickiminai"
  ]
}
```

#### 4. Scrape All

```json
{
  "userIds": [
    "208464585232822272"
  ],
  "usernames": [
    "breannashiveley"
  ],
  "urls": [
    "https://www.tiktok.com/@nickiminai"
  ]
}
```

### During the Run

During the run, the actor will output messages letting you know what is going on. Each message always contains a short
label specifying which page from the provided list is currently specified. When items are loaded from the page, you
should see a message about this event with a loaded item count and total item count for each page.

If you provide incorrect input to the actor, it will immediately stop with failure state and output an explanation of
what is wrong.

### TikTok User Information API Export

During the run, the actor stores results into a dataset. Each item is a separate item in the dataset.

You can manage the results in any language (Python, PHP, Node JS/NPM). See the FAQ or our API references to learn more
about getting results from this TikTok User Info API actor.

#### User Information In JSON format.

```json
{
  "uid": "208464585232822272",
  "unique_id": "nike",
  "nickname": "Nike",
  "bio_url": "https://linkin.bio/nike",
  "total_favorited": 18443294,
  "twitter_id": "",
  "twitter_name": "",
  "account_type": 3,
  "ad_virtual": false,
  "advance_feature_item_order": [
    20
  ],
  "apple_account": 0,
  "avatar_168x168": {
    "uri": "tos-useast5-avt-0068-tx/908fe11a62bf22cd36dbea27296d670c",
    "url_list": [
      "https://p16-sign-va.tiktokcdn.com/tos-maliva-avt-0068/908fe11a62bf22cd36dbea27296d670c~c5_168x168.webp?x-expires=1699977600&x-signature=iO8Z1uKpRG5jynA%2BAw6ND6SztR8%3D",
      "https://p16-sign-va.tiktokcdn.com/tos-maliva-avt-0068/908fe11a62bf22cd36dbea27296d670c~c5_168x168.jpeg?x-expires=1699977600&x-signature=H259CrWXtp3plTsl7lZaQoXxAlA%3D"
    ],
    "url_prefix": null
  },
  "avatar_300x300": {
    "uri": "tos-useast5-avt-0068-tx/908fe11a62bf22cd36dbea27296d670c",
    "url_list": [
      "https://p16-sign-va.tiktokcdn.com/tos-maliva-avt-0068/908fe11a62bf22cd36dbea27296d670c~c5_300x300.webp?x-expires=1699977600&x-signature=iIBpadLQcRPvfauyfLZGDd4miBA%3D",
      "https://p16-sign-va.tiktokcdn.com/tos-maliva-avt-0068/908fe11a62bf22cd36dbea27296d670c~c5_300x300.jpeg?x-expires=1699977600&x-signature=4jE9MYyxQqrMAoONVnjT8S6tenw%3D"
    ],
    "url_prefix": null
  },
  "avatar_larger": {
    "uri": "tos-useast5-avt-0068-tx/908fe11a62bf22cd36dbea27296d670c",
    "url_list": [
      "https://p16-sign-va.tiktokcdn.com/tos-maliva-avt-0068/908fe11a62bf22cd36dbea27296d670c~c5_1080x1080.webp?x-expires=1699977600&x-signature=rbAuiQKYSjzHCrJ8DDYuZ2xie%2BM%3D",
      "https://p16-sign-va.tiktokcdn.com/tos-maliva-avt-0068/908fe11a62bf22cd36dbea27296d670c~c5_1080x1080.jpeg?x-expires=1699977600&x-signature=%2BOXf0mltFENXz9mWAq%2BnYFKi%2FSY%3D"
    ],
    "url_prefix": null
  },
  "avatar_medium": {
    "uri": "tos-useast5-avt-0068-tx/908fe11a62bf22cd36dbea27296d670c",
    "url_list": [
      "https://p16-sign-va.tiktokcdn.com/tos-maliva-avt-0068/908fe11a62bf22cd36dbea27296d670c~c5_720x720.webp?x-expires=1699977600&x-signature=GPjdachqxaJQ5n%2Fvp0CWvNlQlZw%3D",
      "https://p16-sign-va.tiktokcdn.com/tos-maliva-avt-0068/908fe11a62bf22cd36dbea27296d670c~c5_720x720.jpeg?x-expires=1699977600&x-signature=PDiBDkKfHRlHfpayHuZuJsd3BTg%3D"
    ],
    "url_prefix": null
  },
  "avatar_thumb": {
    "uri": "tos-useast5-avt-0068-tx/908fe11a62bf22cd36dbea27296d670c",
    "url_list": [
      "https://p16-sign-va.tiktokcdn.com/tos-maliva-avt-0068/908fe11a62bf22cd36dbea27296d670c~c5_100x100.webp?x-expires=1699977600&x-signature=ERmi0FWi6rbmcIi0mfTVLBVmGRc%3D",
      "https://p16-sign-va.tiktokcdn.com/tos-maliva-avt-0068/908fe11a62bf22cd36dbea27296d670c~c5_100x100.jpeg?x-expires=1699977600&x-signature=ocQkV7q0ydjHek3b2seZhAjNTdA%3D"
    ],
    "url_prefix": null
  },
  "aweme_count": 780,
  "bio_secure_url": "https://www.tiktok.com/link/?aid=1233&lang=en&scene=bio_url&target=https%3A%2F%2Flinkin.bio%2Fnike&owner_suid=MS4wLjABAAAA_3ndMt8d_tECTdpKgCxcx238tOnQZX-20wqN01aMui5zQ7hsqSdff-jC5qYC-Cl_",
  "biz_account_info": {
    "added_contact_and_link_list": null,
    "coupon_list": null,
    "leads_gen": {
      "action_name": "",
      "business_data": "",
      "has_leads_gen": false,
      "page_id": 0,
      "schema_url": ""
    },
    "permission_list": [
      "001001",
      "001002",
      "001003",
      "001004",
      "001005",
      "002001",
      "002002",
      "002005",
      "004001",
      "004006",
      "004009",
      "004012",
      "006001",
      "007001",
      "007003",
      "007004",
      "007005",
      "008001",
      "010001",
      "010002",
      "010003",
      "015001",
      "015002",
      "015003",
      "018003",
      "020001",
      "021001",
      "018001"
    ]
  },
  "can_message_follow_status_list": [
    0,
    1,
    2,
    4
  ],
  "category": "Sports, Fitness & Outdoors",
  "commerce_user_info": {
    "ad_revenue_rits": null
  },
  "commerce_user_level": 0,
  "custom_verify": "",
  "display_qna_on_profile": 1,
  "enterprise_verify_reason": "Verified account",
  "favoriting_count": 0,
  "follow_status": 0,
  "follower_count": 5020466,
  "follower_status": 0,
  "following_count": 180,
  "forward_count": 0,
  "ins_id": "nike",
  "is_block": false,
  "is_blocked": false,
  "is_effect_artist": false,
  "is_star": false,
  "live_commerce": false,
  "live_push_notification_status": 2,
  "message_chat_entry": true,
  "mplatform_followers_count": 0,
  "music_tab_info": {
    "show_artist_pick_videos": false
  },
  "original_musician": {
    "digg_count": 0,
    "music_count": 0,
    "music_used_count": 0,
    "new_release_clip_ids": null
  },
  "privacy_setting": {
    "following_visibility": 2
  },
  "profile_tab_type": 0,
  "recommend_reason_relation": "",
  "room_id": 0,
  "sec_uid": "MS4wLjABAAAA_3ndMt8d_tECTdpKgCxcx238tOnQZX-20wqN01aMui5zQ7hsqSdff-jC5qYC-Cl_",
  "secret": 0,
  "share_info": {
    "bool_persist": 1,
    "now_invitation_card_image_urls": null,
    "share_desc": "Check out Nike! #TikTok",
    "share_desc_info": "TikTok: Make Every Second Count",
    "share_image_url": {
      "uri": "tos-useast5-p-0068-tx/105776f7806b459cb32f294ebd046503_1699287598",
      "url_list": [
        "https://p16-sign.tiktokcdn-us.com/obj/tos-useast5-p-0068-tx/105776f7806b459cb32f294ebd046503_1699287598?x-expires=1699826400&x-signature=20%2FtSclpyuGPlE1pLbsOh3Xc4h8%3D",
        "https://p19-sign.tiktokcdn-us.com/obj/tos-useast5-p-0068-tx/105776f7806b459cb32f294ebd046503_1699287598?x-expires=1699826400&x-signature=ew%2F%2BslI6sHcrLICt8iUolIVj%2BmU%3D"
      ],
      "url_prefix": null
    },
    "share_title": "Join TikTok and see what I’ve been up to!",
    "share_title_myself": "",
    "share_title_other": "",
    "share_url": "https://www.tiktok.com/@nike?_r=1&_d=e9cbalc6a27625&sec_uid=MS4wLjABAAAA_3ndMt8d_tECTdpKgCxcx238tOnQZX-20wqN01aMui5zQ7hsqSdff-jC5qYC-Cl_&share_author_id=208464585232822272&sharer_language=en&source=h5_m&u_code=e9cbcf4gk687hf"
  },
  "short_id": "0",
  "show_effect_list": true,
  "show_favorite_list": false,
  "signature": "",
  "signature_language": "un",
  "story_status": 0,
  "supporting_ngo": {},
  "tab_settings": {
    "private_tab": {
      "private_tab_style": 1,
      "show_private_tab": false
    }
  },
  "verification_type": 0,
  "video_icon": {
    "uri": "",
    "url_list": [],
    "url_prefix": null
  },
  "watch_status": false,
  "with_commerce_enterprise_tab_entry": false,
  "with_commerce_entry": false,
  "with_new_goods": false,
  "youtube_channel_id": "",
  "youtube_channel_title": ""
}
```

***

### Scrape any TikTok data you need with dedicated scrapers

If you want to get specific data from TikTok, you can use the scrapers below. Each scraper is made to help you get
different kinds of TikTok data, like hashtags, search results, profiles, or everything at once. You can look at them to
see which one you need.

| [🎹️ Fast TikTok API](https://apify.com/novi/fast-tiktok-api)            | [📹️ TikTok Trend API](https://apify.com/novi/tiktok-trend-api)                              | [🔍️ TikTok Search API](https://apify.com/novi/tiktok-search-api)             |
|:-------------------------------------------------------------------------|:---------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------|
| [🧛️ TikTok User API](https://apify.com/novi/tiktok-user-api)            | [🧛️ TikTok User Info API](https://apify.com/novi/tiktok-user-info-api)                      | [#️ TikTok Hashtag API](https://apify.com/novi/tiktok-hashtag-api)            |
| [🛍️ TikTok Shop API](https://apify.com/novi/tiktok-shop-scraper)        | [👤️ TikTok Followers API](https://apify.com/novi/tiktok-followers-api)                      | [⚡️ TikTok Scraper (pay-per-result)](https://apify.com/xtdata/tiktok-scraper) |
| [💬 TikTok Comment API](https://apify.com/novi/tiktok-comment-api)       | [🎶 TikTok Music API](https://apify.com/novi/tiktok-sound-api)                               | [🎶 TikTok Music Trend API](https://apify.com/novi/tiktok-music-trend-api)    |
| [🐦 Twitter - X.com Scraper](https://apify.com/xtdata/twitter-x-scraper) | [🎶 Tiktok Scraper Ultimate (pay-per-event)](https://apify.com/novi/tiktok-scraper-ultimate) |                                                                               |

# Actor input Schema

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

Username of User to scrap. Username has highest priority. Ex: nike

## `userIds` (type: `array`):

User ID, get from other TikTok API data. Ex: 6714563164218679553

## `urls` (type: `array`):

User URL from TikTok. Ex: https://www.tiktok.com/@nickiminai

## Actor input object example

```json
{
  "usernames": [
    "nike"
  ],
  "userIds": [
    "6714563164218679553"
  ]
}
```

# 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": [
        "nike"
    ],
    "userIds": [
        "6714563164218679553"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("xtdata/tiktok-user-information-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": ["nike"],
    "userIds": ["6714563164218679553"],
}

# Run the Actor and wait for it to finish
run = client.actor("xtdata/tiktok-user-information-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": [
    "nike"
  ],
  "userIds": [
    "6714563164218679553"
  ]
}' |
apify call xtdata/tiktok-user-information-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,xtdata/tiktok-user-information-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/BW7peEX6cuzdpgpam/builds/2k472AlMPgpsvDmuo/openapi.json
