Facebook Events search API

Events matching a name or description, as facebook.com/events/search shows them to a logged-out visitor (about 7 on the first page).

GETapi.socialscrape.io/v1/facebook/events/search
Cost
1 credit
Cached repeats
0 creditssend max_age_days, results kept 30 days
Failed requests
0 credits
Status
Betashape may still gain fields

There is no logged-out place filter: location is searched as words after the query.

You send query.

Request

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

curl
curl -G "https://api.socialscrape.io/v1/facebook/events/search" \
  -H "x-api-key: $SOCIALSCRAPE_API_KEY" \
  --data-urlencode 'query=jazz jam'
Python
import os
import requests

params = {
    "query": "jazz jam",
}
res = requests.get(
    "https://api.socialscrape.io/v1/facebook/events/search",
    headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},
    params=params,
    timeout=60,
)
body = res.json()

if body["ok"]:
    print(body["data"])
else:
    print(body["error"]["code"], body["error"]["message"])
TypeScript
const url = new URL("https://api.socialscrape.io/v1/facebook/events/search");
url.search = new URLSearchParams({
  query: "jazz jam",
}).toString();
const res = await fetch(url, {
  headers: { "x-api-key": process.env.SOCIALSCRAPE_API_KEY! },
});
const body = await res.json();

if (body.ok) {
  console.log(body.data);
} else {
  console.error(body.error.code, body.error.message);
}
n8n
{
  "nodes": [
    {
      "name": "SocialScrape Facebook Events search",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        0,
        0
      ],
      "parameters": {
        "method": "GET",
        "url": "https://api.socialscrape.io/v1/facebook/events/search",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "query",
              "value": "jazz jam"
            }
          ]
        },
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "x-api-key",
              "value": "={{ $env.SOCIALSCRAPE_API_KEY }}"
            }
          ]
        }
      }
    }
  ],
  "connections": {}
}

Parameters

NameTypeRequiredDescription
querystringyesSearch terms. Also accepted as keyword, q.
locationstringCity or area to search around ("Austin, TX").
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 public data, not yours.

Status 200Sample
{
  "ok": true,
  "credits_charged": 1,
  "credits_remaining": 4999,
  "cached": false,
  "cached_at": null,
  "request_id": "req_8add0412826d1eb6ef2d024d",
  "data": {
    "object": "list",
    "items": [
      {
        "object": "event",
        "platform": "facebook",
        "id": "28848663088088051",
        "url": "https://www.facebook.com/events/28848663088088051/",
        "title": "Sunday Jazz Jam",
        "description": null,
        "starts_at": "2026-10-25T20:00:00Z",
        "ends_at": null,
        "place": {
          "name": "114 S Broadway, South Amboy, NJ",
          "address": null,
          "city": null,
          "region": null,
          "country": null,
          "latitude": null,
          "longitude": null
        },
        "is_online": false,
        "host": null,
        "going_count": 1,
        "interested_count": 4,
        "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=...",
        "extra": {
          "day_time_sentence": "Sun, 1 Nov at 16:00 EST",
          "event_kind": "PUBLIC_TYPE",
          "is_happening_now": true,
          "is_past": false,
          "place_id": "1749917266701109",
          "social_context": "4 interested · 1 going"
        }
      },
      {
        "object": "event",
        "platform": "facebook",
        "id": "1737414620694897",
        "url": "https://www.facebook.com/events/1737414620694897/",
        "title": "The Brooklyn jazz jam session on Thursdays at Marian's, 8:30-11:30pm",
        "description": null,
        "starts_at": "2026-10-30T00:30:00Z",
        "ends_at": null,
        "place": {
          "name": "Bedstuy Brooklyn NYC",
          "address": null,
          "city": null,
          "region": null,
          "country": null,
          "latitude": null,
          "longitude": null
        },
        "is_online": false,
        "host": null,
        "going_count": 1,
        "interested_count": 1,
        "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...",
        "extra": {
          "day_time_sentence": "Happening now",
          "event_kind": "PUBLIC_TYPE",
          "is_happening_now": true,
          "is_past": false,
          "place_id": "260649337355557",
          "social_context": "1 interested · 1 going"
        }
      }
    ],
    "cursor": "eyJrIjoiZXZzZWFyY2giLCJxIjoiamF6eiBqYW0iLCJhZnRlciI6IntcInBhZ2VfbnVtYmVyXCI6MCxcImZsb3dfY3Vyc29yc19zZXJpYWxpemVkXCI6e1wiU0VBUkNIX0NPTlRST0xTX0lOVEVSQ0VQVFwiO...",
    "has_more": true,
    "parent": null
  },
  "cursor": "eyJrIjoiZXZzZWFyY2giLCJxIjoiamF6eiBqYW0iLCJhZnRlciI6IntcInBhZ2VfbnVtYmVyXCI6MCxcImZsb3dfY3Vyc29yc19zZXJpYWxpemVkXCI6e1wiU0VBUkNIX0NPTlRST0xTX0lOVEVSQ0VQVFwiO...",
  "has_more": true
}

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), 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 preview Python client has client.facebook.events_search(...) and the TypeScript client client.facebook.eventsSearch(). Both return the same envelope as the HTTP API. The packages are not published yet; plain HTTP works today in any language.

Can an AI agent call it?

Yes. The MCP server reaches every built endpoint, with the same prices.

Build on social data early.

Developers and agent builders get the first keys.

Get early access