Instagram Scraper - Posts, Profiles, Reels, Comments & Hashtags avatar

Instagram Scraper - Posts, Profiles, Reels, Comments & Hashtags

Pricing

from $0.26 / 1,000 posts

Go to Apify Store
Instagram Scraper - Posts, Profiles, Reels, Comments & Hashtags

Instagram Scraper - Posts, Profiles, Reels, Comments & Hashtags

Instagram scraper for any mix of usernames, profile and post links, hashtags and keywords: posts and reels (caption, likes, comments, plays, date, location, media URLs), comments, and profiles (followers, bio, links, latest posts). No login, no cookies. API, JSON, CSV, Excel. $0.32 per 1,000 posts.

Pricing

from $0.26 / 1,000 posts

Rating

0.0

(0)

Developer

Social Scrapers

Social Scrapers

Maintained by Community

Actor stats

0

Bookmarked

39

Total users

14

Monthly active users

4 days ago

Last modified

Features

Limited permissions

Share

Instagram Scraper gets public Instagram data from any mix of usernames, profile links, post and reel links, hashtags and keywords, with no Instagram account, login or cookies. Choose what to get: posts and reels (caption, hashtags, likes, comments count, plays, date, location, sound, image and video URLs), comments, or profiles (followers, bio, links, verified badge, latest posts), as JSON, CSV or Excel. It costs $0.32 per 1,000 posts.

💡 Need a feature that isn't here? Just ask. Open an issue on the Issues tab and tell us what you need: a new field, filter, input type or output format. We build requested features fast, usually within 24 hours, at no extra cost.

⭐ Found it useful? A short review on the Reviews tab helps other people find this scraper, and tells us what to build next.

What does Instagram Scraper do?

Instagram Scraper reads what Instagram shows a visitor who is not logged in, from one list that takes anything you paste:

  • 👤 Profiles: their latest posts or reels, their comments, or the profile itself with followers, following, posts count, bio, bio links, account type and 12 latest posts.
  • 📸 Posts and reels by link: full details of each one, or all of its comments.
  • #️⃣ Hashtags and keywords: the top posts Instagram shows for them, their comments, or the creators behind them (influencer discovery).
  • 🔗 Messy lists: @handles, profile links with tabs and tracking parameters, share links from the app, Name (@handle), Threads links, hashtag links from other sites. Duplicates are read once.
  • 🗓️ Date filter and pinned posts: keep only posts newer than a date or an age such as 30 days, and leave out pinned posts.
  • 💸 Pay only for results: private profiles, deleted posts and entries with nothing public cost nothing.

Everything the Apify platform gives you comes with it: the Apify API, scheduled runs, webhooks, integrations with Make, Zapier, n8n and Google Sheets, and datasets you can download in any format.

What can you scrape from Instagram?

One list of entries, and one choice of What to get (resultsType):

EntryPosts / ReelsCommentsDetailsProfiles
Profile (natgeo, @natgeo, profile link)its latest posts (or reels)comments of its latest poststhe profile, with its 12 latest poststhe profile, with its 12 latest posts
Post or reel linkthe postits commentsthe postits owner's profile
Hashtag or keyword (#sourdough, running shoes)its top postscomments of its top postsits top poststhe creators of its top posts

A single bare word is read as a username: write a hashtag with #, a keyword as two or more words, or put them in Search hashtags or keywords.

What data do you get?

Each result is one dataset item: a post, a comment or a profile. Every field is always present (null when Instagram doesn't show it), so CSV and Excel exports line up.

Posts and reels: inputUrl, id, type (Image, Video, Sidecar), productType, shortCode, url, caption, hashtags, mentions, likesCount, commentsCount, videoPlayCount, videoDuration, timestamp, displayUrl, images, videoUrl, dimensionsHeight, dimensionsWidth, alt, childPosts (carousel slides), ownerId, ownerUsername, ownerFullName, isPinned, taggedUsers, coauthorProducers, paidPartnership, isCommentsDisabled, locationName, locationId, sponsors, musicInfo, searchTerm, scrapedAt. Instagram no longer shows visitors who are not logged in a post's paid partnership label, brand partners or whether comments are turned off, so paidPartnership, sponsors and isCommentsDisabled are null for posts read one by one (links, reels, comments, hashtag results with details).

Comments: postUrl, commentUrl, id, text, ownerUsername, ownerId, ownerIsVerified, ownerProfilePicUrl, timestamp, likesCount, repliesCount, and the post's postShortCode, postId, postType, postOwnerUsername, postOwnerId, postCaption, postTimestamp, postLikesCount, postCommentsCount, plus inputUrl and scrapedAt.

Profiles: inputUrl, id, username, url, fullName, biography, externalUrl, externalUrls, followersCount, followsCount, postsCount, highlightReelCount, hasReels, private, verified, isBusinessAccount, accountType (business, creator or personal), profilePicUrl, profilePicUrlHD, fbid, pronouns, latestPosts (12 posts, with the post fields above), searchTerm, scrapedAt.

The dataset has a view for each kind: Posts, Comments and Profiles.

How to scrape Instagram

  1. Open Instagram Scraper and click Try for free.
  2. Paste usernames, links, hashtags or keywords into Instagram usernames, links, hashtags or keywords, one per line, in any mix.
  3. Choose What to get: Posts, Reels, Comments, Details or Profiles.
  4. Set Max results per entry: posts per profile or hashtag, comments per post, or creators per hashtag (0 for no limit).
  5. Optionally set Only posts newer than, or Skip pinned posts.
  6. Click Start, then download the results as JSON, CSV, Excel or HTML, or read them with the Apify API.

How much does it cost to scrape Instagram?

You pay per result saved, platform usage and proxies included:

ResultPrice per 1,000SilverGold and up
Post or reel$0.32$0.288$0.256
Profile (with its 12 latest posts)$2.46$2.214$1.968
Comment$0.47$0.423$0.376

Plus Apify's start charge of $0.0005 per run. Some examples:

  • the latest 20 posts of 50 profiles (1,000 posts) → $0.32
  • the top 100 posts of 10 hashtags (1,000 posts) → $0.32
  • 1,000 profiles with their latest posts → $2.46
  • 5,000 comments → $2.35

Private profiles, deleted posts and entries Instagram shows nothing for are free. To cap the cost of a run, set Maximum cost per run in the run options: the scraper saves results until the next one would go over it, then stops cleanly. Apify's free plan includes monthly platform credit, enough to try the scraper on thousands of posts.

Input example

{
"directUrls": ["https://www.instagram.com/natgeo/", "https://www.instagram.com/p/DfahZrMjAqq/", "#sourdough"],
"resultsType": "posts",
"resultsLimit": 20,
"onlyPostsNewerThan": "30 days"
}
FieldTypeDescription
directUrlsarray of stringsUsernames, profile links, post and reel links, share links, hashtags and keywords, in any mix. { "url": "…" } objects work too. A single bare word is a username.
resultsTypestringposts, reels, comments, details or profiles. Default: posts.
resultsLimitintegerPosts or reels per profile or hashtag, comments per post, or creators per hashtag. 0 for no limit. Default: 20.
commentsPostsLimitintegerWith comments: how many of a profile's latest posts (or a hashtag's top posts) to read comments from. Post links are always read. 0 for every post. Default: 5.
onlyPostsNewerThanstringLeave out older posts of profiles and hashtags: a date (2026-01-31, 31/01/2026, Jan 31 2026), a date-time (2026-01-31T18:00:00Z) or an age (7 days, 2w, 3 months). Optional.
skipPinnedPostsbooleanWith posts: leave out the posts a profile pinned to the top of its grid. Default: false.
searchstringHashtags or keywords, separated by commas (sourdough, running shoes). A single word here is a hashtag, never a username.
proxyConfigurationobjectThe scraper picks Apify Proxy's tier itself: datacenter first, residential only when Instagram refuses a request. Your own proxy URLs are used as given.

Output example

A post (shortened; image and video URLs abbreviated):

{
"inputUrl": "https://www.instagram.com/p/DfahZrMjAqq/",
"id": "4024676116912147114",
"type": "Image",
"productType": "feed",
"shortCode": "DfahZrMjAqq",
"url": "https://www.instagram.com/p/DfahZrMjAqq/",
"caption": "Galaxy in bloom\n\nData from our Hubble, Chandra, and Spitzer telescopes…",
"hashtags": ["NASA", "Galaxy", "Flower"],
"likesCount": 236506,
"commentsCount": 783,
"videoPlayCount": null,
"timestamp": "2026-11-06T21:00:08.000Z",
"displayUrl": "https://instagram.fxyz1-1.fna.fbcdn.net/v/…",
"ownerUsername": "nasa",
"ownerFullName": "NASA",
"isPinned": null,
"paidPartnership": null,
"locationName": null,
"musicInfo": null,
"searchTerm": null,
"scrapedAt": "2026-11-13T13:58:31.567Z"
}

A comment (resultsType: "comments", shortened):

{
"postUrl": "https://www.instagram.com/p/DfahZrMjAqq/",
"commentUrl": "https://www.instagram.com/p/DfahZrMjAqq/c/17940797343122260/",
"id": "17940797343122260",
"text": "Beautiful image. Thanks for sharing!",
"ownerUsername": "example_commenter",
"timestamp": "2026-11-13T13:52:58.000Z",
"likesCount": 0,
"repliesCount": 0,
"postOwnerUsername": "nasa",
"postLikesCount": 236508,
"inputUrl": "https://www.instagram.com/p/DfahZrMjAqq/"
}

A profile (resultsType: "profiles", shortened; latestPosts holds 12 posts with the post fields):

{
"inputUrl": "https://www.instagram.com/p/DfahZrMjAqq/",
"id": "528817151",
"username": "nasa",
"url": "https://www.instagram.com/nasa/",
"fullName": "NASA",
"biography": "Making the seemingly impossible, possible. ✨",
"externalUrl": "https://www.nasa.gov",
"followersCount": 104336521,
"followsCount": 91,
"postsCount": 5009,
"highlightReelCount": 6,
"private": false,
"verified": true,
"isBusinessAccount": true,
"accountType": "business",
"latestPosts": [{ "shortCode": "Dfc1mYxFevS", "type": "Video", "likesCount": 89922, "videoPlayCount": 3718030, "isPinned": true }],
"searchTerm": null
}

Switching from another Instagram scraper

The input and output use the long-standing Instagram scraper conventions on the Apify Store, so most pipelines work unchanged:

  • Input: directUrls, resultsType (posts, reels, comments, details), resultsLimit, onlyPostsNewerThan, skipPinnedPosts and search mean what you expect. startUrls, usernames, postUrls and hashtags are read as entries too.
  • Output: shortCode, url, caption, hashtags, mentions, likesCount, commentsCount, videoPlayCount, timestamp, displayUrl, images, videoUrl, childPosts, ownerUsername, ownerFullName, isPinned, paidPartnership, musicInfo (artist_name, song_name), locationName, latestPosts, followersCount, private, verified, commentUrl and more keep their usual names.
  • Different: profiles, post links and hashtags can be mixed in one run, and every run needs no login.

Use it via API, Python, JavaScript and integrations

Run Instagram Scraper from your own code with the Apify API or the Apify clients:

from apify_client import ApifyClient
client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("socialscrapers/instagram-scraper").call(
run_input={"directUrls": ["natgeo", "#sourdough"], "resultsType": "posts", "resultsLimit": 20}
)
for post in client.dataset(run["defaultDatasetId"]).iterate_items():
print(post["ownerUsername"], post["likesCount"], post["url"])
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('socialscrapers/instagram-scraper').call({ directUrls: ['natgeo'], resultsType: 'details' });
const { items } = await client.dataset(run.defaultDatasetId).listItems();

You can also schedule runs (for example every morning to collect new posts of a list of accounts), get a webhook when a run finishes, send results to Google Sheets, Slack or a database with Apify integrations, connect it to Make, Zapier or n8n, or let AI agents run it through the Apify MCP server: it needs no login, so an agent can call it on its own.

Limits

  • Public data only. Instagram Scraper never logs in, so it sees what a logged-out visitor sees. Private profiles, and posts deleted or hidden from logged-out visitors, are skipped and cost nothing.
  • Shown to logged-in users only, so not included: stories, follower and following lists, posts a profile is tagged in, place and sound pages, comment replies, and the "recent" tab of a hashtag. Hashtags give the top posts Instagram shows logged-out visitors (usually 50 to 100 per hashtag or keyword); some very broad single words have no such page, while a more specific keyword (fitness workout rather than fitness) usually does.
  • Location and sound are filled for posts read one by one (post links, reels, hashtag posts). A profile's latest posts are read many at a time, which is faster and cheaper, and those pages carry no location or sound.
  • Play counts of reels are shown for a profile's recent posts; a post read by its link gets its play count when it is among its owner's recent posts.
  • A run with 0 results still succeeds, and no results are charged. When every entry is private, missing or empty, the run ends as Succeeded with a status message naming each one and why. When no entry is usable at all, the run ends at once with a status message that starts "Nothing to scrape:" and says how to fix the input. A run fails only when Instagram refuses the scraper itself (every one of 3 or more entries, and a profile that is always public too), or on an internal error.

FAQ

Is it legal to scrape Instagram? Instagram Scraper collects only public data that anyone can see without logging in. You are responsible for using the data lawfully: usernames, bios and comments can be personal data protected by laws such as the GDPR and the CCPA, so have a legitimate reason to collect it, and follow Instagram's terms and the laws that apply to you.

Do I need an Instagram account or cookies? No. The scraper never logs in, so no account of yours is ever at risk.

Can I mix profiles, posts and hashtags in one run? Yes. Put them all in the one list: each entry gives what What to get asks for, as in the table above.

How do I get the profiles of the people posting about a topic? Add the hashtag or keyword and choose Profiles: you get the creators of its top posts, each with followers, bio, links and latest posts. Max results per entry sets how many creators per hashtag.

Why did I get fewer results than I asked for? The profile has fewer posts, the date filter left the rest out, Instagram shows fewer top posts for that hashtag, a post has fewer comments shown to logged-out visitors, or the run reached its maximum cost. The run log says which, for each entry, and the RUN_SUMMARY record in the run's key-value store lists what every entry came to.

Why don't the numbers match what I see on Instagram? The scraper sees the logged-out version of a page, and counts keep changing after the run. Open the post in a private browser window to see what a logged-out visitor sees.

Can I get only new posts? Yes. Set Only posts newer than to a date or an age such as 7 days, and schedule the run to repeat.

Other scrapers by Social Scrapers

ScraperWhat it gets
TikTok APIProfiles, Videos and Comments
TikTok Comments ScraperComments, Replies and Likes
TikTok Hashtag ScraperTop Videos, Views and Likes
TikTok Profile ScraperFollowers, Bio, Stats and Videos
TikTok ScraperVideos, Profiles, Hashtags and Comments
TikTok Sound ScraperVideos Using a Sound and Music Info
TikTok Video ScraperViews, Likes, Captions and Comments
Instagram APIProfiles, Posts, Reels, Comments and Hashtags
Instagram Comments ScraperComments, Likes and Reply Counts
Instagram Hashtag ScraperReels and Keyword Search
Instagram Post Details ScraperLikes, Comments, Views and Media
Instagram Post ScraperPosts, Reels and Comments
Instagram Profile ScraperFollowers, Bio, Posts and Reels
Instagram Reels ScraperReels, Plays, Likes and Comments
Instagram Reels Transcript ScraperSpeech to Text and Captions
YouTube APIVideos, Transcripts, Search, Channels and Comments
YouTube Channel ScraperVideos, Shorts, Subscribers and About
YouTube Comments ScraperComments, Replies and Likes
YouTube ScraperVideos, Shorts, Channels and Comments
YouTube Search ScraperVideos, Channels, Views and Filters
YouTube Shorts ScraperShorts, Views, Likes and Search
YouTube Transcript ScraperSubtitles, Captions and SRT
YouTube Video Details ScraperStats, Subtitles and Comments
Facebook Ads Library ScraperMeta Ad Library and Spend
Facebook Comments ScraperPosts, Reels, Videos and Replies
Facebook Groups ScraperPublic Group Posts and Reactions
Facebook Marketplace ScraperPrices, Locations and Sellers
Facebook Page Contact Info ScraperEmail, Phone and WhatsApp
Facebook Posts ScraperPages, Profiles and Timelines
Facebook Pages ScraperProfiles, Contact Info and Reviews
Facebook Reels ScraperReels, Videos, Plays and Captions
X (Twitter) Profile ScraperFollowers, Bio and Tweets
X (Twitter) Tweet ScraperLatest Posts by Profile
Threads Profile ScraperFollowers, Bio, Links and Posts
Threads Replies ScraperComments, Authors, Likes and Media
Threads ScraperPosts, Profiles, Replies and Search
Threads Search ScraperKeywords, Hashtags, Top and Recent Posts
Reddit Comments ScraperThreads, Replies, Votes and Authors
Reddit ScraperPosts, Comments, Subreddits, Users and Search
Reddit Search ScraperPosts by Keyword, Subreddit and Date
Reddit User ScraperProfiles, Karma, Posts and Comments
Subreddit ScraperHot, New and Top Posts with Comments
Quora ScraperAnswers, Questions, Profiles and Topic Search
LinkedIn Ad Library ScraperAds, Advertisers and Impressions
LinkedIn Job Search ScraperFilters, Salaries and New Jobs
LinkedIn Jobs ScraperJob Listings, Salaries and Companies
Google Maps Email ExtractorEmails, Phones and Social Links
Google Maps ScraperPlaces, Phones, Websites, Ratings and Hours
Google News ScraperHeadlines, Articles and Search
Google Ads Transparency ScraperAd Creatives and Advertisers
Amazon Product ScraperSearch Results, Prices, Ratings, ASINs
Indeed Jobs ScraperSalaries, Full Descriptions, Company Data
Contact Details ScraperEmails, Phones and Social Links
Telegram Channel ScraperPosts, Views and Media
Doximity ScraperPhysician Profiles and Doctor Directory
KevinMD ScraperPhysician Articles and Author Specialties
Op-Med ScraperPhysician Essays and Doctor Profiles
Career Site Jobs ScraperGreenhouse, Lever, Ashby and Workday
Google Trends ScraperInterest Over Time, Regions and Queries