# Facebook Live Stream Scraper (`crawlix/facebook-live-stream-scraper`) Actor

Facebook Live Stream Scraper extracts real-time broadcast titles, live video urls, concurrent viewer counts, streamer names, channels, game categories, thumbnails, and broadcast status. Supports ranking by suggested or viewer volume with country proxy routing.

- **URL**: https://apify.com/crawlix/facebook-live-stream-scraper.md
- **Developed by:** [Crawlix](https://apify.com/crawlix) (community)
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 live streams

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

The **facebook live stream scraper** is an enterprise-grade data extraction tool built to collect structured information from public live video streams on Facebook. Operating in real time across global broadcasts, this actor extracts live stream titles, stream links, concurrent viewer counts, broadcaster profiles, attributed video games, high-resolution preview thumbnails, and broadcast status. Designed for data engineers, market researchers, content creators, and competitive intelligence teams, the **facebook live stream scraper** turns ephemeral live streaming activity into query-ready datasets.

Key capabilities of the **facebook live stream scraper** include:

- **Real-Time Stream Telemetry**: Harvest live stream titles, canonical watch links, and live broadcast flags.
- **Concurrent Audience Tracking**: Extract active live viewer counts to evaluate stream popularity and audience engagement spikes.
- **Broadcaster & Channel Attribution**: Identify streamer names, user/page IDs, vanity profile URLs, and avatar links.
- **Game & Category Tagging**: Capture tagged game titles, game IDs, vanity links, and catalog page URLs.
- **Visual Asset Discovery**: Extract high-resolution live preview thumbnails and asset IDs for computer vision or cataloging.
- **Dual Sorting Modes**: Rank broadcasts by default algorithmic suggestion or sort strictly by highest concurrent live viewers.
- **Global Proxy Routing**: Route connections through 47+ country gateways to view region-specific live streaming feeds.
- **Clean Zero-Null Output**: Unpopulated optional fields are automatically omitted from output records to maximize dataset cleanliness.

***

### 2. Practical Use Cases & Applications

The **facebook live stream scraper** powers diverse commercial, analytical, and operational workflows across industries:

#### A. Esports & Streamer Analytics

Track live gaming competitions, tournament broadcasts, and streamer audience numbers. By executing the **facebook live stream scraper** on a recurring schedule, analytics platforms can map viewer trends, peak concurrent users, and popular game titles across regional esports leagues.

#### B. Influencer Identification & Talent Scouting

Talent agencies and gaming sponsors use the **facebook live stream scraper** to identify high-velocity creators and rising streamers. Sort broadcasts by live viewers to spot creators drawing large concurrent audiences in specific gaming titles.

#### C. Game Publisher Intelligence

Game studios track concurrent viewer engagement for newly launched titles or major game updates. Comparing viewer metrics across different gaming titles with the **facebook live stream scraper** reveals player mindshare and real-time community interest.

#### D. Digital Media Monitoring & Content Aggregation

Media networks and gaming portals aggregate live video streams into centralized dashboards. The **facebook live stream scraper** feeds live metadata, streamer handles, and stream links into external web widgets and community notification bots.

#### E. Competitive Benchmarking Across Streaming Platforms

Market intelligence firms utilize the **facebook live stream scraper** to benchmark creator distribution, broadcast durations, and audience density against competing video and streaming ecosystems.

***

### 3. Target Audiences & Engineering Teams

The **facebook live stream scraper** is engineered specifically for:

- **Data Engineering Teams**: Looking for dependable, production-ready live streaming data pipelines with zero maintenance overhead.
- **Gaming & Esports Analysts**: Researching community engagement, game title popularity, and streamer market share.
- **Brand Marketing Agencies**: Identifying brand placement opportunities and evaluating gaming influencer reach.
- **Software Developers**: Integrating live video directories and streamer telemetry into custom applications.
- **Academic & Social Researchers**: Studying real-time social broadcasting behavior and digital media trends.

***

### 4. Key Architectural Advantages & Reliability

The **facebook live stream scraper** incorporates architectural design principles that guarantee enterprise reliability:

1. **Strict Deduplication Architecture**: Every extracted stream is checked against an internal identifier cache. The **facebook live stream scraper** ensures that duplicated stream records are never counted toward your extraction target or billed.
2. **Dynamic Target Completion**: The engine continues gathering streaming edges until your exact requested volume of unique live stream records is reached, or until active broadcasts are genuinely exhausted.
3. **Failsafe Graceful Shutdown**: If a user cancels a run or an external spending threshold is encountered, the **facebook live stream scraper** captures all currently collected records and exits with a successful completion code.
4. **Proprietary Filter Shielding**: Filter inputs and internal ranking mappings are abstracted to protect data integrity and prevent copycat interference.
5. **Polite Adaptive Pacing**: Connection intervals dynamically adjust to prevent connection throttling and ensure stable extraction throughput.
6. **Zero Browser Overhead**: Streamlined network execution achieves exceptional speed while minimizing container compute consumption.

***

### 5. Quickstart: Step-by-Step Execution Guide

Deploying the **facebook live stream scraper** on Apify takes less than two minutes:

1. **Access the Console**: Open the **facebook live stream scraper** on the Apify Store.
2. **Select Sorting Order**: Choose between `Suggested (Default Relevance)` or `Viewers (Most viewers first)`.
3. **Specify Collection Volume**: Set your `max_items` target (e.g. 50 streams for a quick audit or 500 for a comprehensive census).
4. **Choose Connection Country**: Pick a country gateway closest to your audience (default is `United States (US)`).
5. **Run the Actor**: Click the green **Start** button. Watch real-time terminal progress indicators as live broadcasts are collected.
6. **Export Your Dataset**: Download the extracted records in JSON, CSV, Excel, or Parquet format directly from the Apify Dataset tab.

***

### 6. Input Parameters & Configuration Reference

The **facebook live stream scraper** features a streamlined, intuitive input schema designed for immediate execution:

> \[!TIP]
> **Pay-Per-Event Billing Transparency**:
>
> - **Base Charge (`live_stream`)**: Billed per unique active live video stream broadcast successfully collected and saved to your dataset.
> - **Free Features (Zero Surcharge)**: `Sort by`, `Max Items to Scrape`, and `Connection Country` are completely free with zero extra surcharge.
> - **Surcharged Option (`($)`)**:
>   - **Live Stream Details (`stream_details`)**: Billed per live stream when `Scrape Live Stream Details ($)` is enabled and deep technical specifications, full description, external links & mentions, reactions breakdown, and live chat comments are successfully extracted.
>   - Charges apply strictly on success: if details cannot be scraped for a stream, zero surcharge events are billed for that item.

| Parameter Name | Field Key | Type | Default | Description |
|---|---|---|---|---|
| **Sort by** | `sort_by` | Select | `suggested` | Ranking order: `Suggested (Default Relevance)` uses algorithmic discovery; `Viewers (Most viewers first)` ranks streams by active concurrent audience. |
| **Max Items to Scrape** | `max_items` | Integer | `50` | Maximum quantity of live streams to collect. Free users are capped at 50 records; paying users enjoy unlimited collection capacity. |
| **Scrape Live Stream Details ($)** | `scrape_live_stream_details` | Boolean | `false` | When enabled, visits each stream link to harvest full overview, complete description, external links & mentions, video resolution & stream URLs, reactions breakdown (like, love, wow, haha, sad, angry, care), live viewer counts, publisher metadata, product/shopping details, and all available live chat comments. Incurs an extra charge per live stream with details successfully collected (see Apify Pricing tab). |
| **Connection Country** | `proxyCountry` | Select | `US` | Origin country for network connections. Choose from 47 supported countries worldwide. |

#### Sample Input Payload (`input.json`)

```json
{
  "sort_by": "viewers",
  "max_items": 50,
  "scrape_live_stream_details": true,
  "proxyCountry": "US"
}
```

#### Advanced Usage Examples

##### Default Algorithmic Discovery

Collect top suggested broadcasts across Facebook Gaming:

```json
{
  "sort_by": "suggested",
  "max_items": 50,
  "scrape_live_stream_details": false,
  "proxyCountry": "US"
}
```

##### High-Audience Esports Tracking with Live Chat

Filter for streams with the highest active viewership and harvest stream description, links, and all available chat messages:

```json
{
  "sort_by": "viewers",
  "max_items": 100,
  "scrape_live_stream_details": true,
  "proxyCountry": "US"
}
```

***

### 7. Extracted Dataset Schema & Field Definitions

The **facebook live stream scraper** structures all extracted records into standardized, validated JSON objects. Following the clean output standard, optional fields that lack value for a particular stream are omitted from that row rather than returning blank values.

#### Fields That Most of the Time May Come in the Output

*These primary fields are consistently populated across live video broadcasts:*

| Field Name | Type | Description |
|---|---|---|
| `id` | String | Unique identifier of the live stream video. |
| `title` | String | Broadcast title headline or stream description. |
| `url` | String | Direct canonical link to watch the live stream. |
| `broadcast_status` | String | Live status designation (e.g., `LIVE`). |
| `viewer_count` | Integer | Current concurrent active audience watching the broadcast. |
| `is_live_streaming` | Boolean | Confirmation that the broadcast is actively transmitting live video. |
| `streamer_name` | String | Display name of the broadcasting channel or creator. |
| `streamer_id` | String | Unique user or page ID of the streamer. |
| `thumbnail_url` | String | High-resolution preview thumbnail image URL. |
| `sort_order` | String | Sorting criteria applied during extraction (`suggested` or `viewers`). |
| `scraped_at` | String | ISO 8601 timestamp marking when the data was extracted. |

#### Fields Less Often Available (Present When Provided by the Listing or Broadcaster)

*These secondary fields appear conditionally when the broadcaster assigns a game or provides extended metadata:*

| Field Name | Type | Description |
|---|---|---|
| `game_name` | String | Title of the video game attributed to the live broadcast. |
| `game_id` | String | Facebook identifier of the tagged video game. |
| `game_vanity` | String | Vanity handle of the tagged video game directory. |
| `game_url` | String | Link to the catalog directory page for the tagged game. |
| `streamer_vanity` | String | Vanity username handle of the streamer page or profile. |
| `streamer_profile_url` | String | Direct link to the broadcaster's profile or page. |
| `streamer_avatar_url` | String | Profile picture URL of the broadcasting creator. |
| `thumbnail_id` | String | Identifier of the stream's preferred thumbnail visual asset. |
| `description` | String | Full text description and message caption of the live stream broadcast. |
| `description_links` | Array | External URLs, social links, merchandise stores, and sponsor links extracted from description text. |
| `description_mentions` | Array | @ handles and profiles mentioned in the live stream caption. |
| `description_hashtags` | Array | # hashtags included in the live stream caption. |
| `publish_time` | String | ISO 8601 timestamp when the live broadcast commenced. |
| `publish_timestamp` | Integer | Unix epoch seconds when the broadcast started. |
| `video_width` | Integer | Horizontal video stream resolution in pixels. |
| `video_height` | Integer | Vertical video stream resolution in pixels. |
| `dash_manifest_url` | String | Direct dynamic adaptive streaming manifest URL. |
| `browser_native_hd_url` | String | Direct HD video stream playback link. |
| `browser_native_sd_url` | String | Direct standard definition video stream playback link. |
| `captions_available` | Array | Available subtitle and caption locales. |
| `streamer_category` | String | Broadcaster Page category (e.g. `GAMING_VIDEO_CREATOR`). |
| `streamer_is_verified` | Boolean | Whether broadcaster holds verified badge or professional features. |
| `reaction_count` | Integer | Total viewer reactions count submitted on the broadcast. |
| `reactions_breakdown` | Object | Breakdown of individual reaction counts (`like`, `love`, `wow`, `haha`, `sad`, `angry`, `care`). |
| `share_count` | Integer | Number of times the live stream broadcast was shared. |
| `comment_count` | Integer | Total comments count recorded on the live stream. |
| `has_commerce_attachment` | Boolean | Whether shoppable products or commerce items are attached. |
| `tagged_products` | Array | List of tagged commerce products (name, price, currency, url, image). |
| `broadcast_id` | String | Internal Facebook broadcast identifier for the live video transmission. |
| `broadcaster_origin` | String | Origin ingest client of the live broadcast (e.g. `hil`, `mobile`, `web`). |
| `permalink_url` | String | Direct permalink URL to the live stream post. |
| `is_gaming_video` | Boolean | Whether the live stream is classified under Facebook Gaming. |
| `is_stars_enabled` | Boolean | Whether Facebook Stars tipping/monetization is activated for this broadcast. |
| `are_comments_disabled` | Boolean | Whether the broadcaster disabled live chat and comments. |
| `comments_collected_count` | Integer | Number of top-level live chat comments harvested. |
| `comments_has_more` | Boolean | Whether further comments remain available beyond the harvested count. |
| `comments` | Array | Harvested list of live stream comments with author metadata and timestamps. |

#### Authentic Sample Record Produced by the Facebook Live Stream Scraper

```json
{
  "id": "1912314923067754",
  "broadcast_id": "1714098420076645",
  "title": "🔴LIVE - ROB RUN | GETTING RICH | PASSION STREAM",
  "url": "https://www.facebook.com/watch/?v=1912314923067754",
  "permalink_url": "https://www.facebook.com/ZLaner/videos/1912314923067754/",
  "broadcast_status": "LIVE",
  "broadcaster_origin": "hil",
  "viewer_count": 1842,
  "is_live_streaming": true,
  "is_gaming_video": true,
  "is_stars_enabled": false,
  "game_name": "Call of Duty: Warzone",
  "game_id": "1494097103958822",
  "game_vanity": "warzone",
  "game_url": "https://www.facebook.com/gaming/warzone/",
  "streamer_name": "ZLaner",
  "streamer_id": "100044295106378",
  "streamer_vanity": "ZLaner",
  "streamer_profile_url": "https://www.facebook.com/ZLaner/",
  "streamer_avatar_url": "https://scontent.xx.fbcdn.net/v/t39.30808-1/pfp.jpg",
  "streamer_category": "GAMING_VIDEO_CREATOR",
  "streamer_is_verified": true,
  "thumbnail_url": "https://scontent.xx.fbcdn.net/v/t15.5256-10/stream_thumb.jpg",
  "description": "🔴LIVE - ROB RUN | GETTING RICH | PASSION STREAM\n\n📷 Instagram: instagram.com/zlaner/\n🐤 Twitter: x.com/zlaner\n💬 Discord: discord.gg/Spf2gcM7\n♦ My Sponsors ♦\n🥤MONSTER ENERGY🥤\n🎮 SCUF Gaming 🎮\nhttp://scuf.co/ZLaner\nUse code \"ZLANER\" for 5% off",
  "description_links": [
    "instagram.com/zlaner/",
    "x.com/zlaner",
    "discord.gg/Spf2gcM7",
    "http://scuf.co/ZLaner"
  ],
  "publish_time": "2026-11-11T07:15:00+00:00",
  "publish_timestamp": 1794381300,
  "video_width": 1920,
  "video_height": 1080,
  "dash_manifest_url": "https://video.xx.fbcdn.net/dash/live-manifest.mpd",
  "browser_native_hd_url": "https://video.xx.fbcdn.net/v/live-hd.mp4",
  "browser_native_sd_url": "https://video.xx.fbcdn.net/v/live-sd.mp4",
  "reaction_count": 161,
  "reactions_breakdown": {
    "like": 136,
    "love": 22,
    "haha": 2,
    "care": 1
  },
  "share_count": 4,
  "comment_count": 229,
  "comments_collected_count": 2,
  "comments_has_more": true,
  "comments": [
    {
      "id": "Y29tbWVudDoxOTEyMzE0OTIzMDY3NzU0XzE0MDEzMjM4NTU0MDk5MzM=",
      "url": "https://www.facebook.com/watch/?v=1912314923067754&comment_id=1401323855409933",
      "text": "ITS HERE! Grab a piece from my newest collection! https://zlaner.com/ 🚒🔥",
      "author_name": "ZLaner's chatbot",
      "author_id": "1066000253830917",
      "is_bot_or_ai": true,
      "created_at": "2026-11-11T08:02:48+00:00",
      "timestamp_in_video": 2868,
      "written_while_video_was_live": true,
      "reaction_count": 5
    },
    {
      "id": "Y29tbWVudDoxOTEyMzE0OTIzMDY3NzU0XzE2NzY5MDY0NTA0ODc5Mzk=",
      "url": "https://www.facebook.com/watch/?v=1912314923067754&comment_id=1676906450487939",
      "text": "W in the chat! Let's go!",
      "author_name": "Jay Ɩşıklı",
      "author_id": "pfbid0Mki6DDPhzzwr5PNxLZfKMnRNjwYkBYovh851GAciuDKsgRbEuso8fPYqQDftSZRYl",
      "is_bot_or_ai": false,
      "created_at": "2026-11-11T07:57:22+00:00",
      "timestamp_in_video": 2542,
      "written_while_video_was_live": true,
      "reaction_count": 2
    }
  ],
  "sort_order": "viewers",
  "scraped_at": "2026-11-11T08:10:00+00:00"
}
```

***

### 8. Operational Constraints & Platform Limits

When designing workflows with the **facebook live stream scraper**, keep these operational dynamics in mind:

- **Live Stream Fluidity**: Live broadcasts start and end dynamically. An active broadcast captured at the beginning of an extraction may finish its transmission minutes later.
- **Global Concurrency Volume**: Unlike static video catalogs with millions of indexed recordings, real-time live gaming streams typically number between 145 and 250 concurrent broadcasts globally at any single moment. Requesting higher volumes will collect 100% of all currently online broadcasts.
- **Viewer Count Volatility**: Live concurrent viewers fluctuate continuously throughout a broadcast as viewers join, leave, or follow host raids.
- **Free Tier Allocation**: Free Apify accounts collect up to 50 items per run; upgrading to any paid Apify tier unlocks unlimited capacity.

***

### 9. Best Practices & Performance Optimization

To extract maximum value from the **facebook live stream scraper**, adopt these field-proven practices:

1. **Schedule Recurring Runs**: Because streams are real-time, configure cron schedules (e.g. every 30 or 60 minutes) to capture ongoing changes in audience sizes and newly launched broadcasts.
2. **Use Viewer-Based Sorting**: If your objective is tracking top esports events or top gaming influencers, select `viewers` sorting to prioritize high-impact streams at the top of your dataset.
3. **Target Region-Specific Streams**: Select an appropriate `proxyCountry` (such as `BR`, `PH`, `VN`, or `US`) to observe region-specific streaming behavior and localized creator ecosystems.
4. **Automate Webhook Alerts**: Connect Apify webhooks to your Slack, Discord, or database endpoints to notify your team when major creators go live.
5. **Export Directly to Cloud Storage**: Feed dataset outputs directly into Amazon S3, Google Cloud Storage, or Snowflake for longitudinal trend analysis.

***

### 10. Troubleshooting & Frequently Asked Questions

#### Why did my run return fewer streams than my max_items target?

The **facebook live stream scraper** collects every active live stream available on the platform up to your target. However, because live broadcasts depend on creators streaming in real time, the total number of live gaming broadcasts online at any given moment is finite (typically ~145 to 200 streams globally). When all active streams have been harvested, the scraper finishes cleanly.

#### Can the scraper access private or invite-only streams?

No. The **facebook live stream scraper** strictly extracts publicly broadcasted video streams. Private group streams or unlisted broadcasts are never touched.

#### Are viewer counts updated dynamically?

Each record captures the viewer count at the exact moment of extraction, documented in the `scraped_at` timestamp.

#### Does the actor require Facebook login cookies?

No. The **facebook live stream scraper** functions completely anonymously without requiring user accounts or authentication tokens.

***

### 11. Code Integration: Python, JavaScript & REST API

Integrate the **facebook live stream scraper** seamlessly into your existing tech stack:

#### Python Integration via Apify Client

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")

run_input = {
    "sort_by": "viewers",
    "max_items": 100,
    "proxyCountry": "US"
}

run = client.actor("facebook-live-stream-scraper").call(run_input=run_input)

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(f"[{item.get('viewer_count')} viewers] {item.get('streamer_name')}: {item.get('title')}")
```

#### JavaScript / Node.js Integration

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: '<YOUR_API_TOKEN>' });

const input = {
    sort_by: 'viewers',
    max_items: 100,
    proxyCountry: 'US'
};

const run = await client.actor('facebook-live-stream-scraper').call(input);
const { items } = await client.dataset(run.defaultDatasetId).listItems();

items.forEach(stream => {
    console.log(`${stream.streamer_name} streaming to ${stream.viewer_count} viewers: ${stream.url}`);
});
```

#### Direct REST API Execution via cURL

```bash
curl --request POST \
  --url "https://api.apify.com/v2/acts/facebook-live-stream-scraper/runs?token=<YOUR_API_TOKEN>" \
  --header "Content-Type: application/json" \
  --data '{
    "sort_by": "viewers",
    "max_items": 50,
    "proxyCountry": "US"
  }'
```

***

### 12. Technical Architecture Glossary

- **Concurrent Viewer Count (`viewer_count`)**: The real-time metric measuring the quantity of unique users simultaneously watching a live broadcast.
- **Broadcast Status (`broadcast_status`)**: The platform state of the video feed, designated as `LIVE` during active real-time transmission.
- **Attributed Game (`game_name`)**: The specific video game title designated by the broadcaster as the focus of the stream.
- **Streamer Channel (`streamer_name`)**: The public identity, creator profile, or community page delivering the broadcast.
- **Preview Thumbnail (`thumbnail_url`)**: A real-time image frame generated to represent the active video broadcast across directory feeds.

***

### 13. Complementary Scrapers in the Ecosystem

Expand your market intelligence and social media extraction toolkit with these specialized scrapers:

- **Facebook Group Scraper**: Extract public group metadata, discussion feed posts, threaded comments, child replies, calendar events, and community media albums.
- **Facebook Games Scraper**: Extract the comprehensive Facebook video games catalog, follower metrics, and overall game directory information.
- **Facebook Marketplace Scraper**: Extract classified listings, product pricing, seller details, and geo-targeted product deals.

***

### 14. Support & Feedback Channels

We actively maintain the **facebook live stream scraper** to ensure continuous compatibility with platform layout updates.

If you encounter unexpected behavior, missing fields, or wish to suggest new capabilities, submit a detailed report via the **Issues** tab on the Apify Actor Console. Please include your **Run ID** and input configuration to expedite investigation.

# Actor input Schema

## `sort_by` (type: `string`):

Order of live stream results. Suggested ranks by Facebook's default discovery algorithm. Viewers ranks live video streams by highest concurrent viewer count first.

## `max_items` (type: `integer`):

Maximum number of live video streams to collect. Total available broadcasts depend on active real-time streamers (typically ~145 to 200 streams online globally at any moment); requesting higher quantities collects all active live streams. Free Apify users collect up to 50 items per run; paying users have no limit.

## `scrape_live_stream_details` (type: `boolean`):

When enabled, visits each live stream link to extract full stream overview, complete description, external links & mentions, video resolution & stream URLs, reactions breakdown (like, love, wow, haha, sad, angry, care), live viewer counts, publisher metadata, product/shopping details, and all available live chat comments with multi-batch harvesting. Incurs an extra charge per live stream with details successfully collected (see Apify Pricing tab).

## `proxyCountry` (type: `string`):

The country your run connects from. Pick the location closest to the target audience. If a country is not available, the run connects from the United States automatically.

## Actor input object example

```json
{
  "sort_by": "suggested",
  "max_items": 50,
  "scrape_live_stream_details": false,
  "proxyCountry": "US"
}
```

# Actor output Schema

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

Every live stream collected in this run. Use the Export button on the Output tab to download in CSV, Excel, JSON, or XML format.

# 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 = {
    "sort_by": "suggested",
    "max_items": 50,
    "scrape_live_stream_details": false,
    "proxyCountry": "US"
};

// Run the Actor and wait for it to finish
const run = await client.actor("crawlix/facebook-live-stream-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 = {
    "sort_by": "suggested",
    "max_items": 50,
    "scrape_live_stream_details": False,
    "proxyCountry": "US",
}

# Run the Actor and wait for it to finish
run = client.actor("crawlix/facebook-live-stream-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 '{
  "sort_by": "suggested",
  "max_items": 50,
  "scrape_live_stream_details": false,
  "proxyCountry": "US"
}' |
apify call crawlix/facebook-live-stream-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,crawlix/facebook-live-stream-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/tO0vOoKCN7biyjwgH/builds/MJMMrU2MkfoH6NU1P/openapi.json
