instagramaccess-tokeninstagram-api

Is there still a way to fetch instagram feed without using access token now (06/2016)?


I have an issue that my Instagram API access token keeps expiring frequently and I red the document and understood that although the token wouldn't expire generally, Instagram may decide to expire a token any time for any security reason or whatever reasons.

I know that when it expires, I need to set up an authentication process and request for a new token and all those of things. But the problem is that my app is just retrieving my own feeds to show on my own website, once the token expires it doesn't make sense to set up such a process, the only thing I can do is to manually retrieve and update the token in my code.

So I was wondering if there is still a way to get feeds without using access token as I am just pulling in my own feeds. Or is there any other way I can solve this issue?

Thanks for your help.


Solution

  • EDIT : you can now get the json data of your profile simply with this link : https://www.instagram.com/anyuser/?__a=1


    If your profile is set to public mode you can fetch your data from json response just write: https://www.instagram.com/YOURUSERNAME/media

    example: https://www.instagram.com/bestcookingvideos/media

    you can see json structure with : http://json.parser.online.fr/

    Note: This page is not active anymore : https://www.instagram.com/YOURUSERNAME/media

    2020.11.17

    As in the answer you can get the profile details with 12 recent post via https://www.instagram.com/anyuser/?__a=1 but the problem is that this does not allowed to fetch media pagination. So for that you need to use

    https://instagram.com/graphql/query/?query_id=17888483320059182&variables={"id":"15165085906","first":20,"after":null}

    Above route will return first 20 media of the relevant user who belongs to the id and when we need get next 20 we need to pass the end_cursor which is in initial call .

    enter image description here

    For more info ref related answer