Or something like this another user posted a while back:
"As I said, create a bot that makes use of Instagram.com(web interface) and a few proxies(free). It will take longer to scrape, you won't get banned/be limited though.
1. Scrape "instagramcom/explore/tags/SOME_HASHTAG", extract window._sharedData, decode, get IDs("codes" actually) of all photos.
2. Scrape "instagramcom/p/PHOTO_CODE", extract window._sharedData, decode, get uploader's username.
3. Scrape "instagramcom/USERNAME", extract window._sharedData, decode, get user's biography. "