FACEBOOK EVENTS API
Search Events
Retrieve search events from Facebook Events with a single API request.
GET
/api/data/v1/facebook/events/search1credit base cost
Request parameters
Up to 1 creditThe query to search for
The cursor to paginate to the next page
Live requests use your prepaid balance. Cached responses cost zero where supported.
curl --request GET \
--url 'https://fetchgoblin.com/api/data/v1/facebook/events/search?query=Event+name+or+description' \
--header 'x-api-key: YOUR_FETCHGOBLIN_API_KEY'Response
Example{
"success": true,
"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",
"__isNode": "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.",
"eventImage": {
"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=7e0d18&_nc_ohc=lfZDvDmA5TgQ7kNvwGAJ9kC&_nc_oc=AdpiWd2PvIAUMK-DqCWA4v5iUaC2q5pKzs1BCjIS2OfxuyITVAF4rXXCFbes2A7jTTI&_nc_zt=23&_nc_ht=scontent-bos5-1.xx&_nc_gid=Bc1EYqxenHsF96t4Z7ZTbQ&_nc_ss=7e289&oh=00_Af7QI7ClZW5fpMopR2xSaj3wB0Md9w9Hw1dVS5jLWhSbTw&oe=69FCA6B5"
},
"id": "1415564503258862"
},
"social_context": {
"text": "21 interested · 10 going",
"interested_count": 21,
"going_count": 10,
"went_count": null
}
}
],
"cursor": "Abr1gHMU6H....",
"credits_charged": 1,
"credits_remaining": 1000,
"request_id": "00000000-0000-4000-8000-000000000000"
}Example data from the API specification. Run a request to retrieve current data.
Response shape
This schema describes the documented data shape. Some platform fields may be absent or null. The response also includes your FetchGoblin request ID and current credit balance.
View JSON Schema +
{
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"events": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"type": {
"type": "string"
},
"url": {
"type": "string"
},
"day_time_sentence": {
"type": "string"
},
"event_place": {
"type": "object",
"properties": {
"__typename": {
"type": "string"
},
"contextual_name": {
"type": "string"
},
"__isNode": {
"type": "string"
},
"id": {
"type": "string"
}
}
},
"ticketing_context_row": {
"type": "object",
"properties": {
"price_range_text": {
"type": [
"string",
"object",
"array",
"number",
"boolean",
"null"
]
}
}
},
"is_online": {
"type": "boolean"
},
"is_past": {
"type": "boolean"
},
"event_url": {
"type": "string"
},
"event_kind": {
"type": "string"
},
"start_timestamp": {
"type": "integer"
},
"cover_photo": {
"type": "object",
"properties": {
"accessibility_caption": {
"type": "string"
},
"eventImage": {
"type": "object",
"properties": {
"uri": {
"type": "string"
}
}
},
"id": {
"type": "string"
}
}
},
"social_context": {
"type": "object",
"properties": {
"text": {
"type": "string"
},
"interested_count": {
"type": "integer"
},
"going_count": {
"type": "integer"
},
"went_count": {
"type": [
"string",
"object",
"array",
"number",
"boolean",
"null"
]
}
}
}
}
}
},
"cursor": {
"type": "string"
},
"credits_charged": {
"type": "integer",
"minimum": 0,
"description": "FetchGoblin credits charged for this request."
},
"credits_remaining": {
"type": "integer",
"description": "Your FetchGoblin credit balance after this request."
},
"request_id": {
"type": "string",
"format": "uuid",
"description": "FetchGoblin request identifier."
}
}
}