如何获取Instagram个人资料图片的API?



谁能向我解释什么是Instagram DP API,如何获得它。我知道它是用来下载DP的,但如何获得它,我相信它看起来一定像token

这只是一个get请求。你可以用fetch或axios发送。

API:https://www.instagram.com/username/?__a=1

node.js 示例

使用Axios首次安装带有npm 的axios

npm i axios

然后

import axios from 'axios'
axios.get('https://www.instagram.com/nil.ooy/?__a=1').then(res=> {
console.log(res.data.graphql.user.profile_pic_url)
// Do stuffs
})

Instagram关闭了其公共API。这意味着,未经许可,第三方应用程序无法再从Instagram访问API。第三方应用程序现在需要获得Instagram的批准,然后才能访问API

相关内容

最新更新