Facebook page events API
Public events of a page.
- Cost
- 1 credit
- Cached repeats
- 0 creditssend max_age_days, results kept 30 days
- Failed requests
- 0 credits
- Status
- Betashape may still gain fields
You send url.
Request
Send your key in the x-api-key header.
curl -G "https://api.socialscrape.io/v1/facebook/profile/events" \
-H "x-api-key: $SOCIALSCRAPE_API_KEY" \
--data-urlencode 'url=https://www.facebook.com/brickyardoldtown'import os
import requests
params = {
"url": "https://www.facebook.com/brickyardoldtown",
}
res = requests.get(
"https://api.socialscrape.io/v1/facebook/profile/events",
headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},
params=params,
timeout=60,
)
body = res.json()
if body["ok"]:
print(body["data"])
else:
print(body["error"]["code"], body["error"]["message"])const url = new URL("https://api.socialscrape.io/v1/facebook/profile/events");
url.search = new URLSearchParams({
url: "https://www.facebook.com/brickyardoldtown",
}).toString();
const res = await fetch(url, {
headers: { "x-api-key": process.env.SOCIALSCRAPE_API_KEY! },
});
const body = await res.json();
if (body.ok) {
console.log(body.data);
} else {
console.error(body.error.code, body.error.message);
}{
"nodes": [
{
"name": "SocialScrape Facebook page events",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
0,
0
],
"parameters": {
"method": "GET",
"url": "https://api.socialscrape.io/v1/facebook/profile/events",
"sendQuery": true,
"queryParameters": {
"parameters": [
{
"name": "url",
"value": "https://www.facebook.com/brickyardoldtown"
}
]
},
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "x-api-key",
"value": "={{ $env.SOCIALSCRAPE_API_KEY }}"
}
]
}
}
}
],
"connections": {}
}Parameters
| Name | Type | Required | Description |
|---|---|---|---|
url | url | yes | Profile or page URL. |
cursor | string | Opaque cursor from the previous page; pass it back unchanged. Also accepted as continuationToken, continuation_token, next_max_id, max_id, max_cursor, min_time, after, page_token, pageToken, paginationToken, next_page_id, page. |
Every request also accepts trim, raw and max_age_days.
Response
Sample from a recorded response, shortened. Values are public data, not yours.
{
"ok": true,
"credits_charged": 1,
"credits_remaining": 4999,
"cached": false,
"cached_at": null,
"request_id": "req_688015daa5f2507812bdc7e5",
"data": {
"object": "list",
"items": [
{
"object": "event",
"platform": "facebook",
"id": "1599404908579946",
"url": "https://www.facebook.com/events/1599404908579946/",
"title": "Eclipse at Brickyard",
"description": null,
"starts_at": "2026-10-31T01:00:00Z",
"ends_at": null,
"place": {
"name": "Brickyard",
"address": null,
"city": "Wichita",
"region": null,
"country": null,
"latitude": null,
"longitude": null
},
"is_online": false,
"host": {
"id": "1000000001",
"handle": "sample_user",
"name": "Sample User",
"url": null,
"avatar_url": null,
"verified": null
},
"going_count": null,
"interested_count": null,
"cover_url": "https://scontent-iad3-1.xx.fbcdn.net/v/t39.30808-6/808786929_1416991620532137_3722381877941181457_n.jpg?stp=c0.123.1200.827a_dst-jpg_tt6&cstp=mx1200x827&ctp=...",
"extra": {
"creator": {
"handle": "sample_user",
"id": "1000000001",
"name": "Sample User",
"url": null
},
"day_time_sentence": "Fri, Oct 30 at 8:00 PM CDT",
"event_kind": "PUBLIC_TYPE",
"is_canceled": false,
"is_happening_now": false,
"is_past": false
}
},
{
"object": "event",
"platform": "facebook",
"id": "1790902472113859",
"url": "https://www.facebook.com/events/1790902472113859/",
"title": "Halloween with DJ Sunshine at Brickyard 🎃👻🦄",
"description": null,
"starts_at": "2026-11-01T01:00:00Z",
"ends_at": null,
"place": {
"name": "Brickyard",
"address": null,
"city": "Wichita",
"region": null,
"country": null,
"latitude": null,
"longitude": null
},
"is_online": false,
"host": {
"id": "1000000001",
"handle": "sample_user",
"name": "Sample User",
"url": null,
"avatar_url": null,
"verified": null
},
"going_count": null,
"interested_count": null,
"cover_url": "https://scontent-iad3-2.xx.fbcdn.net/v/t39.30808-6/830834949_1431631352401497_9048214726565476167_n.jpg?stp=c0.200.1080.745a_dst-jpg_tt6&cstp=mx1080x745&ctp=...",
"extra": {
"creator": {
"handle": "sample_user",
"id": "1000000001",
"name": "Sample User",
"url": null
},
"day_time_sentence": "Sat, Oct 31 at 8:00 PM CDT",
"event_kind": "PUBLIC_TYPE",
"is_canceled": false,
"is_happening_now": false,
"is_past": false
}
}
],
"cursor": null,
"has_more": false,
"parent": null
},
"cursor": null,
"has_more": false
}Fields
A page of results. Each entry in items is a Event. cursor and has_more page through the rest.
A field the platform does not give is null, never made up. Extra platform details are in extra.
| Field | Type | Always | Notes |
|---|---|---|---|
object | "event" | ||
platform | Platform | yes | |
id | string | yes | |
url | string or null | ||
title | string or null | ||
description | string or null | ||
starts_at | string (ISO 8601 date-time) or null | ||
ends_at | string (ISO 8601 date-time) or null | ||
place | Place or null | ||
is_online | boolean or null | ||
host | Author or null | ||
going_count | integer or null | ||
interested_count | integer or null | ||
cover_url | string or null |
Show the other 1 fields
| Field | Type | Always | Notes |
|---|---|---|---|
extra | object or null |
Full field list in the reference for this endpoint and the data models. Errors are listed under Errors.
Questions
Which errors can it return?
invalid_params (do not retry), unsupported_url (do not retry), not_found (do not retry). Account and platform errors from the errors list can also happen. A failure always costs 0 credits.
How do I get more than one page?
Send the same request with cursor set to the cursor you received, until has_more is false. Each page costs its own price. See pagination.
Is there an SDK call for it?
The preview Python client has client.facebook.profile_events(...) and the TypeScript client client.facebook.profileEvents(). Both return the same envelope as the HTTP API. The packages are not published yet; plain HTTP works today in any language.
Can an AI agent call it?
Yes. The MCP server reaches every built endpoint, with the same prices.