Search code examples
instagram-api

Is there any way to get images from an instagram account since the new changes of the API (April 4th, 2018)?


Instagram API removed the following endpoint:

GET /users/search

which I was using to get images from my profile on my website.

Is there any way to do this now? I can't find any info since this is very new.


Solution

  • You can get at least the newest 12 pictures from a public account by using this URL scheme:

    https://www.instagram.com/[name_of_account]/?__a=1
    

    You can parse the Json output and find the image-URL in display_url

    This also works with hashtags and locations:

    https://www.instagram.com/explore/tags/hawaii/?__a=1