# Tiktok Realtime post details scraper (`logical_scrapers/tiktok-realtime-post-details-scraper`) Actor

Fastest TikTok live data scraper. You can scrape Realtime post detail including likes, plays, comments, description, cover and more.

- **URL**: https://apify.com/logical_scrapers/tiktok-realtime-post-details-scraper.md
- **Developed by:** [Goldmine](https://apify.com/logical_scrapers) (community)
- **Categories:** Social media, Videos, Automation
- **Stats:** 109 total users, 3 monthly users, 100.0% runs succeeded, 4 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.99 / 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 Post Details Scraper

This actor can scrape TikTok post details without any hassle: likes, plays, comments, description, cover, hashtags, video links and author. It takes post URLs and provides you with structured data. You can scrape a single URL or a list of URLs.

#### How It Works

The TikTok Post Scraper allows you to gather detailed information from TikTok posts. Simply provide the URLs of the posts you want to scrape, and the actor will fetch the data for you. This scraper is perfect for data analysis, research, and gaining insights from TikTok content.

### What Data You Can Get from This Scraper

| Field         | Description                                               |
|---------------|-----------------------------------------------------------|
| 👤 creator       | The username of the post creator                          |
| 🆔 id            | The unique ID of the post                                 |
| 📷 cover         | The URL of the cover image for the post                   |
| 📅 published_at  | The date when the post was published                      |
| 📝 description   | The description of the post                               |
| 👍 likes         | The number of likes the post has received                 |
| 💬 comments      | The number of comments on the post                        |
| ▶️ plays         | The number of times the post has been played              |
| 🔄 shares        | The number of times the post has been shared              |
| ✅ succeeded     | Indicates if the scraping was successful                  |

#### Input

Provide an array of TikTok post URLs.

Example:

```
[
    "https://www.tiktok.com/@apple/video/7374467373341871402",
    "https://www.tiktok.com/@dailymail/video/7381389888437947690"
]
```

#### sample output

Here is the sample output of this actor:

```
[
  {
    "creator": "apple",
    "id": "7374467373341871402",
    "cover": "https://p19-sign.tiktokcdn-us.com/obj/tos-useast5-p-0068-tx/99c0c60bd334448983aa4bf745ca1caa_1717001993?lk3s=d05b14bd&nonce=5198&refresh_token=11d0296efee6f02b8f51c92d45b75251&x-expires=1718935200&x-signature=JvG2quXFx2dfCz0mqcCYTW4G0tI%3D&s=AWEME_DETAIL&se=false&sh=&sc=dynamic_cover&l=202406200202342859447271AF934F39AC&shp=d05b14bd&shcp=-",
    "published_at": "29 May 2024",
    "description": "Film 1 of 3 - Worlds #MadeOniPad. One piece of green screen footage interpreted by different animators using #iPad Pro powered by the M4 chip #procreate #ShotOniPhone #animation #illustration #shortfilm  Starring: Sofia Wylie “Forest” Animation/Illustration Director: Natalie Labarre 'Concentrate' by Billy Lemos (feat. Dua Saleh) Commissioned by Apple",
    "likes": 88511,
    "comments": 0,
    "plays": 7814914,
    "shares": 812,
    "succeeded": true
  },
{
    "creator": "dailymail",
    "id": "7381389888437947690",
    "cover": "https://p16-sign.tiktokcdn-us.com/tos-useast5-p-0068-tx/910b8d03a5e34c3fa6f2bc0595738822_1718613786~tplv-dmt-logom:tos-useast5-i-0068-tx/oEfGLJlPeRBAQG4fQAAiIe8vI7v6ZgAl9O1GAR.image?lk3s=d05b14bd&nonce=38172&refresh_token=123bd4a862224884d23347d154959960&x-expires=1718960400&x-signature=fHgPpT8xTS%2BgVCXE0two9YjLoTo%3D&s=AWEME_DETAIL&se=false&sh=&sc=dynamic_cover&l=20240620092516828C906D36E7150AD63B&shp=d05b14bd&shcp=-",
    "published_at": "17 June 2024",
    "description": "President Joe Biden appeared to freeze on stage at a fundraiser in Los Angeles on Saturday night. The 81-year-old was then pulled away by his old boss, former president Barack Obama.  🎥Christopher Gardner via Storyful #biden #trump #obama #democrat #republican #usa ",
    "likes": 124984,
    "comments": 4950,
    "plays": 3852974,
    "shares": 22696,
    "succeeded": true
  }
]
```

If you have any feature requests or encounter any bugs, please feel free to create an issue. Your feedback is highly appreciated and helps us improve the actor.

### Contact & Support

If this Actor saves you time, please **leave a ⭐ rating** on its [Apify Store page](https://apify.com/logical_scrapers/tiktok-realtime-post-details-scraper). Ratings help other users find it and keep it maintained.

# Actor input Schema

## `url` (type: `array`):

URLs to start with.

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

Select proxies to be used by your crawler.

## Actor input object example

```json
{
  "url": [
    "https://www.tiktok.com/@dailymail/video/7381389888437947690"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# 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 = {
    "url": [
        "https://www.tiktok.com/@dailymail/video/7381389888437947690"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("logical_scrapers/tiktok-realtime-post-details-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/@dailymail/video/7381389888437947690"],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("logical_scrapers/tiktok-realtime-post-details-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/@dailymail/video/7381389888437947690"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call logical_scrapers/tiktok-realtime-post-details-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,logical_scrapers/tiktok-realtime-post-details-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/Q6ifHLEx6QnFBNgIw/builds/yeTZRTeQ5Am9TcfkQ/openapi.json
