querystringобязательно
The query to search events for.
https://api.sandbase.ai/v1/api/facebook/events-searchSearch public Facebook events by keyword and get structured event records (name, schedule, venue, pricing, and attendance) as normalized JSON.
Ваш результат появится здесь
Заполните входные данные, затем нажмите «Запустить».
This API searches public Facebook events by keyword. It needs a query string and returns a list of matching events with name, date text, place, attendance counts, and a link to each event page.
goingCount and interestedCount across events to see which ones draw the most interest.placeName and placeId to map where events on a topic take place.curl -X POST "https://api.sandbase.ai/v1/api/facebook/events-search" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "music festival"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
query | string | Yes | The query to search events for. |
cursor | string | No | Pagination cursor from a previous response. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"events": [
{
"coverImage": "https://scontent-lga3-3.xx.fbcdn.net/v/t39.30808-6/699504039_1385612160276095_77…",
"dayTimeSentence": "Saturday, August 8, 2026 at 10:00 AM – 7:00 PM PDT",
"eventKind": "PUBLIC_TYPE",
"goingCount": 39,
"id": "26785548844435134",
"interestedCount": 189,
"isOnline": false,
"isPast": true,
"name": "SOULNIC Music Festival 2026",
"placeId": "110814105639169",
"placeName": "Grand Hope Park",
"priceRangeText": ""
}
],
"nextCursor": "cur_ElaihBBDDUQAbGudkWvX2w"
},
"found": true
}
| Field | Meaning |
|---|---|
data.events[].id | Facebook ID of the event. |
data.events[].name | Title of the event. |
data.events[].url | Link to the event page on Facebook. |
data.events[].dayTimeSentence | Human-readable schedule text, including the time zone. Multi-day events show both start and end dates. |
data.events[].startTimestamp | Event start time as a Unix timestamp in seconds. |
data.events[].isPast / data.events[].isOnline | Booleans. isPast marks events that already happened. isOnline marks online events. |
data.events[].placeName / data.events[].placeId | Name and Facebook ID of the venue. Both are empty strings when the event has no linked place. |
data.events[].goingCount / data.events[].interestedCount | Number of people who marked themselves as going, and number who marked themselves as interested. |
data.events[].priceRangeText | Price text for the event. It is an empty string when no price is listed. |
data.nextCursor | Cursor to pass as cursor to get the next page of results. |
data.nextCursor from a response as cursor in the next request, with the same query, to get more results.startTimestamp is in seconds, so multiply by 1000 for JavaScript dates.isPast to filter them out.id or url.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-search" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "music festival"
}'Укажите свой ключ SandBase API в окружении сервера. Запросы используют аутентификацию Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Храните ключ на сервере. Не раскрывайте его в коде браузера.
querystringобязательноThe query to search events for.
cursorstringPagination cursor from a previous response.
Сохранённый пример ответа для этого API; при просмотре живой запрос не выполняется.
Сохранённый ответ не опубликован. Запустите API в Playground, чтобы посмотреть его ответ.
Посмотреть больше
| API | Цена | Ответ |
|---|---|---|
Facebook Events SearchЭтот 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-search, указав ключ SandBase API в заголовке Authorization (Bearer), а параметры — в теле JSON. Вы также можете попробовать это в Playground на этой странице без написания кода.
От $0.0012 за вызов, списывается с баланса SandBase. Оплата взимается только за сделанные вызовы; подписка не требуется.
Обязательные: query (string). Необязательные: cursor (string). В таблице Parameters и в Playground на этой странице перечислены все поля.
JSON-ответ, возвращаемый в том же HTTP-запросе (синхронно). В README на этой странице приведен пример ответа.
Нет. Facebook Events Search работает через SandBase, поэтому один API key SandBase покрывает этот endpoint и все остальные API и модели в каталоге. Вам не нужно отдельно запрашивать доступ к API Facebook.