Appearance
Events
GET /v1/facebook/events
Get the events of a city. Check out this link for an example of where we are getting the data from.
Authentication
All requests require the x-api-key header. Get your key at scrapecreators.com.
Query Parameters
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
url | string | yes | The URL of the city's Facebook Events page | https://www.facebook.com/events/explore/saint-petersburg-florida/111326725552547 |
time | enum(today, this_week, next_week) | no | The time frame to search for. Defaults to all time | |
cursor | string | no | The cursor to paginate to the next page | eyJzdGFydF... |
Example Request
curl
bash
curl 'https://api.scrapecreators.com/v1/facebook/events?url=https://www.facebook.com/events/explore/saint-petersburg-florida/111326725552547' \
-H 'x-api-key: $SCRAPECREATORS_API_KEY'Node / TypeScript
js
const params = new URLSearchParams({ url: 'https://www.facebook.com/events/explore/saint-petersburg-florida/111326725552547' });
const res = await fetch(`https://api.scrapecreators.com/v1/facebook/events?${params}`, {
headers: { 'x-api-key': process.env.SCRAPECREATORS_API_KEY }
});
const data = await res.json();
console.log(data);Python
python
import os, requests
r = requests.get(
'https://api.scrapecreators.com/v1/facebook/events',
headers={'x-api-key': os.environ['SCRAPECREATORS_API_KEY']},
params={'url': 'https://www.facebook.com/events/explore/saint-petersburg-florida/111326725552547'},
)
r.raise_for_status()
print(r.json())CLI
bash
scrapecreators facebook-events events --helpExample Response
json
{
"success": true,
"credits_remaining": 49998305425,
"events": [
{
"id": "2255360061870188",
"schema_context": null,
"cover_photo": {
"photo": {
"accessibility_caption": "May be an image of crowd",
"image": {
"uri": "https://scontent-bos5-1.xx.fbcdn.net/v/t39.30808-6/651106377_950305721046361_5055393414866459656_n.jpg?stp=c0.128.2048.977a_dst-jpg_s640x640_tt6&_nc_cat=102&ccb=1-7&_nc_sid=7e0d18&_nc_ohc=uoUS18WdA8AQ7kNvwFst0pe&_nc_oc=AdrKSULesf0R7do30SFyq0RoMV3ZxJYTz5leueITbRx88Cbg1yRFOKo-d1-yMT01j68&_nc_zt=23&_nc_ht=scontent-bos5-1.xx&_nc_gid=qD91MpaVYDRFp7bLWxiBHg&_nc_ss=7e289&oh=00_Af5VIYxAG3h_o7zT5ilskEWnNSJsEIbKRSi0j0G8xTorjA&oe=69FC8B8B"
},
"id": "950305717713028"
}
},
"cover_video": null,
"gif_cover_photo": null,
"online_event_setup": null,
"is_happening_now": false,
"day_time_sentence": "Sun, May 3 at 12:00 PM EDT",
"name": "May St. Pete Flea ",
"is_online": false,
"ticketing_context_row": {
"price_range_text": null
},
"event_place": {
"__typename": "Page",
"contextual_name": "Mirror Lake Park, Downtown St Pete",
"__isNode": "Page",
"id": "521768081246129"
},
"eventUrl": "https://www.facebook.com/events/2255360061870188/",
"can_page_viewer_invite_as_user": false,
"can_viewer_invite": false,
"can_viewer_rsvp": false,
"can_viewer_share": false,
"event_kind": "PUBLIC_TYPE",
"if_viewer_can_duplicate_event": null,
"is_online_or_detected_online": false,
"is_past": false,
"is_viewer_host": false,
"start_timestamp": 1777824000,
"rsvp_button_renderer": {
"__typename": "PublicRsvpStyleRenderer",
"event": {
"id": "2255360061870188",
"connection_style": "INTERESTED",
"can_viewer_join": false,
"can_viewer_watch": false,
"can_viewer_unwatch": false,
"viewer_watch_status": "UNWATCHED",
"if_viewer_can_see_going_button": null,
"event_connection_data_privacy_scope": null,
"privacy_scope_for_toast": null,
"can_join_group_chat": false,
"created_for_group": null,
"chat": null
},
"__module_operation_EventCometUniversalRSVPButton_event": {
"__dr": "PublicEventCometRSVPButtonRenderer_rsvpStyleRenderer$normalization.graphql"
},
"__module_component_EventCometUniversalRSVPButton_event": {
"__dr": "PublicEventCometRSVPButtonRenderer.react"
}
},
"parent_if_exists_or_self": {
"online_event_setup": null,
"id": "2255360061870188"
},
"live_virtual_event_info": null,
"__typename": "Event",
"social_context": {
"text": "7.3K interested · 195 going",
"ranges": [],
"interested_count": 7300,
"going_count": 195,
"went_coun
... (truncated)Credits
Most ScrapeCreators endpoints consume 1 credit per successful response. Some heavier endpoints (transcripts, AI-driven enrichment, ad detail lookups) may cost more. Check GET /v1/credit-balance for your remaining balance.
Errors
| Status | Meaning | Action |
|---|---|---|
| 200 | Success. | Use the JSON payload. |
| 400 | Invalid or missing parameter. | Verify required parameters and value format. |
| 401 | Missing or invalid x-api-key. | Pass a valid API key in the header. |
| 402 | Out of credits. | Top up at scrapecreators.com or wait for plan reset. |
| 404 | Resource not found or private. | Confirm the handle, URL, or id and that the resource is public. |
| 429 | Rate limited. | Backoff and retry with exponential delay. |
| 500 | Server error or upstream platform failure. | Retry with backoff; report persistent errors to support. |