本文介绍了可以通过Instagram API获取Insights数据吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Instagram最近允许帐户链接到Facebook业务页面.他们还添加了一个新的洞察"部分,该部分提供了以下指标:
Instagram recently allowed accounts to link to a Facebook Business Page. They also added a new 'Insights' section that gives metrics like:
印象数抵达热门帖子年龄追随者
ImpressionsReachTop PostsFollowers by Age
我找不到通过API提取这些新数字的方法.我需要申请一个单独的Analytics API吗?
I can't find a way to pull these new numbers in via the API. Is there a separate Analytics API that I need to apply for?
推荐答案
此问题的快速更新:Instagram平台API现在提供获得见解的端点.
Quick update for this question: the Instagram Platform API now offers an endpoint for insights.
端点
GET graph.facebook.com
/{media_id}/insights?metric={engagement|impressions|reach|saved|video_views}
示例
GET graph.facebook.com
/17895695668004550/insights?metric=impressions,reach
示例响应
{
"data": [
{
"name": "impressions",
"period": "lifetime",
"values": [
{
"value": 264
}
],
"title": "Impressions",
"description": "Total number of times the media object has been seen",
"id": "17855590849148465/insights/impressions/lifetime"
},
{
"name": "reach",
"period": "lifetime",
"values": [
{
"value": 103
}
],
"title": "Reach",
"description": "Total number of unique accounts that have seen the media object",
"id": "17855590849148465/insights/reach/lifetime"
}
]
}
这篇关于可以通过Instagram API获取Insights数据吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!