Facebook Public Events Search
Search public Facebook events by keyword or city with event title, dates, venue location, cover image, and event URL.
curl -sG "https://api.agentapigate.ai/v1/facebook/events/search" \ --data-urlencode "query=music festival" \ --data-urlencode "limit=10" \ --data-urlencode "format=md" \ -H "Authorization: Bearer aag_live_YOUR_KEY" \ -H "X-AAG-Max-Cost: 0.0100"
# Facebook Public Events Search (`facebook.events.search`) **query**: music festival · **count**: 5 ## events - [1] id: 1563074071685525, name: LAND MUSIC FESTIVAL EN FRESNO, going_count: 15, interested_count: 50, cover_image: https://scontent-iad3-2.xx.fbcdn.net/v/t39.30808-6/813137238_1378210324476720_8879880449293492200_n.jpg?_nc_cat=102&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=75d36f&_nc_ohc=G6wle_3dDxoQ7kNv - [2] id: 2584771478646262, name: Tulare Music Fest, going_count: 6, interested_count: 32, cover_image: https://scontent-iad3-2.xx.fbcdn.net/v/t39.30808-6/776405673_1623223766041521_3587982817949372064_n.jpg?_nc_cat=110&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=75d36f&_nc_ohc=FW7uYC_nrE4Q7kNvwHXxzJt&_nc_o - [3] id: 1023646120225919, name: Joshua Tree Music Festival - FALL 2026, going_count: 65, interested_count: 269, cover_image: https://scontent-lga3-1.xx.fbcdn.net/v/t39.30808-6/705170523_1499004215000563_1466942133539430704_n.jpg?_nc_cat=102&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=75d36f&_nc_aid=0&_nc_ - [4] id: 1688225605583200, name: Common Ground Music & Arts Festival 2026, going_count: 81, interested_count: 415, cover_image: https://scontent-sjc3-1.xx.fbcdn.net/v/t39.30808-6/777868091_122132968275348251_3635652128427860587_n.jpg?_nc_cat=110&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=75d36f&_nc_ohc=or - [5] id: 1578036857655662, name: Green Stage Music Festival 2026, going_count: 242, interested_count: 778, cover_image: https://scontent-sea5-2.xx.fbcdn.net/v/t39.30808-6/700293611_1895316624472542_4263274166100507508_n.jpg?stp=cp6_dst-jpg_s2048x2048_tt6&_nc_cat=106&_nc_map=urlgen_bucketless&ccb=1-7&_nc_
Endpoint Parameters, Cost & Token Economy Reference
Endpoint ID:facebook.events.search · Method: GET| Parameter | Type | Req | Sample / Default | Description |
|---|---|---|---|---|
| query | string | required | music festival | Event topic or city query (e.g. music festival, tech conference) |
| limit | number | optional | 10 | Max events (1-25) |
| format | enum | optional | json | compact | md | Response format; compact or md cuts LLM tokens. |
| dry_run | 0 | 1 | optional | 1 | Returns exact pre-flight price quote & validation at $0.00 cost. |
| Access Rail / Metric | Value | Policy & SLA |
|---|---|---|
| API Key (PAYG) | $0.0030 / call | $0/mo · Balance never expires |
| Remote MCP Tool | facebook_events_search | OAuth 2.1 Hub & /mcp/social |
| x402 Base USDC | $0.0030 / call | Zero-signup USDC enabled |
| P50 Latency | 5686 ms | $0 billed on empty or 4xx/5xx |
| Token Economy | 1802t → 433t (-76%) | Partner credit: eligible |
More Social & Video Real-Time APIs
Fetch TikTok account profile bio, verification badge, follower count, heart count, and video count.
List recent short videos posted by a TikTok creator with view, like, comment, and share counts.
Fetch full metadata, audio track, author details, and engagement metrics for a TikTok video URL or ID.
Fetch top comments on a TikTok video URL or ID with author handles and like counts.
Search TikTok short videos by keyword with view, like, and creator statistics.
Fetch currently trending viral TikTok videos in a target country code.
Frequently Asked Questions
How do I call Facebook Public Events Search (facebook.events.search) over REST and Remote MCP?
Send GET requests to https://api.agentapigate.ai/v1/facebook/events/search with an aag_live_* / aag_agent_* Bearer key, pay per call via x402 USDC, or call MCP tool facebook_events_search on https://mcp.agentapigate.ai/mcp.
What does facebook.events.search cost per call and are failed calls billed?
Each successful HTTP 200 response costs $0.003 USD from a non-expiring PAYG balance ($0/month minimum). Upstream errors, empty responses, and ?dry_run=1 pre-flight quotes always bill $0.00.
How does ?format=md or ?format=compact optimize AI agent token usage on facebook.events.search?
Passing ?format=md transforms the response into normalized Markdown (~433 tokens vs ~1802 raw tokens, saving 76% of LLM context budget) while preserving structured JSON via ?format=json.
Can I restrict an AI agent key to only social endpoints with a daily USD cap?
Yes. Create a scoped aag_agent_* sub-key via POST /v1/keys with allowed_packs: ["social"], optional allowed_endpoints: ["facebook.events.search"], read_only: true, and a hard daily_cap_usd enforced atomically in Redis.