Docs menu

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_days to reuse them for free.
  • Timeout: A request still running after about 25 seconds answers 202 with a job to poll (Batch and jobs).

Parameters#

NameTypeRequiredDescription
urlURLyesProfile or page URL. Accepted hosts: facebook.com, fb.com, fb.watch.

Every request also accepts:

  • cursor: the cursor from the previous page (Pagination).
  • trim: true for a smaller response without null fields and extra.
  • raw: true to also get the platform's original object as raw.
  • 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.

CodeHTTPRetryMeaning
invalid_params400noA parameter is missing, unknown or has the wrong type.
unsupported_url400noThe URL is not one this endpoint accepts (wrong platform or form).
not_found404noThe 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.