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_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 | one of | Event URL (facebook.com/events/<id>). Accepted hosts: facebook.com, fb.com, fb.watch. |
id | string | one of | Event 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: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).
1curl -G "https://api.socialscrape.dev/v1/facebook/event" \2 -H "x-api-key: $SOCIALSCRAPE_API_KEY" \3 --data-urlencode "id=437638146356948"1import os2import requests34params = {5 "id": "437638146356948",6}7res = requests.get(8 "https://api.socialscrape.dev/v1/facebook/event",9 headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},10 params=params,11)12body = res.json()1314if body["ok"]:15 print(body["data"])16else:17 print(body["error"]["code"], body["error"]["message"])1const url = new URL("https://api.socialscrape.dev/v1/facebook/event");2url.search = new URLSearchParams({3 "id": "437638146356948"4}).toString();5const res = await fetch(url, {6 headers: { "x-api-key": process.env.SOCIALSCRAPE_API_KEY! },7});8const body = await res.json();910if (body.ok) {11 console.log(body.data);12} else {13 console.error(body.error.code, body.error.message);14}1{2 "nodes": [3 {4 "name": "SocialScrape Facebook event details",5 "type": "n8n-nodes-base.httpRequest",6 "typeVersion": 4.2,7 "position": [8 0,9 010 ],11 "parameters": {12 "method": "GET",13 "url": "https://api.socialscrape.dev/v1/facebook/event",14 "sendQuery": true,15 "queryParameters": {16 "parameters": [17 {18 "name": "id",19 "value": "437638146356948"20 }21 ]22 },23 "sendHeaders": true,24 "headerParameters": {25 "parameters": [26 {27 "name": "x-api-key",28 "value": "={{ $env.SOCIALSCRAPE_API_KEY }}"29 }30 ]31 }32 }33 }34 ],35 "connections": {}36}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.
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.
| 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.
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.
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)