Instagram Hashtag Scraper avatar

Instagram Hashtag Scraper

Try for free

Pay $2.30 for 1,000 results

Go to Store
Instagram Hashtag Scraper

Instagram Hashtag Scraper

apify/instagram-hashtag-scraper
Try for free

Pay $2.30 for 1,000 results

Scrape Instagram hashtags data. Just add one or more hashtags and extract posts, images, URLs, comments, likes, users, locations, timestamps, and more. Export scraped datasets, run the scraper via API, schedule and monitor runs or integrate with other tools.

Do you want to learn more about this Actor?

Get a demo

What is Instagram Hashtag Scraper?

It's a simple tool that allows you to web scrape full data from Instagram posts based on hashtag search. To scrape every post that mentions a specific hashtag, just indicate the hashtag, the number of posts to scrape, and click the "Save & Start" button at the bottom of the page.

How to scrape Instagram hashtags

Instagram Hashtag 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 Hashtag Scraper.
  3. Add one or more Instagram hashtags 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.

Instagram Hashtag Scraper tutorial

If you want detailed guidance on how to use Instagram Hashtag Scraper, follow this video tutorial - it will show you exactly how to extract data from Instagram hashtags in just a few minutes:

How many results can you scrape with Instagram Hashtag Scraper?

Instagram Hashtag Scraper can return tens of thousands of results on average. However, you have to keep in mind that scraping Instagram has many variables to it and may cause the results to fluctuate case by case. 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. Some of the most frequent cases are:

  • website gives a different number of results depending on the type/value of the input
  • website has an internal limit that no scraper can cross
  • scraper has a limit that we are working on improving

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 Hashtags 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.

Input

The input for Instagram Hashtag Scraper should be the Instagram hashtag or hashtags you want to scrape and number of results for each. Click on the input tab for an input example in JSON.

1{
2  "hashtags": [
3    "WinterWarmer  ",
4    "Pastry",
5    "Coffee",
6    "coffeeshop"
7  ],
8  "resultsLimit": 20
9}
10...

Output

You can download the resulting datasets in various structured formats such as JSON, HTML, CSV or Excel. Each item in the dataset will contain a separate Instagram post (which mentions your hashtag) following this format:

1[
2{
3  "id": "2968381439079951049",
4  "type": "Image",
5  "shortCode": "CkxzzESOSrJ",
6  "caption": "Something to walk with… warm.. ‘to go’.⁠\n#WinterWarmer #Pastry & #Coffee ☕️🤍⁠\n⁠\n⁠\n#coffeeshop #walking #coffeelover #bakery #latte #cafe #coffeetime #coffeeaddict #latteart #coffeegram #barista #caffeine #instacoffee #coffeelovers #cappuccino #coffeelove #pastry #butcher #baker #savoury #sweet #artisan #artisanbakery",
7  "hashtags": [
8    "WinterWarmer",
9    "Pastry",
10    "Coffee",
11    "coffeeshop",
12  ],
13  "mentions": [],
14  "url": "https://www.instagram.com/p/CkxzzESOSrJ/",
15  "commentsCount": 0,
16  "firstComment": "",
17  "latestComments": [],
18  "dimensionsHeight": 1334,
19  "dimensionsWidth": 1080,
20  "displayUrl": "https://instagram.ftpa1-2.fna.fbcdn.net/v/t51.2885-15/314813380_3353123594960112_7939201600927436601_n.jpg?stp=dst-jpg_e35&_nc_ht=instagram.ftpa1-2.fna.fbcdn.net&_nc_cat=100&_nc_ohc=vQbODwsDgF0AX83Zh0w&edm=AA0rjkIBAAAA&ccb=7-5&oh=00_AfCr7AxXzveU1ZeAUWswNEG_KxrrR9b5tQJIjNcKJQ-bKw&oe=637255A2&_nc_sid=d997c6",
21  "images": [],
22  "alt": null,
23  "likesCount": 0,
24  "timestamp": "2022-11-10T11:11:15.000Z",
25  "childPosts": [],
26  "ownerId": "51571511280"
27},
28]
29...

Want to scrape Instagram profiles, videos, or comments?

You can use the dedicated scrapers below if you want to scrape specific Instagram data. Each of them is built for a relevant Instagram scraping case, e.g. comments, video, followers, or profile.

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

Need something more advanced?

Try our more advanced Instagram Scraper or Instagram API Scraper if you need more options and are comfortable with changing settings.

Let us know if you need a custom Instagram scraping solution.

What can I use the extracted data from Instagram hashtags for?

Scraping Instagram hashtags is the fastest, most efficient way to get datasets that you can use anywhere. Data from posts based on hashtags can help to follow and predict trends, assist in tracking brand awareness, direct you in how to improve your Instagram performance, and help to keep an eye on competing influencers.

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. However, you should be aware that your results could contain personal data. 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 post on the legality of web scraping and ethical scraping.

Can I integrate Instagram Hashtag Scraper with other apps?

Instagram Hashtag 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 Hashtag Scraper successfully finishes a run.

Can I use Instagram Hashtag 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.

Not your cup of tea? Build your own scraper.

Instagram Hashtag 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 Hashtag Scraper or simply found a bug, please create an issue on the Actor’s Issues tab in Apify Console.

Developer
Maintained by Apify

Actor Metrics

  • 926 monthly users

  • 109 stars

  • >99% runs succeeded

  • 1.9 days response time

  • Created in Nov 2021

  • Modified 2 days ago