# Instagram Profile Scraper (`web-wizard/instagram-profile-scraper`) Actor

Cheap, normalized public Instagram profile scraping - one record per handle.

- **URL**: https://apify.com/web-wizard/instagram-profile-scraper.md
- **Developed by:** [Web Wizard](https://apify.com/web-wizard) (community)
- **Categories:** Social media, Lead generation, Other
- **Stats:** 4 total users, 3 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.75 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

<img src=".actor/icon.png" width="96" align="right" alt="icon"/>

Cheap, normalized public-profile scraping for **Instagram** — one clean record per handle.

### What it does

Give it a list of Instagram handles (or profile URLs); it returns one normalized record per handle:
profile identity, follower/engagement counts, external links, profile-picture URL (+ sha256 if downloaded),
and platform-specific extras under `platformData`. Status is always one of `ok | not_found | private | restricted | error`.

### Input

| Field | Type | Notes |
|---|---|---|
| `handles` | array | Handles or profile URLs (required) |
| `proxyConfiguration` | proxy | Residential **required** |
| `maxConcurrency` | integer | Parallel requests (default 8) |
| `fetchProfilePic` | boolean | Download the image (URL is always included) |

### Transport & cost

- **Transport:** residential proxy (required).
- **Cost:** ~$0.050/1k live, ~$0.100/1k dead. Comparable Apify actors charge around **$0.90 / 1,000**.
- One web_profile_info call returns the profile + last ~12 posts (captions, timestamps, co-authors).

### Pricing (pay-per-result)

- **Recommended: $0.75 per 1,000 results** ($0.00075 / result).
- Cost to run ≈ $0.15/1k → this is **~5x markup** (set to undercut the market where needed).
- Incumbent comparison: $0.90/1k.

### Example output (real)

```json
{
  "platform": "instagram",
  "inputUrl": "https://www.instagram.com/sprxeadpositivity",
  "handle": "sprxeadpositivity",
  "scrapedAt": "2026-06-03T22:46:48Z",
  "status": "ok",
  "bytesWire": 23853,
  "profile": {
    "id": "8147442405",
    "username": "sprxeadpositivity",
    "url": "https://www.instagram.com/sprxeadpositivity",
    "fullName": "- yourhappyplace 🌻 💛",
    "biography": "-  Let's grow togetherr 🌻⁣⁣⁣ 💛⁣⁣⁣⁣⁣\n⁣📍🇨🇦⁣⁣⁣",
    "externalUrls": [],
    "followersCount": 366992,
    "followsCount": 45,
    "postsCount": 3050,
    "isBusinessAccount": true,
    "businessCategoryName": "None",
    "private": false,
    "verified": false,
    "joinedRecently": false,
    "profilePicUrl": "https://scontent-lga3-1.cdninstagram.com/v/t51.2885-19/129280386_1092495444508127_4268940734690203208_n.jpg?stp=dst-jpg_…",
    "profilePicUrlHD": "https://scontent-lga3-1.cdninstagram.com/v/t51.2885-19/129280386_1092495444508127_4268940734690203208_n.jpg?stp=dst-jpg_…",
    "profilePic": {
      "sha256": "f4d4c5c96d2f6fd1d32f1191009a245700474f83a0e5a63839360c2774fed99b",
      "storedKey": "pfp/ig/8147442405.jpg",
      "path": "/v/t51.2885-19/129280386_1092495444508127_4268940734690203208_n.jpg"
    },
    "fbid": "17841407992178430"
  },
  "posts": [
    {
      "shortCode": "DEgZw1usyNP",
      "url": "https://www.instagram.com/reel/DEgZw1usyNP/",
      "type": "Reel",
      "caption": "I knoww somebodyy out there needs to hear ittt 😘⁣\n⁣\nHappy Mondayyy, you little rays sunshinee ☀️⁣\n⁣\nI hopee your weekend…",
      "timestamp": "2025-01-07T01:42:45Z",
      "collaborators": [
        "sprxeadpositivity"
      ],
      "ownerUsername": "sprxeadpositivity",
      "ownerId": "8147442405"
    },
    {
      "shortCode": "DEamfb3PT6z",
      "url": "https://www.instagram.com/p/DEamfb3PT6z/",
      "type": "Sidecar",
      "caption": "@ youu 😘⁣⁣\n⁣⁣\nSofttt little weekendd reminderr 💛⁣⁣\n⁣⁣\nI hopee your Saturdayy is coming along nicelyy, my little flowerss…",
      "timestamp": "2025-01-04T19:36:52Z",
      "collaborators": [
        "sprxeadpositivity"
      ],
      "ownerUsername": "sprxeadpositivity",
      "ownerId": "8147442405"
    },
    {
      "shortCode": "DEVr2orvlGG",
      "url": "https://www.instagram.com/p/DEVr2orvlGG/",
      "type": "Image",
      "caption": "Importanttt little reminderrr 💛⁣⁣\nDon’t lose sleep over ittt, darlinggg 😘⁣⁣\n⁣⁣\nHappy Thursdaaay, my lovely little flower…",
      "timestamp": "2025-01-02T21:47:31Z",
      "collaborators": [
        "sprxeadpositivity"
      ],
      "ownerUsername": "sprxeadpositivity",
      "ownerId": "8147442405"
    },
    {
      "shortCode": "DETEJ0CvXrS",
      "url": "https://www.instagram.com/reel/DETEJ0CvXrS/",
      "type": "Reel",
      "caption": "@ youu 😘⁣\n⁣\nHappy first daay of the new yearr, you little rays of sunshinee ☀️⁣\n⁣\nI hope todaay is coming along welllll …",
      "timestamp": "2025-01-01T21:23:28Z",
      "collaborators": [
        "sprxeadpositivity"
      ],
      "ownerUsername": "sprxeadpositivity",
      "ownerId": "8147442405"
    },
    {
      "shortCode": "DEQvUFQvOw_",
      "url": "https://www.instagram.com/p/DEQvUFQvOw_/",
      "type": "Image",
      "caption": "@ the person seeing thiss 💜⁣\n⁣\nHappy lastt dayyy of the yearrr, lovelyy 😘⁣\n⁣\nI hopee you realize how special you aree 💛⁣…",
      "timestamp": "2024-12-31T23:41:33Z",
      "collaborators": [
        "sprxeadpositivity"
      ],
      "ownerUsername": "sprxeadpositivity",
      "ownerId": "8147442405"
    },
    {
      "shortCode": "DELx3mDsrbY",
      "url": "https://www.instagram.com/p/DELx3mDsrbY/",
      "type": "Image",
      "caption": "Maybe your pathh is harder because your calling is higherrrr 😘⁣\n⁣\nLittle something for your weekenddd 💛⁣\n⁣\nI hopee your …",
      "timestamp": "2024-12-30T01:27:41Z",
      "collaborators": [
        "sprxeadpositivity"
      ],
      "ownerUsername": "sprxeadpositivity",
      "ownerId": "8147442405"
    },
    {
      "shortCode": "DEIoZfxvBq4",
      "url": "https://www.instagram.com/p/DEIoZfxvBq4/",
      "type": "Image",
      "caption": "I don’t know who needs to hear this, but I know somebody doess 💛⁣⁣\n⁣⁣\n⁣⁣\nHappy Saturdayy, my little flowerss ☀️⁣⁣\n⁣⁣\n⁣⁣\n…",
      "timestamp": "2024-12-28T20:07:12Z",
      "collaborators": [
        "sprxeadpositivity"
      ],
      "ownerUsername": "sprxeadpositivity",
      "ownerId": "8147442405"
    },
    {
      "shortCode": "DEGYxOevq3n",
      "url": "https://www.instagram.com/p/DEGYxOevq3n/",
      "type": "Image",
      "caption": "@ anybody trying to better themselvess 😘⁣⁣\nI’m proud of youuu 💛⁣⁣\n⁣⁣\nHappy Fridaaayyy, my lovely flowersss ☀️⁣⁣\n⁣⁣\nHooow…",
      "timestamp": "2024-12-27T23:12:09Z",
      "collaborators": [
        "sprxeadpositivity"
      ],
      "ownerUsername": "sprxeadpositivity",
      "ownerId": "8147442405"
    },
    {
      "shortCode": "DEDVQVTP3hx",
      "url": "https://www.instagram.com/p/DEDVQVTP3hx/",
      "type": "Image",
      "caption": "You deserve to be heere 😘⁣⁣\nJust so you knoww 💜⁣⁣\n⁣⁣\n⁣\nHappy Thursdayyyyy, friendssss ☀️⁣⁣\n⁣⁣\n⁣\nI hope your daaay is com…",
      "timestamp": "2024-12-26T18:43:43Z",
      "collaborators": [
        "sprxeadpositivity"
      ],
      "ownerUsername": "sprxeadpositivity",
      "ownerId": "8147442405"
    },
    {
      "shortCode": "DEA0OaGPRN7",
      "url": "https://www.instagram.com/p/DEA0OaGPRN7/",
      "type": "Image",
      "caption": "Psstttt 👆⁣\nJust so you knoww 😘⁣\n⁣\nMerry Christmassssss, you little gemsss 🎄 ⁣\n⁣\nI hopee todaay is treating your heart ni…",
      "timestamp": "2024-12-25T19:16:37Z",
      "collaborators": [
        "sprxeadpositivity"
      ],
      "ownerUsername": "sprxeadpositivity",
      "ownerId": "8147442405"
    },
    {
      "shortCode": "DD-UGy3PpeK",
      "url": "https://www.instagram.com/p/DD-UGy3PpeK/",
      "type": "Image",
      "caption": "Be patient with your heaaling 💛⁣⁣\n⁣⁣\n⁣⁣\nHappy Tuesdayyy, my little flowersss 😘⁣⁣\n⁣⁣\n⁣⁣\nI hope you’re having an amazing d…",
      "timestamp": "2024-12-24T19:57:29Z",
      "collaborators": [
        "sprxeadpositivity"
      ],
      "ownerUsername": "sprxeadpositivity",
      "ownerId": "8147442405"
    },
    {
      "shortCode": "DD7sXLuvSh4",
      "url": "https://www.instagram.com/p/DD7sXLuvSh4/",
      "type": "Image",
      "caption": "In casee your mindd has been trying to convince you otherwisee 💛⁣⁣\n⁣⁣\nHappyy Mondayyy, you little rays of sunshinee ☀️⁣⁣…",
      "timestamp": "2024-12-23T19:31:43Z",
      "collaborators": [
        "sprxeadpositivity"
      ],
      "ownerUsername": "sprxeadpositivity",
      "ownerId": "8147442405"
    }
  ],
  "signals": {
    "lastPostAt": "2025-01-07T01:42:45Z",
    "isActive": false,
    "hasExternalUrl": false
  }
}
```

*Public data only. This actor gathers public profile metadata; it does not log in or access private content.*

# Actor input Schema

## `handles` (type: `array`):

Instagram usernames/handles or full profile URLs (one per item).

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

Parallel requests.

## `fetchProfilePic` (type: `boolean`):

Download the profile image (the URL is always in the record regardless).

## `proxyConfiguration` (type: `object`):

Proxy settings. Residential is required for this platform.

## Actor input object example

```json
{
  "handles": [
    "nike",
    "adidas"
  ],
  "maxConcurrency": 8,
  "fetchProfilePic": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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 = {
    "handles": [],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("web-wizard/instagram-profile-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 = {
    "handles": [],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("web-wizard/instagram-profile-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 '{
  "handles": [],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call web-wizard/instagram-profile-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,web-wizard/instagram-profile-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/MyPxs4JPUOt5KUkxj/builds/H3Uofom4klgF8kzCY/openapi.json
