# Instagram Profile Scraper - Fast, Low Cost, No Login (`gopalakrishnan/instagram-profile`) Actor

Extract public Instagram profile stats fast and cheap — no login, no browser. Feed it usernames, @handles, or profile URLs and get follower/following counts, bio, verification status, external links, profile pics, and latest posts as clean structured JSON. Ideal for leads & creator research

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

## Pricing

from $1.60 / 1,000 profile captureds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Instagram Profile Scraper

### What does Instagram Profile Scraper do?
**Instagram Profile Scraper** extracts public profile stats from Instagram profile pages using the logged-out `web_profile_info` endpoint, so it stays fast, cheap, and simple. Give it usernames, `@handles`, or full profile URLs and it returns structured profile data like follower counts, biography, verification status, and the latest posts.

Try it on Instagram profiles here: [instagram.com](https://www.instagram.com/). When you run it on Apify, you also get API access, scheduling, integrations, proxy rotation, monitoring, and dataset exports without having to build the surrounding infrastructure yourself.

### Why use Instagram Profile Scraper?
This Actor is a good fit when you need profile stats quickly without browser automation or login handling. It is especially useful for lead enrichment, creator research, competitive monitoring, audience analysis, and lightweight data pipelines where cost and speed matter.

It is intentionally positioned as a **fast, low-cost, no-login** profile stats scraper. That means fewer moving parts, lower compute usage, and fewer operational surprises than browser-based alternatives.

### How to use Instagram Profile Scraper
1. Open the Actor in the Apify Console.
2. Enter one or more profiles in the **Input** tab. You can mix `@handles`, profile URLs, and bare usernames.
3. Keep the proxy configuration enabled for the most reliable production runs.
4. Click **Start** and wait for the run to finish.
5. Open the **Dataset** tab to inspect the results or export them in the format you need.

### Input
The Actor accepts two input fields in the Input tab:

- `usernames` - Required array of Instagram profile identifiers. Each item can be a bare username, an `@handle`, or a full Instagram profile URL.
- `proxyConfiguration` - Optional proxy settings. The default is Apify Proxy, which is recommended for production runs.

Example input:

```json
{
  "usernames": [
    "nasa",
    "@instagram",
    "https://www.instagram.com/github/"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
````

### Output

The Actor saves one dataset item per requested profile. Successful records include normalized profile metadata and, when available, the first 12 posts returned by Instagram in the same response.

```json
[
  {
    "inputUsername": "nasa",
    "username": "nasa",
    "profileUrl": "https://www.instagram.com/nasa/",
    "status": "ok",
    "profileId": "123",
    "fullName": "NASA",
    "followers": 104000000,
    "following": 73,
    "postsCount": 4800,
    "isVerified": true,
    "isPrivate": false,
    "isBusiness": true,
    "category": "Government organization",
    "profilePic": "https://...",
    "latestPosts": [
      {
        "id": "123",
        "shortcode": "ABC123",
        "url": "https://www.instagram.com/p/ABC123/",
        "thumbnailUrl": "https://..."
      }
    ]
  },
  {
    "inputUsername": "@someprivateaccount",
    "username": "someprivateaccount",
    "profileUrl": "https://www.instagram.com/someprivateaccount/",
    "status": "private_or_blocked",
    "followers": null
  }
]
```

You can download the dataset in various formats such as JSON, HTML, CSV, or Excel.

### Data table

Main output fields:

| Field | Description |
| --- | --- |
| `inputUsername` | Original input value you provided |
| `username` | Normalized Instagram username |
| `profileUrl` | Canonical profile URL |
| `status` | `ok`, `not_found`, `private_or_blocked`, or `error` |
| `fullName` | Profile display name |
| `biography` | Profile bio text |
| `followers` | Follower count |
| `following` | Following count |
| `postsCount` | Total post count |
| `isVerified` | Verification flag |
| `isPrivate` | Private-account flag |
| `isBusiness` | Business-account flag |
| `category` | Profile category |
| `profilePic` | Profile picture URL |
| `latestPosts` | First 12 posts returned by Instagram |

### Pricing / Cost estimation

How much does it cost to scrape Instagram profiles? This Actor is designed to be economical because it uses plain HTTP instead of a browser. That usually means lower compute usage and a simpler proxy footprint, so it is a strong fit for small runs and repeated production scraping.

Your total cost depends on the number of profiles, proxy usage, and your Apify plan. If you are on a free or low-volume plan, start with a small batch first to understand your run pattern before scaling up.

### Tips or Advanced options

- Use a clean, deduplicated username list so you do not spend events on repeated profiles.
- Keep Apify Proxy enabled for production runs to reduce blocking risk.
- Prefer smaller batches when you are testing new inputs or validating schema changes.
- If you only need a few fields, export just the columns you care about from the dataset.
- For fuller post history and pagination, use the sibling [`instagram-posts`](https://apify.com/store?query=instagram-posts) Actor instead of this one.

### FAQ, disclaimers, and support

This Actor is intended for public data extraction and should be used in compliance with Instagram’s terms, rate limits, and any applicable laws or policies. Availability can change if Instagram alters the endpoint or tightens access controls.

If you hit an issue, check the Apify Console **Issues** tab for feedback and troubleshooting. For custom scraping workflows, scheduled pipelines, or integration help, Apify can build a tailored solution for your use case.

# Actor input Schema

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

Instagram profile handles, profile URLs, or bare usernames. You can mix formats in the same list.

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

Use Apify Proxy for safer, production-friendly requests. Datacenter proxy is recommended.

## Actor input object example

```json
{
  "usernames": [
    "nasa"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `profiles` (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": [
        "nasa"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

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

# Run the Actor and wait for it to finish
run = client.actor("gopalakrishnan/instagram-profile").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call gopalakrishnan/instagram-profile --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=gopalakrishnan/instagram-profile",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Instagram Profile Scraper - Fast, Low Cost, No Login",
        "description": "Extract public Instagram profile stats fast and cheap — no login, no browser. Feed it usernames, @handles, or profile URLs and get follower/following counts, bio, verification status, external links, profile pics, and latest posts as clean structured JSON. Ideal for leads & creator research",
        "version": "1.0",
        "x-build-id": "fFfg1SRmrILx3Ry0w"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/gopalakrishnan~instagram-profile/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-gopalakrishnan-instagram-profile",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/gopalakrishnan~instagram-profile/runs": {
            "post": {
                "operationId": "runs-sync-gopalakrishnan-instagram-profile",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/gopalakrishnan~instagram-profile/run-sync": {
            "post": {
                "operationId": "run-sync-gopalakrishnan-instagram-profile",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "usernames"
                ],
                "properties": {
                    "usernames": {
                        "title": "Profiles to scrape",
                        "type": "array",
                        "description": "Instagram profile handles, profile URLs, or bare usernames. You can mix formats in the same list.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Use Apify Proxy for safer, production-friendly requests. Datacenter proxy is recommended.",
                        "default": {
                            "useApifyProxy": true
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
