Facebook API

Facebook Events search API

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

POST/v1/run/facebook.events_search
Uptime
100.00%
30d · 8 calls
Requests
8
30d
Response
4.0s
median · 30d

Try it

Make your first request

Open in
Get a free key
Sample response
Free runs return only the first 3 results. Fund a key to get the full response.
{
  "data": {
    "events": [
      {
        "coverImage": "https://example.com/image.jpg",
        "dayTimeSentence": "2024-01-15T09:30:00Z",
        "goingCount": 12500,
        "id": "a1b2c3d4",
        "interestedCount": 12500,
        "isOnline": true,
        "isPast": true,
        "name": "Example title",
        "placeName": "Example title",
        "priceRangeText": "A short example description of this item.",
        "startTimestamp": 42,
        "url": "https://example.com/page"
      }
    ],
    "nextCursor": "example"
  },
  "found": true
}
Response interface
interface FacebookEventsSearchResponse {
  data: {
    events: {
      coverImage: string;
      dayTimeSentence: string;
      goingCount: number;
      id: string;
      interestedCount: number;
      isOnline: boolean;
      isPast: boolean;
      name: string;
      placeName: string;
      priceRangeText: string;
      startTimestamp: number;
      url: string;
    }[];
    nextCursor: string | null;
  } | null;
  found: boolean;
}

Full parameter and response reference - every field, type, and example for this endpoint.

Reference

Request, response, and price

Last verified 2026-09-16 · uptime and latency measured over 30d
POST /v1/run/facebook.events_search
curl -X POST https://api.getanyapi.com/v1/run/facebook.events_search \
  -H "Authorization: Bearer $ANYAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"music festival"}'
FieldTypeExample value
Request body
querystring"music festival"The query to search events for.
cursorstringPagination cursor from a previous response.
Response
dataobject
data.eventsobject[]
data.events[].coverImagestringPopulated whenever the provider has data for the entity.
data.events[].dayTimeSentencestringPopulated whenever the provider has data for the entity.
data.events[].goingCountinteger
data.events[].idstringPopulated whenever the provider has data for the entity.
data.events[].interestedCountinteger
data.events[].isOnlineboolean
data.events[].isPastboolean
data.events[].namestringPopulated whenever the provider has data for the entity.
data.events[].placeNamestringPopulated whenever the provider has data for the entity.
data.events[].priceRangeTextstring
data.events[].startTimestampintegerPopulated whenever the provider has data for the entity.
data.events[].urlstringPopulated whenever the provider has data for the entity.
data.nextCursorstringOpaque cursor for the next page of events, or null when this lane has no more. Pass it back as cursor to continue.
foundboolean
Price
Price per requestUSD$0.0012
Price /1k reqUSD$1.20

FAQ

About the Facebook Events search API

The AnyAPI Facebook Events search API returns Facebook events search data as normalized JSON from one POST call to /v1/run/facebook.events_search. Search public Facebook events by keyword and get structured event records (name, schedule, venue, pricing, and attendance) as normalized JSON. AnyAPI routes each request across 2 sources and falls back automatically when one fails. It costs from $1.20 per 1,000 requests, in US dollars with no subscription and no monthly minimum. Over the last 30 days, 100.0% of Facebook events search calls through AnyAPI succeeded, with a median response time of 4.0 seconds across 8 measured calls.

It costs from $1.20 per 1,000 requests, in US dollars with no subscription and no monthly minimum. You fund one USD wallet, each call draws it down, and a failed request costs $0.

Search public Facebook events by keyword and get structured event records (name, schedule, venue, pricing, and attendance) as normalized JSON. The response is normalized JSON with the same envelope every AnyAPI endpoint returns, so parsing a second endpoint is a change of URL and nothing else.

Over the last 30 days, 100.0% of Facebook events search calls through AnyAPI succeeded, with a median response time of 4.0 seconds across 8 measured calls. These are AnyAPI's own measurements of traffic through the gateway, recomputed continuously, not a published service-level target.