Your Facebook Page reach and engagement metrics
facebook.facebook.page.insightsGet reach, impressions and engagement metrics for your Facebook Page
- Price
- freeプロバイダー原価
- Success rate
- 100%Last 30 days · 214 calls
- Latency p50
- 536 msp95 835 ms
- Last verified
- —Not verified yet
GEThttps://toolswitch.dev/v1/tools/facebook.facebook.page.insightsPreview- Uses platform quota
- Synchronous response
- Reads public data
パラメータ
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());このゲートウェイ API はプレビュー版です。URL や認証方式は変更される場合があります。 パラメータはサンプルデータです。 呼び出し料金は free です。サービス料を含みます。