CodeDotJS / instagram-profile-picture

:gem: Get url to the profile picture (and more) of any Instagram user in different resolutions!
MIT License
39 stars 5 forks source link

Instagram API Update #4

Open k4m4 opened 4 years ago

k4m4 commented 4 years ago

As of a month ago or so, Instagram made a few updates to its API. You now need to be authenticated so as to access a user's profile picture in HD (i.e. user.hd_profile_pic_url_info).

k4m4 commented 4 years ago

@CodeDotJS, any updates on this?

CodeDotJS commented 4 years ago

I need to see what's going and how this problem can be fixed. I'll try to push updates and fixes as soon as possible.

k4m4 commented 4 years ago

@CodeDotJS, have you tried registering an app through Instagram's developer platform? If you have a registered application then you can authenticate your app using your token, which should fix this issue.

nbartels commented 3 years ago

Almost this is 2 years old, I'd like to add some information and maybe this will help some other devs here. The URL with or without the magic query parameter, that shows the Instagram profile, is still working without login unless the IP becomes restricted. After some tests you will not get the profile, but the login page. Atm, I have no clue if this restriction is removed again. But using a valid cookie is working "around" the restriction.

Using this script will work at first and then stops. You can check this using a browser with incognito tab and call the profile URL directly there.