Public Facebook events for a city or place from its events-explore URL: name, date, venue and going / interested counts.
2 credits/ call
Never more than 127 credits a call.
You only pay when data comes back.
curl -X POST "https://api.primaryapi.com/v1/run/facebook.events" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://www.facebook.com/events/explore/saint-petersburg-florida/111326725552547"}'{
"output": {
"found": true,
"data": {
"nextCursor": "<string | null>",
"events": [
{
"name": "<string | null>",
"startTimestamp": "<integer | null>",
"goingCount": "<integer | null>",
"isOnline": "<boolean | null>", …
}
]
}
},
"credits": 2
}Input and output
4 fields
https://www.facebook.com/events/explore….16 fields
Good to know
Event hosts can be private individuals.
One page per call. Send nextCursor back as cursor to read the next page.
Unknown URL? It comes back as not found, not as an error.
The same key and credits work for every API.