Skip to Content

Event

One event, with its time, place and host.

GET
/v1/facebook/event

Authorization

apiKey
headerAuthorizationBearer <token>

An API key from the dashboard: Authorization: Bearer sapi_….

Query Parameters

url?string

The event's link (https://www.facebook.com/events/<id>/).

id?string

The event's id, instead of url.

maxAge?integer

How old a cached answer may be, in seconds; 0 always fetches. Default and most: the endpoint's cache lifetime.

Formatint64
Range0 <= value

Response Body

The answer.

application/json
  1. response

One item, as every single-item endpoint answers: { "data": … }.

data*

A Facebook event.

Example Request
import { SocialAPI } from "@socialapihq/sdk";const client = new SocialAPI({ apiKey: process.env.SOCIALAPI_API_KEY });const { data } = await client.facebook.event({ id: "1172420738455703" });
Example Response
{  "data": {    "id": "1172420738455703",    "url": "https://www.facebook.com/events/1172420738455703/",    "name": "Black Friday Starts Early at JCPenney Bronx",    "description": "BLACK FRIDAY STARTS EARLY AT JCPENNEY! \n\nThe holiday excitement starts bright and early! Join us Friday, November 27, at 4:00 AM at JCPenney Bronx for a special Black Friday experience celebrating the customers who show up first.\n\nWe're bringing extra holiday cheer to the early morning with exclusive experiences, festive entertainment, and special surprises for our JCPenney Rewards members ONLY!…",    "startsAt": "2026-11-27T09:00:00.000Z",    "when": "Friday 27 November 2026 at 04:00 EST",    "place": "JCPenney (The Bronx, NY)",    "address": "100 Baychester Ave, The Bronx, NY, US 10475",    "online": false,    "past": false,    "coverUrl": "https://scontent-lhr6-2.xx.fbcdn.net/v/t39.99422-6/911450546_1128424796718723_4108387113018032758_n.png?stp=dst-jpg_tt6&cstp=mx1920x1002&ctp=s960x960&_nc_cat=110&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=75d36f&_nc_ohc=hoWTfgcXN4YQ7kNvwG7NR6r&_nc_oc=Adofe9enhUAto3p2aRrIhsOHAaZuuNNdmVlCCJ6eHIPHdgpE8QrKQS-hJDGUJaL2t5Q&_nc_zt=14&_nc_ht=scontent-lhr6-2.xx&_nc_gid=tHD6IQc9biRhnhsNe1uitg&_nc_ss=79389&oh=00_AQTfK1ZQiE0pJEIkcrfOKeGLMHAcH_zC5KlirSQYRDx7wQ&oe=6B0CB9CA",    "attendance": null,    "host": {      "id": "100044467298394",      "name": "JCPenney"    },    "ticketUrl": null  }}