Instagram Data Scraping API

Unofficial Browse Instagram data API endpoints you could scrape using Stevesie Data. These endpoints were uncovered through use of software or services made publicly available by Instagram.

Get Bulk Data | From Any API | Into Your Project

Plans From $4.99/month

Instagram API

Instagram used to offer a more open API for accessing public data on a user’s behalf, however has made some extremely restrictive changes limiting the API for business-only use and cannot be used to scrape public data.

Official APIs

Instagram offers APIs to do everything except access public data.

Scraping Companies

There are a variety of companies that offer to scrape Instagram data for you if you pay them a lot of money. They are most likely using the open source software linked to below.

Open Source Software

If you’re a developer, you may be interested in these open source projects used to collect public data from Instagram:

Browser Extensions

You can always browse the Instagram Website and use a browser extension to collect data from the HTML you’re viewing:

Instagram Email Scraping

Instagram allows business accounts to publicly share their emails on the platform so potential customers and contacts can get in touch with the business. The open source Instagram API source code shows us a few endpoints that can be used to access emails of a specific account.

You’ll need to call an Instagram API Endpoint for each and every account you want to get the email for. Keep in mind that not all accounts choose to share this information, and the only way you’ll know if you can get an email back is to call the endpoint and see what is returned.

See Instagram API User Details for details on accessing the contact information for a specific user.

Instagram Followers Scraping

If you know of a popular account, you can access that popular account’s full list of Instagram followers using the Instagram API.

See Instagram API User Followers for more details on accessing a user’s follower list.

Instagram Stories Scraping

Scrape stories for a particular account and access the raw content of the image or video, as well as structured data such as hashtags, mentions & ad URLs.

See Instagram API User Stories to learn about how to access stories for a specific user.

Instagram Comments Scraping

You can access Instagram comments for specific posts at a time. You’ll need to know the post ID to scrape.

See Instagram API Post Comments for information on scraping the comments for a specific post.

Instagram Hashtag Scraping

If you’re interested hashtags, you can scrape all of the posts containing a hashtag using another endpoint.

See Instagram API Hashtag Posts for understanding how to fetch a list of posts for a specific hashtag.

Instagram Highlights Scraping

Some users pin stories to their profiles as “highlights.” You can access these as well from any account you are authorized to view.

See Instagram API User Highlights for details on getting the list of highlights for a user.

Instagram Profile Posts Scraping

Once you have a target account you want to retrieve content for, you can access the posts for that profile, getting back the captions used for each post, the raw media, hashtags & locations used, etc…

See Instagram API User Posts to see how to get posts from a specific user.

Instagram Location Scraping

Each Instagram post can be geo-tagged with a location, which can be a general city or a specific venue within a city. You can enter any of these known locations and get back the list of posts tagged in that location, useful for tracking Instagram activity in specific locations around the world and comparing activity, hashtag usage, etc…

See Instagram API Location Posts for more on collecting Instagram posts for a specific location.

Instagram Post Likers Scraping

If you have a specific Instagram post in mind, you can collect a list of specific users who liked that post. Instagram only returns back the most recent 1,000 users who liked the post, so if you’re trying to get the list of likers for a high visibility post, you’ll want to consider retrieving the list of the most recent 1,000 on a recurring basis.

See Instagram API Post Likers for more details on how to access likers of a particular post.

Secret Instagram API

Using the open source libraries linked to above, we can reveal a “secret” API that Instagram uses to communicate data between its servers & clients. While the software used to interact with their secret API is made publicly available in the form of their app & website, using this secret API may violate their terms of service (which alone is not illegal).

For fun, we’ve aggregated the “secret” endpoints that the above open source libraries describe. Each URL also includes potential inputs that each endpoint may expect, again - just for fun to illustrate what an official scraping API may look like.

The URLs on this page are provided “as-is” and are for informational purposes only. Use these URLs at your own risk if you’re interested in security research or similar, as using these URLs may violate Instagram’s terms of service and even result in getting your account & IP address banned!

Disclaimer: These URLs are not part of an official API endorsed by instagram.com and are documented here only for informational purposes. They were obtained through use of software or services made publicly available by instagram.com. Use of these URLs may breach the terms of service governing instagram.com.

Data Scraping API

👥 Contributors: steve
/accounts/login/ajax/
Username Password
/api/v1/fbsearch/places/
Query Session ID Rank Token
/api/v1/fbsearch/topsearch/
Query Session ID
/api/v1/feed/liked/
Session ID
/api/v1/feed/reels_tray/
Session ID
/api/v1/feed/timeline/
Session ID
/api/v1/feed/user/{{user_id}}/reel_media/
User ID Session ID
/api/v1/feed/user/{{username}}/username/
Username Session ID Max ID
/api/v1/friendships/{{user_id}}/followers/
User ID Session ID Max ID
/api/v1/friendships/{{user_id}}/following/
User ID Session ID Max ID
/api/v1/location_search/
Latitude Longitude Session ID
/api/v1/media/{{post_id}}/comments/
Post ID Session ID Pagination Max ID Pagination Min ID
/api/v1/media/{{post_id}}/likers/
Post ID Session ID
/api/v1/tags/{{hashtag}}/story/
Hashtag Session ID
/api/v1/tags/search/
Query Session ID
/api/v1/users/{{user_id}}/info/
User ID Session ID
/api/v1/usertags/{{user_id}}/feed/
User ID Session ID
/graphql/query/
Shortcode
/graphql/query/
Shortcode Pagination Cursor Limit
/graphql/query/
Shortcode Pagination Cursor Limit
/graphql/query/
Highlight ID Session ID
/graphql/query/
User ID Pagination Cursor Limit
/graphql/query/
User ID Pagination Cursor Limit
/graphql/query/
Location ID Pagination Cursor
/graphql/query/
Hashtag Pagination Cursor
/{{username}}/
Username Session ID