Instagram
主題的 Webhook 並訂閱 story_insights
欄位。0
。API 回應中的時間戳記使用零偏移的世界協調時間(UTC),並統一採用 ISO-8601 格式。例如:2019-04-05T07:56:32+0000
API 包含以下端點:
GET /{ig-media-id}/insights
— 取得影音內容物件的衡量指標GET /{ig-user-id}/insights
— 取得 Instagram Business 帳號或 Instagram 創作者帳號的衡量指標。請參閱每個端點的參考說明文件,瞭解可用的衡量指標、參數和權限規定。
若要取得 Instagram Business 或創作者帳號的衡量指標,請查詢 GET /{ig-user-id}/insights
關係連線並指定要傳回的衡量指標。
GET graph.facebook.com/17841405822304914/insights ?metric=impressions,reach,profile_views &period=day
{ "data": [ { "name": "impressions", "period": "day", "values": [ { "value": 32, "end_time": "2018-01-11T08:00:00+0000" }, { "value": 32, "end_time": "2018-01-12T08:00:00+0000" } ], "title": "Impressions", "description": "Total number of times the Business Account's media objects have been viewed", "id": "instagram_business_account_id/insights/impressions/day" }, { "name": "reach", "period": "day", "values": [ { "value": 12, "end_time": "2018-01-11T08:00:00+0000" }, { "value": 12, "end_time": "2018-01-12T08:00:00+0000" } ], "title": "Reach", "description": "Total number of times the Business Account's media objects have been uniquely viewed", "id": "instagram_business_account_id/insights/reach/day" }, { "name": "profile_views", "period": "day", "values": [ { "value": 15, "end_time": "2018-01-11T08:00:00+0000" }, { "value": 15, "end_time": "2018-01-12T08:00:00+0000" } ], "title": "Profile Views", "description": "Total number of users who have viewed the Business Account's profile within the specified period", "id": "instagram_business_account_id/insights/profile_views/day" } ] }
若要取得影音內容物件的衡量指標,請查詢 GET /{ig-media-id}/insights
關係連線並指定要傳回的衡量指標。
GET graph.facebook.com/{media-id}/insights ?metric=engagement,impressions,reach
{ "data": [ { "name": "engagement", "period": "lifetime", "values": [ { "value": 8 } ], "title": "Engagement", "description": "Total number of likes and comments on the media object", "id": "media_id/insights/engagement/lifetime" }, { "name": "impressions", "period": "lifetime", "values": [ { "value": 13 } ], "title": "Impressions", "description": "Total number of times the media object has been seen", "id": "media_id/insights/impressions/lifetime" }, { "name": "reach", "period": "lifetime", "values": [ { "value": 13 } ], "title": "Reach", "description": "Total number of unique accounts that have seen the media object", "id": "media_id/insights/reach/lifetime" } ] }