# Instagram Profile Scraper 💰 $1/1K — Followers, Bio & Contact (`blackfalcondata/instagram-profile-scraper`) Actor

💰 $1 per 1,000 profiles. Scrape public instagram.com accounts without a login: follower counts, bio and links, business contact details and engagement from each account's own recent posts — all from a single request per handle.

- **URL**: https://apify.com/blackfalcondata/instagram-profile-scraper.md
- **Developed by:** [Black Falcon Data](https://apify.com/blackfalcondata) (community)
- **Categories:** Social media, Lead generation, Automation
- **Stats:** 3 total users, 2 monthly users, 60.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 results

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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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

### What does Instagram Profile Scraper do?

💰 $1/1K — Instagram Profile Scraper returns one row for any public account on [instagram.com](https://instagram.com), without a login and without a session cookie. Each row carries the follower, following and post counts, the full name and biography with every bio link and the label the account displays on it, the category and verification flags, the public business contact block (email, phone, address), and engagement averaged over the account's own recent posts — average likes, average comments and an engagement rate derived from them. All of it arrives in one public request per handle in the normal case, which is why it costs what it costs.

Follower lists are not readable without a logged-in session, so the engagement figures come from the account's public posts rather than from its follower base. Every row carries a `status`, and any count the run could not measure is `null` rather than zero — an account that could not be read is never charged.

### How to use this actor

- 👉 **Register for a free Apify account** — no credit card required.
- 🎉 Just click **[Sign up free on Apify →](https://console.apify.com/sign-up?fpr=1h3gvi)** and complete a quick signup.
- 💰 A free Apify account includes $5 in monthly credits — enough to test this actor.
- ⏳ Scrape during the free trial, with no commitment or upfront payment required.

### Key features

- **💰 $1 per 1,000 profiles:** no login and no session cookie, and one public request per account in the normal case - a small share of business accounts need a second, and you are charged for neither the retry nor the second read. Rivals on this surface charge $0.70 to $50.00 per 1,000; the median is $2.50.
- **👤 The whole public profile in one row:** follower, following, post and long-form-video counts, full name, biography, category, verification and privacy flags, and the profile picture in both sizes.
- **📇 Business contact block:** the email, phone and address an account publishes on its profile - the same request, no extra fetch, no enrichment step.
- **🔗 Bio links with their labels:** every link in the bio, each with the title the account displays on it and its link type. A bare URL list throws the label away.
- **📊 Engagement without a second call:** average likes, average comments and an engagement rate, computed over the posts the profile response already carries. A post whose counts are missing is not counted as zero - it does not contribute, and it does not inflate the basis.
- **🖼️ Recent posts, opt-in:** add the 12 most recent posts with caption, likes, comments, view count, hashtags, mentions and tagged users. Off by default because it makes each record substantially larger.
- **🧭 `status` on every row:** `ok`, `private`, `not_found` or `not_fetched`. Any count the run could not measure is `null`, never `0` - and an account that could not be read is not charged and not delivered, so a row you receive is a row that was actually read.
- **🔁 Change tracking that does not bill you for noise:** follower counts move on any live account, so they are deliberately excluded from what counts as a change. Name, biography, bio links, category, contact details and the account id are what is tracked.
- **🔀 Usernames or URLs:** type handles, paste profile URLs, or mix both. `@name`, `name` and `https://instagram.com/name/` all resolve to the same account and share one history.
- **📦 Compact mode:** AI-agent and MCP-friendly payloads with core fields only - including `status`, so a compact row still says whether its numbers mean anything.
- **🔔 Notifications:** Telegram, Slack, Discord, WhatsApp Cloud API and a generic webhook out of the box. Pair with change tracking for alerts when a watched account renames, rewrites its bio or swaps its link in bio.

### What data can you extract from instagram.com?

Each result includes Core listing fields (`listingId`, `listingKey`, `searchQuery`, `contentQuality`, `scrapedAt`, `url`, `portalUrl`, and `changeType`, and more), detail fields when enrichment is enabled (`detailFetched`), and contact information (`businessEmail`, `businessPhoneNumber`, `businessContactMethod`, and `extractedEmails`). In standard mode, all fields are always present — unavailable data points are returned as `null`, never omitted. In compact mode, only core fields are returned.

Enable detail enrichment in the input to get richer fields such as contact information where the source provides them.

### Input

The main inputs are a search keyword and a result limit. Additional filters and options are available in the input schema.

Key parameters:

- **`query`** — One or more Instagram usernames. A pasted profile URL or an @handle works too — both are normalised to the bare username. For several accounts in one run, paste a JSON array as text: \["nasa", "natgeo"].
- **`startUrls`** — Instagram profile URLs to scrape, as an alternative to typing usernames. (default: `[]`)
- **`maxResults`** — Maximum total results (0 = unlimited). (default: `25`)
- **`includeDetails`** — Fetch each account's public profile. Off returns only the resolved username and URL. Incremental mode turns this back on by itself - there is nothing to compare between runs without it. (default: `true`)
- **`includeRecentPosts`** — Add the account's 12 most recent posts (caption, likes, comments, views, URL) to each row. They arrive in the same request, so this costs nothing extra to fetch — but it makes each record substantially larger. Off by default. (default: `false`)
- **`descriptionMaxLength`** — Truncate the biography and each post caption to this many characters. 0 = no cap. Useful for LLM pipelines and for keeping records small. (default: `0`)
- **`compact`** — Core fields only (for AI-agent/MCP workflows). (default: `false`)
- **`incrementalMode`** — Compare each run against the previous one and emit only what changed. All runs of this actor share ONE history by default - that is what stops an edit to your username list from re-billing every account you kept. Set State Key to keep separate watchlists apart. (default: `false`)
- **`stateKey`** — Optional. Names the history a run reads and writes. Leave it empty and every run shares one history. Set it to a different value per watchlist when you want two lists tracked independently.
- **`telegramToken`** — Telegram bot token (from @BotFather). Required for Telegram notifications.
- **`telegramChatId`** — Telegram chat or channel ID (e.g. "-100123456789"). Required when telegramToken is set.
- **`discordWebhookUrl`** — Discord incoming webhook URL. Server Settings → Integrations → Webhooks → New Webhook.
- ...and 12 more parameters

### Input examples

**Basic search** — Keyword-driven search with a result cap.

→ Full payload per result — all standard fields populated where the source provides them.

```json
{
  "query": "nasa",
  "maxResults": 50
}
```

**Incremental tracking** — Only emit listings that changed since the previous run with this `stateKey`.

→ First run builds the baseline state. Subsequent runs emit only records that are new or whose tracked content changed. Set `emitUnchanged: true` to include unchanged records as well.

```json
{
  "query": "nasa",
  "maxResults": 200,
  "incrementalMode": true,
  "stateKey": "nasa-tracker"
}
```

**Compact output for AI agents** — Return only core fields for AI-agent and MCP workflows.

→ Small payload with the most important fields — ideal for piping into LLMs without token overhead.

```json
{
  "query": "nasa",
  "maxResults": 50,
  "compact": true
}
```

### Output

Each run produces a dataset of structured listing records. Results can be downloaded as JSON, CSV, or Excel from the Dataset tab in Apify Console.

### Example listing record

```json
{
  "listingId": "9457f6c8022d556f54f3d050eae5a646188aa7c141b2c52598a4fb324e67a05e",
  "listingKey": "nasa",
  "searchQuery": "nasa",
  "contentQuality": "full",
  "detailFetched": true,
  "scrapedAt": "2026-09-04T18:47:56.004Z",
  "source": "instagram.com",
  "url": "https://www.instagram.com/nasa/",
  "portalUrl": "https://www.instagram.com/nasa/",
  "status": "ok",
  "username": "nasa",
  "userId": "528817151",
  "fbid": "17841401474538262",
  "fullName": "NASA",
  "biography": "Making the seemingly impossible, possible. ✨",
  "profilePicUrl": "https://scontent-lga3-2.cdninstagram.com/v/t51.2885-19/29090066_159271188110124_1152068159029641216_n.jpg?stp=dst-jpg_s150x150_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_h...",
  "profilePicUrlHd": "https://scontent-lga3-2.cdninstagram.com/v/t51.2885-19/29090066_159271188110124_1152068159029641216_n.jpg?stp=dst-jpg_s320x320_tt6&efg=eyJ2ZW5jb2RlX3RhZyI6InByb2ZpbGVfcGljLmRqYW5nby4xMDgwLmMyIn0&_nc_h...",
  "followersCount": 104403529,
  "followingCount": 91,
  "postsCount": 4912,
  "recentPostsSampled": 12,
  "avgLikes": 351868,
  "avgComments": 1158,
  "engagementRate": 0.0033813639894618246,
  "latestPosts": [
    {
      "id": "3967213292204992434",
      "shortcode": "DcOX3hWFiey",
      "url": "https://www.instagram.com/p/DcOX3hWFiey/",
      "takenAt": "2026-08-19T14:11:47.000Z",
      "caption": "With your powers combined…\n\nThis colorful picture of the cosmos is the product of teamwork between our @NASAHubble, @NASAWebb, and @NASAChandraXray telescopes. Scientists brought their data together t...",
      "likes": 532925,
      "comments": 3847,
      "isVideo": false,
      "imageUrl": "https://scontent-lga3-2.cdninstagram.com/v/t51.82787-15/780550892_18639053554049152_7611034912661011809_n.jpg?stp=dst-jpg_e35_s1080x1080_sh2.08_tt6&_nc_ht=scontent-lga3-2.cdninstagram.com&_nc_cat=1&_n...",
      "isPinned": true,
      "commentsDisabled": false,
      "width": 1080,
      "height": 952,
      "hashtags": [
        "NASA",
        "Universe",
        "Nebula"
      ],
      "mentions": [
        "NASAHubble",
        "NASAWebb",
        "NASAChandraXray"
      ]
    },
    {
      "id": "3966649126543481665",
      "shortcode": "DcMXl1IPNtB",
      "url": "https://www.instagram.com/p/DcMXl1IPNtB/",
      "takenAt": "2026-08-18T19:37:40.000Z",
      "caption": "Soothing spacewalk scenes. \n\nToday, August 18, NASA’s @astro_anil and ESA’s @soph_astro completed a 6 hour, 23 minute spacewalk to remove a failed communications antenna and stow it outside the Intern...",
      "likes": 101013,
      "comments": 859,
      "isVideo": true,
      "videoViewCount": 604435,
      "imageUrl": "https://scontent-lga3-3.cdninstagram.com/v/t51.82787-15/779017700_18615481711026724_2930580986888954454_n.jpg?stp=dst-jpg_e15_tt6&_nc_ht=scontent-lga3-3.cdninstagram.com&_nc_cat=104&_nc_oc=Q6cZ2gGgVx6...",
      "productType": "clips",
      "isPinned": true,
      "commentsDisabled": false,
      "hasAudio": true,
      "width": 750,
      "height": 1332,
      "taggedUsers": [
        "nasa",
        "iss",
        "soph_astro",
        "astro_anil"
      ],
      "mentions": [
        "astro_anil",
        "soph_astro"
      ]
    },
    {
      "id": "3962359916161594424",
      "shortcode": "Db9IVmrDvQ4",
      "url": "https://www.instagram.com/p/Db9IVmrDvQ4/",
      "takenAt": "2026-08-12T21:28:58.000Z",
      "caption": "When the Moon and Sun align\n\nThis rare sight — a total solar eclipse — was photographed in San Millán de los Caballeros, Spain, on Aug. 12.\n\nThe Sun is 400 times wider than the Moon, but in a cosmic c...",
      "likes": 2434329,
      "comments": 4675,
      "isVideo": false,
      "imageUrl": "https://scontent-lga3-3.cdninstagram.com/v/t51.82787-15/773519852_18636422329049152_436670562988925045_n.jpg?stp=dst-jpg_e35_s1080x1080_sh2.08_tt6&_nc_ht=scontent-lga3-3.cdninstagram.com&_nc_cat=104&_...",
      "isPinned": true,
      "commentsDisabled": false,
      "width": 1080,
      "height": 607,
      "hashtags": [
        "NASA",
        "Eclipse",
        "TotalSolarEclipse"
      ]
    },
    {
      "id": "3978909121511949930",
      "shortcode": "Dc37MPNSAZq",
      "url": "https://www.instagram.com/p/Dc37MPNSAZq/",
      "takenAt": "2026-09-04T17:31:24.000Z",
      "caption": "Chez ISS - episode 3: next evolution, combining simple ingredients to get that “back on Earth flavor”",
      "likes": 12629,
      "comments": 195,
      "isVideo": true,
      "videoViewCount": 198866,
      "imageUrl": "https://scontent-lga3-2.cdninstagram.com/v/t51.82787-15/795341832_18088892975665630_6006431371420515188_n.jpg?stp=dst-jpg_e15_tt6&_nc_ht=scontent-lga3-2.cdninstagram.com&_nc_cat=1&_nc_oc=Q6cZ2gGgVx6y-...",
      "productType": "clips",
      "isPinned": false,
      "commentsDisabled": false,
      "hasAudio": false,
      "width": 750,
      "height": 1333,
      "taggedUsers": [
        "nasa",
        "iss",
        "astro_jessica",
        "astro_hathaway"
      ]
    },
    {
      "id": "3978873996351670898",
      "shortcode": "Dc3zNGWlIpy",
      "url": "https://www.instagram.com/p/Dc3zNGWlIpy/",
      "takenAt": "2026-09-04T16:19:24.000Z",
      "caption": "Godspeed, Roman.\n \nICYMI: the Nancy Grace Roman Space Telescope—our next orbiting observatory—lifted off on the morning of Sunday, Aug. 30. It is currently on its way to its destination 1 million mile...",
      "likes": 54686,
      "comments": 258,
      "isVideo": false,
      "imageUrl": "https://scontent-lga3-2.cdninstagram.com/v/t51.82787-15/795662375_18644468857049152_1556453249182860646_n.jpg?stp=dst-jpg_e35_p1080x1080_sh2.08_tt6&_nc_ht=scontent-lga3-2.cdninstagram.com&_nc_cat=1&_n...",
      "isPinned": false,
      "commentsDisabled": false,
      "width": 1080,
      "height": 1440,
      "taggedUsers": [
        "nasagoddard",
        "nasauniverse"
      ],
      "hashtags": [
        "NASA",
        "Roman",
        "AdoptAPixel"
      ]
    },
    "... 7 more items"
  ],
  "highlightReelCount": 6,
  "igtvVideoCount": 171,
  "isPrivate": false,
  "isVerified": true,
  "isBusinessAccount": true,
  "isProfessionalAccount": true,
  "isJoinedRecently": false,
  "hasClips": true,
  "hasChannel": false,
  "hasGuides": false,
  "hasArEffects": false,
  "businessCategoryName": "Government Agencies",
  "businessContactMethod": "CALL",
  "externalUrl": "https://www.nasa.gov/",
  "bioLinks": [
    {
      "url": "https://www.nasa.gov",
      "title": "NASA.gov Homepage",
      "linkType": "external"
    },
    {
      "url": "http://intern.nasa.gov",
      "title": "NASA Internships",
      "linkType": "external"
    },
    {
      "url": "https://www.nasa.gov/maxpower",
      "title": "MAX POWER",
      "linkType": "external"
    },
    {
      "url": "https://science.nasa.gov/blogs/roman/",
      "title": "Roman Space Telescope Blog",
      "linkType": "external"
    },
    {
      "url": "https://go.nasa.gov/AdoptAPixel",
      "title": "Claim a Pixel on One of Roman’s First Images",
      "linkType": "external"
    }
  ],
  "relatedProfiles": [
    "universiauni",
    "astrofalls",
    "bosplanet",
    "jaxajp",
    "natgeoanimals",
    "... 44 more items"
  ]
}
```

### Incremental fields

Set `incrementalMode` and every run after the first emits only what changed.
Each record carries a `changeType`:

| Value | Meaning |
|---|---|
| `NEW` | first time this account has been seen under this state |
| `UPDATED` | a tracked field changed since the last run |
| `UNCHANGED` | nothing tracked changed - suppressed unless you set `emitUnchanged` |

Those three are the whole set. There is no "disappeared" classification and no "came back" one either, on purpose - and the two are the same fact. The universe this actor sees is your own list of usernames, never Instagram's, so an account missing from a run is one you stopped asking about - not one that went away. An account that really is gone is reported on its own row as `status: not_found`. Nothing is ever marked absent, so nothing can be marked returned either; an account you stop and later resume asking about simply keeps its history, and reads as `UNCHANGED` if it did not change while you were away.

Follower, following and post counts are deliberately **not** tracked fields: they move on any live account, so tracking them would mark every profile as changed on every run and charge you for it. What is tracked is the account's identity and posture - name, biography, bio links, category, business contact details, verified and private flags, and the account id itself.

### How to scrape instagram.com

1. Go to [Instagram Profile Scraper](https://apify.com/blackfalcondata/instagram-profile-scraper?fpr=1h3gvi) in Apify Console.
2. Enter a search keyword.
3. Set `maxResults` to control how many results you need.
4. Enable `includeDetails` if you need contact info.
5. Click **Start** and wait for the run to finish.
6. Export the dataset as JSON, CSV, or Excel.

### Use cases

- Extract listing data from instagram.com for market research and competitive analysis.
- Monitor new and changed listings on scheduled runs without processing the full dataset every time.
- Use structured location data for regional analysis, mapping, and geo-targeting.
- Feed structured data into AI agents, MCP tools, and automated pipelines using compact mode.
- Export clean, structured data to dashboards, spreadsheets, or data warehouses.

### How much does it cost to scrape instagram.com?

Instagram Profile Scraper uses [pay-per-event](https://docs.apify.com/platform/actors/paid-actors/pay-per-event) pricing. You pay a small fee when the run starts and then for each result that is actually produced.

- **Run start:** $0.01 per run
- **Per result:** $0.001 per listing record

Example costs:

- 10 results: **$0.02**
- 25 results: **$0.035**
- 100 results: **$0.11**
- 200 results: **$0.21**
- 500 results: **$0.51**

#### Example: recurring monitoring savings

These examples compare full re-scrapes with incremental runs at different churn rates. Churn is the share of listings that are new or whose tracked content changed since the previous run. Actual churn depends on your query breadth, source activity, and polling frequency — the scenarios below are examples, not predictions.

Example setup: 100 listings per run, daily polling (30 runs/month). Costs scale linearly with the number of listings.

| Churn rate | Full re-scrape run cost | Incremental run cost | Savings vs full re-scrape | Monthly cost after baseline |
|---|---:|---:|---:|---:|
| 5% — stable niche query | $0.11 | $0.01 | $0.10 (86%) | $0.45 |
| 15% — moderate broad query | $0.11 | $0.03 | $0.08 (77%) | $0.75 |
| 30% — high-volume aggregator | $0.11 | $0.04 | $0.07 (64%) | $1.20 |

Full re-scrape monthly cost at the same cadence: $3.30. First month with incremental costs $0.55 / $0.84 / $1.27 for the 5% / 15% / 30% scenarios because the first run builds baseline state at full cost before incremental savings apply.

Platform usage is included in the per-result fee shown above.

### FAQ

#### How many results can I get from instagram.com?

The number of results depends on the search query and available listings on instagram.com. Use the `maxResults` parameter to control how many results are returned per run.

#### Does Instagram Profile Scraper support recurring monitoring?

Yes. Enable incremental mode to only receive new or changed listings on subsequent runs. This is ideal for scheduled monitoring where you want to track changes over time without re-processing the full dataset.

#### Can I integrate Instagram Profile Scraper with other apps?

Yes. Instagram Profile Scraper works with Apify's [integrations](https://apify.com/integrations?fpr=1h3gvi) to connect with tools like Zapier, Make, Google Sheets, Slack, and more. You can also use webhooks to trigger actions when a run completes.

#### Can I use Instagram Profile Scraper with the Apify API?

Yes. You can start runs, manage inputs, and retrieve results programmatically through the [Apify API](https://docs.apify.com/api/v2). Client libraries are available for JavaScript, Python, and other languages.

#### Can I use Instagram Profile Scraper through an MCP Server?

Yes. Apify provides an [MCP Server](https://apify.com/apify/actors-mcp-server?fpr=1h3gvi) that lets AI assistants and agents call this actor directly. Use compact mode, `descriptionMaxLength`, and `excludeEmptyFields` to keep payloads manageable for LLM context windows.

#### Is it legal to scrape instagram.com?

This actor extracts publicly available data from instagram.com. Web scraping of public information is generally considered legal, but you should always review the target site's terms of service and ensure your use case complies with applicable laws and regulations, including GDPR where relevant.

#### Your feedback

If you have questions, need a feature, or found a bug, please [open an issue](https://apify.com/blackfalcondata/instagram-profile-scraper/issues?fpr=1h3gvi) on the actor's page in Apify Console. Your feedback helps us improve.

### You might also like

- [Douyin \[Just 💰$0.5\] — Hot Search, Trending & Viral](https://apify.com/blackfalcondata/douyin-scraper?fpr=1h3gvi) — 💰 $0.50 per 1,000 results. Scrape douyin.com real-time trending boards — hot search, seeding &.
- [Facebook Ads Library Scraper \[💰$0.05/1k\]](https://apify.com/blackfalcondata/facebook-ads-library-scraper?fpr=1h3gvi) — Scrape facebook.com/ads/library by keyword or advertiser: ad copy, image and video URLs, landing.
- [Instagram Audience Scraper](https://apify.com/blackfalcondata/instagram-audience-scraper?fpr=1h3gvi) — Audit any public instagram.com account's audience without a login. Samples the accounts that.
- [Meta Ads Library Scraper \[💰$0.05/1k\]](https://apify.com/blackfalcondata/meta-ads-library-scraper?fpr=1h3gvi) — Scrape Meta's Ad Library across Facebook, Instagram, WhatsApp, Threads, Messenger and Audience.
- [Zhihu Scraper — Hot List, Q\&A & Profiles](https://apify.com/blackfalcondata/zhihu-scraper?fpr=1h3gvi) — Scrape zhihu.com — trending hot-list questions (热榜), full Q\&A answers with text and engagement.

### Getting started with Apify

New to Apify? [Create a free account with $5 credit](https://console.apify.com/sign-up?fpr=1h3gvi) — no credit card required.

1. Sign up — $5 platform credit included
2. Open this actor and configure your input
3. Click **Start** — export results as JSON, CSV, or Excel

Need more later? [See Apify pricing](https://apify.com/pricing?fpr=1h3gvi).

### Disclaimer

This actor accesses only publicly available data on instagram.com. You are responsible for how you use the extracted data — in particular any personal information such as names, phone numbers, or email addresses — and for complying with Instagram Profile's terms of use, applicable data-protection law (including the GDPR where it applies), and the anti-spam rules of your jurisdiction.

This actor is not affiliated with, endorsed by, or connected to Instagram Profile.

### Search keywords

instagram scraper, instagram api, apify instagram, instagram data extraction, instagram profile scraper, instagram profile api, apify instagram profile, instagram profile data extraction, instagram.com scraper, instagram.com data, instagram.com api.

# Actor input Schema

## `query` (type: `string`):

One or more Instagram usernames. A pasted profile URL or an @handle works too — both are normalised to the bare username. For several accounts in one run, paste a JSON array as text: \["nasa", "natgeo"].

## `startUrls` (type: `array`):

Instagram profile URLs to scrape, as an alternative to typing usernames.

## `maxResults` (type: `integer`):

Maximum total results (0 = unlimited).

## `includeDetails` (type: `boolean`):

Fetch each account's public profile. Off returns only the resolved username and URL. Incremental mode turns this back on by itself - there is nothing to compare between runs without it.

## `includeRecentPosts` (type: `boolean`):

Add the account's 12 most recent posts (caption, likes, comments, views, URL) to each row. They arrive in the same request, so this costs nothing extra to fetch — but it makes each record substantially larger. Off by default.

## `descriptionMaxLength` (type: `integer`):

Truncate the biography and each post caption to this many characters. 0 = no cap. Useful for LLM pipelines and for keeping records small.

## `compact` (type: `boolean`):

Core fields only (for AI-agent/MCP workflows).

## `incrementalMode` (type: `boolean`):

Compare each run against the previous one and emit only what changed. All runs of this actor share ONE history by default - that is what stops an edit to your username list from re-billing every account you kept. Set State Key to keep separate watchlists apart.

## `stateKey` (type: `string`):

Optional. Names the history a run reads and writes. Leave it empty and every run shares one history. Set it to a different value per watchlist when you want two lists tracked independently.

## `telegramToken` (type: `string`):

Telegram bot token (from @BotFather). Required for Telegram notifications.

## `telegramChatId` (type: `string`):

Telegram chat or channel ID (e.g. "-100123456789"). Required when telegramToken is set.

## `discordWebhookUrl` (type: `string`):

Discord incoming webhook URL. Server Settings → Integrations → Webhooks → New Webhook.

## `slackWebhookUrl` (type: `string`):

Slack incoming webhook URL. api.slack.com/messaging/webhooks.

## `notificationLimit` (type: `integer`):

Maximum number of listings included in each notification message (1–20).

## `notifyOnlyChanges` (type: `boolean`):

When Incremental Mode is on, only send notifications for NEW and UPDATED listings. Has no effect outside incremental mode.

## `whatsappAccessToken` (type: `string`):

WhatsApp Cloud API permanent access token (System User token from Meta Business). Recipient must have messaged the business number within the last 24h (service-conversation window — free since Nov 2024).

## `whatsappPhoneNumberId` (type: `string`):

Your WhatsApp Business phone-number ID (numeric, from Meta dashboard). Required when whatsappAccessToken is set.

## `whatsappTo` (type: `string`):

Recipient phone in E.164 format without + (e.g. "436641234567"). Recipient must have messaged your business number within last 24h.

## `webhookUrl` (type: `string`):

Receives a JSON POST with {metadata, items} after each run. Universal escape hatch for n8n / Make / Zapier / custom backends.

## `webhookHeaders` (type: `object`):

Optional JSON object of custom headers (e.g. {"Authorization":"Bearer ..."}).

## `appConnector` (type: `string`):

Optional. Pick a connected app under Settings → API & Integrations to receive your results (including any contact details). Best-effort across MCP connectors as Apify expands its catalog.

## `mcpIssueTeam` (type: `string`):

Only when the connected app is an issue tracker: the team (name or ID) the summary issue is created under, if that app requires one.

## `excludeEmptyFields` (type: `boolean`):

Drop null, empty-string, and empty-array fields from each record before push. Smaller payloads for AI agents and dashboards.

## `emitUnchanged` (type: `boolean`):

When incremental mode is on, also emit listings whose content has not changed since the last run.

## Actor input object example

```json
{
  "query": "nasa",
  "startUrls": [],
  "maxResults": 5,
  "includeDetails": true,
  "includeRecentPosts": false,
  "descriptionMaxLength": 0,
  "compact": false,
  "incrementalMode": false,
  "notificationLimit": 5,
  "notifyOnlyChanges": false,
  "excludeEmptyFields": false,
  "emitUnchanged": false
}
```

# 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 = {
    "query": "nasa",
    "maxResults": 5,
    "excludeEmptyFields": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("blackfalcondata/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 = {
    "query": "nasa",
    "maxResults": 5,
    "excludeEmptyFields": False,
}

# Run the Actor and wait for it to finish
run = client.actor("blackfalcondata/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 '{
  "query": "nasa",
  "maxResults": 5,
  "excludeEmptyFields": false
}' |
apify call blackfalcondata/instagram-profile-scraper --silent --output-dataset

```

## MCP server setup

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