Sand AISand AI MAGI-2MAGI-2 現已登上 SandBase:支援原生音訊的 1080p 影片立即試用

Facebook Page Events

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.

價格
自 $0.0012 起美元/次呼叫
方法
POST
回應
JSON
參數
1 個必填 · 1 個選填

Playground

輸入
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.
輸出就緒

您的輸出會顯示在這裡

完成輸入後,點擊執行。

API README

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.

探索更多

相關 APIs

所有 APIs
API價格回應
Facebook每次呼叫 $0.0012 起JSON
Facebook每次呼叫 $0.0012 起JSON
Facebook每次呼叫 $0.00462 起JSON
Facebook每次呼叫 $0.0012 起JSON
Facebook每次呼叫 $0.0011 起JSON
Facebook每次呼叫 $0.0011 起JSON

指南:Best Facebook API in 2026: Pricing Compared

問題

常見問題

我要如何使用 Facebook Page Events API?

使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/facebook/profile-events。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。

Facebook Page Events API 的費用是多少?

每次起 $0.0012,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。

Facebook Page Events API 接受哪些參數?

必要:url (string)。 選填:cursor (string)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。

Facebook Page Events API 會回傳什麼?

在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。

我需要 Facebook 開發者帳號或 API 金鑰嗎?

不需要。Facebook Page Events 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 Facebook API 存取權。