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.
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर 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.
बिल्डिंग शुरू करें
एकीकृत authentication और usage tracking के साथ Platform API endpoint.
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"
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
idstringThe event's numeric identifier.
urlstringThe event's Facebook URL.
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
कोई सेव response प्रकाशित नहीं किया गया है। इसका response देखने के लिए Playground में API चलाएँ।
और जानें
| API | कीमत | प्रतिक्रिया |
|---|---|---|
Facebook Event Detailsयह 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 |
प्रश्न
https://api.sandbase.ai/v1/api/facebook/event-details पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.0012 से प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
कोई parameters आवश्यक नहीं हैं। वैकल्पिक: id (string) और url (string)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। Facebook Event Details SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Facebook API access के लिए आवेदन करने की आवश्यकता नहीं है।