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

Instagram profile data by username - full name, bio, follower/following/post counts, verified and private status, profile picture. No login, no browser. $2.50 per 1,000 profiles.

- **URL**: https://apify.com/hridayrungta/instagram-profile-scraper.md
- **Developed by:** [Hriday Rungta](https://apify.com/hridayrungta) (community)
- **Categories:** Social media, Automation, Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.50 / 1,000 profile rows

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

**Give it a list of usernames and get one row per profile back** — full name, bio, follower and
following counts, post count, verified status, private status, and profile picture. No login, no
`li_at`/session cookie of any kind, no browser.

***

### What you get

One row per profile:

| | |
|---|---|
| `username`, `fullName`, `profileUrl` | who they are and a direct link |
| `profilePicUrl` | their current profile picture |
| `biography` | the full bio text |
| `followerCount`, `followingCount`, `postCount` | exact counts, not abbreviated estimates |
| `isVerified`, `isPrivate` | exact booleans |
| `isBusinessAccount` | always `null` — see the honest gap below |
| `userId` | Instagram's own numeric account id |

### The one field this Actor cannot get

**`isBusinessAccount` is always `null`.** Every other field above was checked against real data
across a dozen real accounts — verified brands, verified individuals, and two accounts confirmed
genuinely private. The data source this Actor reads never carries a business/creator-account flag
for any of them, brand or not, so it is reported honestly as unavailable rather than guessed.

### How this works, and what it doesn't do

A plain browser request to Instagram is blocked immediately — Instagram's own profile API answers
`require_login: true` on the very first attempt, cold, before any real rate limit could apply. This
Actor instead reads the same page the way a search-engine crawler does: Instagram serves a fully
populated SEO version of every public profile page for indexing, and that page carries the exact
data above in its own markup. Instagram's `robots.txt` explicitly permits this for the crawlers it
names.

**It never logs in.** No cookie, no session, no password of any kind touches this Actor. It only
ever reads a public page's own rendered content — the identical content a search engine indexes
and a link preview shows.

A username that does not resolve to a real account is logged and skipped — nothing is charged, and
no row is saved, though the lookup still costs one proxy request.

### Why this needs the UNBLOCKER proxy group

Measured directly on Apify's own infrastructure, not assumed: a bare connection and Apify's plain
datacenter proxy group are **both blocked outright** — an empty page or an HTTP 429, no profile data
either way. Only two proxy tiers get through: **UNBLOCKER** and **RESIDENTIAL**. Residential is
billed per GB and would run roughly $10 per 1,000 profiles at this page's size, so this Actor
defaults to UNBLOCKER and isn't meant to run without it.

### Pricing

One flat price per profile row, no start fee, no separate usage charge on top. The price already
covers this Actor's own UNBLOCKER proxy cost.

### Input at a glance

| Input | Default | Notes |
|---|---|---|
| `usernames` | — | bare username, `@handle`, or a full profile URL — any of the three works |
| `maxConcurrency` | `5` | profiles fetched at once |
| `requestsPerSecond` | `5` | a courtesy throttle across all concurrent workers combined |
| `maxRetries` | `3` | network errors, timeouts, 5xx and 429 responses |
| `proxyConfiguration` | Apify Proxy, UNBLOCKER | required in practice — see above |

### Billing

Pay per event, charged once per profile actually found and returned, **no start fee**:

| Event | Price | When |
|---|---|---|
| `profile-row` | $0.0025 ($2.50 per 1,000) | one profile row |

A username that doesn't resolve to an account is never charged. Set your own budget with a maximum
total charge on the run.

# Actor input Schema

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

Instagram usernames, one per line. A bare username (`nike`), an @handle (`@nike`), or a full profile URL (`https://www.instagram.com/nike/`) all work.

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

How many profiles to fetch at the same time.

## `requestsPerSecond` (type: `integer`):

Courtesy throttle across all concurrent workers combined. Verified to work without any throttling in a short burst; kept moderate by default for a long production run.

## `maxRetries` (type: `integer`):

Retries with exponential backoff for network errors, timeouts, 5xx and 429 responses.

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

Required in practice: Apify's own datacenter proxy and a bare connection are both blocked by Instagram (measured). Leave the default (Apify Proxy, UNBLOCKER group) - its cost is already covered by this Actor's per-profile price.

## Actor input object example

```json
{
  "usernames": [
    "nike",
    "nasa",
    "spacex"
  ],
  "maxConcurrency": 5,
  "requestsPerSecond": 5,
  "maxRetries": 3,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "UNBLOCKER"
    ]
  }
}
```

# Actor output Schema

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

No description

# 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": [
        "nike",
        "nasa",
        "spacex"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "UNBLOCKER"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("hridayrungta/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 = {
    "usernames": [
        "nike",
        "nasa",
        "spacex",
    ],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["UNBLOCKER"],
    },
}

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,hridayrungta/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/D4hAzCo80OUlLmr0b/builds/omQlqtI4XsigTdiTo/openapi.json
