Sand AISand AI MAGI-2MAGI-2 ist jetzt auf SandBase: 1080p-Video mit nativem AudioJetzt testen

Facebook Events Search

API-Dokumentation
https://api.sandbase.ai/v1/api/facebook/events-search

Search public Facebook events by keyword and get structured event records (name, schedule, venue, pricing, and attendance) as normalized JSON.

Preis
Ab $0.0012USD / Aufruf
Methode
POST
Antwort
JSON
Parameter
1 erforderlich · 1 optional

Playground

Eingabe
The query to search events for.
Pagination cursor from a previous response.
AusgabeBereit

Ihre Ausgabe wird hier angezeigt

Vervollständigen Sie die Eingaben und klicken Sie dann auf Ausführen.

API-README

Facebook Events Search API

This API searches public Facebook events by keyword. It needs a query string and returns a list of matching events with name, date text, place, attendance counts, and a link to each event page.

Use cases

  • Find music festivals or other events that match a topic to build an event listings page.
  • Compare goingCount and interestedCount across events to see which ones draw the most interest.
  • Collect event venues from placeName and placeId to map where events on a topic take place.
  • Pull event URLs and IDs from a search, then fetch full records for the ones you want.

Request

curl -X POST "https://api.sandbase.ai/v1/api/facebook/events-search" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "music festival"}'

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

Parameters

NameTypeRequiredDescription
querystringYesThe query to search events for.
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": [
      {
        "coverImage": "https://scontent-lga3-3.xx.fbcdn.net/v/t39.30808-6/699504039_1385612160276095_77…",
        "dayTimeSentence": "Saturday, August 8, 2026 at 10:00 AM – 7:00 PM PDT",
        "eventKind": "PUBLIC_TYPE",
        "goingCount": 39,
        "id": "26785548844435134",
        "interestedCount": 189,
        "isOnline": false,
        "isPast": true,
        "name": "SOULNIC Music Festival 2026",
        "placeId": "110814105639169",
        "placeName": "Grand Hope Park",
        "priceRangeText": ""
      }
    ],
    "nextCursor": "cur_ElaihBBDDUQAbGudkWvX2w"
  },
  "found": true
}

Response fields

FieldMeaning
data.events[].idFacebook ID of the event.
data.events[].nameTitle of the event.
data.events[].urlLink to the event page on Facebook.
data.events[].dayTimeSentenceHuman-readable schedule text, including the time zone. Multi-day events show both start and end dates.
data.events[].startTimestampEvent start time as a Unix timestamp in seconds.
data.events[].isPast / data.events[].isOnlineBooleans. isPast marks events that already happened. isOnline marks online events.
data.events[].placeName / data.events[].placeIdName and Facebook ID of the venue. Both are empty strings when the event has no linked place.
data.events[].goingCount / data.events[].interestedCountNumber of people who marked themselves as going, and number who marked themselves as interested.
data.events[].priceRangeTextPrice text for the event. It is an empty string when no price is listed.
data.nextCursorCursor to pass as cursor to get the next page of results.

Notes

  • Pass data.nextCursor from a response as cursor in the next request, with the same query, to get more results.
  • startTimestamp is in seconds, so multiply by 1000 for JavaScript dates.
  • Results can include past events. Check isPast to filter them out.
  • For more detail on one event, use Facebook Event Details with the event id or url.

Pricing

Billed at the actual cost of each call, about $0.0012 for the request above. Failed calls are not charged.

Mehr entdecken

Verwandte APIs

Alle APIs
APIPreisAntwort
FacebookAb $0.0012 pro AufrufJSON
FacebookAb $0.0012 pro AufrufJSON
FacebookAb $0.00462 pro AufrufJSON
FacebookAb $0.0012 pro AufrufJSON
FacebookAb $0.0011 pro AufrufJSON
FacebookAb $0.0011 pro AufrufJSON

Anleitungen:Best Facebook API in 2026: Pricing Compared

Fragen

FAQ

Wie verwende ich die Facebook Events Search API?

Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/facebook/events-search mit Ihrem SandBase API-Schlüssel im Authorization-Header (Bearer) und den Parametern als JSON-Body. Sie können das auch ohne Code direkt auf dieser Seite im Playground testen.

Was kostet die Facebook Events Search API?

Ab $0.0012 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.

Welche Parameter akzeptiert die Facebook Events Search API?

Erforderlich: query (string). Optional: cursor (string). Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.

Was gibt die Facebook Events Search API zurück?

Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.

Benötige ich ein Facebook-Entwicklerkonto oder einen API-Schlüssel?

Nein. Facebook Events Search läuft über SandBase, daher deckt ein SandBase API-Schlüssel diesen Endpunkt und jede andere API sowie jedes Modell im Katalog ab. Sie müssen keinen separaten Zugang für Facebook API beantragen.