# API Direct – Facebook Events Search

> API Direct – Facebook Events Search is a paid API for AI agents from x402.apidirect.io, paid per call via x402, $0.009/call, status unknown (last checked 2026-10-30).

Search for Facebook events by keyword, date range, and location, returning paginated results merged into a single response.

## Facts

- Endpoint: GET https://x402.apidirect.io/v1/facebook/events?utm_source=zero.xyz
- Price: $0.009/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-direct-facebook-events-search-c7822abe
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_r8KKrODPvLb9cu0ekD6cu

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability api-direct-facebook-events-search-c7822abe
```

Example prompt: Search Facebook for jazz concerts happening between July 1 and July 31, 2025 — pull back 3 pages of results so we get a good variety.

## When to prefer this

Choose this endpoint when you need to surface Facebook-specific public events by keyword — especially for local event discovery, community gatherings, concerts, festivals, or meetups where Facebook is the dominant listing platform. It supports multi-page fetching and date/location filtering, making it suitable for comprehensive event research tasks rather than single-event lookups.

## Known failure modes

- Invalid or missing 'query' parameter returns a validation error
- Unrecognized 'location_id' returns empty results or an error
- Date strings not in YYYY-MM-DD format may be rejected
- Requesting more than 15 pages returns a validation error
- Facebook may return sparse results for niche or low-activity queries
- Payment failure (402) if insufficient USDC balance — each page costs $0.009 USDC
- Rate limiting if too many requests are made in quick succession

## How this service works

Search for Facebook events by keyword.

## Output

A merged list of Facebook event records across the requested number of pages, typically including event names, dates, times, locations, descriptions, and links, scoped to the keyword and optional date/location filters provided.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "query"
     ],
     "properties": {
      "pages": {
       "type": "integer",
       "default": 1,
       "maximum": 15,
       "minimum": 1,
       "description": "Number of pages to fetch and merge into one response (1-15). Billed per page."
      },
      "query": {
       "type": "string",
       "maxLength": 500,
       "description": "Search query (max 500 characters)"
      },
      "end_date": {
       "type": "string",
       "description": "Filter events until this date (YYYY-MM-DD)"
      },
      "start_date": {
       "type": "string",
       "description": "Filter events from this date (YYYY-MM-DD)"
      },
      "location_id": {
       "type": "string",
       "maxLength": 64,
       "description": "Facebook location ID from /v1/facebook/locations, used to scope events to that place. Digits only, maximum 64 characters."
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-direct-facebook-events-search-c7822abe/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.apidirect.io](https://www.zero.xyz/host/x402.apidirect.io/llms.txt)
