Facebook 主页活动 API
通过 URL 列出任意公开 Facebook 公共主页主办的即将举行和已结束的活动(名称、时间安排、场地和主办方),以标准化 JSON 返回。
US$1.20/千次请求,按请求付费,无需订阅。
Brickyard Old Town Fall Trivia Night
Thursday, October 9 at 7:00 PM
Brickyard Old Town · Alexandria, VA
Create event
{"id": "1189734502281447","name": "Brickyard Old Town Fall Trivia Night","url": "https://www.facebook.com/events/1189734502281447/","dayTimeSentence": "Thursday, October 9 at 7:00 PM","startTimestamp": 1728507600,"placeName": "Brickyard Old Town","city": "Alexandria, VA","creatorName": "Brickyard Old Town",... 还有 3 个字段}
价格与服务商
Facebook 主页活动 API 价格:一个 API,2 个可互换的服务商
最便宜的服务商优先响应。如果它失败,下一个会在同一次调用中接手。
试一试
一个请求获取 Facebook 主页活动
这个示例展示了 18 个字段中的 17 个。查看全部字段
{
"found": true,
"data": {
"nextCursor": "AQHR7z8pLnO2vY0",
"hasNextPage": true,
"totalCount": 14,
"events": [
{
"id": "1189734502281447",
"name": "Brickyard Old Town Fall Trivia Night",
"url": "https://www.facebook.com/events/1189734502281447/",
"dayTimeSentence": "Thursday, October 9 at 7:00 PM",
"startTimestamp": 1728507600,
"placeName": "Brickyard Old Town",
"city": "Alexandria, VA",
"creatorName": "Brickyard Old Town",
"isOnline": false,
"isPast": false,
"isCanceled": false
},
{
"id": "1094432871662038",
"name": "Live Music: The Cobblestone Trio",
"url": "https://www.facebook.com/events/1094432871662038/",
"dayTimeSentence": "Friday, October 17 at 8:30 PM",
"startTimestamp": 1729204200,
"placeName": "Brickyard Old Town",
"city": "Alexandria, VA",
"creatorName": "Brickyard Old Town",
"isOnline": false,
"isPast": false,
"isCanceled": false
},
{
"id": "0798821156039981",
"name": "Oktoberfest Patio Party",
"url": "https://www.facebook.com/events/0798821156039981/",
"dayTimeSentence": "Saturday, September 27 at 2:00 PM",
"startTimestamp": 1727452800,
"placeName": "Brickyard Old Town",
"city": "Alexandria, VA",
"creatorName": "Brickyard Old Town",
"isOnline": false,
"isPast": true,
"isCanceled": false
}
]
}
}完整的参数与响应参考:这个接口的每个字段、类型和示例。
参考
一个请求,一种响应结构。
你发送的每个字段和收到的每个字段,都附有真实示例。
最近验证于 2026-11-14 · 可用率和延迟按 30d 统计
请求体
JSON,POST 到这个接口。
- urlstring
https://www.facebook.com/brickyardoldtown
The Facebook page link whose events to list, e.g. https://www.facebook.com/brickyardoldtown. Accepted: facebook.com/<name>, /p/<name>-<id>, /pages/<name>/<id>, /pg/<name>, /people/<name>/<id> and profile.php?id=<id>, on facebook.com or fb.com with or without www, m, mbasic, web, business or a language subdomain. Anything after the page, such as a tab, is fine: only the page is read. Any other Facebook link, such as a single event, group, share link, reel, video, hashtag, search or login page, is refused as invalid input, with no charge; facebook.event_details reads one event.
- cursorstring
上一次响应返回的分页游标。
响应
JSON,每个字段一个示例值。
Populated whenever the provider has data for the entity.
- citystring
Alexandria, VA
- creatorNamestring
Brickyard Old Town
Populated whenever the provider has data for the entity.
- dayTimeSentencestring
Thursday, October 9 at 7:00 PM
- idstring
1189734502281447
Populated whenever the provider has data for the entity.
- isCanceledboolean
false
- isOnlineboolean
false
- isPastboolean
false
- namestring
Brickyard Old Town Fall Trivia Night
Populated whenever the provider has data for the entity.
- placeNamestring
Brickyard Old Town
- startTimestampinteger
1728507600
- urlstring
https://www.facebook.com/events/1189734502281447/
Populated whenever the provider has data for the entity.
- hasNextPageboolean
true
- nextCursorstring
AQHR7z8pLnO2vY0
Opaque cursor for the next page of events, or null when this lane has no more. Pass it back as cursor to continue.
- totalCountinteger
14
- foundboolean
true
- reason"not_found"
Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.
常见问题
关于 Facebook 主页活动 API
AnyAPI 的 Facebook 主页活动 API 只需一次 POST 请求 /v1/run/facebook.profile_events,就以统一格式的 JSON 返回 Facebook 数据。通过 URL 列出任意公开 Facebook 公共主页主办的即将举行和已结束的活动(名称、时间安排、场地和主办方),以标准化 JSON 返回。AnyAPI 会在 2 个数据源之间路由每个请求,某个数据源失败时自动切换。费用:每千次请求 US$1.20 起,以美元计价,无需订阅,也没有每月最低消费。过去 30 天,通过 AnyAPI 发起的 Facebook 主页活动 API 调用中有 100.0% 成功,响应时间中位数为 1.5 秒,共测量 3,387 次调用。