Your Facebook Page reach and engagement metrics
facebook.facebook.page.insightsGet reach, impressions and engagement metrics for your Facebook Page
- 价格
- free按供应商原价
- 成功率
- 100%近 30 天 · 214 次
- 延迟 p50
- 536 毫秒p95 835 毫秒
- 最后验证
- —尚未验证
GEThttps://toolswitch.dev/v1/tools/facebook.facebook.page.insights预览- 可用平台额度调用
- 同步返回
- 读取公开数据
参数
needs read_insights and the Page token (select this Page on the connection). Meta deprecates individual metric names on a fixed schedule, so an unknown-metric error means the metric was retired, not that the call is malformed
| 参数 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| 路径参数 | ||||
page_id | 字符串 | 必填 | 123456789012345 | |
| 查询参数 | ||||
since | 字符串 | 可选 | Unix timestamp or YYYY-MM-DD; Meta caps a single call at 93 days | 2026-07-01 |
until | 字符串 | 可选 | 2026-07-28 | |
metric | 字符串 | 必填 | comma-separated metric names. page_impressions, page_impressions_unique and page_fans are RETIRED on v25 — all three answer '(#100) The value must be a valid insights metric' (checked live 2026-07-28). page_daily_follows_unique is still accepted | page_daily_follows_unique,page_post_engagements |
period | 字符串 | 必填 | day | week | days_28 | lifetime — a metric only supports some of these | day |
- 路径参数
page_id字符串必填示例:
123456789012345- 查询参数
since字符串可选Unix timestamp or YYYY-MM-DD; Meta caps a single call at 93 days
示例:
2026-07-01until字符串可选示例:
2026-07-28metric字符串必填comma-separated metric names. page_impressions, page_impressions_unique and page_fans are RETIRED on v25 — all three answer '(#100) The value must be a valid insights metric' (checked live 2026-07-28). page_daily_follows_unique is still accepted
示例:
page_daily_follows_unique,page_post_engagementsperiod字符串必填day | week | days_28 | lifetime — a metric only supports some of these
示例:
day
代码示例
将 $TOOLSWITCH_KEY 替换为你在控制台创建的密钥。
curl -X GET 'https://toolswitch.dev/v1/tools/facebook.facebook.page.insights' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/facebook.facebook.page.insights",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/facebook.facebook.page.insights", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());网关接口为预览版,地址与鉴权方式可能调整。 示例参数仅为样例数据。 调用按 free 计费,已含服务费。