# Instagram Post Scraper (No Login): Captions, Likes & Media (`automatic/instagram-post-scraper`) Actor

Export public Instagram posts and reels from any profile or post link: caption, hashtags, mentions, likes, comments, date, carousel images and video URLs, with deep profile history. No login.

- **URL**: https://apify.com/automatic/instagram-post-scraper.md
- **Developed by:** [Philip Kirkbride](https://apify.com/automatic) (community)
- **Categories:** Social media
- **Features:** Limited permissions, Multi-tenant, Server interface
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.50 / 1,000 posts

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 Post Scraper

Export public Instagram posts from any profile or post link, without logging in. Each post becomes one clean row with its caption, hashtags, mentions, likes, comments, date, owner, tagged accounts, collaborators and media links, ready for JSON, CSV or Excel.

Built for social media teams, content analysts, brand monitors and researchers.

- **No login or cookies.** Paste usernames or post links and run.
- **Deep history.** Hundreds of posts per profile, not just the latest dozen.
- **Spreadsheet-friendly rows.** One row per post, one image link per photo, pinned posts flagged.

**Try it now:** the prefilled input collects about ten recent posts from NASA.

### Also available

The social media suite: pick the job.

| Actor | Use when |
|---|---|
| **Instagram Posts (this Actor)** | Full post history with captions and engagement |
| [Instagram Comments](https://apify.com/automatic/instagram-comments-scraper) | Comments on posts and reels |
| [Instagram Profiles](https://apify.com/automatic/instagram-profile-scraper) | Followers, bio and latest posts |
| [TikTok Videos](https://apify.com/automatic/tiktok-video-scraper) | Views, likes and shares for any video |
| [Facebook Page Posts](https://apify.com/automatic/facebook-posts-scraper) | Recent posts and reactions from any Page |
| [Threads Profiles](https://apify.com/automatic/threads-profile-scraper) | Threads followers and post engagement |

### Input example

```json
{"usernames":["nasa"],"maxItems":10,"maxPagesPerProfile":20}
```

- `usernames`: profile usernames or links. Posts come newest first, after any pinned posts.
- `postUrls`: individual post or reel links. They are always collected first, so they are never crowded out by a large profile. Mix them freely with profiles.
- `maxItems`: total rows for the run. `maxPostsPerProfile` (optional) caps each profile, so every account in a list gets its share.
- `publishedAfter`: keep recent posts only, as a date (`2026-10-01`), an ISO timestamp or a relative window such as `7 days`, `24 hours`, `2 weeks` or `3 months`. Collection stops once a profile reaches older posts, so date-limited runs finish quickly. Old pinned posts are checked one by one and do not end the run early.
- `mediaTypes`: keep only image, video, carousel or reel posts.
- `maxPagesPerProfile` (advanced): how far back to read each profile, in pages of up to 12 posts.

Starting with no sources (`{}`) runs a one-post example so you can see the output format.

### What you get

- Post ID, shortcode, link and type (image, video, carousel or reel).
- Caption, hashtags and mentions (lower-case, without trailing punctuation).
- Likes and comments counts, and the UTC publish time.
- Owner username, display name and ID; location name when tagged.
- `displayUrl` (the largest image), `imageUrls` (one link per photo, including each carousel item), video links and carousel items.
- `isPinned`, `taggedUsers`, `coauthors` (collab partners), `altText`, `width`, `height` and `videoDurationSeconds`.

### Output example

```json
{
  "id": "4004634989362489982",
  "shortcode": "DeTUk4sDSp-",
  "url": "https://www.instagram.com/reel/DeTUk4sDSp-/",
  "type": "reel",
  "caption": "POV: you're watching the Earth set\n\nWe just released hundreds of new images and hours of new audio from our Artemis II mission around the Moon this spring. Check out our link in bio for the Artemis II Preliminary Lunar Science Report.\n\n#NASA #ArtemisII #Artemis",
  "hashtags": [
    "NASA",
    "ArtemisII",
    "Artemis"
  ],
  "mentions": [],
  "likesCount": 782667,
  "commentsCount": 7928,
  "timestamp": "2026-10-10T15:15:02Z",
  "ownerUsername": "nasa",
  "ownerFullName": "NASA",
  "ownerId": "528817151",
  "locationName": null,
  "displayUrl": "https://instagram.flim39-1.fna.fbcdn.net/v/t51.82787-15/842191580_18656578867049152_4200499629839780998_n.jpg?stp=dst-jpg_e15_tt6&_nc_cat=111&_nc_map=urlgen_bucketless&ig_cache_key=NDAwNDYzNDk4OTM2MjQ4OTk4MjE4NjU2NTc4ODYxMDQ5MTUy.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZyI6IkNMSVBTLnhwaWRzLjEwNzQuc2RyLnZpZGVvX2RlZmF1bHRfY292ZXJfZnJhbWUuQzMifQ%3D%3D&_nc_ohc=R5MoBnEj0e0Q7kNvwE1WGt_&_nc_oc=AdpxpRSW644O6utO12TwIbDOnKqrMqRYYn0F0exJehGtKTn2DISCSJ_8xj3Rh_dX99M&_nc_zt=23&_nc_ht=instagram.flim39-1.fna&_nc_gid=GwlK751hT654KYGe_cxwDA&_nc_ss=7b689&_nc_ct=RQosPBUIFQQlBAAAAA&oh=00_AQS59rX-5sQ9S6JZtSW742RuK9sO4d_s1j63Dk64xtPnIw&oe=6AFE80D7",
  "imageUrls": [
    "https://instagram.flim39-1.fna.fbcdn.net/v/t51.82787-15/842191580_18656578867049152_4200499629839780998_n.jpg?stp=dst-jpg_e15_tt6&_nc_cat=111&_nc_map=urlgen_bucketless&ig_cache_key=NDAwNDYzNDk4OTM2MjQ4OTk4MjE4NjU2NTc4ODYxMDQ5MTUy.3-ccb7-5&ccb=7-5&_nc_sid=58cdad&efg=eyJ2ZW5jb2RlX3RhZyI6IkNMSVBTLnhwaWRzLjEwNzQuc2RyLnZpZGVvX2RlZmF1bHRfY292ZXJfZnJhbWUuQzMifQ%3D%3D&_nc_ohc=R5MoBnEj0e0Q7kNvwE1WGt_&_nc_oc=AdpxpRSW644O6utO12TwIbDOnKqrMqRYYn0F0exJehGtKTn2DISCSJ_8xj3Rh_dX99M&_nc_zt=23&_nc_ht=instagram.flim39-1.fna&_nc_gid=GwlK751hT654KYGe_cxwDA&_nc_ss=7b689&_nc_ct=RQosPBUIFQQlBAAAAA&oh=00_AQS59rX-5sQ9S6JZtSW742RuK9sO4d_s1j63Dk64xtPnIw&oe=6AFE80D7"
  ],
  "videoUrls": [
    "https://instagram.flim39-1.fna.fbcdn.net/o1/v/t2/f2/m86/AQNUvreb47JFAC3mKM7kF_weYHzhiVF-MfERm99CfyBTok0ezeRdbVW8cH5NXn4mxO8gVi6j1GQ2RU9i4ByvKCLVPHdDruUpsCKYDQI.mp4?_nc_cat=105&_nc_oc=Adq43-BpA5zhRg-io0opbvdDv0WEfI9TQqJWsbl4rA47vclPTh-fnvs206GlXDNKFX4&_nc_sid=5e9851&_nc_ht=instagram.flim39-1.fna.fbcdn.net&_nc_ohc=ub7L3o1kUE4Q7kNvwHBrKAS&efg=eyJ2ZW5jb2RlX3RhZyI6Inhwdl9wcm9ncmVzc2l2ZS5JTlNUQUdSQU0uQ0xJUFMuQzMuNzE4LmRhc2hfYmFzZWxpbmVfMV92MSIsInhwdl9hc3NldF9pZCI6MTg2NTY0MjU5NjMwNDkxNTIsImFzc2V0X2FnZV9kYXlzIjozNSwidmlfdXNlY2FzZV9pZCI6MTAwOTksImR1cmF0aW9uX3MiOjQzLCJ1cmxnZW5fc291cmNlIjoid3d3In0%3D&ccb=17-1&vs=cbcf4d02ce38480a&_nc_vs=HBksFQIYUmlnX3hwdl9yZWVsc19wZXJtYW5lbnRfc3JfcHJvZC8wMzJERDAzMDk4RkU0QkU4QUE1NkY2RUNFMDMzMjkxNl92aWRlb19kYXNoaW5pdC5tcDQVAALIARIAFQIYUWlnX3hwdl9wbGFjZW1lbnRfcGVybWFuZW50X3YyLzIwQzg2MTY2NUNENjRBMTFBRkE3RTM4ODA0ODlCQTk4X2F1ZGlvX2Rhc2hpbml0Lm1wNBUCAsgBEgAoABgAGwOIB3VzZV9vaWwBMRJwcm9ncmVzc2l2ZV9yZWNpcGUBMRJjb3B5X3NhbXBsZV9ncm91cHMBMRUAACaAw_Kk9fqjQhUCKAJDMywXQEXmZmZmZmYYEmRhc2hfYmFzZWxpbmVfMV92MREAdf4HZeadAQA&_nc_gid=GwlK751hT654KYGe_cxwDA&_nc_ss=7b689&_nc_map=urlgen_bucketless&_nc_zt=28&oh=00_AQTiPjyvl7RXHy_wHllr4X6Y-8tha2BQrRrsN-0SaFmtGQ&oe=6AFA7216"
  ],
  "carouselChildren": [],
  "isPinned": null,
  "taggedUsers": [
    {
      "username": "nasaartemis",
      "fullName": "NASA Artemis",
      "id": "1104426670",
      "isVerified": true
    },
    {
      "username": "nasasolarsystem",
      "fullName": "NASA Solar System Exploration",
      "id": "1611722079",
      "isVerified": true
    }
  ],
  "coauthors": [
    {
      "username": "nasasolarsystem",
      "fullName": "NASA Solar System Exploration",
      "id": "1611722079",
      "isVerified": true
    },
    {
      "username": "nasaartemis",
      "fullName": "NASA Artemis",
      "id": "1104426670",
      "isVerified": true
    }
  ],
  "altText": "Video by NASA on October 10, 2026. May be an image of planet, eclipse and text.",
  "width": 1074,
  "height": 1908,
  "videoDurationSeconds": 43.766666,
  "inputUrl": "https://www.instagram.com/p/DeTUk4sDSp-/",
  "scrapedAt": "2026-11-14T17:00:49Z",
  "detailsAvailable": true
}
```

### Run results

Download JSON, CSV or Excel from the dataset. The `OUTPUT` record summarises each run: row totals, any errors, how far each profile was read and why it stopped, and `skippedSources` for any source that the row limit left unprocessed. The run's status message says the same in one line.

If nothing matches your filters, or every requested profile or post is private, deleted or missing, the run still finishes successfully with zero rows, `OUTPUT.status` set to `no_results`, and a status message saying why. A run fails only when Instagram could not be read at all; rows already collected are always kept.

### Use it as an API

Get one post's caption, hashtags, engagement, timestamp and media URLs from its shortcode or link. Get the answer in JSON from one HTTPS call. Call it from an AI agent through an HTTP-capable MCP tool, or add an HTTP request step in n8n, Make, or Zapier.

```bash
curl --get 'https://automatic--instagram-post-scraper.apify.actor/' \
  --header "Authorization: Bearer $APIFY_TOKEN" \
  --data-urlencode shortcode=DeTUk4sDSp-
```

Send the same fields as a JSON object with `POST /`. Results are in `data`. See `GET /openapi.json` for the request and response definitions.

### Pricing

**$0.0025 per delivered row ($2.50 per 1,000) plus $0.005 per run start at the default 512 MB memory.**

| Example | Delivered rows | Cost at default memory |
| --- | ---: | ---: |
| Quick sample (`{}`) | 1 | $0.0075 |
| Console prefill | 10 | $0.03 |
| 100 rows | 100 | $0.255 |
| 1,000 rows | 1,000 | $2.505 |

Repeated media is delivered once per run. Source errors add no result rows. The start charge is per GB of memory, rounded up with a minimum of one event. Default memory is **512 MB**; a default 512 MB run is one start event.

### Good to know

- Signed-out tests read 240 posts each from NASA and National Geographic within the default 20 pages per profile (100 pages maximum). Available history varies by account.
- Large multi-profile runs stay deep: with `maxPostsPerProfile` set to 10 or more, up to 25 profiles per run are read page by page. Further profiles in a very long list may return only their latest posts.
- View and play counts are not shown to signed-out visitors, so they are not included. Hidden like counts are `null`.
- `isPinned` is `null` for posts collected from a direct link. For collab posts, the owner is the account that published the post.
- Fields Instagram does not show are `null`, and media links expire after a while, so download files you want to keep. Only public content is available; contact details are excluded.
- Each run is independent. There is no saved-state or new-posts-only mode.
- Very large runs may stop near their time limit; delivered rows are saved and the reason is in `OUTPUT`.

### Your feedback

Found a bug, or need a field or filter we don't have yet? Open an issue on this Actor's **Issues** tab. We read every issue and use them to decide what to build next.

# Actor input Schema

## `usernames` (type: `array`):

Profile usernames or links, for example nasa or https://www.instagram.com/nasa/. Collects their public posts, newest first after any pinned posts.

## `postUrls` (type: `array`):

Individual public post or reel links, for example https://www.instagram.com/p/DeTUk4sDSp-/. Post links are always collected first, then profiles.

## `publishedAfter` (type: `string`):

Optional. Keep posts published on or after this UTC date: an exact date such as 2026-10-01, an ISO timestamp, or a relative window such as 7 days, 24 hours, 2 weeks or 3 months. Profile collection stops once it reaches older posts; pinned posts are checked individually. Posts without a public date are skipped.

## `mediaTypes` (type: `array`):

Keep selected types, for example image and carousel. Leave empty to include all post types, including reels. Video means non-reel video.

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

Total output rows across all sources, for example 50. Post links are collected before profiles. A large value is a cap, not a guarantee of available history.

## `maxPostsPerProfile` (type: `integer`):

Optional cap on rows from each profile, so one busy account cannot use up the whole run. For example 25. Does not limit post links.

## `maxPagesPerProfile` (type: `integer`):

Bound profile history collection; for example 20 pages of up to 12 items each. Collection can stop earlier when Instagram stops serving public items.

## Actor input object example

```json
{
  "usernames": [
    "nasa"
  ],
  "maxItems": 10,
  "maxPagesPerProfile": 20
}
```

# Actor output Schema

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

No description

## `summary` (type: `string`):

No description

# 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 = {
    "usernames": [
        "nasa"
    ],
    "maxItems": 10,
    "maxPagesPerProfile": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("automatic/instagram-post-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 = {
    "usernames": ["nasa"],
    "maxItems": 10,
    "maxPagesPerProfile": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("automatic/instagram-post-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 '{
  "usernames": [
    "nasa"
  ],
  "maxItems": 10,
  "maxPagesPerProfile": 20
}' |
apify call automatic/instagram-post-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,automatic/instagram-post-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/u3uH9e6L1kXgAHpoB/builds/vyOisgMPHPMtq92rm/openapi.json
