Your Instagram account reach and audience metrics
instagram.instagram.account.insightsGet reach, profile views and audience metrics for your Instagram account
- 价格
- free按供应商原价
- 成功率
- 100%近 30 天 · 4,224 次
- 延迟 p50
- 291 毫秒p95 895 毫秒
- 最后验证
- 2026年7月28日实测可用
GEThttps://toolswitch.dev/v1/tools/instagram.instagram.account.insights?metric=reach%2Caccounts_engaged%2Ctotal_interactions&period=day&metric_type=total_value预览- 可用平台额度调用
- 同步返回
- 读取公开数据
参数
needs instagram_manage_insights. `impressions` and `profile_views` are RETIRED on v25 — asking for them fails the whole call; use the metric_type=total_value trio (reach, accounts_engaged, total_interactions) instead, as the test_request does. Demographic breakdowns (follower_demographics) require metric_type=total_value plus a breakdown parameter and are only returned once the account has 100+ followers
| 参数 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| 路径参数 | ||||
ig_user_id | 字符串 | 必填 | 17841400000000000 | |
| 查询参数 | ||||
since | 字符串 | 可选 | Unix timestamp; a single call spans at most 30 days and cannot reach back beyond 2 years | 1751328000 |
until | 字符串 | 可选 | ||
metric | 字符串 | 必填 | comma-separated | reach,accounts_engaged,total_interactions |
period | 字符串 | 必填 | day | week | days_28 | lifetime | day |
metric_type | 字符串 | 可选 | set to total_value for the newer aggregate metrics (accounts_engaged, total_interactions) | total_value |
- 路径参数
ig_user_id字符串必填示例:
17841400000000000- 查询参数
since字符串可选Unix timestamp; a single call spans at most 30 days and cannot reach back beyond 2 years
示例:
1751328000until字符串可选metric字符串必填comma-separated
示例:
reach,accounts_engaged,total_interactionsperiod字符串必填day | week | days_28 | lifetime
示例:
daymetric_type字符串可选set to total_value for the newer aggregate metrics (accounts_engaged, total_interactions)
示例:
total_value
代码示例
将 $TOOLSWITCH_KEY 替换为你在控制台创建的密钥。
curl -X GET 'https://toolswitch.dev/v1/tools/instagram.instagram.account.insights?metric=reach%2Caccounts_engaged%2Ctotal_interactions&period=day&metric_type=total_value' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/instagram.instagram.account.insights?metric=reach%2Caccounts_engaged%2Ctotal_interactions&period=day&metric_type=total_value",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/instagram.instagram.account.insights?metric=reach%2Caccounts_engaged%2Ctotal_interactions&period=day&metric_type=total_value", {
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 计费,已含服务费。