Sand AISand AI MAGI-2ตอนนี้ MAGI-2 อยู่บน SandBase แล้ว: วิดีโอ 1080p พร้อมเสียงในตัวลองใช้เลย

Facebook Event Details

เอกสาร API
https://api.sandbase.ai/v1/api/facebook/event-details

Fetch full details for a single Facebook event by ID or URL (name, schedule, venue, hosts, and attendance) as normalized JSON.

ราคา
เริ่มต้นที่ $0.0012USD / คำขอ
Method
POST
การตอบกลับ
JSON
พารามิเตอร์
0 จำเป็น · 2 ไม่บังคับ

Playground

อินพุต
The event's numeric identifier.
The event's Facebook URL.
เอาต์พุตพร้อมใช้งาน

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

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

API README

Facebook Event Details API

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.

Use cases

  • Track how many people marked going or interested in a convention or concert.
  • Pull venue name, address, and coordinates to place an event on a map.
  • Check whether an event is canceled, online, or already past before listing it.
  • Identify the host page of an event and link back to its Facebook profile.

Request

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.

Parameters

NameTypeRequiredDescription
idstringNoThe event's numeric identifier.
urlstringNoThe event's Facebook URL.

Example response

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
}

Response fields

FieldMeaning
data.name / data.descriptionThe event title and its description text.
data.goingCount / data.interestedCount / data.attendanceCountCounts of people who responded going, people who responded interested, and the event's attendance count.
data.startTimestampThe start of the event as a Unix timestamp in seconds.
data.dayTimeSentence / data.startTimeFormatted / data.durationHuman-readable schedule text, such as the date range with time zone and the length of the event.
data.locationName / data.address / data.cityThe venue name, its street address, and the city.
data.latitude / data.longitudeCoordinates of the venue.
data.hosts[].name / data.hosts[].url / data.hosts[].idThe name, Facebook URL, and ID of each host.
data.isCanceled / data.isOnline / data.isPastFlags that show whether the event is canceled, held online, or already over.
data.privacy / data.eventKindThe event's privacy setting and its type.
foundtrue when the event was found.

Notes

  • Pass either 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/.
  • In the sample response, startTime and endTime are empty strings. Use startTimestamp for the start time.
  • Use hosts[].id or creatorId to look up the host with Facebook Profile.
  • To list more events from a host page, call Facebook Page Events.

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 Event Details API ได้อย่างไร?

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

Facebook Event Details API ราคาเท่าไร?

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

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

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

Facebook Event Details API ส่งคืนอะไร?

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

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

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