Instagram API Scraper avatar
Instagram API Scraper
Try for free

30 days trial then $39.00/month - No credit card required now

View all Actors
Instagram API Scraper

Instagram API Scraper

Try for free

30 days trial then $39.00/month - No credit card required now

Scrape and download Instagram posts, profiles, places, hashtags, photos without login. Supports search keywords and URL lists. Download your data as HTML table, JSON, CSV, Excel, XML, and RSS feed.

What is Instagram API Scraper?

You can use Instagram API Scraper to set up a scraper to search Instagram for profiles, hashtags, or places. Alternatively, you can add the Instagram URLs you want to scrape directly and extract page details, profiles, posts, comments, hashtags, locations, and more.

With Instagram API Scraper you can extract valuable data from:

1. Profiles

  • by URL ([PROFILE]) with top recent posts if max results in input is zero.

2. Posts

  • with top comments available by direct URLs for regular posts ([SHORTCODE]),


  • or reels ([SHORTCODE]) with top comments available by direct URLs for regular posts, profiles, hashtags, locations and posts.


  • You can get comments from posts by using the Instagram POST URL in the input.

4. Tags and locations

  • Tags (,

  • a list of locations (

  • and exact locations ( supported as direct URLs.

  • You can optionally provide search term(s) to look up profiles, locations and hashtags.

Why scrape Instagram?

Instagram data can give you valuable information about popular posts and users anywhere in the world, help you predict trends, track brand awareness, learn how to improve your Instagram performance, or keep an eye on competing influencers.

If you want more ideas, check out our industries pages for ways web scraping is already being used in a wide range of companies.

How to scrape Instagram with Instagram API Scraper

Instagram API Scraper is designed to be fast and easy to use so there aren't too many parameters or settings. Just follow the steps below:

  1. Create a free Apify account.
  2. Open Instagram API Scraper.
  3. Add one or more Instagram URLs or search queries to scrape.
  4. Click "Save & Start" and wait for the datasets to be extracted.
  5. Download your data in JSON, XML, CSV, Excel, or HTML.

How many results can you scrape with Instagram API scraper?

The number of results Instagram API scraper can return varies heavily based on the content you want to scrape. To get an idea you can always open the required url in an incognito window in your browser (Chrome, for example) and check what Instagram shows users who are not logged in.

You have to keep in mind that scraping Instagram is dynamic and subject to change. There’s no one-size-fits-all-use-cases number. The maximum number of results may vary depending on the complexity of the input, location, and other factors.

Therefore, while we regularly run Actor tests to keep the benchmarks in check, the results may also fluctuate without our knowing. The best way to know for sure for your particular use case is to do a test run yourself.

How much will scraping Instagram cost you?

When it comes to scraping, it can be challenging to estimate the resources needed to extract data as use cases may vary significantly. That's why the best course of action is to run a test scrape with a small sample of input data and limited output. You’ll get your price per scrape, which you’ll then multiply by the number of scrapes you intend to do.

Watch this video for a few helpful tips. And don't forget that choosing a higher plan will save you money in the long run.

Our Instagram scrapers are ethical and do not extract any private user data, such as email addresses, gender, or location. They only extract what the user has chosen to share publicly. We therefore believe that our scrapers, when used for ethical purposes by Apify users, are safe. However, you should be aware that your results could contain personal data. Personal data is protected by the GDPR in the European Union and by other regulations around the world. You should not scrape personal data unless you have a legitimate reason to do so. If you're unsure whether your reason is legitimate, consult your lawyers. You can also read our blog posts on the legality of web scraping and ethical scraping.

Input parameters

The input for Instagram API Scraper should be JSON containing the list of pages on Instagram that should be visited. Click on the input tab for an input example.

Output example

The actor stores its results in a dataset. Each item is a separate item in the dataset.

You can manage the results in any language (Python, PHP, Node.js/NPM). See our API reference to learn more about getting results from our Instagram scrapers.

Scraped Instagram post

Please note that ownerFullName and ownerUsername are available only for posts from the profile feed (for hashtags and locations there will only be ownerId) and likewise locationName and locationId are available only for posts from the location feed. In order to get topPosts you need to scrape profile-tag-location details (zero max items).

2  "id": "2872941012581150166",
3  "type": "Sidecar",
4  "shortCode": "CfevKEjjO3W",
5  "caption": "Friday is just Party spelled backwards.",
6  "hashtags": [],
7  "mentions": [],
8  "url": "",
9  "commentsCount": 1,
10  "topComments": [
11    {
12      "id": "17965588192732482",
13      "text": "Ytrap is that you?",
14      "created_at": 1656701973,
15      "owner": {
16        "id": "53055140",
17        "profile_pic_url": "",
18        "username": "mr.bearightside"
19      }
20    }
21  ],
22  "dimensionsHeight": 719,
23  "dimensionsWidth": 1080,
24  "displayUrl": "",
25  "images": [
26    "",
27    "",
28    "",
29    ""
30  ],
31  "likesCount": 16,
32  "timestamp": "2022-07-01T18:47:58.000Z",
33  "childPosts": [
34    {
35      "id": "2872941008219162995",
36      "type": "Image",
37      "caption": "",
38      "hashtags": [],
39      "mentions": [],
40      "url": null,
41      "commentsCount": 0,
42      "topComments": [],
43      "dimensionsHeight": 719,
44      "dimensionsWidth": 1080,
45      "displayUrl": "",
46      "images": [],
47      "likesCount": null,
48      "timestamp": null,
49      "childPosts": [],
50      "ownerId": null
51    },
52    {
53      "id": "2872941008504479156",
54      "type": "Image",
55      "caption": "",
56      "hashtags": [],
57      "mentions": [],
58      "url": null,
59      "commentsCount": 0,
60      "topComments": [],
61      "dimensionsHeight": 719,
62      "dimensionsWidth": 1080,
63      "displayUrl": "",
64      "images": [],
65      "likesCount": null,
66      "timestamp": null,
67      "childPosts": [],
68      "ownerId": null
69    },
70    {
71      "id": "2872941008210847168",
72      "type": "Image",
73      "caption": "",
74      "hashtags": [],
75      "mentions": [],
76      "url": null,
77      "commentsCount": 0,
78      "topComments": [],
79      "dimensionsHeight": 719,
80      "dimensionsWidth": 1080,
81      "displayUrl": "",
82      "images": [],
83      "likesCount": null,
84      "timestamp": null,
85      "childPosts": [],
86      "ownerId": null
87    },
88    {
89      "id": "2872941008412089063",
90      "type": "Image",
91      "caption": "",
92      "hashtags": [],
93      "mentions": [],
94      "url": null,
95      "commentsCount": 0,
96      "topComments": [],
97      "dimensionsHeight": 720,
98      "dimensionsWidth": 1080,
99      "displayUrl": "",
100      "images": [],
101      "likesCount": null,
102      "timestamp": null,
103      "childPosts": [],
104      "ownerId": null
105    }
106  ],
107  "ownerFullName": "Apify",
108  "ownerUsername": "apifytech",
109  "ownerId": "29230178602"

Scraped Instagram comment

Gets up to three replies. The output format is different, so it's recommended to do separate runs to get posts with comments and runs for all other types of data.

2  "url": "",
3  "id": "17950726027923736",
4  "text": "@romipv15 ❤️",
5  "created_at": 1659461955,
6  "owner": {
7    "id": "4067198760",
8    "is_verified": false,
9    "profile_pic_url": "",
10    "username": "devoid.wolf"
11  },
12  "repliesCount": 1,
13  "replies": [
14    {
15      "id": "17967877732740996",
16      "text": "@devoid.wolf loviu preciosooo❤️❤️",
17      "created_at": 1659476569,
18      "owner": {
19        "id": "10177018382",
20        "is_verified": false,
21        "profile_pic_url": "",
22        "username": "romipv15"
23      },
24      "likesCount": 0
25    }
26  ],
27  "likesCount": 1

Integrations and Instagram API Scraper

Last but not least, Instagram API Scraper can be connected with almost any cloud service or web app thanks to integrations on the Apify platform. You can integrate with Make, Zapier, Slack, Airbyte, GitHub, Google Sheets, Google Drive, and more. Or you can use webhooks to carry out an action whenever an event occurs, e.g. get a notification whenever Instagram API Scraper successfully finishes a run.

Using Instagram API Scraper with the Apify API

The Apify API gives you programmatic access to the Apify platform. The API is organized around RESTful HTTP endpoints that enable you to manage, schedule, and run Apify actors. The API also lets you access any datasets, monitor actor performance, fetch results, create and update versions, and more.

To access the API using Node.js, use the apify-client NPM package. To access the API using Python, use the apify-client PyPI package.

Check out the Apify API reference docs for full details or click on the API tab for code examples.

Want to scrape Instagram hashtags, posts, or comments?

You can use the other dedicated scrapers below if you want to scrape specific Instagram data. You'll have fewer settings to change and faster results. Just enter one or more Instagram usernames or URLs and click to scrape.

👤 Instagram Profile ScraperQuick Instagram Posts Checker
#️⃣ Instagram Hashtag Scraper📷 Instagram Post Scraper
🏷️ Instagram Mentions Scraper🎞️ Instagram Reel Scraper
👥 Instagram Followers Count Scraper💬 Instagram Comments Scraper
📊 Instagram Hashtag Stats

Not your cup of tea? Build your own scraper

Instagram API Scraper doesn’t exactly do what you need? You can always build your own! We have various scraper templates in Python, JavaScript, and TypeScript to get you started. Alternatively, you can write it from scratch using our open-source library Crawlee. You can keep the scraper to yourself or make it public by adding it to Apify Store (and find users for it).

Or let us know if you need a custom scraping solution.

Your feedback

We’re always working on improving the performance of our Actors. So if you’ve got any technical feedback for Instagram API Scraper or simply found a bug, please create an issue on the Actor’s Issues tab in Apify Console.

Maintained by Apify
Actor metrics
  • 98 monthly users
  • 99.9% runs succeeded
  • 18 hours response time
  • Created in May 2022
  • Modified 3 days ago