- Cost
- 1 credit
- Cached repeats
- 0 creditssend max_age_days, results kept 30 days
- Failed requests
- 0 credits
There is no place filter: location is searched as words after the query.
You send query.
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/search" \2 -H "x-api-key: $SOCIALSCRAPE_API_KEY" \3 --data-urlencode 'query=jazz jam'1import os2import requests34params = {5 "query": "jazz jam",6}7res = requests.get(8 "https://api.socialscrape.dev/v1/facebook/events/search",9 headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},10 params=params,11 timeout=60,12)13body = res.json()1415if body["ok"]:16 print(body["data"])17else:18 print(body["error"]["code"], body["error"]["message"])1const url = new URL("https://api.socialscrape.dev/v1/facebook/events/search");2url.search = new URLSearchParams({3 query: "jazz jam",4}).toString();5const res = await fetch(url, {6 headers: { "x-api-key": process.env.SOCIALSCRAPE_API_KEY! },7});8const body = await res.json();910if (body.ok) {11 console.log(body.data);12} else {13 console.error(body.error.code, body.error.message);14}1{2 "nodes": [3 {4 "name": "SocialScrape Facebook Events search",5 "type": "n8n-nodes-base.httpRequest",6 "typeVersion": 4.2,7 "position": [8 0,9 010 ],11 "parameters": {12 "method": "GET",13 "url": "https://api.socialscrape.dev/v1/facebook/events/search",14 "sendQuery": true,15 "queryParameters": {16 "parameters": [17 {18 "name": "query",19 "value": "jazz jam"20 }21 ]22 },23 "sendHeaders": true,24 "headerParameters": {25 "parameters": [26 {27 "name": "x-api-key",28 "value": "={{ $env.SOCIALSCRAPE_API_KEY }}"29 }30 ]31 }32 }33 }34 ],35 "connections": {}36}Parameters
| Name | Type | Required | Description |
|---|---|---|---|
query | string | yes | Search terms. Also accepted as keyword, q. |
location | string | City or area to search around ("Austin, TX"). | |
cursor | string | Opaque 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.
1{2 "ok": true,3 "credits_charged": 1,4 "credits_remaining": 4999,5 "cached": false,6 "cached_at": null,7 "request_id": "req_8add0412826d1eb6ef2d024d",8 "data": {9 "object": "list",10 "items": [11 {12 "object": "event",13 "platform": "facebook",14 "id": "28848663088088051",15 "url": "https://www.facebook.com/events/28848663088088051/",16 "title": "Sunday Jazz Jam",17 "description": null,18 "starts_at": "2026-10-25T20:00:00Z",19 "ends_at": null,20 "place": {21 "name": "114 S Broadway, South Amboy, NJ",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": 1,32 "interested_count": 4,33 "cover_url": "https://scontent-sea5-1.xx.fbcdn.net/v/t39.99422-6/861479592_1420981459660647_4106507575597665627_n.png?stp=c0.167.1206.804a_dst-jpg_tt6&cstp=mx1206x804&ctp=...",34 "extra": {35 "day_time_sentence": "Sun, 1 Nov at 16:00 EST",36 "event_kind": "PUBLIC_TYPE",37 "is_happening_now": true,38 "is_past": false,39 "place_id": "1749917266701109",40 "social_context": "4 interested · 1 going"41 }42 },43 {44 "object": "event",45 "platform": "facebook",46 "id": "1737414620694897",47 "url": "https://www.facebook.com/events/1737414620694897/",48 "title": "The Brooklyn jazz jam session on Thursdays at Marian's, 8:30-11:30pm",49 "description": null,50 "starts_at": "2026-10-30T00:30:00Z",51 "ends_at": null,52 "place": {53 "name": "Bedstuy Brooklyn NYC",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": 1,64 "interested_count": 1,65 "cover_url": "https://scontent-sea5-1.xx.fbcdn.net/v/t39.30808-6/861750764_1576602187603331_6423329380935671992_n.jpg?stp=c0.197.1522.1015a_dst-jpg_tt6&cstp=mx1522x1015&ct...",66 "extra": {67 "day_time_sentence": "Happening now",68 "event_kind": "PUBLIC_TYPE",69 "is_happening_now": true,70 "is_past": false,71 "place_id": "260649337355557",72 "social_context": "1 interested · 1 going"73 }74 }75 ],76 "cursor": "eyJrIjoiZXZzZWFyY2giLCJxIjoiamF6eiBqYW0iLCJhZnRlciI6IntcInBhZ2VfbnVtYmVyXCI6MCxcImZsb3dfY3Vyc29yc19zZXJpYWxpemVkXCI6e1wiU0VBUkNIX0NPTlRST0xTX0lOVEVSQ0VQVFwiO...",77 "has_more": true,78 "parent": null79 },80 "cursor": "eyJrIjoiZXZzZWFyY2giLCJxIjoiamF6eiBqYW0iLCJhZnRlciI6IntcInBhZ2VfbnVtYmVyXCI6MCxcImZsb3dfY3Vyc29yc19zZXJpYWxpemVkXCI6e1wiU0VBUkNIX0NPTlRST0xTX0lOVEVSQ0VQVFwiO...",81 "has_more": true82}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.
| Field | Type | Always | Notes |
|---|---|---|---|
object | "event" | ||
platform | Platform | yes | |
id | string | yes | |
url | string or null | ||
title | string or null | ||
description | string or null | ||
starts_at | string (ISO 8601 date-time) or null | ||
ends_at | string (ISO 8601 date-time) or null | ||
place | Place or null | ||
is_online | boolean or null | ||
host | Author or null | ||
going_count | integer or null | ||
interested_count | integer or null | ||
cover_url | string or null |
Show the other 1 fields
| Field | Type | Always | Notes |
|---|---|---|---|
extra | object 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), 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_search(...) and the TypeScript client client.facebook.eventsSearch(). 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.