Sand AISand AI MAGI-2ตอนนี้ MAGI-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.0012USD / คำขอ
Method
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.
เอาต์พุตพร้อมใช้งาน

เอาต์พุตของคุณจะแสดงที่นี่

กรอกอินพุตให้ครบ แล้วคลิก Run

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 ไปที่ https://api.sandbase.ai/v1/api/facebook/profile-events โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด

Facebook Page Events API ราคาเท่าไร?

เริ่มต้นที่ $0.0012 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน

Facebook Page Events API รับพารามิเตอร์อะไรบ้าง?

ที่ต้องระบุ: url (string). ตัวเลือก: cursor (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์

Facebook Page Events API ส่งคืนอะไร?

การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ

ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ Facebook ไหม?

ไม่จำเป็น Facebook Page Events ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Facebook API แยกต่างหาก