How to Use Facebook city events in VS Code
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 VS Code
Copy an example into VS Code, 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.
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 VS Code
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the hosted server
Use Add to VS Code on the console's Agents & MCP page, or run:
code --add-mcp '{"name":"spiral","type":"http","url":"https://api.spiral.ai/mcp"}' - Sign in
VS Code asks you to sign in when it first starts the server: sign in to Spiral and click Authorize. No API key. Run MCP: List Servers from the Command Palette to check that Spiral is running.
Use the Spiral skill
- Send VS Code this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- 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
- Create an API key
In the console, under API keys.
- 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: VS Code 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.
Settings you can ask for
Ask VS Code for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Time | today, 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 VS Code?
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.
More on Facebook city events and VS Code
Overview
Facebook city events in other agents
Questions about Facebook city events in VS Code
Can VS Code use Facebook city events?
Yes. Add Spiral to VS Code as an MCP server, and VS Code can find and run Facebook city events like any built-in tool.
How much does Facebook city events cost in VS Code?
$0.0013 per run. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your VS Code plan is separate.
Do I need a ScrapeCreators account to use Facebook city events in VS Code?
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 VS Code?
About two minutes: add the hosted server, then sign in.
Does VS Code wait while Facebook city events runs?
Facebook city events runs in the background. VS Code 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.
Start using Facebook city events in VS Code
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into VS Code:
set up https://spiral.ai/SKILL.md


