Instagram Posts Scraper avatar
Instagram Posts Scraper

Pricing

from $0.002 / scraped instagram post

Go to Apify Store
Instagram Posts Scraper

Instagram Posts Scraper

A high-performance Instagram hashtag scraper that hovers over posts to extract deep engagement metrics (likes/comments), features automatic sorting, and maintains persistent login sessions for seamless data extraction.

Pricing

from $0.002 / scraped instagram post

Rating

5.0

(1)

Developer

Darpan Rajput

Darpan Rajput

Maintained by Community

Actor stats

0

Bookmarked

3

Total users

1

Monthly active users

16 days ago

Last modified

Share

Instagram Hashtag & Engagement Scraper

A high-performance Playwright-based scraper designed to extract posts from Instagram hashtag "Explore" pages. Unlike basic scrapers, this tool interacts with the page to extract real-time engagement metrics (Likes and Comments) and provides advanced sorting capabilities.

πŸš€ Features

  • Deep Engagement Data: Hovers over each post to trigger the overlay and extract exact Like and Comment counts.
  • Advanced Sorting: Choose to sort your results by Most Liked, Most Commented, or Newest directly in the configuration.
  • Session Persistence: Integrated with Apify Key-Value Stores to remember your login session, reducing the need to frequently update cookies.
  • Infinite Scroll Support: Automatically handles Instagram's dynamic loading to reach your desired maxPosts (e.g., 100+ posts).
  • Anti-Block Protection: Optimized for use with Residential Proxies and customized browser headers to mimic human behavior.

πŸ“Š Data Points Collected

Every run generates a structured dataset containing:

  • ID: Incremental rank based on your chosen sorting order.
  • Username: The handle of the post creator.
  • Post URL: Direct link to the Instagram post.
  • Description: The full caption/alt-text of the image.
  • Image Source: Direct URL to the post thumbnail.
  • Likes: Total count (e.g., 1250).
  • Comments: Total count (e.g., 84).
  • Hashtag: The source tag used for the search.

πŸ›  How to Use

  1. Get your Cookies: Use a browser extension (like "EditThisCookie") to export your Instagram session cookies in JSON format.
  2. Input Hashtags: Enter a list of hashtags you want to target (without the # symbol).
  3. Set Max Posts: Define how many posts you want to collect per hashtag.
  4. Choose Sorting: Select whether you want the final dataset ordered by popularity or engagement.
  5. Run & Export: Click Start. Once finished, download your data in Excel, CSV, or JSON.