Appearance
Profile Events
GET /v1/facebook/profile/events
Get the events of a public Facebook page
Authentication
All requests require the x-api-key header. Get your key at scrapecreators.com.
Query Parameters
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
url | string | yes | The URL of the public Facebook page | https://www.facebook.com/brickyardoldtown |
cursor | string | no | The cursor to paginate to get more events | eyJpZCI6IllYQndYMk52Ykd...... |
Example Request
curl
bash
curl 'https://api.scrapecreators.com/v1/facebook/profile/events?url=https://www.facebook.com/brickyardoldtown' \
-H 'x-api-key: $SCRAPECREATORS_API_KEY'Node / TypeScript
js
const params = new URLSearchParams({ url: 'https://www.facebook.com/brickyardoldtown' });
const res = await fetch(`https://api.scrapecreators.com/v1/facebook/profile/events?${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/profile/events',
headers={'x-api-key': os.environ['SCRAPECREATORS_API_KEY']},
params={'url': 'https://www.facebook.com/brickyardoldtown'},
)
r.raise_for_status()
print(r.json())CLI
bash
scrapecreators facebook profile-events --helpExample Response
json
{
"success": true,
"credits_remaining": 49998108820,
"events": [
{
"id": "1596643298218453",
"__typename": "Event",
"name": "Harrison Steele at Brickyard",
"is_canceled": false,
"event_creator": {
"__typename": "User",
"__isEntity": "User",
"url": "https://www.facebook.com/brickyardoldtown",
"name": "Brickyard",
"id": "100066639371774"
},
"event_place": {
"__typename": "FreeformPlace",
"contextual_name": "Brickyard",
"location": {
"reverse_geocode": {
"city": "Wichita"
}
},
"__isNode": "FreeformPlace",
"id": "1594193222711146"
},
"day_time_sentence": "Thu, May 7 at 6:00 PM CDT",
"url": "https://www.facebook.com/events/1596643298218453/",
"gif_cover_photo": null,
"cover_video": null,
"__isEntity": "Event",
"event_kind": "PUBLIC_TYPE",
"is_happening_now": false,
"is_online_or_detected_online": false,
"is_past": false,
"start_timestamp": 1778194800
}
],
"cursor": "eyJpZCI6IllYQ.....",
"has_next_page": true,
"total_count": 22
}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. |