Instagram API Scraper

Read public Instagram posts, reels, comments and details by URL.

by ApifyReady to run$0.0025 per result · $0.25 per 100 results

Example

You ask your agent

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

You get

Alt
Video by Humans of New York on September 25, 2026. May be an image of one or more people, hair, eyeglasses, cigarette…
URL
https://www.instagram.com/p/Ddt2AXassp7/
Type
Video
Caption
It’s on you to say whether it’s your rock bottom.
Input URL
https://www.instagram.com/humansofny/
Is pinned
No
Timestamp
2026-09-25 16:04 UTC
Likes count
25,748
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-api-scraper",
  "input": {
    "input": {
      "directUrls": [
        "https://www.instagram.com/humansofny/"
      ],
      "resultsType": "posts"
    },
    "maxItems": 1
  }
}

Response

{
  "items": [
    {
      "id": "3994085964203084411",
      "alt": "Video by Humans of New York on September 25, 2026. May be an image of one or more people, hair, eyeglasses, cigarette and text.",
      "url": "https://www.instagram.com/p/Ddt2AXassp7/",
      "type": "Video",
      "caption": "It’s on you to say whether it’s your rock bottom.",
      "ownerId": "242598499",
      "inputUrl": "https://www.instagram.com/humansofny/",
      "isPinned": false,
      "shortCode": "Ddt2AXassp7",
      "timestamp": "2026-09-25T16:04:47.000Z",
      "likesCount": 25748,
      "commentsCount": 611,
      "originalWidth": 1080,
      "ownerFullName": "Humans of New York",
      "ownerUsername": "humansofny",
      "originalHeight": 1920,
      "dimensionsWidth": 1320,
      "paidPartnership": false,
      "dimensionsHeight": 2347,
      "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 API Scraper (tool ID: apify.apify-instagram-api-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 and connect one from your dashboard later.

Other tools for this job

Compare all 25 →

Questions

Is Instagram API 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

Read public Instagram data from up to five URLs: posts or reels from a profile, hashtag or place page, comments on a post (up to 50 each), posts mentioning a profile, or a page's details. maxItems is split evenly across the URLs. Posts include caption, likes, comments count, timestamp, owner, dimensions and link. You're charged per result returned plus a small fee per run. 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

inputobject · required

Provider-specific public source, URL or search criteria.

maxItemsinteger · optional

Maximum number of records to return.

minimum: 1 · maximum: 100

Output

item_countnumber
itemsarray

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.