没有身份验证的Instagram API [英] Instagram API without authentication
问题描述
是否可以使用Instagram API并创建一个网络应用程序,该应用程序通过其标签显示一些图像,而无需人们进行身份验证?我正在使用ASP.NET开发网站
Is it possible to use Instagram API and to create a web app which shows some images by their hashtags without that a person must authenticate herself? I'm using ASP.NET to develop the website
推荐答案
不确定标签,但是您可以使用登录页面旁边的?__ a = 1
以JSON格式下载任何Instagram用户照片供稿.地址像这样.无需获取用户ID或注册应用,无需令牌,无需oAuth.
Not sure about tags, but you can download any Instagram user photo feed in JSON format using ?__a=1
next to landing page address like this. No need to get user id or register an app, no tokens, no oAuth.
2018年4月12日更新:Facebook在此类端点上应用了一些符号/令牌保护,现在您需要提供 X-Instagram-GIS
标头和 csrftoken
cookie.根据您的请求使用 rhx_gis
, csrf_token
, user-agent
和 variables
计算的标头.但是,仍然可以在没有身份验证的情况下获取Instagram feed数据.
UPDATE 12 APR 2018: Facebook applied some sign/token protection on endpoints like this one and now you need to provide X-Instagram-GIS
header and csrftoken
cookie. Header calculated with rhx_gis
, csrf_token
, user-agent
and variables
from your request. But still, this is possible to get Instagram feed data without auth.
2019年1月更新:在此处查看我的最新更新有关如何将Google用作 CORS
的信息代理.
UPDATE JAN 2019: Check my latest update here about how to use Google as CORS
proxy.
这篇关于没有身份验证的Instagram API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!