Instagram Scraper

Apify

Collect public Instagram posts, profiles and hashtags from URLs or search inputs.

Current price
$0.0038/result
Availability
Ready to run
Last accepted verification

What this API does

Fetch a bounded set of public Instagram posts or profile results from supplied URLs.

Agents select this operation with tool ID apify.apify-instagram-scraper, then inspect its current executable contract before a run.

Public input and output shape

Input

inputobject · optional

Provider-specific public source, URL or search criteria.

maxItemsnumber · optional

Maximum number of records to return.

Output

captionstring

Returned caption value.

dimensionsHeightnumber

Returned dimensions height value.

dimensionsWidthnumber

Returned dimensions width value.

ownerFullNamestring

Returned owner full name value.

ownerUsernamestring

Returned owner username value.

shortCodestring

Returned short code value.

typestring

Returned type value.

urlstring

Returned url value.

Example request and output

This reviewed worked example is shared with inspect. Inspect also returns the current executable schema and price estimate before a paid run.

Request

{
  "tool_id": "apify.apify-instagram-scraper",
  "input": {
    "input": {
      "directUrls": [
        "https://www.instagram.com/p/DPq5ZpJDZw9/"
      ],
      "resultsType": "posts",
      "resultsLimit": 1
    },
    "maxItems": 1
  }
}

Output

{
  "url": "https://www.instagram.com/p/DPq5ZpJDZw9/",
  "type": "Video",
  "caption": "Dear New York closes on October 19th.",
  "shortCode": "DPq5ZpJDZw9",
  "ownerFullName": "Humans of New York",
  "ownerUsername": "humansofny",
  "dimensionsWidth": 640,
  "dimensionsHeight": 1136
}
Teaching errors and limitations

No listing-specific teaching errors are published. Inspect the tool before running to receive the current schema and error guidance.

Updated
22 August 2026

Use Instagram Scraper with Scrollport

Scrollport identifies and validates the best-in-class API tools and provides them on a pay-as-you-go basis so you don't need to maintain a separate provider account, subscription or credits.

Give your agent the setup prompt to receive $1 in trial credit and start using the tools right away.