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

This scraper extracts structured public data from Instagram profiles, including bio, full name, post counts, and follower metrics. Unlike most scrapers, it delivers precise follower counts and retrieves top posts with exact likes, comments, captions, and timestamps — straight from official data.

- **URL**: https://apify.com/lazyscraper/instagram-profile-scraper.md
- **Developed by:** [Lazy Scraper](https://apify.com/lazyscraper) (community)
- **Categories:** Social media, Lead generation
- **Security:** Limited permissions
- **Stats:** 54 total users, 1 monthly users, 100.0% runs succeeded, 5 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 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

### What is Instagram Profile Scraper?

A specialized data extraction tool that retrieves structured profile information from Instagram accounts using either:

- **Vanity Usernames** (e.g. `stephencurry30`)

Captures **publicly available data** including personal bio and audience metrics, with precise follower counts for public account.

### Why Scrape Instagram Profiles?

Collected data enables:

- 📩 **Lead Generation** from public contact information
- ✅ **Influencer Vetting** with verified follower metrics
- 🔍 **Competitor Analysis** through bio/content patterns
- 📊 **Audience Demographics** research
- 🚫 **Fake Account Identification**

### Key Features

| Feature                           | Description                                                                                                                        |
| --------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| 📊 **Precise Follower Metrics**   | Accurate follower counts from official sources                                                                                     |
| 📞 **Contact Extraction**         | Aggregates emails/phones from public bios                                                                                          |
| 📁 **Structured Exports**         | Export data to JSON, CSV, Excel, or XML                                                                                            |
| ✅ **Profile Validation**          | Detects active, deleted, or unavailable accounts                                                                                   |
| 🔒 **Compliance Focused**         | Strict adherence to Instagram's public data policies                                                                               |
| 🌟 **Top Posts Insights**         | Retrieves recent posts with exact engagement stats (likes, comments, captions, timestamps, shortcodes) directly from official data |
| ⏱️ **Timestamp Accuracy**         | Captures official post creation time in UNIX timestamp for precise chronological analysis                                          |
| 📈 **Engagement Analytics Ready** | Provides per-post metrics ideal for computing engagement rate, trends, and performance benchmarking                                |

### Output Data Structure

````json
{
    "description": "Believer. Husband. Father. Founder. Philanthropist. And…Olympic Gold Medalist. Philippians 4:13",
    "posts": 1400,
    "followers": 58200000,
    "follows": 1200,
    "followers_precise": 58162599,
    "full_name": "Wardell Curry",
    "posts_precise": 1439,
    "top_posts": [
        {
            "timestamp": 1755905292,
            "caption": "A big day for @eatlearnplay as we celebrate our 20th schoolyard build since launching the nonprofit. From the beginning, we have set out to make a real impact on youth in The Bay. Thanks to the incredible support from our partners, supporters, and volunteers, we’re proud to say we’ve done just that, and we’re only getting started. 💪🏽",
            "comment_count": 164,
            "like_count": 73729,
            "shortcode": "DNrPy_65Cx2"
        },
        {
            "timestamp": 1755880487,
            "caption": "We made a ‘super’ shoe for hoops? Yup! Call it the Series 7. Go behind the scenes of my latest campaign shoot with @currybrand - get them today, 8\\/22.\n\n#CurryBrandPartner",
            "comment_count": 1172,
            "like_count": 380731,
            "shortcode": "DNqgfCNx6Lw"
        },
        {
            "timestamp": 1755792430,
            "caption": "The warmth and energy of the people, the culture, the food, and really every moment made this trip one for the books. China, I'll be carrying these memories with me for a long time!",
            "comment_count": 719,
            "like_count": 89968,
            "shortcode": "DNn4dvqxghF"
        },
        {
            "timestamp": 1755659073,
            "caption": "Two days in China and the energy has been incredible. The fans and locals have shown me and my team tremendous love. See you at the Grand Finale!",
            "comment_count": 539,
            "like_count": 207512,
            "shortcode": "DNj6LADxM9N"
        },
        {
            "timestamp": 1755564144,
            "caption": "Chongqing, you showed out. 🔥\n\nDay 1 of the Curry Brand China Tour was packed with Curry Camp, Curry Con, and so many moments in between. The fans brought incredible energy from the jump, and getting to connect with city executives gave us a deeper look at what makes this place so special.\n\nIf this is how the trip starts, we’re in for something unforgettable.",
            "comment_count": 3106,
            "like_count": 790724,
            "shortcode": "DNhFG9RBbeZ"
        },
        {
            "timestamp": 1755560627,
            "caption": "The first ever Curry Con in Chongqing goes craaazy. 🔥\n\nThe amount of creativity and love from the fans and vendors is unmatched! #UAPartner",
            "comment_count": 223,
            "like_count": 138196,
            "shortcode": "DNg-ZrOgwld"
        }
    ]
}



# Actor input Schema

## `user_names` (type: `array`):

List of target Instagram usernames to scrape

## Actor input object example

```json
{
  "user_names": [
    "stephencurry30"
  ]
}
````

# 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 = {
    "user_names": [
        "stephencurry30"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("lazyscraper/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 = { "user_names": ["stephencurry30"] }

# Run the Actor and wait for it to finish
run = client.actor("lazyscraper/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 '{
  "user_names": [
    "stephencurry30"
  ]
}' |
apify call lazyscraper/instagram-profile-scraper --silent --output-dataset

```

## MCP server setup

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