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.
Su salida aparecerá aquí
Complete las entradas y luego haga clic en Ejecutar.
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.
Empiece a construir
Endpoint de la API de la plataforma con autenticación unificada y seguimiento de uso.
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"
}'Configure su clave de API de SandBase en el entorno de su servidor. Las solicitudes usan autenticación Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserve su clave en el servidor. No la exponga en código del navegador.
idstringThe event's numeric identifier.
urlstringThe event's Facebook URL.
Respuesta de ejemplo guardada para esta API; no se realiza ninguna solicitud en vivo al verla.
No se ha publicado ninguna respuesta guardada. Ejecute la API en Playground para inspeccionar su respuesta.
Explorar más
| API | Precio | Respuesta |
|---|---|---|
Facebook Event DetailsEsta API Facebook | Desde $0.0012 por llamada | JSON |
Facebook | Desde $0.0012 por llamada | JSON |
Facebook | Desde $0.00462 por llamada | JSON |
Facebook | Desde $0.0012 por llamada | JSON |
Facebook | Desde $0.0011 por llamada | JSON |
Facebook | Desde $0.0011 por llamada | JSON |
Preguntas
Envía una solicitud POST a https://api.sandbase.ai/v1/api/facebook/event-details con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.
Desde $0.0012 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.
No se requieren parámetros. Opcionales: id (string) y url (string). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.
Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.
No. Facebook Event Details funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de Facebook por separado.