Facebook Events
3 endpoints.
GET /v1/facebook/event_details
Event Details
Get a specific event by its URL or id
Parameters
| Name | In | Type | Description |
|---|---|---|---|
id | query | string | The ID of the event |
url | query | string | The URL of the event |
Request
curl "https://api.scrapall.bipsport.com/scapi/v1/facebook/event_details" \
-H "X-Scapi-Key: YOUR_API_KEY"const res = await fetch("https://api.scrapall.bipsport.com/scapi/v1/facebook/event_details", {
headers: { "X-Scapi-Key": "YOUR_API_KEY" }
});
const data = await res.json();import requests
r = requests.get(
"https://api.scrapall.bipsport.com/scapi/v1/facebook/event_details",
headers={"X-Scapi-Key": "YOUR_API_KEY"},
)
print(r.json())Response 200 (sample)
{
"id": "2255360061870188",
"url": "https://www.facebook.com/events/2255360061870188/",
"name": "May St. Pete Flea ",
"description": "SPRING IS HERE AND WE CAN’T WAIT TO SEE YOU AT THE MARKET! \nMeet us downtown at Mirror Lalke as we host some of the best makers, artists and small businesses...",
"category": null,
"categories": [],
"is_online": false,
"is_past": true,
"event_kind": "PUBLIC_TYPE",
"privacy": "public",
"start_time": null,
"end_time": null,
"time_text": null,
"duration": "4 hr",
"price": null,
"ticket_url": null,
"ticket_source": null,
"ticket_provider": null,
"location_name": "Mirror Lake Park, Downtown St Pete",
"address": "Saint Petersburg, FL",
"city": "Saint Petersburg, Florida",
"city_id": "111326725552547",
"latitude": 27.776053761243,
"longitude": -82.639546684316,
"attendance_count": 7654,
"...": "20 more fields"
}GET /v1/facebook/events
Events
Get the events of a city. Check out this [link](https://www.facebook.com/events/explore/saint-petersburg-florida/111326725552547) for an example of where we are getting the data from.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
url required | query | string | The URL of the city's Facebook Events page |
time | query | string | The time frame to search for. Defaults to all time one of: today, this_week, next_week |
next_cursor | query | string | The cursor to paginate to the next page |
Request
curl "https://api.scrapall.bipsport.com/scapi/v1/facebook/events?url=https://www.facebook.com/events/explore/saint-petersburg-florida/111326725552547" \
-H "X-Scapi-Key: YOUR_API_KEY"const res = await fetch("https://api.scrapall.bipsport.com/scapi/v1/facebook/events?url=https://www.facebook.com/events/explore/saint-petersburg-florida/111326725552547", {
headers: { "X-Scapi-Key": "YOUR_API_KEY" }
});
const data = await res.json();import requests
r = requests.get(
"https://api.scrapall.bipsport.com/scapi/v1/facebook/events?url=https://www.facebook.com/events/explore/saint-petersburg-florida/111326725552547",
headers={"X-Scapi-Key": "YOUR_API_KEY"},
)
print(r.json())Response 200 (sample)
{
"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&..."
},
"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",
"is_node": "Page",
"id": "521768081246129"
},
"event_url": "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_event_comet_universal_rsvp_button_event": {
"dr": "PublicEventCometRSVPButtonRenderer_rsvpStyleRenderer$normalization.graphql"
},
"module_component_event_comet_universal_rsvp_button_event": {
"dr": "PublicEventCometRSVPButtonRenderer.react"
}
},
"parent_if_exists_or_self": {
"online_event_setup": null,
"id": "2255360061870188"
},
"...": "3 more fields"
}
],
"next_cursor": "eyJzdGFydF...."
}GET /v1/facebook/events_search
Search Events
Search for events by name. You can take a look at the page from Facebook we are getting the data from [here](https://www.facebook.com/events/search/?q=dogs)
Parameters
| Name | In | Type | Description |
|---|---|---|---|
query required | query | string | The query to search for |
next_cursor | query | string | The cursor to paginate to the next page |
Request
curl "https://api.scrapall.bipsport.com/scapi/v1/facebook/events_search?query=Event name or description" \
-H "X-Scapi-Key: YOUR_API_KEY"const res = await fetch("https://api.scrapall.bipsport.com/scapi/v1/facebook/events_search?query=Event name or description", {
headers: { "X-Scapi-Key": "YOUR_API_KEY" }
});
const data = await res.json();import requests
r = requests.get(
"https://api.scrapall.bipsport.com/scapi/v1/facebook/events_search?query=Event name or description",
headers={"X-Scapi-Key": "YOUR_API_KEY"},
)
print(r.json())Response 200 (sample)
{
"events": [
{
"id": "24659081027102562",
"name": "DockDogs® at Frankenmuth Dog Bowl",
"type": "Event",
"url": "https://www.facebook.com/events/24659081027102562/",
"day_time_sentence": "Fri, May 22 - May 24",
"event_place": {
"typename": "FreeformPlace",
"contextual_name": "Frankenmuth River Place Shops",
"is_node": "FreeformPlace",
"id": "1455187729296539"
},
"ticketing_context_row": {
"price_range_text": null
},
"is_online": false,
"is_past": false,
"event_url": "https://www.facebook.com/events/24659081027102562/",
"event_kind": "PUBLIC_TYPE",
"start_timestamp": 1779480000,
"cover_photo": {
"accessibility_caption": "No photo description available.",
"event_image": {
"uri": "https://scontent-bos5-1.xx.fbcdn.net/v/t39.30808-6/593531570_1415564506592195_6877452715877012878_n.jpg?stp=dst-jpg_p75x225_tt6&_nc_cat=108&ccb=1-7&_nc_sid=7..."
},
"id": "1415564503258862"
},
"social_context": {
"text": "21 interested · 10 going",
"interested_count": 21,
"going_count": 10,
"went_count": null
}
}
],
"next_cursor": "Abr1gHMU6H...."
}