[Integrations](https://spiral.ai/integrations) › [Codex](https://spiral.ai/integrations/codex) › [Facebook city events](https://spiral.ai/integrations/codex/facebook-city-events)

# How to Use Facebook city events in Codex

Fetch event listings from a city's Facebook Events page, including dates, places, links, and public response counts. Use it to build a local calendar when your starting point is a city.

|  |  |
| --- | --- |
| Model | Facebook city events |
| Available through | ScrapeCreators |
| Category | Social Media |
| Price | $0.0013 per run. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Facebook city events in Codex

- Use Facebook city events for St. Petersburg, Florida, and populate my project's calendar with returned names, dates, venues, and links.
- Use Facebook city events for https://www.facebook.com/events/explore/saint-petersburg-florida/111326725552547 and add pagination to my project's event importer.
- Scrape https://example.com/pricing with Facebook city events and turn it into a comparison table. Save the result in ./assets.
- Crawl the docs at https://docs.example.com with Facebook city events and summarize each section.
- Pull the latest posts from this blog with Facebook city events and list their titles and dates.

## How to set up Facebook city events in Codex

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the hosted server**

```bash
codex mcp add spiral --url https://api.spiral.ai/mcp
```

2. **Sign in**: Codex opens the browser: sign in to Spiral and click Authorize. No API key. `codex mcp list` then shows Spiral.

```bash
codex mcp login spiral
```

### Use the Spiral skill

1. **Send Codex this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Facebook city events**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "scrapecreators",
    "model": "scrapecreators/facebook-events",
    "input": {
      "url": "https://www.facebook.com/events/explore/saint-petersburg-florida/111326725552547"
    }
  }'
```

Then paste one of the prompts above: Codex finds Facebook city events on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/codex

## Facebook city events tools and prices

- [Facebook Events · Events](https://spiral.ai/tools/scrapecreators/scrapecreators/facebook-events) (ScrapeCreators): Up to $0.0013 per run.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| time | today, this_week, next_week | — | The time frame to search for. Defaults to all time |
| cursor |  | — | The cursor to paginate to the next page |

## What can you do with Facebook city events in Codex?

Build a local calendar from Facebook event names, dates, places, and source links. A coding agent can add pagination and compare repeated results in your project's event importer.

### Local events newsletter

Shortlist public events by date and venue, then prepare a newsletter draft with links to the Facebook listings.

### Hotel guest activity brief

Prepare nearby event suggestions with names, dates, places, and source links for a hotel's front desk.

### Venue scheduling research

Compare returned event dates and places before choosing a date for a public concert, market, or workshop.

### Public event response comparison

Compare interested and going totals across relevant listings to help prioritize events for editorial review.

### Event listing change report

Compare repeated results by event URL and flag changed dates, places, or public response totals.

### Community calendar research

Collect event candidates, remove duplicate URLs, and organize names, dates, and venues for a calendar editor.

## Overview

- [ScrapeCreators](https://spiral.ai/providers/scrapecreators)
- [All Codex guides](https://spiral.ai/integrations/codex)

## Facebook city events in other agents

- [Amp](https://spiral.ai/integrations/amp/facebook-city-events)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/facebook-city-events)
- [Claude](https://spiral.ai/integrations/claude-desktop/facebook-city-events)
- [Claude Code](https://spiral.ai/integrations/claude-code/facebook-city-events)
- [Cline](https://spiral.ai/integrations/cline/facebook-city-events)
- [Cursor](https://spiral.ai/integrations/cursor/facebook-city-events)
- [Devin](https://spiral.ai/integrations/devin/facebook-city-events)
- [dots](https://spiral.ai/integrations/dots/facebook-city-events)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/facebook-city-events)
- [Gemini](https://spiral.ai/integrations/gemini/facebook-city-events)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/facebook-city-events)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/facebook-city-events)
- [goose](https://spiral.ai/integrations/goose/facebook-city-events)
- [Grok](https://spiral.ai/integrations/grok/facebook-city-events)
- [Grok Build](https://spiral.ai/integrations/grok-build/facebook-city-events)
- [Hermes](https://spiral.ai/integrations/hermes/facebook-city-events)
- [Instinct](https://spiral.ai/integrations/instinct/facebook-city-events)
- [Manus](https://spiral.ai/integrations/manus/facebook-city-events)
- [Muse](https://spiral.ai/integrations/muse/facebook-city-events)
- [Muse Code](https://spiral.ai/integrations/muse-code/facebook-city-events)
- [n8n](https://spiral.ai/integrations/n8n/facebook-city-events)
- [Notion](https://spiral.ai/integrations/notion/facebook-city-events)
- [OpenClaw](https://spiral.ai/integrations/openclaw/facebook-city-events)
- [opencode](https://spiral.ai/integrations/opencode/facebook-city-events)
- [Perplexity](https://spiral.ai/integrations/perplexity/facebook-city-events)
- [Raycast](https://spiral.ai/integrations/raycast/facebook-city-events)
- [VS Code](https://spiral.ai/integrations/vscode/facebook-city-events)
- [Windsurf](https://spiral.ai/integrations/windsurf/facebook-city-events)
- [Zapier](https://spiral.ai/integrations/zapier/facebook-city-events)

## More Codex guides

- [Facebook Page photos](https://spiral.ai/integrations/codex/facebook-page-photos)
- [Facebook comment replies](https://spiral.ai/integrations/codex/facebook-comment-replies)
- [Facebook Page details](https://spiral.ai/integrations/codex/facebook-page-details)
- [Facebook creator profile](https://spiral.ai/integrations/codex/facebook-creator-profile)
- [Facebook Ad Library video transcript](https://spiral.ai/integrations/codex/facebook-ad-library-video-transcript)
- [Facebook event details](https://spiral.ai/integrations/codex/facebook-event-details)

## Questions about Facebook city events in Codex

**Can Codex use Facebook city events?**

Yes. Add Spiral to Codex as an MCP server, and Codex can find and run Facebook city events like any built-in tool.

**How much does Facebook city events cost in Codex?**

$0.0013 per run. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Codex plan is separate.

**Do I need a ScrapeCreators account to use Facebook city events in Codex?**

No. Spiral runs Facebook city events on its own ScrapeCreators account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Facebook city events in Codex?**

About two minutes: add the hosted server, then sign in.

**Does Codex wait while Facebook city events runs?**

Facebook city events runs in the background. Codex starts the run, checks on it and gives you the json when it's ready.

**What Facebook events does this data cover?**

The discovery sources are Facebook's city Events pages and public event search. These listings are a source for public event discovery, not evidence of access to private events.

**How fresh are the event listings?**

ScrapeCreators says it fetches the latest available Facebook Events information when a request is made. It describes request-time retrieval rather than a daily or weekly dataset update.

**Will the results include every event in a city?**

Do not assume complete coverage. ScrapeCreators notes that logged-out visibility can differ by location and recommendation order can change between sessions.

**Can I retrieve more than the first results page?**

Yes. Both city listings and event search support pagination, so the first response need not contain all available results.

**Are the interested and going totals exact?**

Do not assume every total has single-person precision. The documented city example converts Facebook's '7.3K interested' display to 7300, while reporting 195 going separately.

