# Instagram Scraper API: Profiles, Posts & Hashtag Reels (`clair-api/instagram-scraper-api`) Actor

Public Instagram profiles, posts, reels, and a hashtag's popular reels as JSON, in 1-3 seconds each. No login, no cookies. Followers, likes, captions, latest comments.

- **URL**: https://apify.com/clair-api/instagram-scraper-api.md
- **Developed by:** [Clair API](https://apify.com/clair-api) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 profiles

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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: Profiles, Posts & Hashtag Reels

Public Instagram profiles, posts, reels, and a hashtag's popular reels as JSON, in 1-3 seconds each. No login, no cookies. Followers, likes, captions, latest comments.

Built on [Instagram API](https://clair.im/apis/instagram?utm_source=apify\&utm_medium=store\&utm_campaign=instagram-scraper-api), a production
API that answers from live pages. Each input is one API call; calls run in
parallel, and every row lands in the dataset as soon as it is read.

### What it returns

#### Profiles

username takes a name, @name, or an instagram.com profile link. Follower and following counts are exact; the post count is as Instagram shows it, exact below 10,000 and rounded above (32K). An account that is gone or never existed returns 404.

Input `usernames`: a username, @username, or instagram.com profile link. Typical time: 1-3 s per call.

Sample row:

```json
{
  "input": "nasa",
  "endpoint": "instagram-profile",
  "user_id": "528817151",
  "username": "nasa",
  "full_name": "NASA",
  "url": "https://www.instagram.com/nasa/",
  "bio": "Making the seemingly impossible, possible. ✨",
  "links": [
    {
      "title": "NASA.gov Homepage",
      "url": "https://www.nasa.gov"
    },
    {
      "title": "MAX POWER",
      "url": "https://www.nasa.gov/maxpower"
    }
  ],
  "avatar": "https://scontent-lax3-2.cdninstagram.com/v/t51.2885-19/29090066_159271188110124_1152068159029641216_n.jpg?stp=dst-jpg...",
  "verified": true,
  "private": false,
  "followers_count": 104368412,
  "following_count": 90,
  "posts_count": 4982,
  "highlights": [
    {
      "highlight_id": "18195781759377100",
      "title": "Roman",
      "cover": "https://scontent-lax3-1.cdninstagram.com/v/t51.71878-15/785745361_1537318174532484_931463605431094788_n.jpg?stp=dst-j..."
    },
    {
      "highlight_id": "18123023338592759",
      "title": "Wallpapers",
      "cover": "https://scontent-lax3-1.cdninstagram.com/v/t51.71878-15/658392542_1443405937523344_3996096698761393443_n.jpg?stp=dst-..."
    }
  ],
  "latest_posts": [
    {
      "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 I...",
      "alt_text": "Video by NASA on October 10, 2026. May be an image of planet, eclipse and text.",
      "cover": "https://scontent-lax3-2.cdninstagram.com/v/t51.82787-15/842191580_18656578867049152_4200499629839780998_n.jpg?stp=dst...",
      "author_username": "nasa"
    },
    {
      "shortcode": "DeJ28eTxo4s",
      "url": "https://www.instagram.com/p/DeJ28eTxo4s/",
      "type": "photo",
      "caption": "Brewing up new stars 🪄\n \n@NASAWebb’s unique view of the stellar nursery known as NGC 7129 reveals numerous stars for...",
      "alt_text": "Photo by NASA Webb Telescope on October 06, 2026. May be an image of text.",
      "cover": "https://scontent-lax3-1.cdninstagram.com/v/t51.82787-15/838879752_18633093571001809_7013098794556155636_n.jpg?stp=dst...",
      "author_username": "nasawebb"
    },
    "… 1 more"
  ]
}
```

#### Posts and reels

shortcode takes the code in a post's link, such as DeTUk4sDSp-, or the link itself: /p/, /reel/, and /tv/ links all work. A post that is gone or never existed returns 404, as does one Instagram shows only to signed-in viewers.

Input `posts`: a shortcode, or an instagram.com /p/, /reel/, or /tv/ link. Typical time: 1-4 s per call.

Sample row:

```json
{
  "input": "DeTUk4sDSp-",
  "endpoint": "instagram",
  "shortcode": "DeTUk4sDSp-",
  "post_id": "4004634989362489982",
  "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 I...",
  "caption_edited": false,
  "alt_text": "Video by NASA on October 10, 2026. May be an image of planet, eclipse and text.",
  "hashtags": [
    "NASA",
    "ArtemisII",
    "… 1 more"
  ],
  "mentions": [],
  "published_at": "2026-10-10T15:15:02.000Z",
  "duration_ms": 43767,
  "cover": "https://scontent-iad3-2.cdninstagram.com/v/t51.82787-15/842191580_18656578867049152_4200499629839780998_n.jpg?stp=dst...",
  "media": [
    {
      "type": "video",
      "image": "https://scontent-iad3-2.cdninstagram.com/v/t51.82787-15/842191580_18656578867049152_4200499629839780998_n.jpg?stp=dst...",
      "video_url": "https://scontent-iad3-2.cdninstagram.com/o1/v/t2/f2/m86/AQNUvreb47JFAC3mKM7kF_weYHzhiVF-MfERm99CfyBTok0ezeRdbVW8cH5NX...",
      "width": 1074,
      "height": 1908,
      "duration_ms": 43767
    }
  ],
  "likes_count": 752840,
  "comments_count": 7577,
  "author": {
    "user_id": "528817151",
    "username": "nasa",
    "full_name": "NASA",
    "verified": true,
    "url": "https://www.instagram.com/nasa/",
    "private": false,
    "avatar": "https://scontent-iad6-1.cdninstagram.com/v/t51.2885-19/29090066_159271188110124_1152068159029641216_n.jpg?stp=dst-jpg..."
  },
  "coauthors": [
    {
      "user_id": "1611722079",
      "username": "nasasolarsystem",
      "full_name": "NASA Solar System Exploration",
      "verified": true,
      "url": "https://www.instagram.com/nasasolarsystem/"
    },
    {
      "user_id": "1104426670",
      "username": "nasaartemis",
      "full_name": "NASA Artemis",
      "verified": true,
      "url": "https://www.instagram.com/nasaartemis/"
    }
  ],
  "tagged_users": [
    {
      "user_id": "1104426670",
      "username": "nasaartemis",
      "full_name": "NASA Artemis",
      "verified": true,
      "url": "https://www.instagram.com/nasaartemis/"
    },
    {
      "user_id": "1611722079",
      "username": "nasasolarsystem",
      "full_name": "NASA Solar System Exploration",
      "verified": true,
      "url": "https://www.instagram.com/nasasolarsystem/"
    }
  ],
  "audio": {
    "audio_id": "28589819277311219",
    "title": "Original audio",
    "artist": "nasa"
  },
  "latest_comments": [
    {
      "comment_id": "18060775346647906",
      "text": "🎬🎬🎬🤹‍♀️🤹‍♀️🤹‍♀️",
      "published_at": "2026-10-28T14:20:46.000Z",
      "likes_count": 0,
      "author": {
        "user_id": "268681544",
        "username": "doctorkarin",
        "full_name": null,
        "verified": true,
        "url": "https://www.instagram.com/doctorkarin/"
      }
    }
  ]
}
```

#### Hashtags

hashtag takes a tag, #tag, or an instagram.com hashtag link. The response is the twelve popular reels Instagram shows a signed-out visitor for the tag, with play counts and authors; pass a shortcode to Post for likes, comments, and the date. Instagram has a public page for most tags but not all: brand names and rarely used tags often have none, and those return 404.

Input `hashtags`: a hashtag, with or without #, or an /explore/tags/ link. Typical time: 1-3 s per call.

Sample row:

```json
{
  "input": "thirdwavecoffee",
  "endpoint": "instagram-hashtag",
  "hashtag": {
    "name": "thirdwavecoffee",
    "url": "https://www.instagram.com/explore/tags/thirdwavecoffee/",
    "related_searches": [
      "thirdwavecoffee cafe in mumbai",
      "thirdwavecoffee new menu",
      "… 1 more"
    ]
  },
  "position": 1,
  "shortcode": "Cra2r2UJS9y",
  "post_id": "3088021002285035378",
  "url": "https://www.instagram.com/reel/Cra2r2UJS9y/",
  "type": "reel",
  "caption": "The best way to spend your Sunday! \nThank you\n@thirdwavecoffeeindia 💌\n\n.\n\n.\n\n.\n\n.\n🏷️ #explorepage✨ #bangalore #coff...",
  "hashtags": [
    "explorepage",
    "bangalore",
    "… 5 more"
  ],
  "cover": "https://scontent-lga3-2.cdninstagram.com/v/t51.71878-15/503028702_1048878806667483_663468449240681271_n.jpg?fixture",
  "video_url": "https://scontent-lga3-3.cdninstagram.com/o1/v/t2/f2/m82/AQNlN2bph6zHRyr_Ouc3BRwoOX1E8RWu_bcR4VJMAIfHas0bq3BO4excvmqlP...",
  "plays_count": 544013,
  "author": {
    "user_id": "6743035862",
    "username": "ashiyawnn",
    "verified": false,
    "avatar": "https://scontent-lga3-1.cdninstagram.com/v/t51.82787-19/781425434_18374637988227863_2180389231169178642_n.jpg?fixture",
    "url": "https://www.instagram.com/ashiyawnn/"
  }
}
```

### Pricing

Pay per row, nothing for a run's time. You are charged only for rows with
data:

- **Profile**: One public Instagram profile, with its latest posts.
- **Post**: One public Instagram post or reel, with its newest comments.
- **Hashtag reel**: One reel from a hashtag's popular reels.

An input that does not exist (a deleted post, an unknown username) or that
fails after three tries comes back as a free row with `error` and
`message` set. Set a spending limit on the run and it stops there.

### Use it from code

Every input field is in the API tab. Prefer plain HTTP? The same data is
the [Instagram API](https://clair.im/apis/instagram?utm_source=apify\&utm_medium=readme\&utm_campaign=instagram-scraper-api), with a free monthly
allowance.

### Notes

- Unofficial: not affiliated with or endorsed by Instagram. It reads what
  the site shows a signed-out visitor, and nothing behind a login.
- Rows are JSON objects; export them as JSON, CSV, Excel, or through the API.

# Actor input Schema

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

One per line: a username, @username, or instagram.com profile link. Each is one call to Profile (/v1/instagram/profile). One public Instagram account, personal, creator, or business.

## `posts` (type: `array`):

One per line: a shortcode, or an instagram.com /p/, /reel/, or /tv/ link. Each is one call to Post (/v1/instagram/post). One public Instagram post: a photo, video, reel, or carousel.

## `hashtags` (type: `array`):

One per line: a hashtag, with or without #, or an /explore/tags/ link. Each is one call to Hashtag (/v1/instagram/hashtag). The popular reels under an Instagram hashtag.

## `maxConcurrency` (type: `integer`):

Inputs called at once, 1 to 10.

## Actor input object example

```json
{
  "usernames": [
    "nasa"
  ],
  "maxConcurrency": 5
}
```

# Actor output Schema

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

One row per profile, post, or hashtag reel. An input without data gets a free row with error set.

# 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"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("clair-api/instagram-scraper-api").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"] }

# Run the Actor and wait for it to finish
run = client.actor("clair-api/instagram-scraper-api").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"
  ]
}' |
apify call clair-api/instagram-scraper-api --silent --output-dataset

```

## MCP server setup

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

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/JLYICrjxH76gGRi4n/builds/PPzah1KtZLB4aseGQ/openapi.json
