Events hosted by a public Facebook page by URL: name, start time, venue, city, host and status, with cursor pagination.
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.profile_events" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://www.facebook.com/brickyardoldtown"}'{
"output": {
"found": true,
"data": {
"totalCount": "<integer | null>",
"hasNextPage": "<boolean | null>",
"nextCursor": "<string | null>",
"events": [
{
"name": "<string | null>",
"startTimestamp": "<integer | null>",
"isCanceled": "<boolean | null>",
"isOnline": "<boolean | null>", …
}
]
}
},
"credits": 2
}Input and output
2 fields
https://www.facebook.com/brickyardoldto….4 fields
Good to know
Unknown URL? It comes back as not found, not as an error.
The same key and credits work for every API.