- Cost
- 1 credit
- Cached repeats
- 0 creditssend max_age_days, results kept 30 days
- Failed requests
- 0 credits
You send one of url or id.
Part of the Facebook Scraper API: 23 Facebook endpoints on one key.
Request
Send your key in the x-api-key header.
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 timeout=60,12)13body = res.json()1415if body["ok"]:16 print(body["data"])17else:18 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}Parameters
| Name | Type | Required | Description |
|---|---|---|---|
url | url | one of | Event URL (facebook.com/events/<id>). |
id | string | one of | Event id. Also accepted as event_id. |
Every request also accepts trim, raw and max_age_days.
Response
Sample from a recorded response, shortened. Values are examples, not your data.
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\n...",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...",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": true55 }56 },57 "cursor": null,58 "has_more": null59}Fields
One Event in data.
A field the platform does not give is null, never made up. Extra platform details are in extra.
| Field | Type | Always | Notes |
|---|---|---|---|
object | "event" | ||
platform | Platform | yes | |
id | string | yes | |
url | string or null | ||
title | string or null | ||
description | string or null | ||
starts_at | string (ISO 8601 date-time) or null | ||
ends_at | string (ISO 8601 date-time) or null | ||
place | Place or null | ||
is_online | boolean or null | ||
host | Author or null | ||
going_count | integer or null | ||
interested_count | integer or null | ||
cover_url | string or null |
Show the other 1 fields
| Field | Type | Always | Notes |
|---|---|---|---|
extra | object or null |
Full field list in the reference for this endpoint and the data models. Errors are listed under Errors.
Questions
Which errors can it return?
invalid_params (do not retry), unsupported_url (do not retry), not_found (do not retry). Account and platform errors from the errors list can also happen. A failure always costs 0 credits.
Is there an SDK call for it?
The Python client has client.facebook.event(...) and the TypeScript client client.facebook.event(). Both return the same envelope as the HTTP API. Install them from PyPI (socialscrape-sdk) or npm (socialscrape); plain HTTP works in any language.
Can an AI agent call it?
Yes. The MCP server, which you run on your own machine, reaches every built endpoint, with the same prices.