Sand AISand AI MAGI-2MAGI-2 अब SandBase पर है: 1080p वीडियो, नेटीव ऑडियो के साथअभी आज़माएँ

Facebook Events

API दस्तावेज़
https://api.sandbase.ai/v1/api/facebook/events

List public Facebook events for a city or place by its events-page URL (event name, date, venue, and attendance) as normalized JSON.

मूल्य
से $0.0012USD / कॉल
मेथड
POST
प्रतिक्रिया
JSON
पैरामीटर
1 आवश्यक · 2 वैकल्पिक

प्लेग्राउंड

इनपुट
URL of a city's or place's Facebook Events page (e.g. https://www.facebook.com/events/explore/saint-petersburg-florida/111326725552547).
Timeframe filter for the returned events. Defaults to all time.
Pagination cursor from a previous response to fetch the next page.
आउटपुटतैयार

आपका आउटपुट यहाँ दिखाई देगा

इनपुट पूरा करें, फिर Run पर क्लिक करें।

API README

Facebook Events API

Returns a list of public Facebook events for a city or place. It needs the URL of a Facebook Events page, such as a city's events explore page. Each event includes its name, start time, venue, and going and interested counts.

Use cases

  • Build a local "what's on" calendar for a city such as Saint Petersburg, Florida.
  • Rank upcoming events by interestedCount and goingCount to find the most popular ones.
  • Filter to events happening today or this week to feed a weekend guide or newsletter.
  • Collect venue names and addresses to see where events are held in an area.

Request

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

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

Parameters

NameTypeRequiredDescription
urlstringYesURL of a city's or place's Facebook Events page (e.g. https://www.facebook.com/events/explore/saint-petersburg-florida/111326725552547).
cursorstringNoPagination cursor from a previous response to fetch the next page.
timestringNoTimeframe filter for the returned events. Defaults to all time.

Example response

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

{
  "data": {
    "events": [
      {
        "coverImage": "https://scontent-lga3-1.xx.fbcdn.net/v/t39.30808-6/691737832_122221920272546827_…",
        "dayTimeSentence": "Sat, Nov 7 at 3:00 PM EST",
        "eventKind": "PUBLIC_TYPE",
        "goingCount": 250,
        "id": "1009766568177406",
        "interestedCount": 7400,
        "isHappeningNow": false,
        "isOnline": false,
        "isPast": false,
        "name": " 90s Day Party: St. Petersburg, FL 💿",
        "placeId": "122231702342546827",
        "placeName": "2655 6th Ave S, St Petersburg, FL 33712-1653, United States"
      }
    ],
    "nextCursor": "cur_4pRRU2-BvJCuoK3XKQ1TtA"
  },
  "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[].dayTimeSentenceReadable date and time text, such as Sat, Nov 7 at 3:00 PM EST. Multi-day events show a date range.
data.events[].placeNameVenue name or street address of the event.
data.events[].placeIdID of the venue on Facebook.
data.events[].goingCount / data.events[].interestedCountNumber of people who marked the event as going and as interested.
data.events[].isOnline / data.events[].isPast / data.events[].isHappeningNowFlags that show if the event is online, already over, or in progress.
data.events[].coverImageURL of the event's cover image.
data.nextCursorCursor for the next page of events.

Notes

  • Copy the url from the events explore page of a city or place on Facebook.
  • To get the next page, send data.nextCursor back as cursor with the same url.
  • Use time with today, this_week, or next_week to narrow the results. Without it, all upcoming events are returned.
  • For full details on one event, pass its id to Facebook Event Details.

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 Eventsयह 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

प्रश्न

FAQ

Facebook Events API का उपयोग कैसे करें?

https://api.sandbase.ai/v1/api/facebook/events पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।

Facebook Events API की लागत कितनी है?

$0.0012 से प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।

Facebook Events API कौन-से parameters स्वीकार करती है?

आवश्यक: url (string)। वैकल्पिक: time (today, this_week, next_week में से एक) और cursor (string)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।

Facebook Events API क्या लौटाती है?

एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।

क्या मुझे एक Facebook developer account या API key चाहिए?

नहीं। Facebook Events SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Facebook API access के लिए आवेदन करने की आवश्यकता नहीं है।