Facebook Events
Under maintenancePricing
from $0.25 / actor start
Go to Apify Store
Pricing
from $0.25 / actor start
Rating
0.0
(0)
Developer
Payam Pirooznia
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
4 minutes ago
Last modified
Categories
Share
Facebook Events Scraper
An Apify actor that scrapes events from Facebook Events based on search keywords and location.
Features
- Search Facebook Events by city + state code
- Visit discovered event pages and keep only public events
- Normalize event URLs to
https://www.facebook.com/events/<id> - Extract standardized event fields for downstream processing
- Configurable maximum number of events per query
- Proxy support to avoid request blocking
Input
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
city | string | ✅ | — | City name used for event search (e.g. "Mission Viejo") |
state | string | ✅ | — | 2-letter state code (e.g. "CA") |
maxEvents | integer | ❌ | 20 | Max events per query (0 = unlimited) |
browserType | "chromium" | "firefox" | "webkit" | ❌ | "chromium" | Browser engine used by Playwright |
browserUserAgents | string[] | ❌ | built-in pool | Optional custom user-agent pool; one is selected randomly per run |
browserViewportWidth | integer | ❌ | 1366 | Browser viewport width in pixels |
browserViewportHeight | integer | ❌ | 768 | Browser viewport height in pixels |
browserJavaScriptEnabled | boolean | ❌ | true | Enables/disables JavaScript in page context |
browserIgnoreHTTPSErrors | boolean | ❌ | true | Ignore HTTPS certificate errors |
proxyConfiguration | object | ❌ | Apify Proxy | Proxy settings |
Example Input
{"city": "Mission Viejo","state": "CA","maxEvents": 50,"browserType": "chromium","browserUserAgents": ["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36","Mozilla/5.0 (Macintosh; Intel Mac OS X 14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36"],"browserViewportWidth": 1366,"browserViewportHeight": 768,"browserJavaScriptEnabled": true,"browserIgnoreHTTPSErrors": true,"proxyConfiguration": {"useApifyProxy": true}}
Search URL behavior
The actor builds the base search URL as:
https://www.facebook.com/events/search?q=<url-encoded city, state>
Example:
https://www.facebook.com/events/search?q=Mission%20Viejo%2C%20CA