Instagram Hashtag Scraper avatar
Instagram Hashtag Scraper

Pricing

$0.70 / 1,000 results

Go to Store
Instagram Hashtag Scraper

Instagram Hashtag Scraper

coderx/instagram-hashtag-scraper

Developed by

CoderX

Maintained by Community

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

0.0 (0)

Pricing

$0.70 / 1,000 results

0

Monthly users

3

Last modified

2 hours ago

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

Pricing

Pricing model

Pay per result 

This Actor is paid per result. You are not charged for the Apify platform usage, but only a fixed price for each dataset of 1,000 items in the Actor outputs.

Price per 1,000 items

$0.70