Facebook events listing
One page of public events from a Facebook events listing URL.
An explore (city/place) page such as facebook.com/events/explore/wichita-kansas/105674782800210/, or a Page's public events page: the cards on that page. An empty page is not billed.
Request
https://api.scrapercompany.com/v1/facebook/eventsAuthenticate with your API key in the x-api-key header (see Authentication).
Run this request on your own API key from this page, with the values you type. Signed out? Sign in or get an API key.
Body
JSON object. Unknown fields are rejected with 422.
- urlstringrequiredmin length 12, max length 2000
A public facebook.com events listing page (an explore page or a Page's events page).
Example request
curl -X POST "https://api.scrapercompany.com/v1/facebook/events" \
-H "x-api-key: $SCRAPERCOMPANY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://www.facebook.com/events/explore/wichita-kansas/105674782800210/"
}'Response
200 — One page of public events from a Facebook events listing page. Metered responses carry x-credits-charged and x-credits-remaining headers (see credit headers).
{
"search_parameters": {
"engine": "facebook_events",
"source_url": "https://www.facebook.com/events/explore/wichita-kansas/105674782800210/"
},
"events_results": [
{
"event_id": "1787320825754872",
"name": "MadHop Music Festival 2026",
"url": "https://www.facebook.com/events/1787320825754872/",
"start_time": "2026-11-06T23:00:00+00:00",
"start_timestamp": 1794006000,
"day_time_sentence": "Fri, Nov 6 - Nov 7",
"place_name": "Historic Downtown Madison, Indiana",
"is_online": false,
"is_past": false,
"going_count": 96,
"interested_count": 277,
"social_context": "277 interested · 96 going",
"cover_image": "https://scontent.fykz2-1.fna.fbcdn.net/v/t39.30808-6/753237232_1541150707815153_6520244248732023965_n.png",
"event_kind": "PUBLIC_TYPE"
}
],
"total": 1,
"has_next_page": true,
"next_cursor": "eyJzdGFydF90aW1lIjoxNzkzODUzNzc0LCJlbmRfdGltZSI6",
"meta": {
"source": "facebook",
"elapsed_s": 1.18
}
}Errors
Errors return a JSON body with a detail field. Failed requests are not charged. See Errors for the full list and retry advice.
| Status | Meaning | Retry? |
|---|---|---|
401Unauthorized | Missing or invalid API key. {"detail":"missing or invalid API key"} | No, fix the request |
402Payment Required | Not enough credits for this request: the account's credits mode is {"detail":"insufficient credits: this request costs 5, 0 available. Credits renew 2026-11-01."} | No, fix the request |
422Unprocessable Content | Request validation failed. {"detail":[{"loc":["body","name"],"msg":"Field required","type":"missing"}]} | No, fix the request |
429Too Many Requests | Too many requests: the key's requests-per-minute limit was exceeded, or (in {"detail":"rate limit 60/min exceeded"} | Yes, with backoff |
503Service Unavailable | Temporarily unavailable: a dependency of this endpoint is down, or the upstream source changed its contract. Retry later. {"detail":"database unavailable: OperationalError"} | Yes, with backoff |
Try it
Press Try it above to run this request on your own key, with the values you type (sign in first). For a no-code walkthrough, use the workspace’s guided Try it.
- Export your key:
export SCRAPERCOMPANY_API_KEY=sk_...(no key yet? start a free trial). - Copy the cURL example above and run it in a terminal.
Questions about this page?
Send the page link and your question, and the team will answer.