Instagram Scraper
Pricing
from $0.80 / 1,000 contents
Instagram Scraper
Collect public Instagram profiles, posts, reels, hashtags, places, search results, and tagged posts through anonymous web requests.
Pricing
from $0.80 / 1,000 contents
Rating
0.0
(0)
Developer
Kai
Maintained by CommunityActor stats
0
Bookmarked
24
Total users
11
Monthly active users
3 days ago
Last modified
Categories
Features
Share
Collect public Instagram profiles, posts, reels, comments, places, and Explore metadata as structured data. Read available posts, or fetch a known post. Each result is one item in the default dataset.
You do not need an Instagram account or login. Collection uses public Instagram data. Instagram can still refuse access, even for public content.
Profile posts, reels, comments, and hashtag posts can continue past the first results when Instagram permits access. Place collection returns a limited set of recent posts and reels. It does not continue through place history. Hashtag results include only posts whose full caption contains the exact hashtag. These results are a sample. They do not provide complete hashtag coverage.
Use cases
- Creator research: compare public profile details and available engagement counts.
- Brand monitoring: collect posts from known public accounts.
- Content research: collect captions, hashtags, images, reels, and carousel media.
- Location research: collect details and posts from known places.
- Reporting: export results for analysis in a spreadsheet or another application.
Data you can collect
- Profiles: username, name, biography, links, profile image, follower and post counts, account flags, and available related profiles.
- Posts and reels: caption, author, posting time, available like, comment, view, and play counts, media links, dimensions, and video duration.
- Carousels: images and videos in their original order, inside one post item.
- Post context: hashtags, text mentions, tagged users, co-authors, location, music details, and comment previews when Instagram supplies them.
- Comments: text, author, posting time, likes, reply count, and links to the comment and parent post.
- Places: name, coordinates, address, city, country, website, category, post count, and supplied phone, postal code, price range, hours, and business profile.
- Hashtags: name, post count, available profile image, and optional statistics from a public post sample.
- Explore: public sections with ranked topics, profiles, and categories. One record contains the page's sections.
A field can be missing or null when Instagram does not supply it. Full reply collection, live Stories, audio lookup, and private account data are not supported.
Choose how to collect
Set one mode and put its targets in the targets list.
| What you want | Set mode to | Put in targets |
|---|---|---|
| Profile details | profile | Usernames or profile URLs |
| One or more known posts or reels | post | Post/reel URLs, shortcodes, or numeric media IDs |
| Comments on a known post or reel | comments | Post/reel URLs, shortcodes, or numeric media IDs |
| Posts from a profile | posts | Usernames or profile URLs |
| Reels from a profile | reels | Usernames or profile/reels URLs |
| Available posts with an exact hashtag | hashtag | Hashtags or hashtag URLs |
| Hashtag details (not available now) | hashtagDetails | Hashtags or hashtag URLs |
| Place details | place | Place IDs or place URLs |
| Posts shown on a place page | placePosts | Place IDs or place URLs |
| Profiles, hashtags, or places that match a phrase (not available now) | search | Search phrases; select searchType and searchResults |
| Posts that tag an account (not available now) | mentions | Usernames or profile URLs |
| Public Explore metadata | explore | https://www.instagram.com/explore/ |
Search, hashtag details, and tagged posts (mentions) are not available now. A run in one of these modes stops before collection and shows a message. Hashtag posts are saved without parentData now. The other modes are not affected.
mentions mode collects posts that tag the account. It does not search for text mentions in captions. Place pages can include posts from the surrounding area; each post keeps its own location when available.
Use @123 for a username that contains only digits. Numeric profile IDs are not supported. In post or comments mode, a target that contains only digits is treated as a media ID. Instagram share links are accepted for these two modes.
Profile cards, _u profile links, and Story URLs can select the account for a profile mode. For example, https://www.instagram.com/stories/nasa/ selects nasa. The Actor does not download the Story.
Start a run
- Open the Actor's Input tab in Apify Console.
- Select a mode and enter its targets, or use one of the JSON examples below.
- Set the maximum results and check the proxy settings.
- Select Start.
- Open Output to view the results. Select Export to download them.
For Console instructions, see Apify's run guide.
Read profile details
{"mode": "profile","targets": ["instagram", "nasa"],"maxItems": 2}
Collect recent posts
Collect up to 10 posts from the profile. Keep posts from the last seven days and omit posts marked as pinned.
{"mode": "posts","targets": ["instagram"],"maxItems": 10,"onlyNewerThan": "7 days","skipPinnedPosts": true,"addParentData": true}
Collect reels and save media files
{"mode": "reels","targets": ["instagram"],"maxItems": 10,"downloadMedia": true}
Fetch a known post
Replace the URL with the post or reel you need.
{"mode": "post","targets": ["https://www.instagram.com/p/DZxvMgyH8yR/"],"maxItems": 1}
Read place details
{"mode": "place","targets": ["213385402"],"maxItems": 1}
Collect post comments
Collect up to 30 public comments on the post. Full reply threads are not collected.
{"mode": "comments","targets": ["https://www.instagram.com/p/DZxvMgyH8yR/"],"maxItems": 30}
Read Explore metadata
The result contains public topic, profile, and category sections. It does not contain personalized post recommendations. Each section marks whether Instagram has more entries than it shows.
{"mode": "explore","targets": ["https://www.instagram.com/explore/"],"maxItems": 1}
Input
Both mode and targets are required. Invalid targets or incompatible options stop the run before collection.
| Field | Type | Default | Behaviour |
|---|---|---|---|
mode | string | Required | One mode from the selection table. |
targets | string[] | Required | 1–100 targets of the same type. Duplicate targets are removed. |
maxItems | integer | 100 | Maximum saved items across the run. Range: 1–10,000. |
maxItemsPerTarget | integer | 100 | Maximum saved items for each input target. Range: 1–1,000. A search query is one target. |
maxRequests | integer | 500 | Maximum request attempts. Range: 1–10,000. Retries and media downloads count toward this limit. Post and reel collection can use one request or more for each saved item. |
onlyNewerThan | string | None | Keep posts or comments after a UTC date, timestamp, or relative time such as 7 days. |
skipPinnedPosts | boolean | false | Omit posts marked as pinned. |
onlyReels | boolean | false | Keep only posts identified as reels. |
addParentData | boolean | false | Add the parent profile, hashtag, or place to post results, or the parent post to comments. Hashtag posts do not get parent data now. |
addProfileStatistics | boolean | false | Add statistics from a sample of posts. Profile detail output only. |
addHashtagStatistics | boolean | false | Add sample statistics to hashtag details, including hashtag search with searchResults: "details". Not available now. |
statisticsLimit | integer | 12 | Maximum posts in a profile or hashtag statistics sample. Range: 1–100. Hashtag statistics are not available now. |
searchType | string | hashtag | profile, hashtag, or place. user is an alias for profile. Search mode only. Not available now. |
searchResults | string | details | details, posts, or reels. Profile search also accepts mentions. Not available now. |
searchLimit | integer | 10 | Maximum matches to process for each search query. Range: 1–250. Not available now. |
downloadMedia | boolean | false | Save available post, reel, and carousel media files. |
maxMediaBytes | integer | 26214400 | Maximum bytes per media file. Default: 25 MiB. Range: 1–104,857,600 bytes. |
proxyConfiguration | object | {"useProxy":true} | Use the default proxy, supply HTTP/HTTPS proxyUrls, or set useProxy to false for direct access. |
Filters and statistics
Date filters apply to posts and comments. Pinned-post exclusion, reel filters, and downloads apply to post output. These options cannot be used with profile, hashtag, place, or Explore detail output. Items with missing dates are excluded when a date filter is set. Relative dates use the start time of the original run, including after a restart. A month means 30 days; a year means 365 days.
Profile statistics use the first available posts, up to statisticsLimit. The result includes sampleSize, averageLikes, averageComments, and engagementRate. Engagement rate is (average likes + average comments) / followers × 100. Missing counts produce null values. These statistics describe the sample; they do not measure reach or impressions.
Hashtag statistics have source: "public_post_sample". They include sampleSize, averageLikes, averageComments, datedPosts, postsByDate, and relatedTags. Only posts with the exact hashtag in their captions enter the sample. A related tag's posts and share describe its frequency in that sample. The frequency labels mean: frequent at 25% or more, average at 8% to less than 25%, and rare below 8%. These are sample groups, not Instagram-wide reach tiers. postsByDate counts sampled posts by UTC date; it is not a posts-per-day estimate for the whole hashtag.
Proxies and costs
The Actor uses a managed proxy by default. No proxy setup is required. A proxy does not guarantee access to Instagram. If you supply several custom proxy URLs, the Actor uses the first one. Set proxyConfiguration: {"useProxy": false} for direct access.
A result can require several requests. Use maxItems to limit saved results and maxRequests to limit collection work. Proxy traffic, media transfer, and file storage can add costs.
Output
The default dataset contains one item per profile, post, comment, hashtag, or place. Explore metadata uses one item for the page and keeps sections inside it. The recordType field identifies the type. Reels and carousels use recordType: "post".
View the dataset in Apify Console or export it as JSON, CSV, Excel, XML, or HTML. JSON keeps nested objects and arrays, such as carousel media and comment previews. See Apify's dataset guide for export options.
Output at a glance
| Group | Main fields |
|---|---|
| Every item | recordType, schemaVersion, id, inputUrl, url, scrapedAt |
| Profile identity and links | username, fullName, biography, externalUrl, bioLinks, profilePicUrl |
| Profile counts and flags | followersCount, followingCount, postsCount, isPrivate, isVerified, isBusinessAccount, categoryName |
| Optional profile data | profilePicUrlStandard, profilePicUrlHD, businessCategoryName, businessAddress, joinedRecently, igtvVideoCount, fbid, hasChannel, hasPublicStory, relatedProfiles, statistics |
| Post content and author | shortCode, caption, timestamp, author, hashtags, mentions, taggedUsers, coauthors |
| Post counts | likesCount, commentsCount, viewCount, playCount, shareCount, reshareCount |
| Post media | mediaType, productType, displayUrl, videoUrl, dimensions, videoDuration, childPosts |
| Available post context | location, musicInfo, firstComment, latestComments, isPinned, isSponsored, isCommentsDisabled, accessibilityCaption |
| Comments | postId, parentId, text, timestamp, likesCount, childCommentCount, author |
| Hashtag details | name, postsCount, profilePicUrl, relatedTags, postsPerDay, optional statistics |
| Place details | name, latitude, longitude, address, city, country, website, category, postsCount, optional phone, zipCode, priceRange, hours, businessProfile |
| Explore metadata | sections, with id, section, title, limited, and ranked entries |
| Added parent data and files | parentData, downloads |
IDs are strings. Dates use UTC ISO 8601. scrapedAt is the collection time; a post's timestamp is its posting time. Unavailable counts are null. A known zero stays 0. Views and plays are separate counts.
profilePicUrl keeps the best available profile image. Separate standard and HD URLs appear only when supplied. A place's hours can contain only a status string, rather than a weekly schedule. Explore entries use entryType: "keyword", "profile", or "category". Their counts are the counts that Instagram shows on Explore. An Explore topic count is not an exact hashtag count.
This example uses fictional values to show a post item. It is not a live result.
{"schemaVersion": 1,"recordType": "post","id": "1","inputUrl": "https://www.instagram.com/example_creator/","url": "https://www.instagram.com/p/B/","scrapedAt": "2026-09-24T10:00:00.000Z","shortCode": "B","mediaType": "image","productType": "feed","timestamp": "2026-09-23T09:00:00.000Z","caption": "A sample photo #travel","likesCount": 42,"commentsCount": 3,"viewCount": null,"playCount": null,"author": {"id": "10","username": "example_creator","fullName": "Example Creator","profilePicUrl": null,"isVerified": false,"isPrivate": false},"displayUrl": "https://example.com/photo.jpg","videoUrl": null,"dimensions": { "width": 1080, "height": 1080 },"videoDuration": null,"childPosts": [],"hashtags": ["travel"],"mentions": [],"downloads": []}
Carousels, previews, and media files
A carousel counts as one result. Its ordered childPosts array contains each image or video, its URL, dimensions, and available duration. Available comment previews stay inside the post's latestComments array. These previews are not complete comment threads.
With downloadMedia: true, available media files are saved in the run's key-value store. Each downloads entry contains the media ID, file type, Instagram media URL, storage key, and download URL. Videos can also include a poster image. Files above maxMediaBytes are rejected. Instagram media URLs can expire, so save files you need to keep.
Collection behaviour
Limits and duplicate results
For profile posts, reels, comments, and hashtag posts, the Actor continues until it reaches a selected limit or the end of the available results. Instagram can refuse a later page.
Place collection returns a limited set of recent posts and reels. It does not continue through place history. When the place has more posts than this set, saved results are partial. Increasing the result limit does not remove this limit. Hashtag collection can continue past the first results, but only exact caption matches are saved. Explore returns the entries that Instagram shows in each section. Filters and duplicate removal can reduce the number of saved results.
Each record type and ID is saved once across all input targets. If the same post appears under two targets, it keeps the first target's inputUrl. It does not count again under the second target. maxItems and maxItemsPerTarget count saved items after filtering.
Access and unsupported features
Only public profiles and media are collected. If the Actor cannot confirm that an account is public, it does not save its profile or posts.
The Actor does not offer login or accept account details. It does not collect full reply threads, live Stories, standalone audio details, or profiles by numeric ID. Music fields and comment previews can still appear when Instagram supplies them with a post. Place collection does not cover the full place history.
Missing or partial results
Saved results remain available if the run fails later. Open Run summary, the OUTPUT record in the run's key-value store, to see the saved count and the reason collection stopped for each target.
Check that the target exists and is public. Check your date filters and result, request, and budget limits. A valid target can return no results. If Instagram temporarily refuses access, try a smaller run later. A retry does not guarantee access.
Restart an interrupted run
Use the same input and storage to resume an interrupted run. Previously saved items are kept and are not saved again. Relative dates use the original start time. Request counts continue from the saved total.
Restarting does not retry targets already marked complete, partial, or failed. Start a new run to retry those targets or change the input.