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.
Output Anda akan muncul di sini
Lengkapi input, lalu klik Run.
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.
Mulai membangun
Endpoint API platform dengan autentikasi dan pelacakan penggunaan terpadu.
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"
}'Atur SandBase API key Anda di environment server Anda. Permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key Anda di server. Jangan tampilkan di kode browser.
idstringThe event's numeric identifier.
urlstringThe event's Facebook URL.
Contoh respons yang disimpan untuk API ini; tidak ada permintaan langsung yang dibuat saat melihatnya.
Belum ada respons tersimpan yang dipublikasikan. Jalankan API di Playground untuk melihat responsnya.
Jelajahi lebih lanjut
| API | Harga | Respons |
|---|---|---|
Facebook Event DetailsAPI ini Facebook | Dari $0.0012 per panggilan | JSON |
Facebook | Dari $0.0012 per panggilan | JSON |
Facebook | Dari $0.00462 per panggilan | JSON |
Facebook | Dari $0.0012 per panggilan | JSON |
Facebook | Dari $0.0011 per panggilan | JSON |
Facebook | Dari $0.0011 per panggilan | JSON |
Pertanyaan
Kirim permintaan POST ke https://api.sandbase.ai/v1/api/facebook/event-details dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.
Mulai dari $0.0012 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.
Tidak ada parameter yang wajib. Opsional: id (string) dan url (string). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.
Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.
Tidak. Facebook Event Details berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API Facebook secara terpisah.