idstring
The event's numeric identifier.
https://api.sandbase.ai/v1/api/facebook/event-detailsFetch full details for a single Facebook event by ID or URL (name, schedule, venue, hosts, and attendance) as normalized JSON.
Ihre Ausgabe wird hier angezeigt
Vervollständigen Sie die Eingaben und klicken Sie dann auf Ausführen.
This API returns the details of one Facebook event: its name, description, schedule, venue, hosts, and attendance counts. It needs either the event's numeric id or its Facebook url.
curl -X POST "https://api.sandbase.ai/v1/api/facebook/event-details" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"id": "4045709448982422"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
id | string | No | The event's numeric identifier. |
url | string | No | The event's Facebook URL. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"address": "225 W Douglas Ave, Wichita, KS 67202-3100, United States",
"attendanceCount": 2489,
"canViewMembers": true,
"city": "Wichita, Kansas",
"cityId": "105674782800210",
"coverPhotoUrl": "https://scontent-dfw6-1.xx.fbcdn.net/v/t39.30808-6/570154625_122237652734251216_…",
"creatorId": "61557536504734",
"creatorName": "Kansas Comic Con",
"dayTimeSentence": "Oct 31 at 10:00 AM – Nov 1 at 5:00 PM CST",
"description": "Kansas Comic Con is back! Join us Saturday, October 31st and Sunday, November 1s…",
"duration": "2 days",
"endTime": ""
},
"found": true
}
| Field | Meaning |
|---|---|
data.name / data.description | The event title and its description text. |
data.goingCount / data.interestedCount / data.attendanceCount | Counts of people who responded going, people who responded interested, and the event's attendance count. |
data.startTimestamp | The start of the event as a Unix timestamp in seconds. |
data.dayTimeSentence / data.startTimeFormatted / data.duration | Human-readable schedule text, such as the date range with time zone and the length of the event. |
data.locationName / data.address / data.city | The venue name, its street address, and the city. |
data.latitude / data.longitude | Coordinates of the venue. |
data.hosts[].name / data.hosts[].url / data.hosts[].id | The name, Facebook URL, and ID of each host. |
data.isCanceled / data.isOnline / data.isPast | Flags that show whether the event is canceled, held online, or already over. |
data.privacy / data.eventKind | The event's privacy setting and its type. |
found | true when the event was found. |
id or url. The id is the number at the end of an event URL, such as 4045709448982422 in https://www.facebook.com/events/4045709448982422/.startTime and endTime are empty strings. Use startTimestamp for the start time.hosts[].id or creatorId to look up the host with Facebook Profile.Billed at the actual cost of each call, about $0.0012 for the request above. Failed calls are not charged.
Jetzt loslegen
Plattform-API-Endpunkt mit einheitlicher Authentifizierung und Nutzungsnachverfolgung.
curl -X POST "https://api.sandbase.ai/v1/api/facebook/event-details" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"id": "4045709448982422"
}'Legen Sie Ihren SandBase API-Schlüssel in Ihrer Serverumgebung fest. Anfragen verwenden Bearer-Authentifizierung.
export SANDBASE_API_KEY="YOUR_API_KEY"Bewahren Sie Ihren Schlüssel auf dem Server auf. Geben Sie ihn nicht in Browser-Code preis.
idstringThe event's numeric identifier.
urlstringThe event's Facebook URL.
Gespeicherte Beispielantwort für diese API; beim Anzeigen wird keine Live-Anfrage gesendet.
Es wurde keine gespeicherte Antwort veröffentlicht. Führen Sie die API in Playground aus, um die Antwort zu prüfen.
Mehr entdecken
| API | Preis | Antwort |
|---|---|---|
Facebook Event DetailsDiese API Facebook | Ab $0.0012 pro Aufruf | JSON |
Facebook | Ab $0.0012 pro Aufruf | JSON |
Facebook | Ab $0.00462 pro Aufruf | JSON |
Facebook | Ab $0.0012 pro Aufruf | JSON |
Facebook | Ab $0.0011 pro Aufruf | JSON |
Facebook | Ab $0.0011 pro Aufruf | JSON |
Anleitungen:Best Facebook API in 2026: Pricing Compared
Fragen
Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/facebook/event-details mit Ihrem SandBase API-Schlüssel im Authorization-Header (Bearer) und den Parametern als JSON-Body. Sie können das auch ohne Code direkt auf dieser Seite im Playground testen.
Ab $0.0012 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.
Es sind keine Parameter erforderlich. Optional: id (string) und url (string). Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.
Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.
Nein. Facebook Event Details läuft über SandBase, daher deckt ein SandBase API-Schlüssel diesen Endpunkt und jede andere API sowie jedes Modell im Katalog ab. Sie müssen keinen separaten Zugang für Facebook API beantragen.