Facebook page events
Beta GET /v1/facebook/profile/events
GET /v1/facebook/profile/events
Public events of a page.
- Cost: 1 credit
- Status: Beta. Built and tested against recorded responses; the shape may still gain fields.
- Cache: Results are kept up to 30 days; send
max_age_daysto reuse them for free. - Timeout: A request still running after about 25 seconds answers
202with a job to poll (Batch and jobs).
Parameters#
| Name | Type | Required | Description |
|---|---|---|---|
url | URL | yes | Profile or page URL. Accepted hosts: facebook.com, fb.com, fb.watch. |
Every request also accepts:
cursor: the cursor from the previous page (Pagination).trim:truefor a smaller response withoutnullfields andextra.raw:trueto also get the platform's original object asraw.max_age_days: accept a cached result up to this many days old, for 0 credits (Caching).
Example request#
Set your key in the environment first (see Authentication).
curl
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"Python
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,
)
body = res.json()
if body["ok"]:
print(body["data"])
else:
print(body["error"]["code"], body["error"]["message"])TypeScript
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);
}n8n
{
"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": {}
}Example response#
This is a sample from a recorded response, lists and long text are shortened, other people's names and handles are replaced. Status 200.
{
"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=s118x90&_nc_cat=108&ccb=1-7&_nc_sid=239fc6&_nc_ohc=iVteY17gWnwQ7kNvwGEwXbZ&_nc_oc=A...",
"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,
"place_id": "1435982685299697",
"source": "logged_out_public_view"
}
},
{
"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=s118x90&_nc_cat=103&ccb=1-7&_nc_sid=239fc6&_nc_ohc=MRndWfBSIIIQ7kNvwF1z6r9&_nc_oc=A...",
"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,
"place_id": "274995392617693",
"source": "logged_out_public_view"
}
}
],
"cursor": null,
"has_more": false,
"parent": null
},
"cursor": null,
"has_more": false
}Response#
A list of Event objects in data.items, with data.cursor and data.has_more.
See Data models for every field. The envelope around data is described in Responses.
Errors#
Failures are free: credits_charged is 0. Branch on error.code, never on the message.
| Code | HTTP | Retry | Meaning |
|---|---|---|---|
invalid_params | 400 | no | A parameter is missing, unknown or has the wrong type. |
unsupported_url | 400 | no | The URL is not one this endpoint accepts (wrong platform or form). |
not_found | 404 | no | The platform says this profile, post or item does not exist. |
Every request can also fail with the account and platform errors listed on the Errors page.
Related endpoints#
- Facebook Ad Library search (
GET /v1/facebook/ad-library/search) - Facebook Ad Library search (POST body) (
POST /v1/facebook/ad-library/search) - Facebook Ad Library ads by page (
GET /v1/facebook/ad-library/company/ads) - Facebook Ad Library ads by page (POST body) (
POST /v1/facebook/ad-library/company/ads) - Facebook Ad Library ad details (
GET /v1/facebook/ad-library/ad) - Facebook Ad Library ad transcript (
GET /v1/facebook/ad-library/ad/transcript) - Facebook Ad Library advertiser search (
GET /v1/facebook/ad-library/search/companies) - Facebook profile or page (
GET /v1/facebook/profile)