Facebook event details API
  1. Docs
  2. Facebook
  3. Facebook event details API

Facebook event details API

Facebook event details: GET /v1/facebook/event. 1 credit per request.

GET /v1/facebook/event

GET /v1/facebook/event

Facebook event details.

  • Cost: 1 credit
  • 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).

1curl -G "https://api.socialscrape.dev/v1/facebook/event" \2  -H "x-api-key: $SOCIALSCRAPE_API_KEY" \3  --data-urlencode "id=437638146356948"

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.

200 OKSample response
1{2  "ok": true,3  "credits_charged": 1,4  "credits_remaining": 4999,5  "cached": false,6  "cached_at": null,7  "request_id": "req_9cf14ab49f115688ba05bb2c",8  "data": {9    "object": "event",10    "platform": "facebook",11    "id": "437638146356948",12    "url": "https://www.facebook.com/events/437638146356948/",13    "title": "List of Upcoming SHOWS",14    "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-...",15    "starts_at": "2026-02-20T08:00:00Z",16    "ends_at": null,17    "place": null,18    "is_online": false,19    "host": {20      "id": "1000000001",21      "handle": "sample_user",22      "name": "Sample User",23      "url": null,24      "avatar_url": null,25      "verified": false26    },27    "going_count": null,28    "interested_count": null,29    "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...",30    "extra": {31      "creator": {32        "id": "1000000001",33        "name": "Sample User"34      },35      "day_time_sentence": "Friday, February 20, 2026 at 12:00 AM PST",36      "event_kind": "PUBLIC_TYPE",37      "hosts": [38        {39          "avatar_url": null,40          "handle": "sample_user",41          "id": "1000000001",42          "name": "Sample User",43          "url": null,44          "verified": false45        },46        {47          "avatar_url": null,48          "id": "1000000001",49          "name": "Sample User",50          "verified": false51        }52      ],53      "is_canceled": false,54      "is_past": true,55      "rsvp_style": "PUBLIC_RSVP_STYLE",56      "source": "logged_out_public_view",57      "start_time_formatted": "Fri, Feb 20"58    }59  },60  "cursor": null,61  "has_more": null62}

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:

1{2  "ok": false,3  "error": {4    "code": "not_found",5    "message": "The platform says this profile, post or item does not exist.",6    "retryable": false7  },8  "credits_charged": 0,9  "request_id": "req_c72c9a98a3e8cf0c1ecfc865"10}

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.