Events
curl --request GET \
--url https://api.example.com/api/v1/scrape/facebook/events \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/api/v1/scrape/facebook/events"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/api/v1/scrape/facebook/events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/v1/scrape/facebook/events",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/v1/scrape/facebook/events"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/v1/scrape/facebook/events")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/scrape/facebook/events")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyFacebook Events Scraper
Events
Get the events of a city. Check out this link for an example of where we are getting the data from.
GET
/
api
/
v1
/
scrape
/
facebook
/
events
Events
curl --request GET \
--url https://api.example.com/api/v1/scrape/facebook/events \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/api/v1/scrape/facebook/events"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/api/v1/scrape/facebook/events', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/v1/scrape/facebook/events",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/v1/scrape/facebook/events"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/v1/scrape/facebook/events")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/v1/scrape/facebook/events")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_bodyQuery Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
url | string | Yes | The URL of the city’s Facebook Events page |
time | string | No | The time frame to search for. Defaults to all time |
cursor | string | No | The cursor to paginate to the next page |
Response Example
{
"success": true,
"data": {
"success": true,
"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_count": null
}
}
],
"cursor": "eyJzdGFydF...."
}
}
Last modified on September 21, 2026

