urlstringобязательно
URL of a city's or place's Facebook Events page (e.g. https://www.facebook.com/events/explore/saint-petersburg-florida/111326725552547).
https://api.sandbase.ai/v1/api/facebook/eventsList public Facebook events for a city or place by its events-page URL (event name, date, venue, and attendance) as normalized JSON.
Ваш результат появится здесь
Заполните входные данные, затем нажмите «Запустить».
Returns a list of public Facebook events for a city or place. It needs the URL of a Facebook Events page, such as a city's events explore page. Each event includes its name, start time, venue, and going and interested counts.
interestedCount and goingCount to find the most popular ones.curl -X POST "https://api.sandbase.ai/v1/api/facebook/events" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://www.facebook.com/events/explore/saint-petersburg-florida/111326725552547"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
url | string | Yes | URL of a city's or place's Facebook Events page (e.g. https://www.facebook.com/events/explore/saint-petersburg-florida/111326725552547). |
cursor | string | No | Pagination cursor from a previous response to fetch the next page. |
time | string | No | Timeframe filter for the returned events. Defaults to all time. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"events": [
{
"coverImage": "https://scontent-lga3-1.xx.fbcdn.net/v/t39.30808-6/691737832_122221920272546827_…",
"dayTimeSentence": "Sat, Nov 7 at 3:00 PM EST",
"eventKind": "PUBLIC_TYPE",
"goingCount": 250,
"id": "1009766568177406",
"interestedCount": 7400,
"isHappeningNow": false,
"isOnline": false,
"isPast": false,
"name": " 90s Day Party: St. Petersburg, FL 💿",
"placeId": "122231702342546827",
"placeName": "2655 6th Ave S, St Petersburg, FL 33712-1653, United States"
}
],
"nextCursor": "cur_4pRRU2-BvJCuoK3XKQ1TtA"
},
"found": true
}
| Field | Meaning |
|---|---|
data.events[].name | Title of the event. |
data.events[].id / data.events[].url | Event ID and the link to the event page on Facebook. |
data.events[].startTimestamp | Event start time as a Unix timestamp in seconds. |
data.events[].dayTimeSentence | Readable date and time text, such as Sat, Nov 7 at 3:00 PM EST. Multi-day events show a date range. |
data.events[].placeName | Venue name or street address of the event. |
data.events[].placeId | ID of the venue on Facebook. |
data.events[].goingCount / data.events[].interestedCount | Number of people who marked the event as going and as interested. |
data.events[].isOnline / data.events[].isPast / data.events[].isHappeningNow | Flags that show if the event is online, already over, or in progress. |
data.events[].coverImage | URL of the event's cover image. |
data.nextCursor | Cursor for the next page of events. |
url from the events explore page of a city or place on Facebook.data.nextCursor back as cursor with the same url.time with today, this_week, or next_week to narrow the results. Without it, all upcoming events are returned.id to Facebook Event Details.Billed at the actual cost of each call, about $0.0012 for the request above. Failed calls are not charged.
Начните разработку
Конечная точка платформенного API с единообразной аутентификацией и учётом использования.
curl -X POST "https://api.sandbase.ai/v1/api/facebook/events" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://www.facebook.com/events/explore/saint-petersburg-florida/111326725552547"
}'Укажите свой ключ SandBase API в окружении сервера. Запросы используют аутентификацию Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Храните ключ на сервере. Не раскрывайте его в коде браузера.
urlstringобязательноURL of a city's or place's Facebook Events page (e.g. https://www.facebook.com/events/explore/saint-petersburg-florida/111326725552547).
timestringTimeframe filter for the returned events. Defaults to all time.
Возможные значения: today, this_week, next_week
cursorstringPagination cursor from a previous response to fetch the next page.
Сохранённый пример ответа для этого API; при просмотре живой запрос не выполняется.
Сохранённый ответ не опубликован. Запустите API в Playground, чтобы посмотреть его ответ.
Посмотреть больше
| API | Цена | Ответ |
|---|---|---|
Facebook EventsЭтот API Facebook | От $0.0012 за запрос | JSON |
Facebook | От $0.0012 за запрос | JSON |
Facebook | От $0.00462 за запрос | JSON |
Facebook | От $0.0012 за запрос | JSON |
Facebook | От $0.0011 за запрос | JSON |
Facebook | От $0.0011 за запрос | JSON |
Руководства:Best Facebook API in 2026: Pricing Compared
Вопросы
Отправьте POST-запрос на https://api.sandbase.ai/v1/api/facebook/events, указав ключ SandBase API в заголовке Authorization (Bearer), а параметры — в теле JSON. Вы также можете попробовать это в Playground на этой странице без написания кода.
От $0.0012 за вызов, списывается с баланса SandBase. Оплата взимается только за сделанные вызовы; подписка не требуется.
Обязательные: url (string). Необязательные: time (один из today, this_week, next_week) и cursor (string). В таблице Parameters и в Playground на этой странице перечислены все поля.
JSON-ответ, возвращаемый в том же HTTP-запросе (синхронно). В README на этой странице приведен пример ответа.
Нет. Facebook Events работает через SandBase, поэтому один API key SandBase покрывает этот endpoint и все остальные API и модели в каталоге. Вам не нужно отдельно запрашивать доступ к API Facebook.