Appearance
Search Events
GET /v1/facebook/events/search
Search for events by name. You can take a look at the page from Facebook we are getting the data from here
Authentication
All requests require the x-api-key header. Get your key at scrapecreators.com.
Query Parameters
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
query | string | yes | The query to search for | Event name or description |
cursor | string | no | The cursor to paginate to the next page | Abr1gHMU6H.... |
Example Request
curl
bash
curl 'https://api.scrapecreators.com/v1/facebook/events/search?query=Event name or description' \
-H 'x-api-key: $SCRAPECREATORS_API_KEY'Node / TypeScript
js
const params = new URLSearchParams({ query: 'Event name or description' });
const res = await fetch(`https://api.scrapecreators.com/v1/facebook/events/search?${params}`, {
headers: { 'x-api-key': process.env.SCRAPECREATORS_API_KEY }
});
const data = await res.json();
console.log(data);Python
python
import os, requests
r = requests.get(
'https://api.scrapecreators.com/v1/facebook/events/search',
headers={'x-api-key': os.environ['SCRAPECREATORS_API_KEY']},
params={'query': 'Event name or description'},
)
r.raise_for_status()
print(r.json())CLI
bash
scrapecreators facebook-events events-search --helpExample Response
json
{
"success": true,
"credits_remaining": 49998305228,
"events": [
{
"id": "24659081027102562",
"name": "DockDogs® at Frankenmuth Dog Bowl",
"type": "Event",
"url": "https://www.facebook.com/events/24659081027102562/",
"day_time_sentence": "Fri, May 22 - May 24",
"event_place": {
"__typename": "FreeformPlace",
"contextual_name": "Frankenmuth River Place Shops",
"__isNode": "FreeformPlace",
"id": "1455187729296539"
},
"ticketing_context_row": {
"price_range_text": null
},
"is_online": false,
"is_past": false,
"event_url": "https://www.facebook.com/events/24659081027102562/",
"event_kind": "PUBLIC_TYPE",
"start_timestamp": 1779480000,
"cover_photo": {
"accessibility_caption": "No photo description available.",
"eventImage": {
"uri": "https://scontent-bos5-1.xx.fbcdn.net/v/t39.30808-6/593531570_1415564506592195_6877452715877012878_n.jpg?stp=dst-jpg_p75x225_tt6&_nc_cat=108&ccb=1-7&_nc_sid=7e0d18&_nc_ohc=lfZDvDmA5TgQ7kNvwGAJ9kC&_nc_oc=AdpiWd2PvIAUMK-DqCWA4v5iUaC2q5pKzs1BCjIS2OfxuyITVAF4rXXCFbes2A7jTTI&_nc_zt=23&_nc_ht=scontent-bos5-1.xx&_nc_gid=Bc1EYqxenHsF96t4Z7ZTbQ&_nc_ss=7e289&oh=00_Af7QI7ClZW5fpMopR2xSaj3wB0Md9w9Hw1dVS5jLWhSbTw&oe=69FCA6B5"
},
"id": "1415564503258862"
},
"social_context": {
"text": "21 interested · 10 going",
"interested_count": 21,
"going_count": 10,
"went_count": null
}
}
],
"cursor": "Abr1gHMU6H...."
}Credits
Most ScrapeCreators endpoints consume 1 credit per successful response. Some heavier endpoints (transcripts, AI-driven enrichment, ad detail lookups) may cost more. Check GET /v1/credit-balance for your remaining balance.
Errors
| Status | Meaning | Action |
|---|---|---|
| 200 | Success. | Use the JSON payload. |
| 400 | Invalid or missing parameter. | Verify required parameters and value format. |
| 401 | Missing or invalid x-api-key. | Pass a valid API key in the header. |
| 402 | Out of credits. | Top up at scrapecreators.com or wait for plan reset. |
| 404 | Resource not found or private. | Confirm the handle, URL, or id and that the resource is public. |
| 429 | Rate limited. | Backoff and retry with exponential delay. |
| 500 | Server error or upstream platform failure. | Retry with backoff; report persistent errors to support. |