Instagram api未返回d

2024-03-29 15:56:51 发布

您现在位置:Python中文网/ 问答频道 /正文

instagram api在尝试通过hashtag获取最新帖子时会这样回复:

{"pagination":{"deprecation_warning":"next_max_id and min_id are deprecated for this endpoint; use min_tag_id and max_tag_id instead"},"meta":{"code":200},"data":[]}

这是我用于查询的url:

^{pr2}$

我试着用别人的访问令牌,效果很好。是什么造成的?在


Tags: andapiidtagpaginationminaremax
3条回答

我对PHP也有同样的问题(顺便说一下,语言并不重要)。我在Sandbox page上看到了以下3个条件:

  • Apps in sandbox are restricted to 10 users
  • Data is restricted to the 10 users and the 20 most recent media from each of those users
  • Reduced API rate limits

您只能从sandbox用户那里获取数据,您可以通过manageclients部分邀请他们。在

  1. 访问Manage Clients。在
  2. 单击应用程序的编辑。在
  3. 转到沙盒选项卡。在
  4. 添加一些要邀请的用户。在
  5. 让他们到accept the invitation并验证(make sure you have the scopes set up properly!)。在
  6. 为他们数据的荣耀而高兴。在

对于2015年11月17日之后注册的应用程序。一些端点在沙盒模式下返回不同的数据。您使用的端点也是其中之一。除非你的应用上线,否则你无法获取公共内容

As another example, let's consider an endpoint that returns a list of media: /tags/{tag-name}/media/recent. The response returned by this endpoint will contain only media with the given tag, as expected. But instead of returning media from any public Instagram user, it will return only media that belongs to your sandbox users, restricted to the last 20 for each user.

来源:http://instagram.com/developer/sandbox/

我也有同样的问题。似乎Instagram应用程序处于“沙盒模式”,即11月17日之后创建的应用程序无法访问public_content。在

这就是为什么使用另一个应用程序(可能不是沙盒模式)的访问代码有效。在

相关问题 更多 >