Instagram Hashtag Username Scraper avatar

Instagram Hashtag Username Scraper

Pricing

from $5.99 / 1,000 results

Go to Apify Store
Instagram Hashtag Username Scraper

Instagram Hashtag Username Scraper

📸 Instagram Hashtag Username Scraper collects public usernames from posts under chosen hashtags, fast. 🔎 Filter by followers/engagement, avoid duplicates, export CSV/JSON. 🚀 Perfect for influencer discovery, growth marketing & targeted outreach.

Pricing

from $5.99 / 1,000 results

Rating

0.0

(0)

Developer

Scrapier

Scrapier

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

7 days ago

Last modified

Share

Instagram Hashtag Username Scraper

The Instagram Hashtag Username Scraper collects public usernames and post details from Instagram hashtag result pages and saves clean, structured rows to your Apify dataset. It solves the “how to scrape Instagram usernames by hashtag” problem for marketers, developers, data analysts, and researchers by turning hashtag feeds into a ready-to-export dataset. Built as an instagram hashtag user scraper for bulk runs and automation, it helps you extract usernames from Instagram hashtags at scale and power targeted outreach, trend tracking, and analysis.

What data / output can you get?

This instagram hashtag scraper tool pushes one dataset item per post found under each tag. Fields are strictly limited to what the actor extracts and pushes.

Data typeDescriptionExample value
search_keywordNormalized hashtag used for the search"travel"
user_pkPoster’s Instagram user ID (string)"1234567890"
usernamePoster’s Instagram username"exampleuser"
idMedia ID (string)"3141592653589793238"
codeMedia shortcode"C2AbCdEFgH1"
captionCleaned caption text (line breaks removed)"Sunset over the mountains 🌄"

Notes:

  • Results stream to the Apify dataset as they’re found. You can download results as CSV or JSON.
  • Some values may be empty strings if not provided by Instagram for a given post (e.g., caption may be empty).

Key features

  • ⚡ Fast hashtag post collection Uses a lightweight HTTP stack (requests.Session with your sessionid cookie) to fetch Instagram’s hashtag SERP and extract usernames and captions from public posts efficiently.

  • 🧾 Bulk input (hashtags or tag URLs) Paste a list of plain hashtags or Instagram tag links into urls and the actor will walk through them automatically — great as an IG hashtag user extractor for campaigns.

  • 🎯 Per-hashtag limits Control depth with maxItemsPerQuery to cap how many posts are collected per tag.

  • 🔄 Connection resilience with proxy fallback On cloud runs, first pages can appear empty from certain IPs. If proxyConfiguration allows it, the actor can switch from direct to Apify datacenter and then residential routes to keep results flowing.

  • ✨ Clean, consistent captions Captions are normalized (whitespace and single “.” lines removed) for better downstream analysis.

  • 🗃️ Live dataset output with CSV/JSON export Each post is saved immediately to your dataset so you can monitor progress and export to CSV or JSON at any time.

  • 🔐 Flexible session input Accepts a raw sessionid value or a pasted fragment like “sessionid=…”. You can also use the INSTAGRAM_SESSION_ID environment variable.

  • 🏷️ URL/hashtag normalization Accepts both Instagram tag page URLs and text (with or without #), and normalizes search_keyword for consistent outputs.

How to use Instagram Hashtag Username Scraper - step by step

  1. Sign in to Apify.
  2. Open the Instagram Hashtag Username Scraper and click Run.
  3. Add hashtags in urls:
  4. Paste your sessionId:
    • Copy your Instagram sessionid cookie from your browser and paste it into the sessionId field. The actor accepts the raw value or cookie fragments like “sessionid=…”.
  5. Set maxItemsPerQuery (optional):
    • Choose how many posts to collect per hashtag (default is 100).
  6. Configure proxyConfiguration (optional but recommended on cloud):
    • Enable Apify Proxy for more stable results, especially at scale.
  7. Start the run:
    • The actor warms up your session and begins collecting posts. Rows appear live in the Output dataset.
  8. Export results:
    • Go to the Dataset tab to download results in CSV or JSON.

Pro Tip: For unattended runs, you can set the INSTAGRAM_SESSION_ID environment variable instead of pasting sessionId each time.

Use cases

Use case nameDescription
Influencer discovery by hashtagBuild a targeted list of usernames posting under relevant tags to power outreach and collaborations.
Growth marketing audience buildingCollect Instagram usernames from hashtag posts to seed engagement lists and campaigns.
Trend tracking for content teamsCapture usernames and captions to analyze what performs under niche hashtags.
Competitive landscape monitoringMonitor active posters under industry tags to map communities and brand touchpoints.
Academic and social media researchCollect structured hashtag datasets for studies on content, engagement, and communities.
Developer pipeline for enrichmentStream hashtag post rows to a dataset as a source for downstream tools or custom ETLs.

Why choose Instagram Hashtag Username Scraper?

This instagram user scraper by hashtag prioritizes precision and reliability for scalable, structured extraction.

  • 🎯 Accurate, focused fields: Extracts exactly the fields shown in the Output section for clean, consistent datasets.
  • 🧪 Built for bulk: Handles lists of hashtags or tag URLs in one run for faster workflows.
  • 🔁 Robust on cloud: Automatically escalates connection routes (if proxy is enabled) to overcome empty first-page responses.
  • 🧼 Clean text processing: Captions are normalized for easier analysis and matching.
  • 🧰 Minimal setup: No browser automation — just provide your sessionId and hit run.
  • 💾 Easy exports: Download CSV or JSON straight from the dataset.

In short: a production-minded instagram hashtag scraper tool designed to collect exactly what you need with resilient connections and clean output.

Yes — when used responsibly. This actor collects data from Instagram’s public hashtag search payloads using your logged-in session. You should:

  • Only access and use data you’re allowed to under Instagram’s terms and applicable laws.
  • Avoid collection of private or non-public content.
  • Follow relevant regulations (e.g., GDPR/CCPA) for how you store and use data.
  • Consult your legal team for edge cases or specific compliance needs.

Input parameters & output format

Example JSON input

{
"urls": [
"https://www.instagram.com/explore/tags/nature/",
"#travel",
"food"
],
"maxItemsPerQuery": 50,
"sessionId": "sessionid=YOUR_SESSION_ID_VALUE",
"proxyConfiguration": {
"useApifyProxy": true
}
}

Input parameters

  • urls (array, required)
    • Description: Add one hashtag per line — or paste full Instagram tag links. Examples: nature, #travel, or a link from the tag page you already love.
    • Default: none
  • maxItemsPerQuery (integer, optional)
    • Description: Set the maximum number of posts to collect for each tag in your list. Start small to test, then raise the cap when you’re happy with the results.
    • Default: 100
    • Minimum: 1, Maximum: 10000
  • sessionId (string, required)
    • Description: Copy the sessionid cookie from your browser (instagram.com) and paste it here when you start a run. Treat it like a password.
    • Default: "" (empty)
  • proxyConfiguration (object, optional)
    • Description: Apify can route traffic through managed proxies for more stable runs in the cloud. Toggle here if you see throttling or need reliability at scale.
    • Default: none (you can prefill with {"useApifyProxy": true})

Example JSON output

[
{
"search_keyword": "travel",
"user_pk": "1234567890",
"username": "exampleuser",
"id": "3141592653589793238",
"code": "C2AbCdEFgH1",
"caption": "Sunset over the mountains 🌄"
},
{
"search_keyword": "nature",
"user_pk": "987654321",
"username": "anotheruser",
"id": "2718281828459045235",
"code": "D3HiJkLMnO2",
"caption": ""
}
]

Notes:

  • Fields may be empty strings if Instagram doesn’t return values for a post (e.g., caption).
  • search_keyword is normalized (removes leading # when present).

FAQ

Do I need to log in or provide cookies?

✅ Yes. You must provide your Instagram sessionId (the sessionid cookie). Without it, Instagram typically returns no results. The actor accepts a raw sessionid value or a pasted fragment like “sessionid=…”.

Can I paste full hashtag URLs or just hashtags?

✅ Both are supported. Add plain hashtags like “#travel” or text like “travel”, and full tag URLs like “https://www.instagram.com/explore/tags/nature/”. The actor normalizes them before querying.

How many posts can I collect per hashtag?

📈 You control this with maxItemsPerQuery (default 100). Set any value from 1 to 10,000 depending on your needs and available results.

How does the connection fallback work?

🔄 On cloud runs, first pages can appear empty from certain IPs. If proxyConfiguration allows it, the actor can switch from direct to Apify datacenter, and then to residential routes, to improve result consistency.

What data do I get for each post?

📦 Each row includes: search_keyword, user_pk, username, id, code, and caption. This makes it ideal to download Instagram usernames from hashtags and collect Instagram usernames from hashtag posts.

Can this scrape commenters or likers on hashtag posts?

❌ No. This actor is an instagram hashtag post user scraper focused on usernames from posts under a hashtag. It does not scrape commenters or likers.

How do I export results?

💾 Go to the run’s Dataset and export to CSV or JSON. This instagram hashtag user list downloader makes it easy to take data into your analytics or outreach tools.

Is this suitable for developers and pipelines?

🧑‍💻 Yes. As an Apify actor, it streams rows to a dataset you can fetch programmatically. It works well as an instagram profile scraper by hashtag component in data pipelines.

Closing thoughts

The Instagram Hashtag Username Scraper is built to extract structured usernames and post details from hashtag feeds reliably. With bulk inputs, resilient proxy fallback, and clean outputs, it’s ideal for marketers, developers, analysts, and researchers. Export to CSV/JSON for enrichment and outreach, or pull from the dataset in your automation pipeline. Start extracting smarter instagram hashtag engagement user data with a focused, production-ready workflow.

What are other Instagram scraping tools?

If you want to scrape specific Instagram data, you can use any of the dedicated scrapers below for faster and more targeted results.

Scraper NameScraper Name
Instagram B2b Email ScraperInstagram Posts Scraper
Instagram B2b Lead ScraperInstagram Profile Email Scraper
Instagram B2b Phone Number ScraperInstagram Profile Email Scraper By Keyword
Instagram Comments ScraperInstagram Profile Lead Scraper
Instagram Dm AutomationInstagram Profile Lead Scraper By Keyword
Instagram Email ScraperInstagram Profile Phone Number Scraper
Instagram Followers And Following ScrapperInstagram Profile Phone Number Scraper By Keyword
Instagram Followers Count ScraperInstagram Profile Post Scraper
Instagram Followers ScraperInstagram Profile Reels Scraper
Instagram Following ScraperInstagram Profile Scraper
Instagram Hashtag ScraperInstagram Reels Scraper
Instagram Highlights ScraperInstagram Related Hashtag Stats Scraper
Instagram Lead ScraperInstagram Related Person Scraper
Instagram Likes ScraperInstagram Single Reels Scraper
Instagram Location ScraperInstagram Story Details Scraper
Instagram Mentions ScraperInstagram Tagged Mentions Posts Scraper
Instagram Phone Number ScraperInstagram Tagged Posts Scraper
Instagram Post Details Scraper