# Instagram Scraper API: Posts, Reels, Profiles, No Login (`hyperbach/instagram-scraper`) Actor

Instagram scraper API with no login: scrape Instagram posts, reels, profiles, comments, highlights and hashtags with the leading scraper's input as is. Exact likes, reel plays and music, the pinned flag read right, a summary row per input with how far each list went. Misses free.

- **URL**: https://apify.com/hyperbach/instagram-scraper.md
- **Developed by:** [Hyperbach](https://apify.com/hyperbach) (community)
- **Categories:** Social media, Lead generation, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.21 / 1,000 post or reels

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Instagram Scraper API: Posts, Reels, Profiles, No Login

**Instagram's posts, reels, profiles, comments, highlights and hashtags as data, logged out.** Paste profile, post, hashtag or place links (or usernames) the way the leading Instagram scraper takes them (`directUrls`, `resultsType`, `resultsLimit`), pick what to scrape, and get one row per result: a post or reel with its caption, exact time, likes (**null when hidden, never a fake 0**), comments, a reel's **plays and music**, the **pinned flag read right**, the owner and the media URLs with their expiry; a profile with its exact counts, bio, links and latest posts; a post's comments to the end of the list; a profile's highlight items. Every input also gets a free summary row that says how far the list went and why it stopped. No login, no cookie, no Instagram account.

**From $0.425 per 1,000 rows (`post`) on the Free plan, $0.36125 on Starter; every row and add-on is priced under Pricing below.** A run start is $0.001. The default input returns about 21 rows for about $0.0095. Every input gets one free summary row with its verdict and how far its list went; a private, missing or restricted profile, a missing post, a job Instagram does not serve logged out (`not_served`) and a value that names nothing (`invalid_input`) are named there and never charged.

![An Instagram profile's reels tab in a browser: an invented bakery, tidewater.bakehouse, with three reels, each with its play count rounded; the first one shows its likes and comments. Beside it, a part of the row this Actor returns for that reel: plays, the exact count, and music, the track's title, artist and audio id, are highlighted; then the likes, the comment count and the owner.](https://api.apify.com/v2/key-value-stores/dcLLNGq99686o2A4v/records/hero-instagram-scraper.webp)

### How it compares

- **2 times faster and 5 times cheaper than Apify's own Instagram Scraper, with more data:** 20 posts in 10 s, against 23 s; $0.35 per 1,000 posts, against $1.90; 47 fields per post, against 29.
- **10 times faster and 5 times cheaper than Apify's own Instagram API Scraper, with more data:** 20 posts in 10 s, against 104 s; $0.35 per 1,000 posts, against $1.75; 47 fields per post, against 29.
- **Cheaper than apidojo's Instagram Scraper, with more data:** $0.35 per 1,000 posts, against $0.48; 47 fields per post, against 18. It is faster: 20 posts in 7.7 s, against our 10 s.
- **instagram-data-api's Instagram Scraper is cheaper:** $0.26 per 1,000 posts, against our $0.35. We give more data: 47 fields per post, against 41.
- **Cheaper than sones's Instagram Posts Scraper, with more data:** $0.35 per 1,000 posts, against $0.55; 47 fields per post, against 19. It is faster: 20 posts in 5.9 s, against our 10 s.

Measured on 2026-11-21. Each line compares one job, run by both scrapers at the same time. Prices are per 1,000 posts: Apify Actors at the Scale plan's prices.

### Tested head-to-head on 2026-11-21

The job: A profile's 20 newest posts and reels (the input schema's example: humansofny, resultsLimit 20). Every Actor ran on it the same day from the same harness; every run's cost is at the Scale plan's prices: a rival's charged events at its price for that plan, this Actor's at its list price. Fields counts the filled fields of a typical row. Each rival reads the same profile's 20 newest posts (humansofny, the input schema's example): Apify's Instagram Scraper (the most used) and its API scraper, apidojo's and instagram-data-api's all-in-one scrapers and sones' posts scraper. Re-measured monthly.

| Actor | Rows | First row | Run time | Cost | Fields | Failures |
|---|---|---|---|---|---|---|
| **this Actor** | 20 | 9.8 s | 10 s | $0.007 | 47 | none |
| `apify/instagram-scraper` | 20 | 16 s | 23 s | $0.038 | 29 | none |
| `apidojo/instagram-scraper` | 20 | 6.0 s | 7.7 s | $0.010 | 18 | none |
| `apify/instagram-api-scraper` | 20 | 17 s | 104 s | $0.035 | 29 | none |
| `instagram-data-api/instagram-scraper` | 20 | 9.3 s | 9.5 s | $0.005 | 41 | none |
| `sones/instagram-posts-scraper-lowcost` | 20 | 5.3 s | 5.9 s | $0.011 | 19 | none |

### Why this Instagram scraper

- **The leader's input, as it is.** `directUrls`, `resultsType` (posts, reels, details, comments; highlights too), `resultsLimit`, `onlyPostsNewerThan` and `search` are this Actor's own names, so a saved input or an API call written for the leading Instagram scraper runs here unchanged. The Switching section below maps every name.
- **The pinned flag, right, and pins that never break a date window.** A pinned post is read from two sources (the order of the owner's own list and Instagram's grid flag), so a pin that is also the newest post is flagged (on nasa's three pins 3 of 3 on our runs). A pin sits at its own date: it never takes a newer post's place in `resultsLimit` and never stops an `onlyPostsNewerThan` walk early; `skipPinned` leaves the pins out.
- **Plays from the counter the app shows, the music of every reel that has a track.** A reel's plays come from the profile's reels tab (`play_count`, the leader's `videoPlayCount`: 27 of 27 reels on our first live run), the music (title, artist, the original-audio flag, the audio id) from Instagram's own reels list, the length from the video's own manifest. A row without plays or music says why (`plays_status`, `music_status`): of allbirds' 198 reels 14 carry no sound record on Instagram (`no_music`).
- **Counts that do not lie.** Likes are exact; a post whose owner hides the likes gets `likes` null and `likes_hidden` true, never Instagram's placeholder. A comments walk reads a post's list to Instagram's own end and says how many of the post's count it served (35 of 40 on our test post: replies and hidden comments are not listed to visitors).
- **Every list read to its end, with a verdict.** A profile's posts to Instagram's own end flag (50 a call), its reels, a hashtag's ranked reels, a post's comments; each input's summary row says `COMPLETE`, `CAPPED` (your limit), `DATE_LIMIT`, `RUN_CAP`, `TRUNCATED` (Instagram shows no more logged out, with its own count beside it) or `PARTIAL` with the reason. A shorter dataset is never silent.
- **One row per post across inputs, free rows for the rest.** A post two inputs list (a collab post on two profiles, a link and its profile) is one row and one charge. Private, missing and restricted profiles, deleted posts, jobs Instagram does not serve logged out and values that name nothing are free summary rows.
- **Plain HTTP, no browser, no login.** Instagram's own logged-out answers, no cookie, no account of yours. On build 0.1.4 on Apify (5 runs of 2026-11-21, 06:24-06:59 UTC, 512 MB): a profile's 20 newest posts in 10.5 seconds of run time; 300 posts of one profile in 15.5 seconds, the first row after 5.0 seconds; one newest post of each of 10 profiles in 7.2 seconds; 10 profile records in 12.5 seconds; the first comment of each of 10 posts in 8.7 seconds.

### Who it's for

- **Marketers and brand teams** — a competitor's or a creator's newest posts and reels with likes, comments, plays, music and the paid-partnership flag, pinned posts told apart, in one run with their profile records.
- **Influencer and social analysts** — profile records with exact counts, bio contacts and an engagement block, reels with plays across many profiles, a date window per profile, collab posts and their coauthors.
- **Community and support teams** — every comment of a post or of a profile's newest posts, newest first, with the commenter, the time and the likes, read to Instagram's own end of the list.
- **Developers and data teams switching from the leading Instagram scraper** — the same input names, typed rows keyed by Instagram's own ids, one free summary row per input and a run summary to check a pipeline against.

### Quick start

**A profile's 20 newest posts and reels**

```json
{
  "directUrls": [
    "https://www.instagram.com/humansofny/"
  ],
  "resultsLimit": 20
}
```

**Two profiles' records**

```json
{
  "directUrls": [
    "dishoom",
    "lego"
  ],
  "resultsType": "details"
}
```

**A brand's reels with plays and music, the last 30 days**

```json
{
  "directUrls": [
    "allbirds"
  ],
  "resultsType": "reels",
  "resultsLimit": 100,
  "onlyPostsNewerThan": "30 days"
}
```

**Every comment of a post**

```json
{
  "directUrls": [
    "https://www.instagram.com/p/DXuinb8D5hu/"
  ],
  "resultsType": "comments",
  "resultsLimit": 500
}
```

**A hashtag's top reels**

```json
{
  "directUrls": [
    "#sourdough"
  ],
  "resultsLimit": 50
}
```

### Switching from `apify/instagram-scraper`?

Your input works as it is. Each name in the left column is read as this Actor's own field and the run log says so (`read <theirs> as <ours>`); a name marked *not read* is ignored with a note. A value in the other Actor's shape, an object list or its own date form, is read too.

| apify/instagram-scraper | this Actor | what to know |
|---|---|---|
| `directUrls` | `directUrls` | Profile, post, hashtag and place links or usernames alike; each is read as what it is. |
| `resultsType` | `resultsType` | `posts`, `reels`, `details`, `comments` as given (and `highlights`); `stories` and `mentions` are not offered: Instagram serves neither logged out. |
| `resultsLimit` | `resultsLimit` | Rows per input (a post's comments; in the comments job a profile's limit is per post). |
| `onlyPostsNewerThan` | `onlyPostsNewerThan` | A date, a date and time or a span such as `7 days`; `onlyPostsOlderThan` closes the window. |
| `search` | `search` | Comma-separated keywords, each read as its hashtag (the leader's default search type). |
| `searchType` | *not read* | Read without a field of its own: `hashtag` (the default) is this Actor's job; `profile`, `user` and `place` give a free `not_served` row naming the Instagram Search Scraper. |
| `searchLimit` | *not read* | Not read: each keyword is read as its own hashtag, with `resultsLimit` rows. |
| `addParentData` | *not read* | Not needed: every row carries `input`, `input_type` and `profile` already. |

**What differs:**

- The leader's names are this Actor's own: `directUrls`, `resultsType`, `resultsLimit`, `onlyPostsNewerThan`, `search`; nothing to rename.
- `resultsType` offers `posts`, `reels`, `details`, `comments` and `highlights`. The leader's `stories` and `mentions` are not offered: logged out Instagram serves neither (use `highlights` for a profile's kept stories).
- Each row carries its input (`input`, `input_type`, `profile`) always: `addParentData` needs no switch.
- A keyword in `search` is read as its hashtag; `searchType` profile, user or place gets a free `not_served` row (the Instagram Search Scraper's job), and `searchLimit` is not read.
- Pinned posts are delivered at their own dates and flagged (`is_pinned`), never dropped; `skipPinned` leaves them out.
- Other actors' names are read too and named in the run's notes: `startUrls`, `usernames`, `contentType`, `maxPostsPerProfile`, `newerThan`, apidojo's `until` (posts newer than the date); `includeReels` needs none (the posts job delivers the reels).
- A profile's reposts tab and a post's likers link get a free `not_served` row: Instagram serves neither logged out.

### Output

One row per result (and one free summary row per input):

| field | meaning |
|---|---|
| `record_type` | `post` (a post or reel), `profile` (a profile record), `comment`, `highlight` (a highlight item): charged when `status` is `ok`; `summary`: the free row of each input (what was read, the verdict, or why the input gave no row). |
| `status` | A result: `ok`. An input's summary row: `ok` (see `verdict`), `not_found` (no such profile, post or place: two exits agree), `restricted` (Instagram serves no record logged out: an age-gated or otherwise restricted profile or post), `private`, `no_posts`, `no_ranked_list` / `unknown_term` (a hashtag Instagram lists no posts for), `not_served` (a job Instagram does not serve logged out: tagged posts, a profile's reposts, a post's likers, a user or place search), `invalid_input` (a value that names nothing), `failed`, `not_read` (maxItems, the charge limit or the time limit came first). |
| `input` | The value you gave that led to this row. |
| `input_type` | What the input named: `profile`, `post`, `hashtag`, `place`, `search` (a keyword of another search type) or `invalid`. |
| `results_type` | The run's `resultsType` (`posts`, `reels`, `details`, `comments`, `highlights`). |
| `profile` | The profile the row belongs to: the profile input's username; on a post link's or a comment's row, the post's owner. |
| `position` | 1-based place in the list the row came from: a profile's posts newest first by date (a pinned post at its own date), its reels in the reels tab's order, a post's comments newest first, a highlight's items in the profile's order. Every item the walk looked at keeps its place, so rows can skip numbers. Null on a post link's and a hashtag's rows (a hashtag's has `rank`). |
| `rank` | A hashtag row's place in Instagram's ranked list for the hashtag (1 = the first). |
| `id` | A post's media id; a profile's numeric id; a comment's id; a highlight item's media id. One row and one charge per id a run, whatever inputs overlap. |
| `shortcode` | The code in the post's link (`DeuOR-CjKE9`). |
| `url` | The result's page: a post (`/reel/<code>/` for a reel, `/p/<code>/` for the rest), a profile, a highlight. |
| `type` | `photo`, `carousel`, `reel` or `video` (a long video, or a video posted to the feed and not as a reel), from Instagram's own product and media type; a highlight item `photo` or `video`. |
| `product_type` | Instagram's own name for the kind of post: `feed`, `carousel_container`, `clips` (a reel) or `longform`. |
| `timestamp` | The exact publish time, UTC (ISO 8601). |
| `taken_at` | The same time as a Unix timestamp (seconds). |
| `caption` | The whole caption, emoji and line breaks kept. |
| `hashtags` | Every #hashtag of the caption, without the #, in order, once each. |
| `mentions` | Every @username the caption mentions, without the @, once each. |
| `caption_is_edited` | True when Instagram marks the caption as edited; read with the post itself (a post link's row, or `includeComments` on a profile's rows), else null. |
| `alt` | Instagram's accessibility caption of the post ("Photo by … May be an image of …"), from the profile's feed list. |
| `likes` | The exact like count; null when the owner hides the likes (Instagram then serves 0, which is not the count: `likes_hidden` is true). |
| `likes_hidden` | True when the owner hid the post's like count. |
| `comments_count` | The comment count Instagram shows. On a few old reels the profile's lists carry a higher counter than the post's own record (6 of allbirds' 198 reels, 13 against 8): the row keeps the lists' counter. |
| `comments_disabled` | True when the owner turned the comments off; null when the route that read the post does not say. |
| `plays` | A reel's plays: the profile's reels tab's own `play_count` (the counter the leader's `videoPlayCount` reads); on a hashtag's row the ranked list's. Null with the reason in `plays_status` elsewhere. |
| `plays_status` | `served`; `not_a_reel` (a photo, a carousel, a long video); `outside_walk` (a pasted reel older than the 5 pages of its owner's reels tab the Actor reads for it); `not_listed` (the reels tab passed its date without it); `not_in_ranked_head` (a hashtag's reel past the part of the list that carries plays); `refused`; `not_asked`. |
| `video_duration` | A video's or reel's length in seconds, from its own video manifest (no extra call). |
| `has_audio` | False on a video Instagram marks as silent; null on a photo. |
| `engagement_rate` | (likes + comments) ÷ the owner's followers, four significant digits; null when the likes are hidden or the owner is not the profile read (a collab post another account owns). |
| `owner_username` | The post's owner. On a collab post another account owns, that account (the profile you gave is then in `coauthors` and in `profile`). |
| `owner_id` | The owner's numeric profile id. |
| `owner_full_name` | The owner's display name. |
| `owner_is_verified` | True when the owner has the verified badge. |
| `owner_profile_pic_url` | The owner's profile picture URL (signed; see `media_urls_expire_at`). |
| `owner_followers` | The owner's follower count, read once per profile at the start of the run; null on a collab post owned by another account. |
| `owner_following` | The number of accounts the owner follows, read once per profile with the follower count; null on a collab post owned by another account. |
| `coauthors` | The collab post's other accounts: {username, is_verified}; the owner left out. |
| `coauthor_ids` | The coauthors' numeric profile ids, as the owner's list serves them. |
| `is_paid_partnership` | True on a post marked "Paid partnership" (the owner's own list). |
| `is_pinned` | True when the profile's owner pinned the post (read from two sources: the owner's own list order and the profile grid's own pinned flag, so a pin that is also the newest post is flagged); on a reels row, pinned on the reels tab. Null on a post link's row (the post's own record carries no pin flag). |
| `tagged_users` | The accounts tagged in the post or any carousel item: {username, full_name, id, is_verified}. |
| `location_name` | The place tagged on the post. |
| `location_id` | Instagram's id of the place. |
| `location_lat` | The place's latitude: on a post link's row, or with `includeComments` (the post itself carries the coordinates). |
| `location_lng` | The place's longitude, as `location_lat`. |
| `display_url` | The post's image at its largest size (a video's cover; a carousel's first item). |
| `images` | Every image of the post at its largest size: one for a photo, one per item for a carousel. |
| `carousel` | A carousel's items in order: {type (photo or video), shortcode, display_url, video_url, width, height, alt}; empty for a single photo or video. |
| `carousel_count` | How many items the carousel holds. |
| `video_url` | The video file at its largest size (a reel, a long video, a carousel's first video). |
| `audio_url` | The video's audio-only file from its manifest. |
| `media_urls_expire_at` | When the signed media URLs of the row stop working (Instagram's own expiry in each URL: 1 to 4 days after the read). Download what you need before. |
| `width` | The post's width in pixels. |
| `height` | The post's height in pixels. |
| `music` | A reel's sound: {title, artist, audio_id, uses_original_audio} (a licensed track, or the creator's original audio). `audio_id` is the track's id on its audio page (the post's own id; one id whichever list served the track). Null when the reel has no sound record or Instagram mutes the track (`music_status` says which). |
| `music_status` | `served` (the clips list's own record), `served_by_post_query` (the post's own record: the clips list was refused or does not list the reel), `muted` (Instagram mutes the track: "This song is currently unavailable."), `no_music` (the reel's record carries no sound), `not_a_reel`, `refused`, `not_listed`, `not_asked` (a hashtag's or a place's row without `includeComments`). |
| `shared_to_facebook` | True when the reel was also posted to Facebook. |
| `ai_label` | Instagram's own AI label of the post ("Likely made with AI"); null when it shows none. |
| `topics` | Instagram's own topic tags of the post (the related-topic pills of its page). |
| `latest_comments` | The post's 12 newest comments: {id, text, timestamp, likes, owner_username, owner_id, owner_is_verified, gif_url}. On a post link's row always; on a profile's, a hashtag's or a place's rows only with `includeComments`. |
| `username` | The username, lower case. |
| `full_name` | The name on the profile. |
| `biography` | The whole bio text, line breaks and emoji kept. |
| `bio_hashtags` | Every #hashtag of the bio, without the #, once each. |
| `bio_mentions` | Every @username the bio mentions, without the @, once each. |
| `bio_emails` | E-mail addresses written in the bio text, lower case. |
| `bio_phones` | Phone numbers written in the bio, as written: a number starting with `+`, or one next to a phone word or sign (📞, tel, call, WhatsApp). A number with no country code is left as written. The contact button's own e-mail and phone are not shown to logged-out visitors. |
| `bio_links` | Every link of the bio: {title, url, link_type} (the URL is the target, not Instagram's tracking redirect). |
| `external_url` | The profile's website link (the first external bio link). |
| `followers` | On a profile row: the exact follower count at the read. |
| `following` | The exact number of accounts the profile follows. |
| `posts_count` | The exact number of posts on the profile. |
| `posts_count_source` | On a profile row: `embed` (Instagram's profile embed: the exact count) or `root`. |
| `is_verified` | True when the profile carries the verified badge. |
| `is_private` | True for a private account (its row is free and carries no posts). |
| `is_business` | True for a business account. |
| `is_professional` | True for a business or creator (professional) account. |
| `account_type` | `personal`, `creator` or `business`. |
| `category` | On a profile row: the profile's category (`Cafe`); null when the owner set none. On a place's summary row: the place's category. |
| `profile_pic_url` | The profile picture, Instagram's own CDN URL (signed: it expires after a few days). |
| `profile_pic_url_hd` | The largest profile picture Instagram serves, its own CDN URL. |
| `highlights_count` | On a profile row (and a highlights summary row): the number of highlights, exact up to 10; null past 10 (`highlights_count_min` then says 10). |
| `highlights_count_min` | 10 when the profile has more than 10 highlights and only the first 10 are listed; else null. |
| `has_reels` | True when the profile has reels. |
| `has_threads_badge` | True when the profile shows its Threads badge. |
| `pronouns` | The pronouns the profile shows. |
| `fbid` | The profile's Facebook-side id (`fbid`). |
| `is_memorialized` | True for a memorialized account. |
| `latest_story_at` | When the profile last posted a story (stories live 24 hours); null when it has none. Active stories themselves are not shown to logged-out visitors. |
| `linked_facebook_page` | The Facebook page the profile links, {name, id}; null when it links none. |
| `latest_posts` | On a profile row: its 12 latest posts as the owner's list orders them (pins on top, flagged): {id, shortcode, url, type, product_type, caption, hashtags, mentions, taken_at, likes, likes_hidden, comments, is_pinned, display_url, video_url, width, height, is_paid_partnership}. |
| `engagement` | On a profile row, over its latest posts, pins left out: {posts_read, avg_likes, avg_comments, median_likes, engagement_rate ((avg likes + avg comments) ÷ followers), posts_per_week, last_post_at, followers_to_following}. |
| `text` | On a comment row: the comment's text in full ("" for a GIF-only comment). |
| `content_type` | `text`, `gif` (a GIF only), `text_gif` (text and a GIF) or `no_text` (no text and no GIF in Instagram's logged-out answer: a sticker, a photo comment or a removed body; 79 of 12,324 comments in our study). |
| `replies_count` | On a comment row: always null logged out (Instagram serves no reply count to visitors); never a 0 it did not serve. |
| `comment_url` | The comment's own link (`instagram.com/p/<code>/c/<id>/`): a logged-in viewer sees the comment, a logged-out one Instagram's login page. |
| `gif_url` | A GIF comment's animated GIF (a signed URL that stops working about 1.4 days after the run); null otherwise. |
| `is_covered` | Instagram's own flag for a comment it covers (hides behind a tap) for logged-out viewers; false on every comment of our study. |
| `has_translation` | Instagram's own translation flag; null when Instagram serves none (every comment of our study). |
| `by_post_owner` | The commenter is the post's owner or one of its coauthors (matched by id). |
| `post_url` | The post's link (`instagram.com/p/<code>/`). |
| `post_shortcode` | The post's shortcode: group the comments of one post by it. |
| `post_id` | The post's media id. |
| `post_type` | `reel`, `photo`, `carousel` or `video`. |
| `post_timestamp` | When the post was published (UTC, ISO 8601). |
| `post_owner_username` | The post owner's username. |
| `post_owner_id` | The post owner's Instagram id (pk). |
| `highlight_id` | On a highlight row: the highlight's id (its page is `instagram.com/stories/highlights/<id>/`). |
| `highlight_title` | On a highlight row: the highlight's title as the profile shows it. |
| `highlight_cover_url` | On a highlight row: the highlight's cover image. |
| `verdict` | On an input's summary row: `COMPLETE` (the list ended: Instagram's own end flag), `CAPPED` (resultsLimit), `DATE_LIMIT` (the walk reached posts older than onlyPostsNewerThan), `RUN_CAP` (maxItems or the charge limit), `TRUNCATED` (Instagram lists no more logged out: a hashtag's ranked list, a place's page, a profile's first 10 highlights; `source_count` says how many exist), `PARTIAL` (an error or the time limit stopped it; the note says which). |
| `results_listed` | On an input's summary row: how many items its lists served that the walk looked at. |
| `rows_delivered` | On an input's summary row: the result rows it delivered (charged). |
| `source_count` | On an input's summary row: the source's own count, where it serves one: a hashtag's post count, a place's post count, a post's comment count. |
| `pinned_posts` | On a profile's summary row: the pinned posts among the delivered rows. |
| `reels_with_plays` | On a profile's summary row: the delivered reels that carry their plays. |
| `place_id` | On a place's summary row: Instagram's id of the place. |
| `place_name` | On a place's summary row: the place's name. |
| `place_url` | On a place's summary row: the place's page on Instagram. |
| `lat` | On a place's summary row: its latitude. |
| `lng` | On a place's summary row: its longitude. |
| `address` | On a place's summary row: its street address. |
| `city` | On a place's summary row: its city (null when its record has none). |
| `zip` | On a place's summary row: its postal code. |
| `phone` | On a place's summary row: its phone as its record has it. |
| `price_range` | On a place's summary row: its price range (1 to 4). |
| `hours` | On a place's summary row: its opening status as its page shows it. |
| `related_keywords` | On a hashtag's summary row: Instagram's related keywords for it. |
| `description` | On a hashtag's summary row: Instagram's own description of the term, when it shows one. |
| `note` | Why, in words: the reason of a free row, what a walk did not read and why. |
| `scraped_at` | When the row was read (UTC). |

Example record:

```json
{
  "record_type": "post",
  "status": "ok",
  "input": "nasa",
  "input_type": "profile",
  "results_type": "posts",
  "profile": "nasa",
  "position": 5,
  "rank": null,
  "id": "4031863532568522824",
  "shortcode": "Df0DoVpmTBI",
  "url": "https://www.instagram.com/reel/Df0DoVpmTBI/",
  "type": "reel",
  "product_type": "clips",
  "timestamp": "2026-11-16T19:00:55Z",
  "taken_at": 1794855655,
  "caption": "Who can be a NASA astronaut? The answer may be different than you think.\n\nApplications for astronaut candidates are open until Dec. 3, and we want you to apply! Our current class of astronaut candidates is here to bust some common eligibility myths.\n\n#NASA #Astronaut #MythVsFact",
  "hashtags": [
    "NASA",
    "Astronaut",
    "MythVsFact"
  ],
  "mentions": [],
  "caption_is_edited": null,
  "alt": "Video by NASA on November 16, 2026. May be an image of magazine, poster and text.",
  "likes": 59615,
  "likes_hidden": false,
  "comments_count": 912,
  "comments_disabled": false,
  "plays": 3430804,
  "plays_status": "served",
  "video_duration": 63.552,
  "has_audio": true,
  "engagement_rate": 0.0005802,
  "owner_username": "nasa",
  "owner_id": "528817151",
  "owner_full_name": "NASA",
  "owner_is_verified": true,
  "owner_profile_pic_url": "https://scontent-ord5-2.cdninstagram.com/v/t51.2885-19/29090066_159271188110124_1152068159029641216_n.jpg?stp=dst-jpg_s150x150_tt6&_nc_cat=1&ig_cache_key=GBLhuwEsG5c225AAAAAAAADj9-wPbkULAAAB1501500j-ccb7-5&ccb=7-5&_nc_sid=669407&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLnd3dy4xMDgwLkMzIn0%3D&_nc_ohc=FLIOJiB6StEQ7kNvwEKmd_c&_nc_oc=Adp6eZPF-6VPLn09NbD-F2efNZdWu_jLiz6lSXVrJvXspaOUUSVyNFJ0tJ7OyfYg_0U&_nc_zt=24&_nc_ht=scontent-ord5-2.cdninstagram.com&_nc_ss=7e689&_nc_ct=RQosPBUCFQIAAAA&oh=00_AQSm3Aa9OW1qJsAroL7MzfoeZoYQvzQ8auLIu2fngFCaHw&oe=6B06CDA9",
  "owner_followers": 104323291,
  "owner_following": 91,
  "coauthors": null,
  "coauthor_ids": [],
  "is_paid_partnership": false,
  "is_pinned": false,
  "tagged_users": [],
  "location_name": null,
  "location_id": null,
  "location_lat": null,
  "location_lng": null,
  "display_url": "https://scontent-ord5-1.cdninstagram.com/v/t51.82787-15/910605779_18670218010049152_5647133581865473502_n.jpg?stp=dst-jpg_e15_tt6&_nc_cat=100&_nc_map=urlgen_bucketless&ig_cache_key=NDAzMTg2MzUzMjU2ODUyMjgyNDE4NjcwMjE4MDA3MDQ5MTUy.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZyI6IkNMSVBTLnhwaWRzLjQwNS5zZHIudmlkZW9fZGVmYXVsdF9jb3Zlcl9mcmFtZS5DMyJ9&_nc_ohc=KREncy0qJJ4Q7kNvwGVjr81&_nc_oc=AdpLTEuXauL2J5eoDd4oVGtANVP1HW0FKXyAd3M6U_LnHJn-xg9Q997UrTXpLHCJKlw&_nc_zt=23&_nc_ht=scontent-ord5-1.cdninstagram.com&_nc_gid=2fh3V1Shp-FEtRj0qZBK0A&_nc_ss=7e689&_nc_ct=RQosPBUIFQQlBAAAAA&oh=00_AQQeIraMgMEmQ_juc8SuV6xCIadDTDARA5KWmcLEU95vBg&oe=6B06D9A3",
  "images": [
    "https://scontent-ord5-1.cdninstagram.com/v/t51.82787-15/910605779_18670218010049152_5647133581865473502_n.jpg?stp=dst-jpg_e15_tt6&_nc_cat=100&_nc_map=urlgen_bucketless&ig_cache_key=NDAzMTg2MzUzMjU2ODUyMjgyNDE4NjcwMjE4MDA3MDQ5MTUy.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZyI6IkNMSVBTLnhwaWRzLjQwNS5zZHIudmlkZW9fZGVmYXVsdF9jb3Zlcl9mcmFtZS5DMyJ9&_nc_ohc=KREncy0qJJ4Q7kNvwGVjr81&_nc_oc=AdpLTEuXauL2J5eoDd4oVGtANVP1HW0FKXyAd3M6U_LnHJn-xg9Q997UrTXpLHCJKlw&_nc_zt=23&_nc_ht=scontent-ord5-1.cdninstagram.com&_nc_gid=2fh3V1Shp-FEtRj0qZBK0A&_nc_ss=7e689&_nc_ct=RQosPBUIFQQlBAAAAA&oh=00_AQQeIraMgMEmQ_juc8SuV6xCIadDTDARA5KWmcLEU95vBg&oe=6B06D9A3"
  ],
  "carousel": [],
  "carousel_count": null,
  "video_url": "https://scontent-ord5-1.cdninstagram.com/o1/v/t2/f2/m86/AQOMBmM-VmaPuCmBcDhQ-HYFs29xAIOFEzP0MazUy-pxvZB069KqgKjeO2oWzZqNU0uEWW0fZAVMSa1lXKCimaHJZ2Q8PNazEej9Px0.mp4?_nc_cat=101&_nc_sid=5e9851&_nc_ht=scontent-ord5-1.cdninstagram.com&_nc_ohc=g4s0i3C4RM0Q7kNvwHJmt27&efg=eyJ2ZW5jb2RlX3RhZyI6Inhwdl9wcm9ncmVzc2l2ZS5JTlNUQUdSQU0uQ0xJUFMuQzMuNzIwLmRhc2hfYmFzZWxpbmVfMV92MSIsInhwdl9hc3NldF9pZCI6MTg2NzAyMTc3MDcwNDkxNTIsImFzc2V0X2FnZV9kYXlzIjo0LCJ2aV91c2VjYXNlX2lkIjoxMDA5OSwiZHVyYXRpb25fcyI6NjMsInVybGdlbl9zb3VyY2UiOiJ3d3cifQ%3D%3D&ccb=17-1&vs=45ed2c5d6b1e802f&_nc_vs=HBksFQIYUmlnX3hwdl9yZWVsc19wZXJtYW5lbnRfc3JfcHJvZC9FRkU2NzhFNTAxNkI0MkY1QUU4MzgyMENGOTVGMkZENF92aWRlb19kYXNoaW5pdC5tcDQVAALIARIAFQIYUWlnX3hwdl9wbGFjZW1lbnRfcGVybWFuZW50X3YyLzI1QUY0ODIwNjE4NjQ0NjdCRERDQzFFMTY0MjdBQTNGX2F1ZGlvX2Rhc2hpbml0Lm1wNBUCAsgBEgAoABgAGwOIB3VzZV9vaWwBMRJwcm9ncmVzc2l2ZV9yZWNpcGUBMRJjb3B5X3NhbXBsZV9ncm91cHMBMRUAACaAw_bk2Z2qQhUCKAJDMywXQE_EOVgQYk4YEmRhc2hfYmFzZWxpbmVfMV92MREAdf4HZeadAQA&_nc_gid=2fh3V1Shp-FEtRj0qZBK0A&_nc_ss=7e689&_nc_map=urlgen_bucketless&_nc_zt=28&oh=00_AQRZkaPdCsVQ2XCSEl4rhl6a1Q191QNISnQhAqG-jf09uw&oe=6B02E006",
  "audio_url": "https://scontent-ord5-2.cdninstagram.com/o1/v/t2/f2/m78/AQOtH_VL7eMCZfVeX2ue3be_CzIqV8L49U5j0Qyn6ZC2breosFaF9SLibLqWRd7SaLzd_EvV88F5aSOXqvnF3M5JdCpkC2p4R3Jhy2w.mp4?_nc_cat=100&_nc_sid=9ca052&_nc_ht=scontent-ord5-2.cdninstagram.com&_nc_ohc=fKEOrKUzNAkQ7kNvwGAYRjW&efg=eyJ2ZW5jb2RlX3RhZyI6ImlnLXhwdmRzLmNsaXBzLmlnd3d3LUMzLmRhc2hfbG5faGVhYWNfdmJyM19hdWRpbyIsInZpZGVvX2lkIjpudWxsLCJvaWxfdXJsZ2VuX2FwcF9pZCI6OTM2NjE5NzQzMzkyNDU5LCJjbGllbnRfbmFtZSI6ImlnIiwieHB2X2Fzc2V0X2lkIjoxODY3MDIxNzcwNzA0OTE1MiwiYXNzZXRfYWdlX2RheXMiOjQsInZpX3VzZWNhc2VfaWQiOjEwMDk5LCJkdXJhdGlvbl9zIjo2MywiYml0cmF0ZSI6NzM4NTQsInVybGdlbl9zb3VyY2UiOiJ3d3cifQ%3D%3D&ccb=17-1&_nc_gid=2fh3V1Shp-FEtRj0qZBK0A&_nc_ss=7e689&_nc_map=urlgen_bucketless&_nc_zt=28&oh=00_AQQVUQJzQxL5UtODKdDJQA41WIlkhdR-oL18WddW9Jh-xg&oe=6B02F759",
  "media_urls_expire_at": "2026-11-22T12:28:54Z",
  "width": 1080,
  "height": 1920,
  "music": {
    "title": "Original audio",
    "artist": "nasa",
    "audio_id": "29489704230667112",
    "uses_original_audio": true
  },
  "music_status": "served",
  "shared_to_facebook": false,
  "ai_label": null,
  "topics": [
    "astronaut",
    "application",
    "myths",
    "recruitment",
    "stem careers",
    "space program",
    "astronaut requirements"
  ],
  "latest_comments": null,
  "username": null,
  "full_name": null,
  "biography": null,
  "bio_hashtags": null,
  "bio_mentions": null,
  "bio_emails": null,
  "bio_phones": null,
  "bio_links": null,
  "external_url": null,
  "followers": null,
  "following": null,
  "posts_count": null,
  "posts_count_source": null,
  "is_verified": null,
  "is_private": null,
  "is_business": null,
  "is_professional": null,
  "account_type": null,
  "category": null,
  "profile_pic_url": null,
  "profile_pic_url_hd": null,
  "highlights_count": null,
  "highlights_count_min": null,
  "has_reels": null,
  "has_threads_badge": null,
  "pronouns": null,
  "fbid": null,
  "is_memorialized": null,
  "latest_story_at": null,
  "linked_facebook_page": null,
  "latest_posts": null,
  "engagement": null,
  "text": null,
  "content_type": null,
  "replies_count": null,
  "comment_url": null,
  "gif_url": null,
  "is_covered": null,
  "has_translation": null,
  "by_post_owner": null,
  "post_url": null,
  "post_shortcode": null,
  "post_id": null,
  "post_type": null,
  "post_timestamp": null,
  "post_owner_username": null,
  "post_owner_id": null,
  "highlight_id": null,
  "highlight_title": null,
  "highlight_cover_url": null,
  "verdict": null,
  "results_listed": null,
  "rows_delivered": null,
  "source_count": null,
  "pinned_posts": null,
  "reels_with_plays": null,
  "place_id": null,
  "place_name": null,
  "place_url": null,
  "lat": null,
  "lng": null,
  "address": null,
  "city": null,
  "zip": null,
  "phone": null,
  "price_range": null,
  "hours": null,
  "related_keywords": null,
  "description": null,
  "note": null,
  "scraped_at": "2026-11-21T02:33:42Z"
}
```

### Pricing

**Pay for the results a run delivers**, plus one run start. No platform usage is billed to you, and the price falls with your Apify plan.

| event | unit | Free | Starter | Scale | Business |
|---|---|---|---|---|---|
| Post or reel (`post`) | per 1,000 | $0.425 | $0.36125 | $0.2975 | $0.2125 |
| Profile (`profile`) | per 1,000 | $1.955 | $1.66175 | $1.3685 | $0.9775 |
| Comment (`comment`) | per 1,000 | $1.955 | $1.66175 | $1.3685 | $0.9775 |
| Highlight item (`highlight`) | per 1,000 | $0.63 | $0.5355 | $0.441 | $0.315 |
| Run start (`start`) | per run | $0.0010 | $0.0010 | $0.0010 | $0.0010 |

A post or reel (a profile's posts or reels, a post link, a hashtag's ranked reels, a place's posts) is **$0.425 per 1,000** on the Free plan ($0.000425 a row); a profile record or a comment **$1.955 per 1,000** ($0.001955 a row); a highlight item **$0.63 per 1,000** ($0.00063 an item). Each run that delivers a charged row pays the **run start, $0.0010 once**.

So the example (humansofny's 20 newest posts) costs $0.0095 on the Free plan and $0.008225 on Starter; 300 posts of one profile $0.1285 and $0.109375; 10 profiles' records $0.02055 and $0.0176175; a post's 35 comments read to Instagram's end $0.069425 and $0.05916125; two brands' 258 highlight items $0.16354 and $0.139159. Free: every input's summary row (how far the list went and why it ended), a private, missing or age-gated profile, a deleted post, a job Instagram does not serve logged out, a value that names nothing, a post your date window or `skipPinned` leaves out, a second input's repeat of a post (charged once), and a run that delivered no charged row (no run start either). A run that stops early (a timeout, an abort, the charge limit) is charged for the rows it delivered.

Before the first request the log names the prices at your plan and what the run can cost: "at most" under `resultsLimit` an input and `maxItems`, the dearer rows first, plus the run start, and never more than your charge limit. `includeComments` adds no fee. Enterprise plans have their own rates: the Actor's Pricing tab shows the price for your plan.

### Usage patterns

- **What to give** — `directUrls`: one per line, any mix — a profile (`natgeo`, `@natgeo`, `https://www.instagram.com/natgeo/`; its reels tab `…/natgeo/reels/` reads its reels), a post or reel link (`/p/<code>/`, `/reel/<code>/`, `/tv/<code>/`), a hashtag (`#sourdough`, `/explore/tags/sourdough/`) or a place (`/explore/locations/<id>/…`). `search`: keywords, comma-separated, each read as its hashtag. A value given twice is read once; a value that names nothing is a free `invalid_input` row that says why.
- **What to scrape** — `resultsType` applies to profiles: `posts` (the default: the newest posts and reels), `reels` (the reels tab, every reel with its plays), `details` (one profile row), `comments` (the comments of the profile's 12 newest posts), `highlights` (the highlight items, the first 10 highlights logged out). A post link gives its own row (with its 12 newest comments), or its comments with `comments`; a hashtag gives its ranked reels and a place its posts, whatever the type.
- **How many results** — `resultsLimit` (20 by default) caps each input's rows: a profile's posts, reels or highlight items, a post's comments (in the comments job a profile's limit is per post), a hashtag's or a place's posts. `maxItems` caps the charged rows of the whole run. `onlyPostsNewerThan` and `onlyPostsOlderThan` keep a date window (a date, a date and time, or `7 days`); a pin outside it is skipped and never ends the walk.
- **More per post** — `includeComments` reads each post once more for its 12 newest comments, the edited flag, the place's coordinates and the topics (on a hashtag's or a place's rows also the owner's full name, the music and the alt text). A run is slower with it: one more request a row.

### Input configuration

| field | type | default | what it does |
|---|---|---|---|
| `directUrls` | `array` | `[]` | One per line, any mix: a profile (`natgeo`, `@natgeo`, `https://www.instagram.com/natgeo/`; its reels tab `.../natgeo/reels/` reads its reels), a post or reel link (`/p/<code>/`, `/reel/<code>/`, `/tv/<code>/`), a hashtag (`#sourdough` or `/explore/tags/sourdough/`) or a place (`/explore/locations/<id>/...`). A value that names nothing gets a free row that says why (an empty value or a blank line is skipped). The leader's name for this list, `directUrls`, is this Actor's own. |
| `resultsType` | `posts` / `reels` / `details` / `comments` / `highlights` | `"posts"` | posts: a profile's newest posts and reels (a hashtag's top reels, a place's posts, a post link's own row whatever this says). reels: a profile's reels with their plays. details: one profile row (counts, bio, links, category, latest posts). comments: a post link's comments, or a profile's newest posts' comments. highlights: a profile's highlight items (logged out the first 10 highlights). Active stories and tagged posts are not served to logged-out visitors. |
| `resultsLimit` | `integer` | `20` | The most rows each input gives: a profile's posts, reels or highlight items, a post's comments (in the comments job a profile's limit is per post), a hashtag's or a place's posts. The input's summary row says whether the list ended (COMPLETE), this limit stopped it (CAPPED) or the source lists no more (TRUNCATED). |
| `search` | `string` | `""` | Keywords, comma-separated: each is read as its hashtag (`sourdough, latte art`), Instagram's ranked reels for it with plays. The leader's `search` with its default searchType hashtag; a user, profile or place search is the search lane's job (a free row names the Actor for it). |
| `onlyPostsNewerThan` | `string` | `""` | Only posts published on or after this date: `2026-09-01`, a date and time (`2026-09-01T12:00:00Z`), or a span back from now (`7 days`, `12 hours`, `2 weeks`, `3 months`). A profile's walk stops at the first unpinned post older than this; a pinned post older than it is skipped, never the end. |
| `onlyPostsOlderThan` | `string` | `""` | Only posts published on or before this date (a date includes its whole day), in the same forms as `onlyPostsNewerThan`. Newer posts are skipped and do not count toward `resultsLimit`. |
| `skipPinned` | `boolean` | `false` | Leave out the posts the owner pinned to the top of the profile. Off = a pinned post is delivered at its own date, flagged `is_pinned`. |
| `includeComments` | `boolean` | `false` | Add each post's 12 newest comments (`latest_comments`: text, time, likes, author), the edited flag and the place's coordinates to a profile's post and reel rows. It reads each post once more, so a run is slower. A post link's row always carries its latest comments; all of a post's comments are the comments job. |
| `maxItems` | `integer` | `0` | The most charged rows of the whole run, over every input; 0 = no cap beyond `resultsLimit` and your charge limit. |
| `feedback` | `string` |  | A note to the people who maintain this Actor: what you needed and did not get. For example a missing field, a wrong or empty result, or the Actor you switch from or to, and why. The run does not read it: the rows and the charges stay the same. A person reads every note. |

### Errors

**A run does not fail because of your input.** When an input cannot be used — a date that is not a date, an id in the wrong form, two settings that contradict each other — the run ends **Succeeded**, charges nothing, and says what to change:

- the status message starts with `INPUT REJECTED`;
- the dataset holds one row, `{"error": true, "code": "…", "message": "…"}`, and no results;
- the key-value store record `ERROR` holds the same object.

From code, check `error` on the first row before reading results.

A private, missing or age-gated profile, a deleted post, a hashtag Instagram lists nothing for, a job Instagram does not serve logged out or a value that names nothing is not an error: it gets one free summary row with its `status` and the source's own answer (after a second connection agrees), and the run goes on with the other inputs. A run that ends **Failed** is a fault on our side, never your input; it charges nothing, and we are alerted.

### FAQ

**Can I get a profile's active stories or the posts it is tagged in?**

No: Instagram shows neither to logged-out visitors (our study tried the web, the app's routes and a browser: a login wall every time). This Actor reads a profile's highlights instead (`resultsType` highlights) and gives `latest_story_at` on a profile row; a tagged-tab link gets a free `not_served` row. The leader's `stories` and `mentions` values are not offered.

**Why does a profile give fewer highlights than it has?**

Logged out, Instagram lists a profile's first 10 highlights and no door lists the rest (on 4 of 10 brands of our study it had more). The items of those 10 are read in one call; the summary row says `TRUNCATED` with `highlights_count_min` 10.

**Why are pinned posts not on top?**

A pinned post comes at its own date, flagged `is_pinned`: an old pin never takes the place of a newer post in your `resultsLimit` and never stops a date window early. Sort by `is_pinned` to put them on top, or set `skipPinned` to leave them out.

**Why does a hashtag give 50 to 100 posts, not all of them?**

Logged out, Instagram serves a hashtag's ranked list (its top reels), not every post with the tag: the walk reads that list to its own end and the summary row says `TRUNCATED` with the hashtag's own post count in `source_count` (9,343,744 for #sourdough on our run). A place gives the 15 to 24 posts of its own page.

**Why do comment counts and comment rows differ?**

A post's comment count includes the replies and the comments Instagram hides; logged out it lists the top-level comments only (35 of 40 on our test post, read to the list's end and checked on a second connection). The summary row gives the post's count in `source_count`. Replies are not shown to visitors.

**What are the free rows?**

One summary row per input (`record_type` summary): `ok` with the verdict and how far the list went, or why it gave no row — `not_found`, `restricted`, `private`, `no_posts`, `no_ranked_list`, `unknown_term`, `not_served`, `invalid_input`, `failed`, `not_read`. Only results are charged. For results alone keep the rows whose `status` is `ok` and `record_type` is not `summary`.

**Does it need an Instagram account, cookies or a login?**

No. Everything is read from Instagram's public logged-out answers with a plain HTTP client; nothing of yours is sent.

**Why are some likes null?**

The owner hid the like count on that post. Instagram then serves a placeholder number, not the count, so the row gives `likes` null and `likes_hidden` true.

**How long do the image and video URLs work?**

Instagram signs every media URL with an expiry, 1 to 4 days after the read; each row gives that time in `media_urls_expire_at`. Download what you need before it, or use the Instagram Media Downloader to keep the files.

**Can it search for users or places by keyword?**

A keyword in `search` is read as its hashtag (the leader's default search type). A user, profile or place search is the Instagram Search Scraper's job: such a keyword gets a free `not_served` row that names it.

**How do I report a problem?**

Open an issue on the Actor's Issues tab (https://apify.com/hyperbach/instagram-scraper/issues) with the run ID, or write to apify@hyperbach.com.

**Do I need Apify Proxy or my own proxy?**

No. The Actor uses its own connections, at no extra cost to you.

### Integration

#### JavaScript

```javascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_TOKEN' });
const run = await client.actor('hyperbach/instagram-scraper').call({"directUrls": ["https://www.instagram.com/humansofny/"], "resultsLimit": 20});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

#### Python

```python
from apify_client import ApifyClient
client = ApifyClient('YOUR_TOKEN')
run = client.actor('hyperbach/instagram-scraper').call(run_input={'directUrls': ['https://www.instagram.com/humansofny/'], 'resultsLimit': 20})
items = client.dataset(run['defaultDatasetId']).list_items().items
```

#### CLI

```bash
apify call hyperbach/instagram-scraper --input '{"directUrls": ["https://www.instagram.com/humansofny/"], "resultsLimit": 20}'
```

#### REST

```bash
curl -X POST "https://api.apify.com/v2/acts/hyperbach~instagram-scraper/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H 'Content-Type: application/json' -d '{"directUrls": ["https://www.instagram.com/humansofny/"], "resultsLimit": 20}'
```

#### AI agents and MCP

Apify's MCP server offers this Actor as a tool to Claude, Cursor, VS Code and any other MCP client. Connect `https://mcp.apify.com?tools=hyperbach/instagram-scraper` and ask, for example: "Get the 20 newest posts and reels of the Instagram profile humansofny with their likes, comments and plays". The agent fills the input from the table above and reads the rows from the run's dataset. A field under the name another Actor gives it is read as this Actor's own: `urls`, `startUrls`, `usernames`, `username` as `directUrls`; `contentType`, `resultType`, `results_type` as `resultsType`; `maxPostsPerProfile`, `maxResults`, `limit`, `maxPosts` as `resultsLimit`; `newerThan`, `oldestPostDate`, `dateFrom`, `since` as `onlyPostsNewerThan` (and more). An agent or a person can add `feedback` to any run and say what was needed and not delivered: a missing field, a wrong or empty result, the Actor switched from or to, and why. The run returns the same rows at the same price, and a person reads every note.

#### n8n, Make and Zapier

The Apify node in n8n, the Apify app in Make and the Apify integration in Zapier run this Actor on a schedule or from a trigger and read its dataset. A webhook on the run's end (Integrations on the Actor page) sends the rows on to your own endpoint. Nothing to install on our side.

### Support

**Disagree with a charge?** Write to apify@hyperbach.com with the run ID. We will ask Apify to compensate you, and the charge comes back to your Apify account as platform credit.

**Did it do the job?** A short [review on the Store](https://apify.com/hyperbach/instagram-scraper/reviews), at any rating, helps the next buyer choose.

*This page is generated from the Actor's schemas and a live sample — it cannot describe a field the Actor does not have.*

# Actor input Schema

## `directUrls` (type: `array`):

One per line, any mix: a profile (`natgeo`, `@natgeo`, `https://www.instagram.com/natgeo/`; its reels tab `.../natgeo/reels/` reads its reels), a post or reel link (`/p/<code>/`, `/reel/<code>/`, `/tv/<code>/`), a hashtag (`#sourdough` or `/explore/tags/sourdough/`) or a place (`/explore/locations/<id>/...`). A value that names nothing gets a free row that says why (an empty value or a blank line is skipped). The leader's name for this list, `directUrls`, is this Actor's own.

## `resultsType` (type: `string`):

posts: a profile's newest posts and reels (a hashtag's top reels, a place's posts, a post link's own row whatever this says). reels: a profile's reels with their plays. details: one profile row (counts, bio, links, category, latest posts). comments: a post link's comments, or a profile's newest posts' comments. highlights: a profile's highlight items (logged out the first 10 highlights). Active stories and tagged posts are not served to logged-out visitors.

## `resultsLimit` (type: `integer`):

The most rows each input gives: a profile's posts, reels or highlight items, a post's comments (in the comments job a profile's limit is per post), a hashtag's or a place's posts. The input's summary row says whether the list ended (COMPLETE), this limit stopped it (CAPPED) or the source lists no more (TRUNCATED).

## `search` (type: `string`):

Keywords, comma-separated: each is read as its hashtag (`sourdough, latte art`), Instagram's ranked reels for it with plays. The leader's `search` with its default searchType hashtag; a user, profile or place search is the search lane's job (a free row names the Actor for it).

## `onlyPostsNewerThan` (type: `string`):

Only posts published on or after this date: `2026-09-01`, a date and time (`2026-09-01T12:00:00Z`), or a span back from now (`7 days`, `12 hours`, `2 weeks`, `3 months`). A profile's walk stops at the first unpinned post older than this; a pinned post older than it is skipped, never the end.

## `onlyPostsOlderThan` (type: `string`):

Only posts published on or before this date (a date includes its whole day), in the same forms as `onlyPostsNewerThan`. Newer posts are skipped and do not count toward `resultsLimit`.

## `skipPinned` (type: `boolean`):

Leave out the posts the owner pinned to the top of the profile. Off = a pinned post is delivered at its own date, flagged `is_pinned`.

## `includeComments` (type: `boolean`):

Add each post's 12 newest comments (`latest_comments`: text, time, likes, author), the edited flag and the place's coordinates to a profile's post and reel rows. It reads each post once more, so a run is slower. A post link's row always carries its latest comments; all of a post's comments are the comments job.

## `maxItems` (type: `integer`):

The most charged rows of the whole run, over every input; 0 = no cap beyond `resultsLimit` and your charge limit.

## `feedback` (type: `string`):

A note to the people who maintain this Actor: what you needed and did not get. For example a missing field, a wrong or empty result, or the Actor you switch from or to, and why. The run does not read it: the rows and the charges stay the same. A person reads every note.

## Actor input object example

```json
{
  "directUrls": [
    "https://www.instagram.com/humansofny/"
  ],
  "resultsType": "posts",
  "resultsLimit": 20,
  "search": "",
  "onlyPostsNewerThan": "",
  "onlyPostsOlderThan": "",
  "skipPinned": false,
  "includeComments": false,
  "maxItems": 0
}
```

# Actor output Schema

## `results` (type: `string`):

All scraped records in the default dataset. One row per result (and one free summary row per input):

## `runSummary` (type: `string`):

How the run went: rows charged by type, free rows by status, each input's walk (listed, delivered, the verdict, the note), the source counters (requests by kind and their seconds, exits, rotations, refusals, bytes), the proxy chains and the memory watch.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "directUrls": [
        "https://www.instagram.com/humansofny/"
    ],
    "resultsLimit": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("hyperbach/instagram-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "directUrls": ["https://www.instagram.com/humansofny/"],
    "resultsLimit": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("hyperbach/instagram-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "directUrls": [
    "https://www.instagram.com/humansofny/"
  ],
  "resultsLimit": 20
}' |
apify call hyperbach/instagram-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,hyperbach/instagram-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/caE1Woan8k1kMn66F/builds/BPcqMgj5d0jp5j8Ba/openapi.json
