Spiral gives your agent every tool with one account. Browse the tools →

opencode · Social Media

How to Use Facebook city events in opencode

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.

Prompts to try with Facebook city events in opencode

Copy an example into opencode, or ask in your own words.

Use Facebook city events for St. Petersburg, Florida, and populate my project's calendar with returned names, dates, venues, and links.

Facebook city eventsopencode
Try asking
  • 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 opencode

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

Use Spiral's MCP server

  1. Add the server

    Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

    opencode mcp add spiral --global --url https://api.spiral.ai/mcp
  2. Sign in

    Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.

    opencode mcp auth spiral
  3. Check it

    Spiral shows as connected.

    opencode mcp list

Use the Spiral skill

  1. Send opencode 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.

    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.

    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: opencode finds Facebook city events on Spiral, shows the price and runs it.

Facebook city events providers and prices

Spiral runs Facebook city events through ScrapeCreators. Open a card for today's price, with every fee included.

ScrapeCreatorsSocial Media
Facebook Events · Events
scrapecreators/facebook-events

Settings you can ask for

Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Timetoday, this_week, or next_week

The time frame to search for. Defaults to all time

Every API field of Facebook Events · Events is on its tool page: open its card above.

What can you do with Facebook city events in opencode?

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.

Questions about Facebook city events in opencode

Can opencode use Facebook city events?

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

How much does Facebook city events cost in opencode?

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

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

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 opencode?

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

Does opencode wait while Facebook city events runs?

Facebook city events runs in the background. opencode 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.

Get started

Start using Facebook city events in opencode

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into opencode:

Set up opencode

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options