Php 按用户名获取instagram用户分析
我想获得instagram用户分析,I。E获取包含追随者和追随者数量的时间表。 有没有办法从instagram api获取数据?Php 按用户名获取instagram用户分析,php,curl,instagram,instagram-api,Php,Curl,Instagram,Instagram Api,我想获得instagram用户分析,I。E获取包含追随者和追随者数量的时间表。 有没有办法从instagram api获取数据? 或者还有其他网站可以通过PHP自动获取分析信息吗?Instagram还没有分析API。我们必须按用户id搜索用户 在api响应中,用户json包含追随者、追随者和媒体的“计数” 如果你只是带着用户名,那么首先通过搜索用户名搜索用户;从他们那里获取ID并使用上面的API 形成趋势;我们必须每天为所有用户调用API! 非常昂贵,但Insta尚未提供直接API 然而,FB
或者还有其他网站可以通过PHP自动获取分析信息吗?Instagram还没有分析API。我们必须按用户id搜索用户 在api响应中,用户json包含追随者、追随者和媒体的“计数” 如果你只是带着用户名,那么首先通过搜索用户名搜索用户;从他们那里获取ID并使用上面的API 形成趋势;我们必须每天为所有用户调用API! 非常昂贵,但Insta尚未提供直接API 然而,FB刚刚在graph API下发布了用于用户洞察的新API
不过,这只适用于instagram商业账户。而且您需要代表您希望获得洞察的帐户使用访问令牌。从2019-06年起,您只能访问您自己的个人资料的分析(他们称之为FB洞察)。您无法访问其他用户配置文件的详细信息 例如,让我们获得您自己的追随者数量
graph.facebook.com
/{your_facebookPage_id}/insights?metric=followers_count&period=day
您将此JSON作为响应:
{
"insights": {
"data": [
{
"name": "follower_count",
"period": "day",
"values": [
{
"value": 2,
"end_time": "2019-06-24T07:00:00+0000"
},
{
"value": 0,
"end_time": "2019-06-25T07:00:00+0000"
}
],
"title": "Follower Count",
"description": "Total number of unique accounts following this profile",
"id": "{your_facebookPage_id}/insights/follower_count/day"
}
],
"paging": {
"previous": "https://graph.facebook.com/v3.3/{your_facebookPage_id}/insights?access_token=...&pretty=0&metric=follower_count&period=day&since=1561115213&until=1561288013",
"next": "https://graph.facebook.com/v3.3/{your_facebookPage_id}/insights?access_token=...&pretty=0&metric=follower_count&period=day&since=1561460815&until=1561633615"
}
},
"id": "{your_facebookPage_id}"
}