Instagram Hashtag Scraper: Views, Likes & Date Filter avatar

Instagram Hashtag Scraper: Views, Likes & Date Filter

Pricing

from $2.00 / 1,000 results

Go to Apify Store
Instagram Hashtag Scraper: Views, Likes & Date Filter

Instagram Hashtag Scraper: Views, Likes & Date Filter

Scrape Instagram posts and reels by hashtag with views, likes and comments on every row. Filter by date (e.g. last 30 days), reels only, or minimum views/likes, and pull older posts from creators using the tag. No login or cookies. Get more with no duplicates.

Pricing

from $2.00 / 1,000 results

Rating

0.0

(0)

Developer

Ziyan Karmali

Ziyan Karmali

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

2 days ago

Last modified

Categories

Features

Limited permissions

Share

Scrape Instagram hashtag posts and reels with a since/until date filter, view counts, and optional older-post backfill. No login, no cookies, no account risk. You only pay for results.

Why this one

You asked for (in reviews of other scrapers)This actor
"needs an as-of date option"postedAfter / postedBefore: a date, an ISO timestamp, or "30 days". Every row is checked; out-of-range posts are never fetched or charged.
"can you please add view count"Views and likes and comments on the same row (metricsComplete: true), from hashtag pages and older-post backfill alike
"only scraped recent posts, not older ones"includeOlderPosts: checks the latest posts of creators active in the hashtag and keeps the in-range ones that carry the exact hashtag
surprise bills / limits ignoredHard maxResultsPerHashtag and maxPagesPerHashtag caps. Stops cleanly at your Apify spending limit, and a row is never pushed unless you can pay for it.

Input

{
"hashtags": ["streetwear", "#mumbaifood"],
"postedAfter": "60 days",
"postedBefore": "",
"includeOlderPosts": true,
"completeMetrics": true,
"contentType": "all",
"minViews": 0,
"strictHashtag": true,
"maxResultsPerHashtag": 20
}

Need more than 20? Run again with "continueFromRunId": "<previous run ID>" (the ID is in that run's OUTPUT as continueWith). You get the next batch; already-delivered posts are skipped and never charged twice.

Advanced options: maxPagesPerHashtag (40), relatedTopics (5), relatedDepth (1), maxCreatorsPerHashtag (10), creatorMissLimit (3), maxConcurrency (3), proxy.

Output (one row per post/reel, 31 fields, always the same keys)

{
"id": "3774598606448511949",
"shortCode": "DRiEW8TDEvN",
"url": "https://www.instagram.com/reel/DRiEW8TDEvN/",
"type": "Video",
"timestamp": "2025-11-26T20:00:39.935Z",
"timestampSource": "media_id",
"caption": "fall fits>>>\n#streetwear #streetstyle #outfitinspiration",
"hashtags": ["streetwear", "streetstyle", "outfitinspiration"],
"videoPlayCount": 2011170,
"likesCount": null,
"commentsCount": null,
"ownerUsername": "david.kxm",
"inputHashtag": "streetwear",
"matchType": "exact_hashtag",
"discoveredVia": "popular_page"
}
  • timestampSource: taken_at is exact. media_id is decoded from Instagram's media ID and is accurate to a few minutes (live check: 0 s to 3.4 min off, because the ID is minted when the upload starts).
  • discoveredVia: popular_page, related_topic:<topic>, or creator_profile:<username>.
  • matchType: exact_hashtag (caption contains the #tag), or related_topic when strictHashtag is off.

How every row gets views + likes + comments

Instagram shows logged-out visitors different metrics on different pages, so the actor joins them per post:

Where the post was foundViews fromLikes + comments fromExtra cost
Hashtag / related-topic pagethe topic pagepublic embed page, one light HTTP request with no browser. If the creator disabled embeds, the full post page insteadincluded in the result price
Older-post backfillcreator's Reels tab (views + likes + comments for 12 reels in one page)embed page (also gives the caption for the hashtag check)per page checked
  • Live test (2026-12-02): 14/15 rows complete from embeds alone. The 15th was a creator with embeds disabled, now covered by the post-page fallback (verified on that post: 73,867 likes / 307 comments).
  • Rows where the creator hid like/view counts come back with countsHidden: true and nulls. Nobody can get those logged out.
  • Photos and carousels have no view count on Instagram; they're metricsComplete with likes + comments.
  • Turn completeMetrics off for the fastest views-only run (no extra requests).

Honest limits

  • Instagram's full chronological hashtag feed needs a logged-in account. We don't use accounts, so this is a broad, date-filterable sample of a hashtag, not a complete archive.
  • Backfill yield depends on how consistently creators use the tag: in live tests about 1 in 10 checked posts qualified. That's why it's opt-in, billed per page checked, and skips a creator after creatorMissLimit misses in a row.
  • "Posts only" mostly returns results with backfill on, because hashtag pages are reel-heavy.

Pricing (pay per event)

EventPrice
Actor start$0.005
Result (row in dataset)$0.002 ($2.00 / 1,000)
Older-post check (backfill page or caption check, opt-in)$0.001

A default 20-result run costs about $0.045. Backfill adds $0.001 per check, bounded by your page and creator limits (e.g. about $0.05 for 13 older posts in a 60-day #mumbaifood run).

How it works

#tag → /popular/<tag> (about 12 top items + related topics) → related topic pages, fetched in parallel → (optional) each creator's Reels tab + grid → their in-range posts.

  • No browser at all. Every page is fetched as plain HTML (Instagram server-renders all the data we use), about 120 KB per page instead of about 1 MB, on a slim Node image that starts in seconds.
  • Cheap proxies first, residential as the safety net. With the default proxy, each request first tries a datacenter IP. Anything that fails is retried on residential (which keeps its full retry budget), and datacenter is switched off for the run if it keeps failing. Results are identical; only the cost changes.
  • Parallel but exact. Pages and lookups run concurrently, but rows are evaluated and saved in a fixed order under a lock, so maxResultsPerHashtag and your spending limit are never exceeded.
  • Dates before requests. Post dates are decoded from media IDs, so out-of-range posts never cost a request.
  • Duplicates removed across sources, hashtags and continued runs.
  • Run diagnostics (requests, timings and fallbacks per page type) are in OUTPUT → fetcher.

Known gaps (logged-out limits)

  • Reels pinned on a creator's Reels tab use up slots in the 12 reels Instagram shows logged-out visitors. A backfilled reel older than those slots gets likes and comments but no view count (metricsComplete: false). In a live test this affected 2 of 13 #mumbaifood rows.

Development

npm install
npm test # 30 unit tests (ids, filters, input, normalize, engine)
apify run # local run (needs Playwright browsers)
apify push # deploy

Live test harness: test/live/ (see TEST_REPORT.md).