Events & communities
Facebook Events API
Public Facebook page events, city discovery, event search and event details.
Search Facebook events and retrieve event listings, details and profile events, with pagination and coverage.
API availability: Available
http://localhost:3039Public API: https://api.scrapeatlas.com.Endpoints
/v1/facebook/profile/eventsList Facebook page events
Retrieve events published by a public Facebook page. include=details adds event description, location and attendance fields where exposed.
Reference/v1/facebook/eventsExplore Facebook events by city
Explore events for a city with an optional relative date window and continuation. include=details adds per-event reads.
Reference/v1/facebook/events/searchSearch Facebook events
Search public Facebook events by keyword, optionally narrowed to a city, a date range and a category, with source continuation.
Reference/v1/facebook/event/detailsGet a Facebook event
Retrieve a public event with schedule, venue, description, hosts, tickets and attendance fields where exposed. A recurring event resolves to its current occurrence.
Reference/v1/facebook/profiles/eventsList Facebook page events via /profiles
Retrieve events published by a public Facebook page. include=details adds event description, location and attendance fields where exposed.
Reference/v1/facebook/events/detailsGet a Facebook event via /events
Retrieve a public event with schedule, venue, description, hosts, tickets and attendance fields where exposed. A recurring event resolves to its current occurrence.
ReferenceQuick start
Create an API key on your account page, then call the public API. Values below are placeholders.
curl "https://api.scrapeatlas.com/v1/facebook/profile/events?url=https%3A%2F%2Fwww.facebook.com%2Fsynthetic.page%2F" \
-H "x-api-key: YOUR_API_KEY"Coverage & limits
- Independent stateless worker on port 3039. No database, Facebook account, persistent browser session, cache or media hosting. A residential proxy can be configured for public pages that gate direct connections.
- Two concurrent requests, 60-second overall deadline, 400 upstream requests and 64 MiB decoded source bytes per request, shared by enrichment legs. Fresh browser contexts close after each retrieval.
- At most 100 records per page, 500,000 traversed nodes and depth 100. Full reels accept at most 50 records across five pages. Auxiliary reads have shorter deadlines and preserve usable partial data.
- Only fixed Facebook public pages, native read-only GraphQL documents, Facebook static scripts and explicitly discovered fbcdn caption URLs are fetched. Service credentials never enter the browser. Media files are not downloaded.
- cache_max_age and hostMedia are not accepted. Opaque cursors are route-specific; pass back the cursor issued by the route you called.
- Facebook source changes, regional restrictions and private resources produce explicit failures. Missing counts remain null, never fabricated zeroes.
| HTTP | failure.code | Meaning |
|---|---|---|
| 200 | partial | Usable data with explicit missing/failed auxiliary coverage. |
| 400 | invalid_request | Malformed, duplicate, conflicting or unsupported parameters. |
| 401 | unauthorized | Missing or invalid service API key. |
| 403 | restricted_page | The resource is private or restricted. |
| 404 | not_found | Unknown route or missing resource. |
| 429 | upstream_rate_limited | Facebook throttled retrieval. |
| 502 | upstream_challenged upstream_error unsupported_page | Source challenge, failure or unsupported/mismatched structure. |
| 502 | response_too_large payload_too_complex request_limit unsafe_redirect | Bounded retrieval or fixed-origin policy failed. |
| 503 | busy | All Facebook worker slots are occupied. |
| 504 | timeout | Request deadline expired. |