Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
How to get Instagram media and info

Instagram Scraper

Get users media

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

if user.media.page_info.has_next_page is true, continue with

https://www.instagram.com/username/?__a=1&max_id=<user.media.page_info.end_cursor>

Get your own saved media

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

if user.saved_media.page_info.has_next_page is true, continue with

https://www.instagram.com/username/saved/?__a=1&max_id=<user.saved_media.page_info.end_cursor>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment