如何通过标签获得Instagram图像而无需身份验证


How to get Instagram image by tags without authentication?

我在我的网站上开发了Instagram API的V.1,用于通过带有URL的标签搜索图像:

 $url = 'https://api.instagram.com/v1/tags/' . $tagName . '/media/recent?client_id=myclientid' . '&count=20';

这工作得很好,但最近不工作,并被Instagram弃用。有什么方法可以得到那个结果吗?

很遗憾,你的问题的答案是否定的。

如你所知,Instagram最近对使用他们的api提出了更严格的要求。任何打算使用Instagram API的应用程序都必须为它们需要的任何作用域提交请求。

basic - to read a user’s profile info and media
public_content - to read any public profile info and media on a user’s behalf
follower_list - to read the list of followers and followed-by users
comments - to post and delete comments on a user’s behalf
relationships - to follow and unfollow accounts on a user’s behalf
likes - to like and unlike media on a user’s behalf

标签属于public_content范围。如果你没有经历过审查过程,那么大多数情况下都是直接的。您需要提供应用程序的描述以及它将如何使用api。当我去提交和申请审查时,有一件事让我措手不及,那就是要求我提交一段视频,展示你所请求的范围将如何被使用。