Instagram Hashtag Username Scraper

Instagram Hashtag Username Scraper

This actor scrapes Instagram posts based on a specified hashtag and extracts usernames, profile names, and user IDs. It helps track engaged users, analyze social media trends, and gather audience insights. Ideal for influencer research, marketing, and hashtag-based user analysis.

AUTOMATIONLEAD_GENERATIONSOCIAL_MEDIAApify

Instagram Hashtag Scraper

📌 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!