# 🧪 TikTok Live Status Scraper (`toolzerhub/tiktok-live-status-scraper`) Actor

Check whether TikTok accounts are live by username. Get room ID, live title, start time, viewer stats, and account details for every account. No cookies or login required.

- **URL**: https://apify.com/toolzerhub/tiktok-live-status-scraper.md
- **Developed by:** [ToolzerHub](https://apify.com/toolzerhub) (community)
- **Categories:** Social media, Videos, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.80 / 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 LIVE Status Scraper

Check whether TikTok accounts are broadcasting right now. Give it usernames; each row tells you if they are live, and if so the room ID, title and start time.

Built for polling -- run it on a schedule against a watchlist and act on the `is_live` flag.

### Input

| Field | Use it for |
|---|---|
| **`username`** | Usernames or profile URLs, one per line. Required. |
| **`room_id`** | An escape hatch. Only useful if you already hold a room ID from somewhere else. |

```json
{
  "username": [
    "khaby.lame",
    "https://www.tiktok.com/@tiktok"
  ]
}
```

### Why you give it a username, not a room ID

A TikTok LIVE room ID appears in no public URL. A `/@user/live` page does not carry one. So an Actor that demanded a room ID up front had no usable starting point for anybody who did not already have an ID -- which was almost everybody.

Usernames are the front door. The room ID comes back **in the output**, as `room_id`, ready for anything downstream that needs it.

### Output

One row per account you asked about, live or not.

| Field | Contents |
|---|---|
| **`username`**, **`user_id`**, **`sec_user_id`** | Identifiers |
| **`nickname`**, **`avatar_url`**, **`is_verified`** | Display name, picture, verification |
| **`is_live`** | `true` only if the account is broadcasting right now |
| **`room_id`** | The account's LIVE room ID |
| **`live_title`** | Broadcast title, when one is running |
| **`live_started_at`** | Broadcast start time, when one is running |
| **`live_room`** | The full room record, when broadcasting |
| **`stats`** | Account stats, when reported |

```json
{
  "username": "khaby.lame",
  "user_id": "6912129165957842438",
  "nickname": "Khabane lame",
  "is_verified": true,
  "is_live": true,
  "room_id": "7530891234567890123",
  "live_title": "Q&A before the weekend",
  "live_started_at": 1722351600
}
```

### Questions

**`room_id` is filled in but `is_live` is `false`. Which do I trust?**
`is_live`. A room ID sticks to an account between broadcasts, so its presence proves the account has a LIVE room, not that anything is happening in it. `is_live` is only `true` when TikTok reports the live-now status *and* returns an actual room record. Never infer "live" from a non-empty `room_id`.

**One username in my list is wrong. Does the run fail?**
No. Each account is checked on its own and a failure is logged as a warning before the run moves on. A watchlist with one dead handle still returns every other row.

**Do I get a row for accounts that are offline?**
Yes -- with `is_live: false` and the live fields left empty. That is what makes it usable on a schedule: every run produces the same rows and you diff the flag.

**Can I get viewer counts or the chat?**
No. This is a status snapshot, not a live stream reader. What you get is whether they are on, since when, and under what title.

**How often can I poll it?**
As often as your schedule allows -- there is no state carried between runs. Each run is an independent check.

### Related Actors

| Actor | Purpose |
|---|---|
| [Bulk TikTok Profile Scraper](https://apify.com/toolzerhub/tiktok-profile-scraper) | Full profile detail for the accounts on your watchlist |
| [TikTok Profile Videos Scraper](https://apify.com/toolzerhub/tiktok-profile-videos-scraper) | What they post when they are not live |

# Actor input Schema

## `username` (type: `array`):

TikTok usernames without @ or full https://www.tiktok.com/@username profile URLs, one per line.

## `room_id` (type: `string`):

Optional. A TikTok LIVE room ID, if you already have one. Leave blank and give a Username instead — a room ID appears in no public TikTok URL, so there is normally no way to obtain one by hand.

## Actor input object example

```json
{
  "username": [
    "khaby.lame",
    "https://www.tiktok.com/@tiktok"
  ]
}
```

# Actor output Schema

## `dataset` (type: `string`):

Every record collected during this run

# 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 = {
    "username": [
        "khaby.lame"
    ],
    "room_id": ""
};

// Run the Actor and wait for it to finish
const run = await client.actor("toolzerhub/tiktok-live-status-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 = {
    "username": ["khaby.lame"],
    "room_id": "",
}

# Run the Actor and wait for it to finish
run = client.actor("toolzerhub/tiktok-live-status-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 '{
  "username": [
    "khaby.lame"
  ],
  "room_id": ""
}' |
apify call toolzerhub/tiktok-live-status-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,toolzerhub/tiktok-live-status-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/DYtQOo6NIFvBleEYz/builds/HfUHA55D9YTxMunRP/openapi.json
