无需身份验证的 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 提要数据.
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屋!