Sand AISand AI MAGI-2MAGI-2 теперь на SandBase: видео 1080p с нативным звукомПопробовать сейчас

Facebook Event Details

Документация API
https://api.sandbase.ai/v1/api/facebook/event-details

Fetch full details for a single Facebook event by ID or URL (name, schedule, venue, hosts, and attendance) as normalized JSON.

Цена
От $0.0012USD / вызов
Метод
POST
Ответ
JSON
Параметры
0 обязательных · 2 необязательных

Песочница

Ввод
The event's numeric identifier.
The event's Facebook URL.
ВыходГотово

Ваш результат появится здесь

Заполните входные данные, затем нажмите «Запустить».

README по API

Facebook Event Details API

This API returns the details of one Facebook event: its name, description, schedule, venue, hosts, and attendance counts. It needs either the event's numeric id or its Facebook url.

Use cases

  • Track how many people marked going or interested in a convention or concert.
  • Pull venue name, address, and coordinates to place an event on a map.
  • Check whether an event is canceled, online, or already past before listing it.
  • Identify the host page of an event and link back to its Facebook profile.

Request

curl -X POST "https://api.sandbase.ai/v1/api/facebook/event-details" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"id": "4045709448982422"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
idstringNoThe event's numeric identifier.
urlstringNoThe event's Facebook URL.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "data": {
    "address": "225 W Douglas Ave, Wichita, KS 67202-3100, United States",
    "attendanceCount": 2489,
    "canViewMembers": true,
    "city": "Wichita, Kansas",
    "cityId": "105674782800210",
    "coverPhotoUrl": "https://scontent-dfw6-1.xx.fbcdn.net/v/t39.30808-6/570154625_122237652734251216_…",
    "creatorId": "61557536504734",
    "creatorName": "Kansas Comic Con",
    "dayTimeSentence": "Oct 31 at 10:00 AM – Nov 1 at 5:00 PM CST",
    "description": "Kansas Comic Con is back! Join us Saturday, October 31st and Sunday, November 1s…",
    "duration": "2 days",
    "endTime": ""
  },
  "found": true
}

Response fields

FieldMeaning
data.name / data.descriptionThe event title and its description text.
data.goingCount / data.interestedCount / data.attendanceCountCounts of people who responded going, people who responded interested, and the event's attendance count.
data.startTimestampThe start of the event as a Unix timestamp in seconds.
data.dayTimeSentence / data.startTimeFormatted / data.durationHuman-readable schedule text, such as the date range with time zone and the length of the event.
data.locationName / data.address / data.cityThe venue name, its street address, and the city.
data.latitude / data.longitudeCoordinates of the venue.
data.hosts[].name / data.hosts[].url / data.hosts[].idThe name, Facebook URL, and ID of each host.
data.isCanceled / data.isOnline / data.isPastFlags that show whether the event is canceled, held online, or already over.
data.privacy / data.eventKindThe event's privacy setting and its type.
foundtrue when the event was found.

Notes

  • Pass either id or url. The id is the number at the end of an event URL, such as 4045709448982422 in https://www.facebook.com/events/4045709448982422/.
  • In the sample response, startTime and endTime are empty strings. Use startTimestamp for the start time.
  • Use hosts[].id or creatorId to look up the host with Facebook Profile.
  • To list more events from a host page, call Facebook Page Events.

Pricing

Billed at the actual cost of each call, about $0.0012 for the request above. Failed calls are not charged.

Посмотреть больше

Связанные APIs

Все APIs
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

Вопросы

FAQ

Как использовать API Facebook Event Details?

Отправьте POST-запрос на https://api.sandbase.ai/v1/api/facebook/event-details, указав ключ SandBase API в заголовке Authorization (Bearer), а параметры — в теле JSON. Вы также можете попробовать это в Playground на этой странице без написания кода.

Сколько стоит API Facebook Event Details?

От $0.0012 за вызов, списывается с баланса SandBase. Оплата взимается только за сделанные вызовы; подписка не требуется.

Какие параметры принимает API Facebook Event Details?

Параметры не требуются. Необязательные: id (string) и url (string). В таблице Parameters и в Playground на этой странице перечислены все поля.

Что возвращает API Facebook Event Details?

JSON-ответ, возвращаемый в том же HTTP-запросе (синхронно). В README на этой странице приведен пример ответа.

Нужен ли мне аккаунт разработчика Facebook или API key?

Нет. Facebook Event Details работает через SandBase, поэтому один API key SandBase покрывает этот endpoint и все остальные API и модели в каталоге. Вам не нужно отдельно запрашивать доступ к API Facebook.