30% off your first 3 months on any paid plan

See plans
SocialAPIs
Sources
PricingBlogFAQContact
Back to Sources

Facebook Events Search

Search public Facebook events by keyword, with optional city, date, online and paid filters: name, date, place, cover, interested and going counts.

EventsAvailableeventssearchfacebook

Ready to try this API?

Edit parameters and send a live request from your browser

Introduction

The Facebook Events Search API finds public Facebook events by keyword. Narrow it by city, date range, online or paid events.


What does this API extract?

  • ๐Ÿ“… Event id, name, link and date text
  • โฐ Start time (start_timestamp, start_datetime)
  • ๐Ÿ“ Place (id, name, type)
  • ๐Ÿ–ผ๏ธ Cover photo and thumbnail
  • ๐Ÿ‘ฅ Interested and going counts
  • ๐ŸŒ Online / happening now / past flags
  • ๐Ÿงต Pagination (page_info.end_cursor, has_next)

Input options

  • query (required): Keywords to search for, e.g. jazz.
  • location (optional): City name (e.g. London) or Facebook location ID (from /facebook/search/locations).
  • after_time (optional): Only events after this date (YYYY-MM-DD).
  • before_time (optional): Only events before this date (YYYY-MM-DD).
  • online_only (optional): Only online events. Default: false.
  • paid_only (optional): Only paid events. Default: false.
  • exact_match (optional): Match the exact query. Default: false.
  • end_cursor (optional): Copy data.page_info.end_cursor from the previous response and pass it back unchanged. Keep paging while data.page_info.has_next is true.
  • fields (optional): Comma-separated list of keys to include in the response. Supports dot notation.
json
1{
2  "query": "jazz",  
3  "location": "London"  
4}

Output example

json
1{
2  "data": {  
3    "page_info": {  
4      "has_next": true,  
5      "end_cursor": "AQHTs5JNXbYDijl9..."  
6    },  
7    "events": [  
8      {  
9        "id": "1234567890123456",  
10        "name": "Jazz Night",  
11        "url": "https://www.facebook.com/events/1234567890123456/",  
12        "event_kind": "PUBLIC_TYPE",  
13        "date_text": "Thu, 3 Dec at 19:15 GMT",  
14        "start_timestamp": 1796325300,  
15        "start_datetime": "2026-12-03T19:15:00",  
16        "place": {  
17          "id": "2222222222222222",  
18          "name": "Example Jazz Club",  
19          "type": "Page"  
20        },  
21        "thumbnail_url": "https://scontent.xx.fbcdn.net/...",  
22        "cover_photo_url": "https://scontent.xx.fbcdn.net/...",  
23        "cover_photo_caption": null,  
24        "price_range": null,  
25        "is_online": false,  
26        "is_online_or_detected_online": false,  
27        "is_happening_now": false,  
28        "is_past": false,  
29        "is_viewer_host": false,  
30        "social_context_text": "120 interested ยท 35 going",  
31        "interested_count": 120,  
32        "going_count": 35,  
33        "viewer_permissions": {  
34          "can_invite": false,  
35          "can_rsvp": false,  
36          "can_share": true,  
37          "can_invite_as_user": false  
38        }  
39      }  
40    ]  
41  },  
42  "message": "Request completed successfully with status: OK (200)",  
43  "meta": {  
44    "statusCode": 200,  
45    "creditsCharged": 1  
46  }  
47}

Conclusion

Use this API to find events, then get the full page of one with Facebook Event Details (event_id).

About the Facebook Events Search API

The Facebook Events Search endpoint is part of SocialAPIs' REST API for public Facebook and Instagram data. Search public Facebook events by keyword, with optional city, date, online and paid filters: name, date, place, cover, interested and going counts. It belongs to the Events category and follows the same auth, pagination, and error-handling conventions as every other endpoint on the platform โ€” so any code you write for one transfers cleanly to the others.

eventssearchfacebook

Parameters

NameTypeRequiredDefaultDescription
querystringYesโ€”Keywords to search for, e.g. jazz
locationstringNoโ€”City name (e.g. London) or Facebook location ID (from /facebook/search/locations)
after_timestringNoโ€”Only events after this date (YYYY-MM-DD)
before_timestringNoโ€”Only events before this date (YYYY-MM-DD)
online_onlybooleanNoโ€”Only online events. Default: false.
paid_onlybooleanNoโ€”Only paid events. Default: false.
exact_matchbooleanNoโ€”Match the exact query. Default: false.
end_cursorstringNoโ€”Pagination cursor: copy data.page_info.end_cursor from the previous response. Keep paging while data.page_info.has_next is true.
fieldsstringNoโ€”Comma-separated list of keys to include in the response. Supports dot notation.

Send parameters in the query string; your key goes in the x-api-token header. A default is what the API uses when you leave the parameter out.

What you can do with this endpoint

The Facebook Events Search endpoint is most often combined with other SocialAPIs endpoints to power the workflows below. Each one is achievable on the Free tier for evaluation; scale up to Pro or Ultra when you move to production.

Building one dataset

Pipe the GET response straight into BigQuery, Postgres, Airtable, or a Google Sheet via n8n / Make / Zapier. The response is structured JSON โ€” no HTML parsing, no headless browser, no upstream OAuth.

Powering an AI agent (MCP)

The same endpoint is exposed as a tool in the SocialAPIs MCP server, so Claude Desktop / ChatGPT custom integrations / Cursor / any MCP-aware client can call it directly inside a chat. No glue code, no separate auth โ€” the user's API token does both.

Scheduled monitoring & alerts

Schedule a recurring call (cron, GitHub Actions, n8n schedule), diff the latest response against the previous run, and notify Slack / email / Telegram when a meaningful change appears. The response shape is stable across calls so diffs stay reliable.

Backfilling a product feature

If you're building a feature on top of public social data (lead enrichment, brand monitoring, competitive intelligence, resale arbitrage), this endpoint usually replaces a brittle in-house scraper that broke every time Facebook tweaked its HTML. Same dataset, real-time, with an SLA.

Working code example

All SocialAPIs endpoints take your API token in the x-api-token header. Grab yours from your dashboard (or create a free account at /auth/signup โ€” 200 free calls per month, no credit card).

curl -X GET "https://api.socialapis.io/facebook/events/search?query=jazz&location=London" \
  -H "x-api-token: YOUR_API_TOKEN" \
  -H "Content-Type: application/json"

The response is JSON containing the requested data plus a request_id (echo it back in any support email โ€” it lets us pull the matching row from our request log in seconds). Detailed parameter schemas and copy-paste snippets in JavaScript, Python, PHP, Java, and Go are available in the playground above.

Pagination, rate limits, and error handling

Pagination

List-style endpoints return a next_cursor in the response. Pass it back in the next request to walk the full result set. Cursors are stable across calls โ€” safe to persist if you need to resume later.

Rate limits

1,000 req/hour on the Free tier; paid tiers step up by an order of magnitude each โ€” 1 req/sec on Pro, 5 req/sec on Ultra, 10 req/sec on Mega, 20+ req/sec on custom Enterprise plans. Limit hits return HTTP 429 with a Retry-After header โ€” respect it and you'll never see a sustained block.

Errors

4xx = your request (bad params, missing auth, hit limit). 5xx = our side (transient โ€” retry with backoff). Every error response includes error_code, message, and a request_id for support.

Related endpoints in the Events category

These endpoints share the same data model and auth as Facebook Events Search. Most real-world integrations combine 2-3 of them.

Facebook Event Details

Full details of one public Facebook event: name, dates, timezone, description, place and address, hosts, tickets, attendance and cover.

Facebook Page Events

Upcoming or past events of a Facebook page: name, date, start time, place, city, image and cancelled flag.

Frequently asked questions

Do I need to register a Facebook app or use OAuth to call the Facebook Events Search endpoint?

No. You only send your SocialAPIs API key in the x-api-token header. We read the public data as a logged-out visitor sees it, with no Facebook account, login or cookies, so there is no Facebook app to register, no OAuth and no access token to renew.

How much does a single call cost in credits?

One credit per call for most endpoints; the price of this endpoint is shown on this page, and a few options cost more (for example the exact follower count). Every response says what it charged in the X-SocialAPIs-Credits-Deducted header. Calls that return data are charged, including empty results; errors (4xx / 5xx, timeouts) are not.

Is the data real-time or cached?

Real-time. Each call fetches from the upstream source at the moment you call us โ€” we don't cache responses between users. Exception: the Ads Library endpoints return Meta's own snapshots, which lag by 24-48 hours because Meta itself indexes them on that cadence.

Can I call this endpoint from Claude Desktop or another AI agent?

Yes. The SocialAPIs MCP server exposes every endpoint as an MCP tool, so any MCP-aware client (Claude Desktop, ChatGPT Custom Integrations, Cursor, Cline) can call it directly inside a chat. Uses the same API token as direct HTTP calls.

What happens if my call fails or returns unexpected data?

Every response includes a request_id in both the body and the x-request-id header. Email it to support and we can pull the full request log within minutes. We retain logs for 30 days on standard plans and indefinitely on enterprise.

Heads up if you're migrating from the Graph API

Some fields Meta's official Graph API used to return are no longer publicly accessible (page email, exact follower counts on small pages, post audience targeting). Where we can derive them from other public signals, we do; where we can't, the field will be absent from the response (we don't fabricate values). The full list of "what's still returnable in 2026" lives in the docs โ€” start there before assuming a field is broken on our side.

Ready to call Facebook Events Search?

Use the playground at the top of this page to send a live request against your account โ€” or grab the curl above and run it from your terminal. Free accounts get 200 calls per month, enough to integrate, prototype, and ship a working demo before deciding whether to upgrade.

Create a free API key ย ยทย  See pricing ย ยทย  Browse all endpoints

Ask an AI about this page

Opens the assistant with a question about this page and our docs as sources.

  • ChatGPT
  • Claude
  • Perplexity
  • Grok
  • Google AI Mode