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.
Twój wynik pojawi się tutaj
Uzupełnij dane wejściowe, a następnie kliknij Uruchom.
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.
Zacznij tworzyć
Punkt końcowy API platformy z jednolitym uwierzytelnianiem i śledzeniem użycia.
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"
}'Ustaw klucz API SandBase w środowisku serwera. Żądania używają uwierzytelniania Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Przechowuj klucz na serwerze. Nie ujawniaj go w kodzie przeglądarkowym.
idstringThe event's numeric identifier.
urlstringThe event's Facebook URL.
Zapisany przykładowy response dla tego API; podczas wyświetlania nie jest wykonywane żadne żądanie na żywo.
Nie opublikowano zapisanego response. Uruchom API w Playground, aby sprawdzić jego odpowiedź.
Odkryj więcej
| API | Cena | Odpowiedź |
|---|---|---|
Facebook Event DetailsTo API Facebook | Od $0.0012 za wywołanie | JSON |
Facebook | Od $0.0012 za wywołanie | JSON |
Facebook | Od $0.00462 za wywołanie | JSON |
Facebook | Od $0.0012 za wywołanie | JSON |
Facebook | Od $0.0011 za wywołanie | JSON |
Facebook | Od $0.0011 za wywołanie | JSON |
Przewodniki:Best Facebook API in 2026: Pricing Compared
Pytania
Wyślij żądanie POST do https://api.sandbase.ai/v1/api/facebook/event-details z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.
Od $0.0012 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.
Nie są wymagane żadne parametry. Opcjonalne: id (string) i url (string). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.
Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie). README na tej stronie zawiera przykładową odpowiedź.
Nie. Facebook Event Details działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API Facebook.