Instagram Hashtag Scraper

Instagram Hashtag Scraper

This scraper extracts users from Instagram based on a hashtag. Just enter a hashtag and set the number of usernames you need. It collects user details like usernames, IDs, and captions, making it perfect for social media analysis and research. ๐Ÿš€

AUTOMATIONLEAD_GENERATIONSOCIAL_MEDIAApify

๐Ÿ“Œ Overview

Instagram Hashtag Scraper is a powerful tool designed to extract usernames of users who have posted content under a specific hashtag. Simply input a hashtag, set the desired number of usernames, and let the scraper fetch relevant user data efficiently.

๐Ÿš€ Features

  • Extracts usernames from posts/reels associated with a given hashtag
  • Supports batch scraping with custom limits
  • Detects expired or invalid cookies for troubleshooting
  • Optimized for performance and reliability
  • Automatically scrolls through posts for deeper extraction

๐Ÿ”ง How It Works

  1. Enter a hashtag of your choice.
  2. Set the number of usernames you wish to retrieve.
  3. The scraper processes the hashtag and fetches associated usernames.
  4. Data is stored for easy access and analysis.
  5. If no posts are found, it suggests checking cookies or the keyword.

๐Ÿ“ฅ Input Parameters

ParameterTypeDescription
hashtagstringThe hashtag to scrape usernames from
max_itemsinteger(Optional) The maximum number of usernames to retrieve
cookiesstringInstagram session cookies for authentication

๐Ÿ“ค Output Data

The scraper returns structured JSON data containing:

  • search_keyword โ€“ The input hashtag
  • caption โ€“ Extracted hashtags from captions
  • user_pk โ€“ Unique user ID
  • username โ€“ Instagram handle
  • id โ€“ Post ID
  • code โ€“ Unique post code

Each extracted entry includes:

  • search_keyword - The searched hashtag.
  • caption - Extracted hashtags from the post.
  • user_pk - The unique user ID.
  • username - The Instagram username.
  • id - The post ID.
  • code - The unique Instagram post code.

๐Ÿ”‘ How to Get Instagram Cookies

To run the scraper, you need to extract your Instagram session cookies. Follow these steps:

  1. Install the Export Cookie JSON file for Puppeteer extension in your browser.
  2. Log in to Instagram using your account.
  3. Click on the extension icon and export your cookies as a JSON file.
  4. Copy the contents of the file and provide them as input to the scraper.

๐Ÿ“Œ SEO Optimized Keywords

  • Instagram Hashtag Scraper
  • Extract Instagram Usernames
  • Hashtag Data Mining
  • Social Media Scraping
  • Instagram Marketing Tool
  • Web Scraping for Instagram

๐Ÿš€ Start scraping Instagram hashtags today!


๐Ÿ”— Stay Updated

Follow the latest updates and improvements by โญ starring this repository!

Frequently Asked Questions

Is it legal to scrape job listings or public data?

Yes, if you're scraping publicly available data for personal or internal use. Always review Websute's Terms of Service before large-scale use or redistribution.

Do I need to code to use this scraper?

No. This is a no-code tool โ€” just enter a job title, location, and run the scraper directly from your dashboard or Apify actor page.

What data does it extract?

It extracts job titles, companies, salaries (if available), descriptions, locations, and post dates. You can export all of it to Excel or JSON.

Can I scrape multiple pages or filter by location?

Yes, you can scrape multiple pages and refine by job title, location, keyword, or more depending on the input settings you use.

How do I get started?

You can use the Try Now button on this page to go to the scraper. Youโ€™ll be guided to input a search term and get structured results. No setup needed!