1. Platforms
  2. Facebook Scraper API
  3. Facebook city events API

Facebook city events API

The events Facebook lists for a city, from its public explore page.

GET api.socialscrape.dev/v1/facebook/events

Cost
1 credit
Cached repeats
0 creditssend max_age_days, results kept 30 days
Failed requests
0 credits

You send url.

Part of the Facebook Scraper API: 23 Facebook endpoints on one key.

Request

Send your key in the x-api-key header.

1curl -G "https://api.socialscrape.dev/v1/facebook/events" \2  -H "x-api-key: $SOCIALSCRAPE_API_KEY" \3  --data-urlencode 'url=https://www.facebook.com/events/explore/saint-petersburg-florida/111326725552547'

Parameters

NameTypeRequiredDescription
urlurlyesCity events page (facebook.com/events/explore/<city>/<id>).
timestringTime frame; default all time.
cursorstringOpaque cursor from the previous page; pass it back unchanged. Also accepted as continuationToken, continuation_token, next_max_id, max_id, max_cursor, min_time, after, page_token, pageToken, paginationToken, next_page_id, page.

Every request also accepts trim, raw and max_age_days.

Response

Sample from a recorded response, shortened. Values are examples, not your data.

200 OKSample response
1{2  "ok": true,3  "credits_charged": 1,4  "credits_remaining": 4999,5  "cached": false,6  "cached_at": null,7  "request_id": "req_0b9dec62b70c30e0deb6b947",8  "data": {9    "object": "list",10    "items": [11      {12        "object": "event",13        "platform": "facebook",14        "id": "1009766568177406",15        "url": "https://www.facebook.com/events/1009766568177406/",16        "title": "90s Day Party: St. Petersburg, FL 💿",17        "description": null,18        "starts_at": "2026-11-07T20:00:00Z",19        "ends_at": null,20        "place": {21          "name": "2655 6th Ave S, St Petersburg, FL 33712-1653, United States",22          "address": null,23          "city": null,24          "region": null,25          "country": null,26          "latitude": null,27          "longitude": null28        },29        "is_online": false,30        "host": null,31        "going_count": 234,32        "interested_count": 7300,33        "cover_url": "https://scontent-phl2-1.xx.fbcdn.net/v/t39.30808-6/691737832_122221920272546827_3621567388430112740_n.jpg?stp=c0.45.1600.764a_dst-jpg_tt6&cstp=mx1600x764&ctp...",34        "extra": {35          "day_time_sentence": "Sat, 7 Nov at 15:00 EST",36          "event_kind": "PUBLIC_TYPE",37          "is_happening_now": false,38          "is_past": false,39          "place_id": "122231702342546827",40          "social_context": "7.3K interested · 234 going"41        }42      },43      {44        "object": "event",45        "platform": "facebook",46        "id": "1527199785709133",47        "url": "https://www.facebook.com/events/1527199785709133/",48        "title": "Shopapalooza Festival Nov 28-29 -- Free admission",49        "description": null,50        "starts_at": "2026-11-28T15:00:00Z",51        "ends_at": null,52        "place": {53          "name": "701 Bayshore Drive Northeast, Saint Petersburg, FL, United States, Florida 33701",54          "address": null,55          "city": null,56          "region": null,57          "country": null,58          "latitude": null,59          "longitude": null60        },61        "is_online": false,62        "host": null,63        "going_count": 552,64        "interested_count": 7300,65        "cover_url": "https://scontent-phl2-1.xx.fbcdn.net/v/t39.30808-6/712544192_1443146581187595_2421226817355766293_n.jpg?stp=c0.140.2048.978a_dst-jpg_tt6&cstp=mx2048x978&ctp=...",66        "extra": {67          "day_time_sentence": "Sat, 28 Nov-29 Nov",68          "event_kind": "PUBLIC_TYPE",69          "is_happening_now": false,70          "is_past": false,71          "place_id": "1567581025410816",72          "social_context": "7.3K interested · 552 going"73        }74      }75    ],76    "cursor": null,77    "has_more": false,78    "parent": null79  },80  "cursor": null,81  "has_more": false82}

Fields

A page of results. Each entry in items is a Event. cursor and has_more page through the rest.

A field the platform does not give is null, never made up. Extra platform details are in extra.

FieldTypeAlwaysNotes
object"event"
platformPlatformyes
idstringyes
urlstring or null
titlestring or null
descriptionstring or null
starts_atstring (ISO 8601 date-time) or null
ends_atstring (ISO 8601 date-time) or null
placePlace or null
is_onlineboolean or null
hostAuthor or null
going_countinteger or null
interested_countinteger or null
cover_urlstring or null
Show the other 1 fields
FieldTypeAlwaysNotes
extraobject or null

Full field list in the reference for this endpoint and the data models. Errors are listed under Errors.

Questions

Which errors can it return?

invalid_params (do not retry), unsupported_url (do not retry), not_found (do not retry). Account and platform errors from the errors list can also happen. A failure always costs 0 credits.

How do I get more than one page?

Send the same request with cursor set to the cursor you received, until has_more is false. Each page costs its own price. See pagination.

Is there an SDK call for it?

The Python client has client.facebook.events(...) and the TypeScript client client.facebook.events(). Both return the same envelope as the HTTP API. Install them from PyPI (socialscrape-sdk) or npm (socialscrape); plain HTTP works in any language.

Can an AI agent call it?

Yes. The MCP server, which you run on your own machine, reaches every built endpoint, with the same prices.