# TikTok Profiles Scraper (`kaix/tiktok-profiles-scraper`) Actor

🔥 ~$0.1/1K profiles 🔥 Scrape TikTok profiles: the details and exact counts of each profile, such as followers, following, likes, and videos, and the stories it shows now. Choose the sections you need. A private account gives no stories.

- **URL**: https://apify.com/kaix/tiktok-profiles-scraper.md
- **Developed by:** [Kai](https://apify.com/kaix) (community)
- **Categories:** Social media, Lead generation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.08 / 1,000 profiles

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

## TikTok Profiles Scraper - Profile Info and Stories

Get TikTok profile data in one run. Read the details of a profile: handle, ID,
bio, avatar, links, settings, and the exact counts of followers, accounts it
follows, likes, and videos. Read the stories that a profile shows now.

Run many profiles in one run. Choose the sections that you need, and the Actor
applies them to every profile. Every item in the Dataset is one profile or one
story.

### Use cases

#### Creator and brand research

Compare creators on followers, videos, and verification before you work with
them.

```json
{
  "profileUrls": [
    "https://www.tiktok.com/@nasa",
    "https://www.tiktok.com/@redbull"
  ],
  "sections": ["info"]
}
```

Use `uniqueId`, `nickname`, `verified`, `stats.followers`, `stats.following`,
`stats.likes`, `stats.videos`, `signature`, and `links.bio`.

#### Growth tracking

Run `info` for the same profiles on an Apify schedule. Join the runs on `id`,
and watch `stats.followers`, `stats.following`, `stats.likes`, and `stats.videos`
move over time.

```json
{
  "profileUrls": ["https://www.tiktok.com/@nasa"],
  "sections": ["info"]
}
```

#### Story monitoring

Check which profiles show stories right now, and read each story as a video.

```json
{
  "profileUrls": [
    "https://www.tiktok.com/@nba",
    "https://www.tiktok.com/@zachking"
  ],
  "sections": ["stories"]
}
```

Use `videoId`, `videoUrl`, `createTime`, `expiresAt`, `stats.views`, and
`video.duration` on the items where `section` is `stories`.

### Choose what to collect

| `sections` value | Items it adds                     | Use it for                                   |
| ---------------- | --------------------------------- | -------------------------------------------- |
| `info`           | One item for each profile         | Details, settings, and counts of a profile   |
| `stories`        | One item for each story           | The stories that a profile shows now         |
| A list of values | The items of every chosen section | Several sections for each profile in one run |

### What each section includes

- `info`: handle, ID, display name, bio, verified flag, avatar links, the exact
  counts of followers, following, likes, videos, and friends, account creation
  time, language, bio link and app links, business category, who can comment,
  duet, stitch, and download, the tabs of the profile, and planned events
- `stories`: the same video fields as the
  [TikTok Videos Scraper](https://apify.com/kaix/tiktok-videos-scraper) (video
  details, author, stats, and music), and the time when the story ends

Every `info` item and every `stories` item has `section`, which names the
section, and `inputUrl`, which is the profile URL from your input.

### Read profile info

Start with a profile URL:

```json
{
  "profileUrls": ["https://www.tiktok.com/@nasa"],
  "sections": ["info"]
}
```

The Actor saves one `info` item for each profile. The counts are the values at
the time of the run. A profile URL looks like `https://www.tiktok.com/@handle`.
A query string after the handle, such as `?lang=en`, is ignored.

`info` is the default. A run without `sections` gives `info` items.

### Read stories

```json
{
  "profileUrls": ["https://www.tiktok.com/@nba"],
  "sections": ["info", "stories"]
}
```

The Actor saves one `stories` item for each story that the profile shows at the
time of the run. A story is a short video. A `stories` item has the same video
fields as an item of the
[TikTok Videos Scraper](https://apify.com/kaix/tiktok-videos-scraper), and one
more field, `expiresAt`, which is the time when the story ends. The field
`inputUrl` is the profile URL from your input.

A profile that shows no story gives no `stories` item. This is a normal result,
and the log says "no public stories right now". The field `hasStory` of the
`info` item says whether the profile shows a story.

### How results are ordered

**Order.** The Actor handles the profiles in input order. For each profile, it
saves `info` first, and then `stories`. The order of the values in `sections`
does not change this.

**Same profile twice.** A profile URL that you add twice is read twice. Its
items appear twice.

### Input

Provide at least one profile URL and at least one section.

<details>
<summary>Complete input example</summary>

This example uses every input field.

```json
{
  "profileUrls": [
    "https://www.tiktok.com/@nasa",
    "https://www.tiktok.com/@redbull"
  ],
  "sections": ["info", "stories"],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

</details>

#### Input reference

| Parameter              | Type     | Default                  | Effect                                                                             |
| ---------------------- | -------- | ------------------------ | ---------------------------------------------------------------------------------- |
| **profileUrls**        | string\[] | empty                    | TikTok profile URLs. Provide at least one.                                         |
| **sections**           | string\[] | `["info"]`               | What to collect for each profile. Values: `info`, `stories`. Provide at least one. |
| **proxyConfiguration** | object   | `{"useApifyProxy":true}` | Connection settings for the run. Keep the default.                                 |

- Use full URLs. A profile URL looks like `https://www.tiktok.com/@handle`.
- A value that is not a URL stops the run before collection.
- A short link such as `https://vm.tiktok.com/...` is not a profile URL. It
  gives an error item.
- An empty `sections` list stops the run before collection.
- Unknown input fields are ignored.

### Output

Each Dataset item is one `info` item or one `stories` item. An input URL that
the Actor could not read gives one error item in the Errors dataset, not in the
Dataset. Every documented field of a section is present in every item of that section. A value that is not available
is `null` or an empty list. A story count that is not available is `0`. The
fields `avatar`, `stats`, `links`, `business`, `settings`, and `tabs` are
objects, and `events` is a list.

#### Sample items

These items are from real runs. The links are removed. They are not saved
Dataset items.

<details>
<summary>Open the item JSON</summary>

An `info` item, read from `@nasa`:

```json
{
  "section": "info",
  "inputUrl": "https://www.tiktok.com/@nasa",
  "profileUrl": "https://www.tiktok.com/@nasa",
  "id": "7664638705177150477",
  "secUid": "MS4wLjABAAAAU9BRVzC8oCaegVnia8IbqWhPb_-dbU7s00Y3wS1_Nx8g5RUaYvyXrpejgjdxTwd6",
  "uniqueId": "nasa",
  "nickname": "NASA",
  "signature": "Making the seemingly impossible, possible.✨",
  "verified": true,
  "private": false,
  "seller": false,
  "avatar": {
    "large": "[link removed]",
    "medium": "[link removed]",
    "thumb": "[link removed]"
  },
  "stats": {
    "followers": 2161595,
    "following": 23,
    "likes": 11546847,
    "videos": 62,
    "friends": 17,
    "likesGiven": null
  },
  "createTime": "1784562949",
  "language": "en",
  "organization": true,
  "hasStory": false,
  "nicknameChangedAt": "1784563080",
  "handleChangedAt": null,
  "links": {
    "bio": "science.nasa.gov/feature/artemis-ii-preliminary-lunar-science-report",
    "ios": null,
    "android": null
  },
  "business": {
    "isBusiness": false,
    "category": null
  },
  "settings": {
    "comments": 0,
    "duet": 0,
    "stitch": 0,
    "download": 0,
    "likedVideosPublic": false,
    "followingPublic": true
  },
  "tabs": {
    "music": false,
    "questions": false,
    "playlists": true
  },
  "events": []
}
```

A `stories` item, read from `@nba`:

```json
{
  "section": "stories",
  "inputUrl": "https://www.tiktok.com/@nba",
  "videoId": "7704836477066300703",
  "videoUrl": "https://www.tiktok.com/@nba/video/7704836477066300703",
  "desc": "",
  "descLanguage": "un",
  "createTime": "1793922045",
  "locationCreated": null,
  "categories": [],
  "hashtags": [],
  "mentions": [],
  "effects": [],
  "isAd": false,
  "isAiGenerated": null,
  "isPinned": null,
  "duetEnabled": null,
  "stitchEnabled": null,
  "shareEnabled": true,
  "captionLanguages": [],
  "images": [],
  "video": {
    "duration": 52,
    "width": 720,
    "height": 1280,
    "ratio": "720p",
    "definition": "720p",
    "format": "mp4",
    "codec": "h264",
    "bitrate": 1118629,
    "size": 7292206,
    "cover": "[link removed]",
    "originCover": "[link removed]",
    "dynamicCover": "[link removed]"
  },
  "author": {
    "id": "134941634731003904",
    "uniqueId": "nba",
    "nickname": "NBA",
    "verified": true,
    "signature": "Home of NBA hoops on TikTok 🏀",
    "createTime": null,
    "private": false,
    "seller": null,
    "avatar": "[link removed]",
    "followers": 27400000,
    "following": 268,
    "likes": 1200000000,
    "videos": 25200,
    "likesGiven": 15100
  },
  "stats": {
    "views": 220900,
    "likes": 5227,
    "comments": 0,
    "shares": 63,
    "saves": 0,
    "reposts": 0
  },
  "music": {
    "id": "7704836505202281247",
    "title": "original sound",
    "author": "NBA",
    "album": null,
    "duration": 52,
    "playUrl": "[link removed]",
    "cover": "[link removed]"
  },
  "expiresAt": "1794008445"
}
```

</details>

#### Field reference

**Info fields** are in every `info` item.

| Field                        | Type and contents                                                                                                           |
| ---------------------------- | --------------------------------------------------------------------------------------------------------------------------- |
| `section`                    | string. `info`.                                                                                                             |
| `inputUrl`                   | string. The profile URL from your input.                                                                                    |
| `profileUrl`                 | string. The profile URL of the account. It is the same profile as `inputUrl`.                                               |
| `id`                         | string. The account ID.                                                                                                     |
| `secUid`                     | string. The long account ID.                                                                                                |
| `uniqueId`                   | string. The handle, without `@`.                                                                                            |
| `nickname`                   | string. The display name.                                                                                                   |
| `signature`                  | string or `null`. The bio. It is `null` when the bio is empty.                                                              |
| `verified`                   | boolean or `null`. Whether the account is verified.                                                                         |
| `private`                    | boolean or `null`. Whether the account is private.                                                                          |
| `seller`                     | boolean or `null`. Whether the account sells in TikTok Shop.                                                                |
| `avatar`                     | object. Links to the avatar image in three sizes.                                                                           |
| `avatar.large`               | string or `null`. A link to the avatar at 1080 pixels.                                                                      |
| `avatar.medium`              | string or `null`. A link to the avatar at 720 pixels.                                                                       |
| `avatar.thumb`               | string or `null`. A link to the avatar at 100 pixels.                                                                       |
| `stats`                      | object. The counts of the account.                                                                                          |
| `stats.followers`            | number or `null`. The follower count.                                                                                       |
| `stats.following`            | number or `null`. The count of accounts that the account follows.                                                           |
| `stats.likes`                | number or `null`. The total likes that the account received.                                                                |
| `stats.videos`               | number or `null`. The video count of the account.                                                                           |
| `stats.friends`              | number or `null`. The count of accounts that follow the account and that the account follows back.                          |
| `stats.likesGiven`           | number or `null`. The count of videos that the account liked. It is `null` when the account does not show its liked videos. |
| `createTime`                 | string or `null`. The account creation time in Unix seconds, such as `"1784562949"`.                                        |
| `language`                   | string or `null`. The language code of the account, such as `en`.                                                           |
| `organization`               | boolean or `null`. Whether TikTok marks the account as an organization.                                                     |
| `hasStory`                   | boolean or `null`. Whether the account shows a story now.                                                                   |
| `nicknameChangedAt`          | string or `null`. The time of the last change of the display name, in Unix seconds. `null` when it never changed.           |
| `handleChangedAt`            | string or `null`. The time of the last change of the handle, in Unix seconds. `null` when it never changed.                 |
| `links`                      | object. The links of the profile.                                                                                           |
| `links.bio`                  | string or `null`. The link in the bio, as the profile shows it, often without `https://`.                                   |
| `links.ios`                  | string or `null`. The iOS app link of a business account.                                                                   |
| `links.android`              | string or `null`. The Android app link of a business account.                                                               |
| `business`                   | object. The business data of the account.                                                                                   |
| `business.isBusiness`        | boolean or `null`. Whether the account is a business account.                                                               |
| `business.category`          | string or `null`. The business category, such as `Food & Beverage`.                                                         |
| `settings`                   | object. Who can use the features of the account.                                                                            |
| `settings.comments`          | number or `null`. Who can comment. `0` means everyone. Another number means that the account limits it.                     |
| `settings.duet`              | number or `null`. Who can make a duet. The number has the same meaning as `settings.comments`.                              |
| `settings.stitch`            | number or `null`. Who can stitch. The number has the same meaning as `settings.comments`.                                   |
| `settings.download`          | number or `null`. Who can download the videos. The number has the same meaning as `settings.comments`.                      |
| `settings.likedVideosPublic` | boolean or `null`. Whether the account shows its liked videos.                                                              |
| `settings.followingPublic`   | boolean or `null`. Whether the account shows its following list.                                                            |
| `tabs`                       | object. The tabs that the profile shows.                                                                                    |
| `tabs.music`                 | boolean or `null`. Whether the profile shows the music tab.                                                                 |
| `tabs.questions`             | boolean or `null`. Whether the profile shows the questions tab.                                                             |
| `tabs.playlists`             | boolean or `null`. Whether the profile shows the playlists tab.                                                             |
| `events`                     | object\[]. The events that the account planned, such as a scheduled LIVE. Empty for most accounts.                           |
| `events.id`                  | string. The event ID.                                                                                                       |
| `events.title`               | string or `null`. The event title.                                                                                          |
| `events.startsAt`            | string or `null`. The planned start time in Unix seconds.                                                                   |

**Story fields** are in `stories` items. They match the video fields of the
[TikTok Videos Scraper](https://apify.com/kaix/tiktok-videos-scraper).

| Field              | Type and contents                                                                             |
| ------------------ | --------------------------------------------------------------------------------------------- |
| `section`          | string. `stories`.                                                                            |
| `inputUrl`         | string. The profile URL from your input.                                                      |
| `videoId`          | string. The ID of the story video.                                                            |
| `videoUrl`         | string. The link to the story video.                                                          |
| `desc`             | string. The description. It is empty when the story has none.                                 |
| `descLanguage`     | string or `null`. The language code of the description, such as `en`.                         |
| `createTime`       | string or `null`. The creation time in Unix seconds, such as `"1793922045"`.                  |
| `locationCreated`  | string or `null`. The country code where the story was made. Often `null` for a story.        |
| `categories`       | string\[]. The topic labels of the story. Often empty for a story.                             |
| `hashtags`         | string\[]. The hashtags of the description, without `#`.                                       |
| `mentions`         | string\[]. The accounts that the description mentions, without `@`.                            |
| `effects`          | string\[]. The names of the effects that the story uses.                                       |
| `isAd`             | boolean or `null`. `true` for a paid ad.                                                      |
| `isAiGenerated`    | boolean or `null`. `true` when the story is marked as AI generated. Often `null` for a story. |
| `isPinned`         | boolean or `null`. Always `null` for a story.                                                 |
| `duetEnabled`      | boolean or `null`. Whether other users can make a duet with the story.                        |
| `stitchEnabled`    | boolean or `null`. Whether other users can stitch the story.                                  |
| `shareEnabled`     | boolean or `null`. Whether the story can be shared.                                           |
| `captionLanguages` | string\[]. The caption languages that the story offers, such as `eng-US`.                      |
| `images`           | string\[]. The image links of a photo story. Empty for a video.                                |
| `expiresAt`        | string or `null`. The time when the story ends, in Unix seconds.                              |

| Field                | Type and contents                                                                       |
| -------------------- | --------------------------------------------------------------------------------------- |
| `video`              | object. The video details of the story.                                                 |
| `video.duration`     | number. The duration in seconds.                                                        |
| `video.width`        | number or `null`. The width in pixels.                                                  |
| `video.height`       | number or `null`. The height in pixels.                                                 |
| `video.ratio`        | string or `null`. The resolution label, such as `720p`.                                 |
| `video.definition`   | string or `null`. The quality label, such as `720p`.                                    |
| `video.format`       | string or `null`. The file format, such as `mp4`.                                       |
| `video.codec`        | string or `null`. The video codec, such as `h264`.                                      |
| `video.bitrate`      | number or `null`. The bitrate in bits per second.                                       |
| `video.size`         | number or `null`. The file size in bytes.                                               |
| `video.cover`        | string or `null`. A link to the cover image.                                            |
| `video.originCover`  | string or `null`. A link to the original cover image.                                   |
| `video.dynamicCover` | string or `null`. A link to the animated cover.                                         |
| `author`             | object. The account that posted the story.                                              |
| `author.id`          | string. The account ID.                                                                 |
| `author.uniqueId`    | string. The handle, without `@`.                                                        |
| `author.nickname`    | string. The display name.                                                               |
| `author.verified`    | boolean or `null`. Whether the account is verified.                                     |
| `author.signature`   | string or `null`. The bio.                                                              |
| `author.createTime`  | string or `null`. The account creation time. Always `null` for a story.                 |
| `author.private`     | boolean or `null`. Whether the account is private.                                      |
| `author.seller`      | boolean or `null`. Whether the account sells in TikTok Shop. Always `null` for a story. |
| `author.avatar`      | string or `null`. A link to the avatar image.                                           |
| `author.followers`   | number or `null`. The follower count. It is approximate.                                |
| `author.following`   | number or `null`. The count of accounts that the author follows.                        |
| `author.likes`       | number or `null`. The total likes of the account. It is approximate.                    |
| `author.videos`      | number or `null`. The video count of the account. It is approximate.                    |
| `author.likesGiven`  | number or `null`. The count of videos that the account liked.                           |
| `stats`              | object. The counts of the story.                                                        |
| `stats.views`        | number. The play count.                                                                 |
| `stats.likes`        | number. The like count.                                                                 |
| `stats.comments`     | number. The comment count.                                                              |
| `stats.shares`       | number. The share count.                                                                |
| `stats.saves`        | number. The count of users who saved the story.                                         |
| `stats.reposts`      | number. The repost count.                                                               |
| `music`              | object. The sound of the story.                                                         |
| `music.id`           | string or `null`. The sound ID.                                                         |
| `music.title`        | string or `null`. The sound title.                                                      |
| `music.author`       | string or `null`. The name of the sound author.                                         |
| `music.album`        | string or `null`. The album, when the sound has one.                                    |
| `music.duration`     | number or `null`. The duration in seconds.                                              |
| `music.playUrl`      | string or `null`. A link to the audio file.                                             |
| `music.cover`        | string or `null`. A link to the sound cover image.                                      |

- The counts are the values at the time of the run. They change over time.
- Avatar links, cover links, and audio links expire after about two days.
  Download the files soon after the run if you need them.
- The `stats` counts of an `info` item are exact. The `author` counts of a
  `stories` item are approximate, such as `followers` of `27400000`. Use the
  `info` section when you need exact counts.

#### Which fields depend on the account

| Field                                                   | When it is `null`, `false`, or empty                                                  |
| ------------------------------------------------------- | ------------------------------------------------------------------------------------- |
| `signature`                                             | The account has no bio.                                                               |
| `stats.likesGiven`                                      | The account does not show its liked videos (`settings.likedVideosPublic` is `false`). |
| `settings.comments`, `settings.duet`, `settings.stitch` | Some accounts do not give these settings.                                             |
| `links.ios`, `links.android`, `business.category`       | The account is not a business account, or the business set no app link or category.   |
| `nicknameChangedAt`, `handleChangedAt`                  | The account never changed its display name or handle.                                 |
| `events`                                                | The account planned no event.                                                         |

#### Error items

An input URL that the Actor cannot read gives one error item in the Errors
dataset. The Dataset holds only profile and story items. The run goes on with
the next URL.

```json
{
  "inputUrl": "https://www.tiktok.com/@zz_no_such_user_84726153",
  "error": "The profile does not exist or is not available.",
  "errorCode": "PROFILE_UNAVAILABLE"
}
```

**Error fields** are the three fields of an error item:

| Field       | Type and contents                                   |
| ----------- | --------------------------------------------------- |
| `inputUrl`  | string. The entry from your input.                  |
| `error`     | string. A short sentence that says what went wrong. |
| `errorCode` | string. One of the codes below.                     |

| `errorCode`           | Meaning                                                                             |
| --------------------- | ----------------------------------------------------------------------------------- |
| `NOT_A_PROFILE_URL`   | The entry is not a profile URL. It must look like `https://www.tiktok.com/@handle`. |
| `PROFILE_UNAVAILABLE` | The profile does not exist or is not available.                                     |
| `READ_FAILED`         | The profile or its stories could not be read. Try again later.                      |

### Limits and field notes

#### Which accounts are available?

The Actor reads public data only.

- A private account gives an `info` item with `private` set to `true`. Its
  stories give no items.
- An account can hide its liked videos. Then `settings.likedVideosPublic` is
  `false` and `stats.likesGiven` is `null`.
- An account can hide its following list. Then `settings.followingPublic` is
  `false`.

#### Why does a story section give no item?

A story ends after a short time. A profile that shows no story gives no item.
Run `stories` on a schedule if you want to see all stories. The field `expiresAt`
tells you when each story ends.

#### What happens when a profile or a story fails?

For a profile that does not exist, the Actor gives a `PROFILE_UNAVAILABLE` item
within a few seconds. For another failure, the Actor tries again, and then
gives a `READ_FAILED` item, writes a warning to the log, and continues with the
next profile. The items that it already saved stay in the Dataset.

If no section of any profile can be read, the run fails with the message "No
profile could be read. Check the URLs and try again." The error items stay in the
Errors dataset. Invalid input also fails the run with a message that names the problem.

#### Are the counts exact?

The `stats` counts of an `info` item are exact at the time of the run. The
`author` counts of a `stories` item are approximate.

### Similar Actors

- [TikTok Videos Scraper](https://apify.com/kaix/tiktok-videos-scraper). The
  videos of TikTok profiles, hashtags, and sounds, with stats.
- [TikTok Video Comments Scraper](https://apify.com/kaix/tiktok-comments-scraper).
  The comments of TikTok videos, with replies and video stats.
- [TikTok Shop Scraper](https://apify.com/kaix/tiktok-shop-scraper). TikTok Shop
  product, seller, offer, delivery, and review data.
- [Instagram Scraper](https://apify.com/kaix/instagram-scraper). Public
  Instagram profiles, posts, reels, comments, and places.
- [YouTube Scraper](https://apify.com/kaix/youtube-scraper). YouTube videos,
  channels, playlists, comments, captions, and live chat.

# Actor input Schema

## `profileUrls` (type: `array`):

List of TikTok profile URLs, for example https://www.tiktok.com/@nasa. Each profile gives the sections that you choose below.

## `sections` (type: `array`):

What to collect for each profile. Info gives the details and counts of the profile. Stories gives the stories that the profile shows now.

## `proxyConfiguration` (type: `object`):

Connection settings. The default works for most runs.

## Actor input object example

```json
{
  "profileUrls": [
    "https://www.tiktok.com/@nasa"
  ],
  "sections": [
    "info"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `errors` (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 = {
    "profileUrls": [
        "https://www.tiktok.com/@nasa"
    ],
    "sections": [
        "info"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("kaix/tiktok-profiles-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 = {
    "profileUrls": ["https://www.tiktok.com/@nasa"],
    "sections": ["info"],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("kaix/tiktok-profiles-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 '{
  "profileUrls": [
    "https://www.tiktok.com/@nasa"
  ],
  "sections": [
    "info"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call kaix/tiktok-profiles-scraper --silent --output-dataset

```

## MCP server setup

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