登录
使用 JS token

Facebook scrapers 配合您的 JavaScript token 使用效果最佳。

API 使用

Crawling API 请求中添加 &scraper=facebook-event。在 url 参数中对目标 URL 进行 URL 编码。

curl 'https://api.crawlbase.com/?token=YOUR_TOKEN' \
  --data-urlencode 'url=https://www.facebook.com/events/1543404119289643' \
  --data-urlencode 'scraper=facebook-event' -G
from crawlbase import CrawlingAPI

api = CrawlingAPI({'token': 'YOUR_TOKEN'})
res = api.get(
    'https://www.facebook.com/events/1543404119289643',
    {'scraper': 'facebook-event'}
)

import json
data = json.loads(res['body'])
const { CrawlingAPI } = require('crawlbase');
const api = new CrawlingAPI({ token: 'YOUR_TOKEN' });

const res = await api.get(
  'https://www.facebook.com/events/1543404119289643',
  { scraper: 'facebook-event' }
);
const data = JSON.parse(res.body);
require 'crawlbase'
api = Crawlbase::API.new(token: 'YOUR_TOKEN')

res = api.get('https://www.facebook.com/events/1543404119289643', scraper: 'facebook-event')
data = JSON.parse(res.body)

示例输入 URL

传入 url 参数的 URL(为方便阅读已进行 URL 解码):

https://www.facebook.com/events/1543404119289643

响应结构

JSON 响应体。当源页面缺少对应值时,字段类型可能为 null

name
string
活动标题。
host
string
主办方页面或个人。
description
string
活动描述正文。
start_time
string
ISO 8601 开始时间。
end_time
string | null
已设置时的 ISO 8601 结束时间。
location_name
string
场地名称。
location_address
string | null
完整地址文本。
interested_count
integer
标记为「感兴趣」的用户数。
going_count
integer
标记为「参加」的用户数。
cover_image
string
活动封面图片 URL。

示例响应

{
  "name": "Web Scraping Meetup",
  "host": "Crawlers and Scraping Enthusiasts",
  "description": "Quarterly meetup for the community…",
  "start_time": "2026-05-20T18:00:00-04:00",
  "end_time": "2026-05-20T21:00:00-04:00",
  "location_name": "WeWork Bryant Park",
  "interested_count": 237,
  "going_count": 82
}