Sand AISand AI MAGI-2MAGI-2 kini tersedia di SandBase: video 1080p dengan audio nativeCoba sekarang

Facebook Page Events

Dokumentasi API
https://api.sandbase.ai/v1/api/facebook/profile-events

List upcoming and past events hosted by any public Facebook page by URL (name, schedule, venue, and host) as normalized JSON.

Harga
Dari $0.0012USD / panggilan
Metode
POST
Respons
JSON
Parameter
1 wajib · 1 opsional

Playground

Input
The Facebook page link whose events to list, e.g. https://www.facebook.com/brickyardoldtown. Accepted: facebook.com/<name>, /p/<name>-<id>, /pages/<name>/<id>, /pg/<name>, /people/<name>/<id> and profile.php?id=<id>, on facebook.com or fb.com with or without www, m, mbasic, web, business or a language subdomain. Anything after the page, such as a tab, is fine: only the page is read. Any other Facebook link, such as a single event, group, share link, reel, video, hashtag, search or login page, is refused as invalid input, with no charge; facebook.event_details reads one event.
Pagination cursor from a previous response.
OutputSiap

Output Anda akan muncul di sini

Lengkapi input, lalu klik Run.

README API

Facebook Page Events API

This API lists the upcoming and past events hosted by a public Facebook page. It needs the page link in url and returns each event's name, schedule text, start time, venue name, city, and host.

Use cases

  • Build a calendar of upcoming events for a venue or promoter page.
  • Track when a competitor's page schedules new events or cancels existing ones.
  • Collect event links for a list of local venues, then pull full details for each event.
  • Check whether a page's events are online or at a physical place.

Request

curl -X POST "https://api.sandbase.ai/v1/api/facebook/profile-events" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://www.facebook.com/brickyardoldtown"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
urlstringYesThe Facebook page link whose events to list, e.g. https://www.facebook.com/brickyardoldtown. Accepted: facebook.com/<name>, /p/<name>-<id>, /pages/<name>/<id>, /pg/<name>, /people/<name>/<id> and profile.php?id=<id>, on
cursorstringNoPagination cursor from a previous response.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "data": {
    "events": [
      {
        "city": "Wichita",
        "creatorName": "Public at the Brickyard",
        "dayTimeSentence": "Tue, Nov 17 - Nov 30",
        "id": "1324020146405525",
        "isCanceled": false,
        "isOnline": true,
        "isPast": false,
        "name": "The Jingle Returns to Public!",
        "placeName": "Public at the Brickyard",
        "startTimestamp": 1794956400,
        "url": "https://www.facebook.com/events/1324020146405525/"
      }
    ],
    "hasNextPage": false,
    "nextCursor": "cur_iay97_cKG9azuqBjh6QcbQ",
    "totalCount": 2
  },
  "found": true
}

Response fields

FieldMeaning
data.events[].nameTitle of the event.
data.events[].id / data.events[].urlEvent ID and the link to the event page on Facebook.
data.events[].startTimestampEvent start time as a Unix timestamp in seconds.
data.events[].dayTimeSentenceHuman-readable schedule text as shown on Facebook, such as Sat, Dec 5 at 10:00 AM CST or a date range.
data.events[].placeName / data.events[].cityName of the venue and the city it is in.
data.events[].creatorNameName of the page or account that hosts the event.
data.events[].isCanceled / data.events[].isPast / data.events[].isOnlineFlags for whether the event is canceled, already over, or held online.
data.totalCountNumber of events in this response.
data.hasNextPage / data.nextCursorWhether more events are available, and the cursor to request them.
foundtrue when the page was found.

Notes

  • Pass the page link in url. Links to a single event, group, reel, video, or search page are refused as invalid input.
  • To get the next page of events, send nextCursor as cursor in a new request. Do this when hasNextPage is true.
  • Use Facebook Event Details with an event url to read one event in full.

Pricing

Billed at the actual cost of each call, about $0.0012 for the request above. Failed calls are not charged.

Jelajahi lebih lanjut

API Terkait

Semua APIs
APIHargaRespons
FacebookDari $0.0012 per panggilanJSON
FacebookDari $0.0012 per panggilanJSON
FacebookDari $0.00462 per panggilanJSON
FacebookDari $0.0012 per panggilanJSON
FacebookDari $0.0011 per panggilanJSON
FacebookDari $0.0011 per panggilanJSON

Panduan:Best Facebook API in 2026: Pricing Compared

Pertanyaan

FAQ

Bagaimana cara menggunakan API Facebook Page Events?

Kirim permintaan POST ke https://api.sandbase.ai/v1/api/facebook/profile-events 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.

Berapa biaya API Facebook Page Events?

Mulai dari $0.0012 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.

Parameter apa yang diterima API Facebook Page Events?

Wajib: url (string). Opsional: cursor (string). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.

Apa yang dikembalikan API Facebook Page Events?

Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.

Apakah saya memerlukan akun developer atau kunci API Facebook?

Tidak. Facebook Page Events 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.