Docs menu

Facebook event details

Beta GET /v1/facebook/event

GET /v1/facebook/event

Facebook event details.

  • 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
urlURLone ofEvent URL (facebook.com/events/<id>). Accepted hosts: facebook.com, fb.com, fb.watch.
idstringone ofEvent id. Also accepted as event_id.

Send at least one of url, id. If you send several, the first listed is used and the rest are ignored.

Every request also accepts:

  • 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/event" \
  -H "x-api-key: $SOCIALSCRAPE_API_KEY" \
  --data-urlencode "id=437638146356948"
Python
import os
import requests

params = {
    "id": "437638146356948",
}
res = requests.get(
    "https://api.socialscrape.io/v1/facebook/event",
    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/event");
url.search = new URLSearchParams({
  "id": "437638146356948"
}).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 event details",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        0,
        0
      ],
      "parameters": {
        "method": "GET",
        "url": "https://api.socialscrape.io/v1/facebook/event",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "id",
              "value": "437638146356948"
            }
          ]
        },
        "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_9cf14ab49f115688ba05bb2c",
  "data": {
    "object": "event",
    "platform": "facebook",
    "id": "437638146356948",
    "url": "https://www.facebook.com/events/437638146356948/",
    "title": "List of Upcoming SHOWS",
    "description": "\n\n2026\n\nTuesday August 11\nCinema Bar\n3967 Sepulveda Blvd, Culver City, CA 90230\n8pm\n\n\n\nTuesday July 14\nCinema Bar\n3967 Sepulveda Blvd, Culver City, CA 90230\n8pm\n\nFriday June 26 \nJuneShine\n2914 Main St, Santa Monica, CA 90405\n8-11pm\n\nFriday-...",
    "starts_at": "2026-02-20T08:00:00Z",
    "ends_at": null,
    "place": null,
    "is_online": false,
    "host": {
      "id": "1000000001",
      "handle": "sample_user",
      "name": "Sample User",
      "url": null,
      "avatar_url": null,
      "verified": false
    },
    "going_count": null,
    "interested_count": null,
    "cover_url": "https://scontent-sjc3-1.xx.fbcdn.net/v/t39.30808-6/476950299_1211481024310669_6433450080587683707_n.jpg?stp=dst-jpg_tt6&cstp=mx1440x1440&ctp=s960x960&_nc_cat=106&ccb=1-7&_nc_sid=75d36f&_nc_ohc=sOBB7S69IkEQ7kNvwGr45J9&_nc_oc=Adr7Alw0aMeXeV3v...",
    "extra": {
      "creator": {
        "id": "1000000001",
        "name": "Sample User"
      },
      "day_time_sentence": "Friday, February 20, 2026 at 12:00 AM PST",
      "event_kind": "PUBLIC_TYPE",
      "hosts": [
        {
          "avatar_url": null,
          "handle": "sample_user",
          "id": "1000000001",
          "name": "Sample User",
          "url": null,
          "verified": false
        },
        {
          "avatar_url": null,
          "id": "1000000001",
          "name": "Sample User",
          "verified": false
        }
      ],
      "is_canceled": false,
      "is_past": true,
      "rsvp_style": "PUBLIC_RSVP_STYLE",
      "source": "logged_out_public_view",
      "start_time_formatted": "Fri, Feb 20"
    }
  },
  "cursor": null,
  "has_more": null
}

Response#

A Event object in data.

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.

Example error:

{
  "ok": false,
  "error": {
    "code": "not_found",
    "message": "The platform says this profile, post or item does not exist.",
    "retryable": false
  },
  "credits_charged": 0,
  "request_id": "req_c72c9a98a3e8cf0c1ecfc865"
}

Also served at#

These paths answer the same request, so code written for other APIs keeps working: /v1/facebook/event/details. See Switching from ScrapeCreators.