# Instagram Post Scraper

Collect recent public Instagram posts from profiles with captions and engagement.

by Apify Ready to run $0.0025 per result · $0.25 per 100 results

## Example

### You ask your agent

“Get the latest post from the Humans of New York Instagram account, with its likes and comments.”

### You get

**Alt:** Video by Humans of New York on November 01, 2026. May be an image of one or more people, people smiling, poster,…

**URL:** https://www.instagram.com/p/DfN6aF5NR6I/

**Type:** Video

**Caption:** Many people might not know that the @nycmarathon is shepherded by a nonprofit called New York Road Runners, who are…

**Input URL:** https://www.instagram.com/humansofny

**Is pinned:** No

**Timestamp:** 2026-11-01 23:31 UTC

**Likes count:** 165,587

**What your agent sends and gets back (JSON)**

Your agent works out the exact inputs, such as IDs, dates and settings, from what you ask.

### Request

```
{
  "tool_id": "apify.apify-instagram-post-scraper",
  "input": {
    "input": {
      "username": [
        "humansofny"
      ]
    },
    "maxItems": 1
  }
}
```

### Response

```
{
  "items": [
    {
      "id": "4021126922044251784",
      "alt": "Video by Humans of New York on November 01, 2026. May be an image of one or more people, people smiling, poster, magazine, newspaper, plant and text.",
      "url": "https://www.instagram.com/p/DfN6aF5NR6I/",
      "type": "Video",
      "images": [],
      "caption": "Many people might not know that the @nycmarathon is shepherded by a nonprofit called New York Road Runners, who are responsible for producing what might be the single most unifying event of the year. Not only is the marathon a great service to runners, it a great service to the New York community. Additionally the @nyrr holds numerous year-long programs for youth and adults which grow the popul...",
      "ownerId": "242598499",
      "hashtags": [],
      "inputUrl": "https://www.instagram.com/humansofny",
      "isPinned": false,
      "shortCode": "DfN6aF5NR6I",
      "timestamp": "2026-11-01T23:31:34.000Z",
      "childPosts": [],
      "likesCount": 165587,
      "productType": "clips",
      "commentsCount": 1085,
      "ownerFullName": "Humans of New York",
      "ownerUsername": "humansofny",
      "dimensionsWidth": 720,
      "paidPartnership": false,
      "dimensionsHeight": 1280,
      "isCommentsDisabled": false
    }
  ],
  "item_count": 1
}
```

## Use it with your agent

Copy the prompt and paste it into your agent, then tell it what you need.

Read https://scrollport.com/start. Use my existing Scrollport connection, or help me connect if needed. Help me use Instagram Post Scraper (tool ID: apify.apify-instagram-post-scraper). Ask me for the details you need, then show me the result.

Provider access is included. If your agent isn't connected to Scrollport yet, it will help you set that up.

No agent yet? [Create your account on the web](https://scrollport.com/sign-up) and connect one from your dashboard later.

## Other tools for this job

[Compare all 25 →](https://scrollport.com/tools/instagram-api)

- [Instagram API Scraper](https://scrollport.com/tools/providers/apify/apify-instagram-api-scraper) Apify $0.0025 per result $0.0025 per result
- [Instagram Hashtag Scraper](https://scrollport.com/tools/providers/apify/apify-instagram-hashtag-scraper) Apify $0.0025 per result $0.0025 per result
- [Instagram location posts by location id](https://scrollport.com/tools/providers/tikhub/instagram-v1-fetch-location-posts) TikHub $0.0025 per request $0.0025 per request

## Questions

**Is Instagram Post Scraper by Apify free?**

Scrollport has no free tier: it costs $0.0025 per result ($0.25 per 100 results), paid per use from a prepaid wallet with no subscription. Connecting your first agent adds $1 of trial credit, so you can try it before adding funds.

**Do I need an API key from Apify?**

No. Your agent runs it through your Scrollport connection (MCP, the Scrollport CLI or the HTTP API), and Scrollport handles access to Apify, so you don't sign up with Apify or manage an API key.

## Details

**About this tool**

Collect recent posts from up to five public Instagram profiles by username or URL, optionally only posts newer than a date and skipping pinned posts. maxItems is split evenly across the profiles. Each post includes caption, hashtags, mentions, likes, comments, media links and timestamp. You're charged per post returned. The worked example shows selected fields: long text is shortened, nested lists keep one item and expiring media links are left out.

**All inputs and outputs**

### Input

`input` object · required

Provider-specific public source, URL or search criteria.

`maxItems` integer · optional

Maximum number of records to return.

minimum: 1 · maximum: 100

### Output

`item_count` number

`items` array

Result records.

**Errors and limits**

- `upstream_error`: The scraper could not return usable results; the wallet was not charged.Check the input and limits, or retry later.

---

Canonical page: https://scrollport.com/tools/providers/apify/apify-instagram-post-scraper
