# Facebook Events Scraper - Public Events, Dates & Hosts (`socialscrapers/facebook-events-scraper`) Actor

Facebook events scraper, no login: public events from event links, any Page's upcoming and past events (all, not just 8), any city or keyword search. Name, dates with time zone, place and coordinates, hosts, description, cover, tickets, going and interested. JSON, CSV, Excel. $5.00 per 1,000 events.

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

## Pricing

from $4.00 / 1,000 events

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/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

This **Facebook Events Scraper** extracts public Facebook events: name, start and end date and time with the time zone, place with address and map coordinates, online or in person, hosts with their links, description, cover image, ticket link, how many people responded (and interested and going where Facebook shows them), categories and the event link. Give it event links, a Page's events (every upcoming or past event, not just the first 8), any city's events, or search keywords, and download clean data as JSON, CSV or Excel. **No Facebook account, no login, no cookies.** It costs **$5.00 per 1,000 events**.

> 💡 **Need a feature that isn't here? Just ask.** Open an issue on the **Issues** tab and tell us what you need: a new field, filter, input type or output format. We build requested features fast, usually within 24 hours, at no extra cost.

> ⭐ **Found it useful?** A short review on the **Reviews** tab helps other people find this scraper, and tells us what to build next.

### What does Facebook Events Scraper do?

- 📅 **Event links**: any public event, or one date of a repeating event, with every detail its page shows.
- 🏛️ **A Page's events, all of them**: paste a Page or profile link and get its whole Upcoming list, its Past list, or both. Facebook's own page shows 8 at a time; this scraper reads the list to its end.
- 🌆 **Any city's events**: write a city (`Austin, Texas`, `Berlin, Germany`) and get the events Facebook lists there, page after page: hundreds or thousands in a big city.
- 🔎 **Keyword search**: `jazz`, `yoga`, `food festival`. Combined with cities, you get every matching event in each city; alone, Facebook's own event search, day by day.
- 🗓️ **Date filter**: today, tomorrow, this weekend, this week or next week.
- 🕒 **Dates you can use**: start and end in UTC and in the event's own time zone, with the zone's name.
- 📍 **Places you can map**: venue, street address, city and latitude / longitude.
- 🧹 **Clean, deduplicated data**: an event that several inputs find is saved and charged once.
- 💸 **Pay only for events saved**: no charge for links that show nothing, cities with no match or events left out by your keywords, and the run stops cleanly at the spending limit you set.

Because it runs on the Apify platform, you also get the API, scheduling, integrations, monitoring and proxies without writing any code.

### What data can you extract from Facebook events?

One dataset item per event. Every field is always present: `null` (or an empty list) means Facebook shows nothing for it.

| Field | Type | Description |
|---|---|---|
| `url` | string | Link to the event. |
| `id` | string | The event's number on Facebook. |
| `name` | string | Event name. |
| `dateTimeSentence` | string | The date line as Facebook shows it, e.g. "Saturday, November 28, 2026 at 11:00 AM – 9:15 PM AEDT". |
| `utcStartDate`, `utcEndDate` | string | Start and end, ISO 8601 in UTC (`utcEndDate` is null when the host set no end time). |
| `localStartDate`, `localEndDate` | string | Start and end in the event's own time zone, with its offset: `2026-11-28T11:00:00+11:00`. |
| `timezone` | string | The event's time zone as Facebook names it (`UTC+11`, `EST`). |
| `duration` | string | "3 hr", "2 days". |
| `isOnline`, `onlineType`, `onlineUrl` | boolean, string, string | Online event, how it is held (`FB_LIVE`, `THIRD_PARTY`…) and its link when public. |
| `isPast`, `isCanceled` | boolean | The event is over / was cancelled. |
| `eventFrequency`, `parentEventId` | string | `SINGLE`, or how a repeating event repeats; for one date of a series, the series' number. |
| `location` | object | `id`, `name`, `contextualName`, `url` (the venue's Page), `placeType`, `latitude`, `longitude`, `streetAddress`, `city`, `cityId`. Null for online events. |
| `address` | string | The full address on one line, when Facebook shows one. |
| `city` | string | The event's city. |
| `organizedBy` | string | "Event by …" as Facebook writes it. |
| `hosts` | array | Each host Page or profile: `id`, `name`, `url`, `type`, `isVerified`, `profilePictureUrl`. |
| `description` | string | The full description. |
| `externalLinks` | array | Links in the description. |
| `imageUrl`, `imageCaption` | string | Cover image (full size) and its alt text. |
| `ticketUrl` | string | Ticket link, when the host added one. |
| `usersResponded` | number | People who answered Interested or Going. |
| `usersInterested`, `usersGoing` | number | Interested and going, for events found through a city (Facebook shows them in its city lists). |
| `discoveryCategories` | array | Facebook's categories for the event (Music, Foods, …). |
| `eventKind` | string | `PUBLIC_TYPE` for a public event. |
| `inputUrl` | string | The input that found the event: its link, Page, city or keywords. |
| `scrapedAt` | string | When it was read. |

### How to scrape Facebook events

1. Click **Try for free** (or **Start**) on this page.
2. Add what to read, in any mix:
   - **Event, Page or city URLs**: event links, Page or profile links (or their events tab), city events links (`facebook.com/events/explore/…`), event search links.
   - **Cities**: one per line, with the state or country (`Austin, Texas`, `London, United Kingdom`).
   - **Search keywords**: one per line.
3. Pick a **Date filter** for cities and keywords, and for Pages whether you want their **upcoming**, **past** or **both** lists.
4. Set **Max events per input** (for example `500`, or `0` for no limit).
5. Click **Start**, and download the events from the **Output** tab as JSON, CSV, Excel or HTML, or read them through the API.

### How much does it cost to scrape Facebook events?

**$5.00 per 1,000 events**, platform usage and proxies included. You pay one `event` per event saved:

| Your Apify plan | Per 1,000 events |
|---|---|
| Free and Starter (Bronze) | $5.00 |
| Scale (Silver) | $4.50 (−10%) |
| Business (Gold) | $4.00 (−20%) |

Each run also carries a start charge of $0.001.

Three examples:

- **Every upcoming event of 20 venues' Pages**, about 30 each = 600 events = **$3.00**.
- **This weekend's events in 5 cities**, 200 each = 1,000 events = **$5.00**.
- **A weekly check of "jazz" in 3 cities**, about 40 new events a week = 120 events = **$0.60 a week**.

Links that show nothing, cities with no match and events your keywords leave out cost nothing. To cap a run's cost, set **Maximum cost per run** in the run options: the scraper stops cleanly once it is reached and keeps everything scraped so far. Apify's free plan comes with monthly usage credit, enough to try this scraper on hundreds of events.

### Input example

```json
{
    "startUrls": [
        { "url": "https://www.facebook.com/events/1824772572171967/" },
        { "url": "https://www.facebook.com/sydneyoperahouse/past_hosted_events" }
    ],
    "locations": ["Austin, Texas", "Berlin, Germany"],
    "searchQueries": ["jazz"],
    "dateFilter": "this_week",
    "pageEvents": "upcoming",
    "maxEvents": 200
}
```

### Output example

```json
{
    "url": "https://www.facebook.com/events/1824772572171967/",
    "id": "1824772572171967",
    "name": "Martin Place Christmas Markets",
    "dateTimeSentence": "Saturday, November 28, 2026 at 11:00 AM – 9:15 PM AEDT",
    "utcStartDate": "2026-11-28T00:00:00.000Z",
    "utcEndDate": "2026-11-28T10:15:00.000Z",
    "localStartDate": "2026-11-28T11:00:00+11:00",
    "localEndDate": "2026-11-28T21:15:00+11:00",
    "timezone": "UTC+11",
    "duration": "10 hr 15 min",
    "isOnline": false,
    "onlineType": null,
    "onlineUrl": null,
    "isPast": false,
    "isCanceled": false,
    "eventFrequency": "SINGLE",
    "parentEventId": null,
    "location": {
        "id": "133440353363036",
        "name": "Martin Place",
        "contextualName": "Martin Place",
        "url": "https://www.facebook.com/pages/Martin-Place/133440353363036",
        "placeType": "PLACE",
        "latitude": -33.86768,
        "longitude": 151.20966,
        "streetAddress": "Martin Place",
        "city": "Sydney, NSW, Australia",
        "cityId": "110884905606108"
    },
    "address": "Martin Place, Sydney, NSW, Australia 2000",
    "city": "Sydney, Australia",
    "organizedBy": "Event by Cambridge Markets",
    "hosts": [
        {
            "id": "100064155390323",
            "name": "Cambridge Markets",
            "url": "https://www.facebook.com/cambridgemarketssydney",
            "type": "User",
            "isVerified": false,
            "profilePictureUrl": "https://scontent.xx.fbcdn.net/v/t39.30808-1/…"
        }
    ],
    "description": "MARTIN PLACE CHRISTMAS MARKETS 2026\n\n28 November – 24 December 2026 …",
    "externalLinks": [],
    "imageUrl": "https://scontent.xx.fbcdn.net/v/t39.99422-6/…",
    "imageCaption": "May be an image of christmas tree and lighting",
    "ticketUrl": null,
    "usersResponded": 2975,
    "usersInterested": 2811,
    "usersGoing": 164,
    "discoveryCategories": [],
    "eventKind": "PUBLIC_TYPE",
    "inputUrl": "Sydney, Australia",
    "scrapedAt": "2026-11-26T10:00:00.000Z"
}
```

### Use cases

- **Event listings and calendars**: fill a city guide, newsletter or app with what's on this weekend, with dates, places and ticket links.
- **Venue and promoter monitoring**: follow the Pages of venues, clubs, theatres and festivals and get every new event as it is announced.
- **Lead generation**: find organisers and venues that run events in your niche, with their Page links.
- **Market research**: count events by city, category, date and popularity (responses, interested, going).
- **Tourism and hospitality**: know what draws crowds near your hotel or restaurant, and when.
- **Datasets**: event names, descriptions, categories and places for classification or recommendation models.

### Use Facebook Events Scraper via API, Python, JavaScript and integrations

Run the scraper from your own code with the [Apify API](https://docs.apify.com/api/v2) or an Apify client:

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

const client = new ApifyClient({ token: 'MY-APIFY-TOKEN' });
const run = await client.actor('socialscrapers/facebook-events-scraper').call({
    locations: ['Austin, Texas'],
    dateFilter: 'this_weekend',
    maxEvents: 200,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

```python
from apify_client import ApifyClient

client = ApifyClient("MY-APIFY-TOKEN")
run = client.actor("socialscrapers/facebook-events-scraper").call(
    run_input={"startUrls": [{"url": "https://www.facebook.com/sydneyoperahouse/events"}], "pageEvents": "both", "maxEvents": 0}
)
for event in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(event["localStartDate"], event["name"], event["url"])
```

- **Schedules**: check a city or your venues' Pages every day or week with an Apify schedule.
- **Integrations**: send events to Google Sheets, Slack, Airtable, Make, Zapier or n8n, or trigger your own webhook when a run finishes.
- **AI agents**: call the scraper as a tool through the Apify MCP server.

### Limits

- **What a logged-out visitor sees.** The scraper never logs in, so it sees what Facebook shows anyone who is not signed in: public events only. Private events, and group events (shown to group members only), are not available.
- **Interested and going.** An event's own page shows a logged-out visitor only how many people responded (`usersResponded`). Facebook's city lists also show interested and going, so events found through a city have them; where Facebook rounds them ("2.8K"), the exact figure is worked out from the response count when one of the two is exact.
- **Search keywords alone** use Facebook's own event search, which shows a logged-out visitor up to about 7 events per search, near where the request comes from. The scraper searches each day of the next 30 days (or of your Date filter) to get more. For one city's events, add the city under **Cities**: keywords then search that city's whole list.
- **City names.** Write a city with its state or country (`Portland, Oregon`, not just `Portland`). The log says which city each name was read as.
- **Online events.** Facebook shows logged-out visitors no list of online events; online events still come with their own links, Pages, cities and searches.
- **Image links expire.** Cover and picture URLs point to Facebook's CDN, which expires links after a while; download images promptly if you need them.

### FAQ

#### Is it legal to scrape Facebook events?

This scraper only reads public events, the way Facebook shows them to anyone who isn't logged in. You are responsible for using the data lawfully. Events can include the names of hosts who are people, which are personal data under laws such as the GDPR (EU) and the CCPA (California), so collect only what you need for a legitimate purpose. Apify explains the basics in [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/).

#### Do I need a Facebook account or cookies?

No. Facebook Events Scraper reads only what Facebook shows to visitors who are not logged in, so no account of yours is ever at risk.

#### How many events can I get from a Page?

All of them: its whole Upcoming list, its whole Past list (venues often have thousands), or both. Facebook's own page shows the first 8; the scraper reads on to the end. Set **Max events per input** to `0` for no limit.

#### How many events can I get for a city?

As many as Facebook lists for it: hundreds or thousands in a big city. Use the **Date filter** for today, tomorrow, this weekend, this week or next week.

#### Why did my run finish with fewer events, or none?

The Page has fewer events in that list, the city has fewer events matching your keywords or dates, the city name was not recognised (write it as City, State or City, Country), or an event link shows nothing to logged-out visitors (private, removed or never existed). The run still ends **Succeeded**, its status message says which, and nothing is charged for inputs that gave nothing.

If the input has nothing the scraper can use, the run ends **Succeeded** right away with a status message that starts "Nothing to scrape:" and says what to change; no results are charged. A run ends **Failed** only when Facebook refused every one of 3 or more inputs and a well-known public event is refused too, because that means the scraper itself is being blocked right now.

#### Can I move from another Facebook events scraper?

Yes. `startUrls` takes plain links or `{ "url": … }` objects, event and search links with their filters and city events links work as they are, and `searchQueries` and `maxEvents` mean what you expect. Output fields use the familiar names (`utcStartDate`, `dateTimeSentence`, `usersResponded`, `imageUrl`, `location`…).

### Other scrapers by Social Scrapers

| Scraper | What it gets |
| --- | --- |
| [TikTok API](https://apify.com/socialscrapers/tiktok-api) | Profiles, Videos and Comments |
| [TikTok Comments Scraper](https://apify.com/socialscrapers/tiktok-comments-scraper) | Comments, Replies and Likes |
| [TikTok Hashtag Scraper](https://apify.com/socialscrapers/tiktok-hashtag-scraper) | Top Videos, Views and Likes |
| [TikTok Profile Scraper](https://apify.com/socialscrapers/tiktok-profile-scraper) | Followers, Bio, Stats and Videos |
| [TikTok Scraper](https://apify.com/socialscrapers/tiktok-scraper) | Videos, Profiles, Hashtags and Comments |
| [TikTok Sound Scraper](https://apify.com/socialscrapers/tiktok-sound-scraper) | Videos Using a Sound and Music Info |
| [TikTok Transcript Scraper](https://apify.com/socialscrapers/tiktok-transcript-scraper) | Video Captions and Subtitles to Text |
| [TikTok Video Scraper](https://apify.com/socialscrapers/tiktok-video-scraper) | Views, Likes, Captions and Comments |
| [Instagram API](https://apify.com/socialscrapers/instagram-api) | Profiles, Posts, Reels, Comments and Hashtags |
| [Instagram Comments Scraper](https://apify.com/socialscrapers/instagram-comments-scraper) | Comments, Likes and Reply Counts |
| [Instagram Email Scraper](https://apify.com/socialscrapers/instagram-email-scraper) | Emails and Phones from Public Profiles |
| [Instagram Hashtag Scraper](https://apify.com/socialscrapers/instagram-hashtag-scraper) | Reels and Keyword Search |
| [Instagram Post Details Scraper](https://apify.com/socialscrapers/instagram-post-details-scraper) | Likes, Comments, Views and Media |
| [Instagram Post Scraper](https://apify.com/socialscrapers/instagram-post-scraper) | Posts, Reels and Comments |
| [Instagram Profile Scraper](https://apify.com/socialscrapers/instagram-profile-scraper) | Followers, Bio, Posts and Reels |
| [Instagram Reels Scraper](https://apify.com/socialscrapers/instagram-reels-scraper) | Reels, Plays, Likes and Comments |
| [Instagram Reels Transcript Scraper](https://apify.com/socialscrapers/instagram-reels-transcript-scraper) | Speech to Text and Captions |
| [Instagram Scraper](https://apify.com/socialscrapers/instagram-scraper) | Posts, Profiles, Reels, Comments and Hashtags |
| [YouTube API](https://apify.com/socialscrapers/youtube-api) | Videos, Transcripts, Search, Channels and Comments |
| [YouTube Channel Scraper](https://apify.com/socialscrapers/youtube-channel-scraper) | Videos, Shorts, Subscribers and About |
| [YouTube Comments Scraper](https://apify.com/socialscrapers/youtube-comments-scraper) | Comments, Replies and Likes |
| [YouTube Scraper](https://apify.com/socialscrapers/youtube-scraper) | Videos, Shorts, Channels and Comments |
| [YouTube Search Scraper](https://apify.com/socialscrapers/youtube-search-scraper) | Videos, Channels, Views and Filters |
| [YouTube Shorts Scraper](https://apify.com/socialscrapers/youtube-shorts-scraper) | Shorts, Views, Likes and Search |
| [YouTube Transcript Scraper](https://apify.com/socialscrapers/youtube-transcript-scraper) | Subtitles, Captions and SRT |
| [YouTube Video Details Scraper](https://apify.com/socialscrapers/youtube-video-details-scraper) | Stats, Subtitles and Comments |
| [Facebook Ads Library Scraper](https://apify.com/socialscrapers/facebook-ads-library-scraper) | Meta Ad Library and Spend |
| [Facebook Comments Scraper](https://apify.com/socialscrapers/facebook-comments-scraper) | Posts, Reels, Videos and Replies |
| [Facebook Groups Scraper](https://apify.com/socialscrapers/facebook-groups-scraper) | Public Group Posts and Reactions |
| [Facebook Marketplace Scraper](https://apify.com/socialscrapers/facebook-marketplace-scraper) | Prices, Locations and Sellers |
| [Facebook Page Contact Info Scraper](https://apify.com/socialscrapers/facebook-page-contact-scraper) | Email, Phone and WhatsApp |
| [Facebook Posts Scraper](https://apify.com/socialscrapers/facebook-profile-posts-scraper) | Pages, Profiles and Timelines |
| [Facebook Pages Scraper](https://apify.com/socialscrapers/facebook-profile-scraper) | Profiles, Contact Info and Reviews |
| [Facebook Reels Scraper](https://apify.com/socialscrapers/facebook-reels-scraper) | Reels, Videos, Plays and Captions |
| [X (Twitter) Profile Scraper](https://apify.com/socialscrapers/x-profile-scraper) | Followers, Bio and Tweets |
| [X (Twitter) Tweet Scraper](https://apify.com/socialscrapers/x-tweet-scraper) | Latest Posts by Profile |
| [Threads Profile Scraper](https://apify.com/socialscrapers/threads-profile-scraper) | Followers, Bio, Links and Posts |
| [Threads Replies Scraper](https://apify.com/socialscrapers/threads-replies-scraper) | Comments, Authors, Likes and Media |
| [Threads Scraper](https://apify.com/socialscrapers/threads-scraper) | Posts, Profiles, Replies and Search |
| [Threads Search Scraper](https://apify.com/socialscrapers/threads-search-scraper) | Keywords, Hashtags, Top and Recent Posts |
| [Reddit Comments Scraper](https://apify.com/socialscrapers/reddit-comments-scraper) | Threads, Replies, Votes and Authors |
| [Reddit Scraper](https://apify.com/socialscrapers/reddit-scraper) | Posts, Comments, Subreddits, Users and Search |
| [Reddit Search Scraper](https://apify.com/socialscrapers/reddit-search-scraper) | Posts by Keyword, Subreddit and Date |
| [Reddit User Scraper](https://apify.com/socialscrapers/reddit-user-scraper) | Profiles, Karma, Posts and Comments |
| [Subreddit Scraper](https://apify.com/socialscrapers/subreddit-scraper) | Hot, New and Top Posts with Comments |
| [Quora Scraper](https://apify.com/socialscrapers/quora-scraper) | Answers, Questions, Profiles and Topic Search |
| [LinkedIn Ad Library Scraper](https://apify.com/socialscrapers/linkedin-ad-library-scraper) | Ads, Advertisers and Impressions |
| [LinkedIn Company Posts Scraper](https://apify.com/socialscrapers/linkedin-company-posts-scraper) | Latest Posts, No Login |
| [LinkedIn Company Scraper](https://apify.com/socialscrapers/linkedin-company-scraper) | Company Details, Size and Website |
| [LinkedIn Job Search Scraper](https://apify.com/socialscrapers/linkedin-job-search-scraper) | Filters, Salaries and New Jobs |
| [LinkedIn Jobs Scraper](https://apify.com/socialscrapers/linkedin-jobs-scraper) | Job Listings, Salaries and Companies |
| [LinkedIn Post Comments Scraper](https://apify.com/socialscrapers/linkedin-post-comments-scraper) | Top Comments, No Login |
| [LinkedIn Posts Scraper](https://apify.com/socialscrapers/linkedin-posts-scraper) | Public Posts, Reactions and Comments |
| [LinkedIn Profile Posts Scraper](https://apify.com/socialscrapers/linkedin-profile-posts-scraper) | Latest Posts, No Login |
| [Google Maps Email Extractor](https://apify.com/socialscrapers/google-maps-email-extractor) | Emails, Phones and Social Links |
| [Google Maps Scraper](https://apify.com/socialscrapers/google-maps-scraper) | Places, Phones, Websites, Ratings and Hours |
| [Google News Scraper](https://apify.com/socialscrapers/google-news-scraper) | Headlines, Articles and Search |
| [Google Ads Transparency Scraper](https://apify.com/socialscrapers/google-ads-transparency-scraper) | Ad Creatives and Advertisers |
| [Amazon Best Sellers Scraper](https://apify.com/socialscrapers/amazon-bestsellers-scraper) | Top 100 Rankings and Prices |
| [Amazon Product Scraper](https://apify.com/socialscrapers/amazon-product-scraper) | Search Results, Prices, Ratings, ASINs |
| [Amazon Search Scraper](https://apify.com/socialscrapers/amazon-search-scraper) | Products, Prices and Ratings by Keyword |
| [Indeed Jobs Scraper](https://apify.com/socialscrapers/indeed-jobs-scraper) | Salaries, Full Descriptions, Company Data |
| [Contact Details Scraper](https://apify.com/socialscrapers/contact-details-scraper) | Emails, Phones and Social Links |
| [Telegram Channel Scraper](https://apify.com/socialscrapers/telegram-channel-scraper) | Posts, Views and Media |
| [Doximity Scraper](https://apify.com/socialscrapers/doximity-physician-scraper) | Physician Profiles and Doctor Directory |
| [KevinMD Scraper](https://apify.com/socialscrapers/kevinmd-articles-scraper) | Physician Articles and Author Specialties |
| [Op-Med Scraper](https://apify.com/socialscrapers/opmed-articles-scraper) | Physician Essays and Doctor Profiles |
| [Airbnb Reviews Scraper](https://apify.com/socialscrapers/airbnb-reviews-scraper) | Guest Reviews, Ratings and Hosts |
| [Airbnb Scraper](https://apify.com/socialscrapers/airbnb-scraper) | Listings, Prices, Reviews and Hosts |
| [Booking.com Scraper](https://apify.com/socialscrapers/booking-scraper) | Hotels, Prices and Reviews |
| [Career Site Jobs Scraper](https://apify.com/socialscrapers/career-site-jobs-scraper) | Greenhouse, Lever, Ashby and Workday |
| [eBay Scraper](https://apify.com/socialscrapers/ebay-scraper) | Listings, Prices, Item Details and Sellers |
| [Etsy Scraper](https://apify.com/socialscrapers/etsy-scraper) | Products, Prices, Shops and Reviews |
| [Google Shopping Scraper](https://apify.com/socialscrapers/google-shopping-scraper) | Products, Prices and Sellers |
| [Google Trends Scraper](https://apify.com/socialscrapers/google-trends-scraper) | Interest Over Time, Regions and Queries |
| [MercadoLibre Scraper](https://apify.com/socialscrapers/mercadolibre-scraper) | Products, Prices and Sellers |
| [Similarweb Scraper](https://apify.com/socialscrapers/similarweb-scraper) | Website Traffic, Rank and Visits |
| [Tripadvisor Reviews Scraper](https://apify.com/socialscrapers/tripadvisor-reviews-scraper) | Hotels, Restaurants and Attractions |
| [Tripadvisor Scraper](https://apify.com/socialscrapers/tripadvisor-scraper) | Hotels, Restaurants and Reviews |
| [Yelp Scraper](https://apify.com/socialscrapers/yelp-scraper) | Businesses, Reviews, Ratings and Contacts |
| [Zillow Property Scraper](https://apify.com/socialscrapers/zillow-property-scraper) | Home Details, Zestimate and History |
| [Zillow Scraper](https://apify.com/socialscrapers/zillow-scraper) | Listings, Prices, Zestimates and Agents |

# Actor input Schema

## `startUrls` (type: `array`):

Links to read. Each can be:<ul><li><b>an event</b>: https://www.facebook.com/events/1234567890/ (or just its number; one date of a repeating event, /events/123/456/, works too);</li><li><b>a Page or profile</b>: https://www.facebook.com/<i>pagename</i> or its events tab (…/events, …/upcoming_hosted_events, …/past_hosted_events). Every event of its list is read, not just the first 8;</li><li><b>a city's events</b>: https://www.facebook.com/events/explore/<i>city</i>/<i>number</i>/;</li><li><b>an event search</b>: https://www.facebook.com/events/search/?q=… (its date and city filters are used);</li><li>an fb.me or facebook.com/share/ link to any of these.</li></ul>

## `locations` (type: `array`):

Events in these cities, as Facebook lists them for each city (thousands for a big one). Write a city as <b>City, Country</b> or <b>City, State</b> ("Austin, Texas", "Berlin, Germany") so the right one is found; the log names the city it used. With Search keywords, only the events of each city whose name, description or category holds one of the keywords are kept.

## `searchQueries` (type: `array`):

Words to look for, such as <b>jazz</b>, <b>yoga</b> or <b>food festival</b>.<ul><li>With Cities: the events of each city that match, searched in depth.</li><li>Alone: Facebook's own event search, day by day for the next 30 days (or the Date filter's days). Facebook shows a logged-out visitor the matching events near where the request comes from, so for one city's events add that city under Cities.</li></ul>

## `dateFilter` (type: `string`):

Only events on these dates, for Cities and Search keywords (Facebook's own date windows). Event and Page links are read whatever their dates.

## `pageEvents` (type: `string`):

For Page and profile links: their upcoming events, their past events, or both lists.

## `maxEvents` (type: `integer`):

Events saved at most for each link, city or search keyword. 0 means no limit (a big city lists thousands). Each event is charged once, even when several inputs find it.

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

Keep the default. Requests go through Apify's proxy (datacenter IPs first, residential ones only for a request Facebook refuses); its cost is included in the price. Your own proxy URLs are used as given.

## Actor input object example

```json
{
  "startUrls": [],
  "locations": [
    "New York, New York"
  ],
  "searchQueries": [],
  "dateFilter": "any",
  "pageEvents": "upcoming",
  "maxEvents": 20,
  "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 = {
    "startUrls": [],
    "locations": [
        "New York, New York"
    ],
    "searchQueries": [],
    "maxEvents": 20,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("socialscrapers/facebook-events-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 = {
    "startUrls": [],
    "locations": ["New York, New York"],
    "searchQueries": [],
    "maxEvents": 20,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("socialscrapers/facebook-events-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 '{
  "startUrls": [],
  "locations": [
    "New York, New York"
  ],
  "searchQueries": [],
  "maxEvents": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call socialscrapers/facebook-events-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,socialscrapers/facebook-events-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/hVk6HdXZF0RTG8hFw/builds/KwlHudsRSKdbkOO8D/openapi.json
