Robert Makeev
Robert Makeev

Reputation: 5

How to get Instagram Profile Picture's API?

Who can explain to me what is Instagram DP API, how to get it. I know that it is used for downloading DP, but how to get it. It must look like a token I believe.

Upvotes: 1

Views: 2070

Answers (2)

Emir Tanır
Emir Tanır

Reputation: 42

Instagram shut down its public API. Meaning, third-party apps can no longer access the API from Instagram without permission. Third-party apps now need to be approved by Instagram before they can access the API

Upvotes: 0

Niloy
Niloy

Reputation: 606

It's simply a get request. You can send with fetch or axios.

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

Example with node.js

with Axios First install axios with npm

npm i axios

then

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
})

Upvotes: 3

Related Questions