instagram - 如何通过 API 获取 Instagram 头像?

标签 instagram instagram-api

关闭。这个问题需要更多 focused .它目前不接受答案。












想改进这个问题?更新问题,使其仅关注一个问题 editing this post .

2年前关闭。




Improve this question




如何使用 Instagram API 提取 Instagram 个人资料图片?
基本图形 API 不包含个人资料图片,旧版 API 已停用。

最佳答案

使用这些网址之一

  • https://www.instagram.com/USERNAME/?__a=1
  • https://i.instagram.com/api/v1/users/USER_ID/info/

  • 注意:获取 Instagram USER_ID ,使用 Instagram 的第一个 URL USERNAME
    编辑:如果您使用第二个 URL,您需要在您的请求中添加一些用户代理。这就是我对 cURL 的处理方式。
    curl -s -H 'User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 12_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 Instagram 105.0.0.11.118 (iPhone11,8; iOS 12_3_1; en_US; en-US; scale=2.00; 828x1792; 165586599)' https://i.instagram.com/api/v1/users/USER_ID/info/
    

    关于instagram - 如何通过 API 获取 Instagram 头像?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50086945/

    相关文章:

    Instagram API 说用户不存在

    facebook - Instagram API 将于 2020 年弃用

    instagram - 如何使用 Instagram graphql?

    c# - 调用 Instagram "Follow peaple"API?

    javascript - 通过 API 获取 Instagram 当前的点赞和关注限制

    java - 服务器返回 HTTP 响应代码 : 405 for URL instagram access token api

    ios - iOS 上的 Instagram Oauth 重定向

    ios - 如何从另一个 iOS 应用程序启动 Instagram 的新帖子屏幕

    ios - Instagram 登录错误 : "This page could not be loaded. If you have cookies disabled in your browser..."

    Instagram 基本显示 API 错误 - 范围无效 : ['basic' ] OR Invalid redirect_uri