Keyword search over public Facebook events returning name, schedule, venue, price range and attendance 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_search" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query":"music festival"}'{
"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
3 fields
music festival.16 fields
Good to know
Facebook hides some keywords from logged-out users. Results then vary between runs.
One page per call. Send nextCursor back as cursor to read the next page.
The same key and credits work for every API.