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

Instagram profile scraper, no login: followers, bio, category, posts count, 12 latest posts, reel views, engagement rate and similar accounts in one row. 322 profiles in 22 seconds. Age-restricted profiles included. Add-ons: business email & phone, join date & country. From $0.95/1K.

- **URL**: https://apify.com/nologin/instagram-profile-scraper.md
- **Developed by:** [NoLogin API](https://apify.com/nologin) (community)
- **Categories:** Social media, Lead generation, Marketing
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.95 / 1,000 profiles

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/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: followers, latest posts, reel views and engagement in one row

**Paste usernames — get one row per profile with everything Instagram shows: followers, bio, links, category, exact posts count, the 12 latest posts, the 12 latest reels with views, and the engagement rate.** No login, no cookies. $1.25 per 1,000 profiles on Starter.

![Instagram profile data — followers, category, engagement rate and reel views of real profiles](https://media.fypspy.com/nologin/instagram-profile/profiles-overview-v1.png)

- ⚡ **Fast** — 322 profiles in 22 seconds on paid plans (15 November 2026); rows appear while the run goes.
- 📊 **Engagement ready** — engagement rate, average likes and comments, average and median reel views, posts per week, last post date, top hashtags, best post.
- 🎬 **12 latest posts + 12 latest reels** — likes, comments, views, captions, tagged users, media files.
- 🏷️ **Category, account type, exact posts count, highlights** — without login.
- 📧 **E-mails and phones written in the bio** — in every row, free.
- 🔞 **Age-restricted profiles** (alcohol brands and the like) — in the row at the same price.
- 🪢 **Similar accounts** — up to 50 in every row, included; or each as a full row of its own.
- 🔎 **Filters** — followers, engagement, last post date, account type, category, words in the bio.
- 📇 **Add-ons with a login** (paid Apify plans): business email, phone & address · join date & country.
- 🔓 **Never charged:** usernames that don't exist and duplicates.

![One Instagram profile row: profile, engagement, 12 latest posts and reels](https://media.fypspy.com/nologin/instagram-profile/profile-one-row-v1.png)

### Why scrape Instagram profiles?

- **Vet influencers** by followers, engagement rate, reel views and how often they post — in one row.
- **Enrich username lists** with category, posts count, bio links and, as add-ons, business email and phone.
- **Find similar accounts** of the creators you already work with, as a list or as full rows.
- **Spot inactive or brand-new accounts** by the date of the last post and the join date add-on.

### What data can I scrape from Instagram profiles?

| Data | What it is |
|---|---|
| Username | Instagram username (handle) |
| Name | Display name |
| Followers | Follower count |
| Following | How many accounts it follows |
| Posts | Exact number of posts on the profile; null when Instagram doesn't show it to visitors |
| Category | Category shown under the name, e.g. Coffee shop — read without login |
| Account type | personal, business or creator |
| Verified | True if the account has the blue check |
| Engagement, % | Engagement in %: (likes + comments) per post ÷ followers × 100, over the latest posts, pinned ones left out |
| Avg likes | Average likes of the latest posts (pinned ones left out) |
| Avg reel views | Average views of the latest reels (pinned ones left out) |
| Latest post | Date of the newest post (UTC) |
| Business email | Public business email from the profile's Email button — with “Business email, phone & address” |
| Business phone | Public business phone from the profile's Call button — with “Business email, phone & address” |
| Joined | Month the account joined Instagram (About this account) |
| Country | Country the account is based in (About this account); empty if Instagram doesn't show it |

Up to 89 fields per row in total — the **Output** tab lists every one of them.

### Compared with Apify's Instagram Profile Scraper

| | This Actor | Apify's Instagram Profile Scraper (Starter) |
|---|---|---|
| Price per 1,000 profiles | $1.25 | $2.30 |
| 12 latest posts in the row | yes | yes |
| 12 latest reels with views | yes | — |
| Engagement rate, top hashtags, best post | yes | — |
| Filters by followers, engagement, activity | yes | — |
| Business email & phone | add-on | — |
| Similar accounts in the row | up to 50 | — |
| Age-restricted profiles (18+) | yes, with posts count | yes |
| A username that doesn't exist | free | charged as a profile |
| Join date & country | $4.65 per 1,000 + check | +$6.00 per 1,000 |

Their prices and fields as listed on Apify on 14 November 2026 — check their page for today's.

### How to scrape Instagram profiles

1. Paste usernames or profile links, one per line — or upload a CSV.
2. Press **Start** — rows stream into the Output tab while the run goes.
3. Download them as JSON, CSV, Excel or HTML, or get them through the API.

Works with any public profile on [Instagram](https://www.instagram.com/) — no login, no cookies, no proxies to set up,
no Instagram account of yours.

**No input at hand?** Press **Start** with an empty input — you get a 3-row sample.

### Input example

```json
{
  "usernames": [
    "natgeo"
  ],
  "includeLatestPosts": true,
  "includeSimilar": true,
  "includeContacts": false,
  "includeAbout": false,
  "includeHidden": false,
  "accountType": "any",
  "onlyVerified": false
}
```

### Output example: Instagram profiles data

```json
{
  "username": "levainbakery",
  "fullName": "Levain Bakery",
  "profileUrl": "https://www.instagram.com/levainbakery/",
  "followers": 678202,
  "following": 1025,
  "posts": 3456,
  "biography": "A neighborhood bakery since 1995 baking BIG beloved cookies and more 🍪🥖\n…oh btw it’s “luh-",
  "externalUrl": "https://levainbakery.com/products/cherry-cookie",
  "category": "Bakery",
  "accountType": "business",
  "isBusiness": true,
  "isVerified": true,
  "isPrivate": false,
  "hasHighlights": true,
  "threadsUsername": "levainbakery",
  "avgLikes": 774.7,
  "avgComments": 13.2,
  "engagementRate": 0.116,
  "postsPerWeek": 7.2,
  "lastPostAt": "2026-11-14T15:07:57Z",
  "daysSinceLastPost": 0,
  "avgReelViews": 57911.4,
  "medianReelViews": 41295.5,
  "latestPosts": [
    {
      "type": "reel",
      "productType": "clips",
      "shortCode": "DfufYRkTKak",
      "url": "https://www.instagram.com/reel/DfufYRkTKak/",
      "id": "4030296724115072676",
      "caption": "Cookies > Pumpkin Pie 🎃 Meet the guest list for our Thanksgiving assortment:\n🍪 Chocolate Chip Walnut\n🍪 Two Chip Chocolat…",
      "mentions": [
        "Goldbelly"
      ],
      "takenAt": "2026-11-14T15:07:57Z",
      "views": 15894,
      "likes": 654,
      "likesHidden": false,
      "comments": 3,
      "commentsDisabled": false,
      "isPinned": false,
      "isPaidPartnership": false,
      "taggedUsers": [
        "goldbelly"
      ],
      "coverUrl": "https://scontent-bos5-1.cdninstagram.com/v/t51.82787-15/903974614_1865…",
      "videoUrl": "https://scontent-bos5-1.cdninstagram.com/o1/v/t2/f2/m86/AQPvwXTkNCDseH…"
    }
  ],
  "latestReels": [
    {
      "shortCode": "DfufYRkTKak",
      "url": "https://www.instagram.com/reel/DfufYRkTKak/",
      "id": "4030296724115072676",
      "views": 15894,
      "likes": 654,
      "comments": 3,
      "takenAt": "2026-11-14T15:07:10Z",
      "isPinned": false,
      "coverUrl": "https://scontent-bos5-1.cdninstagram.com/v/t51.82787-15/903974614_1865…"
    }
  ],
  "relatedProfiles": [
    "caffepanna",
    "krokemcookies",
    "birdeenyc"
  ],
  "publicEmail": null,
  "publicPhone": null,
  "bioEmails": [],
  "bioPhones": [],
  "notCollected": [
    "publicEmail",
    "publicPhone",
    "publicPhoneCountryCode",
    "contactMethod"
  ],
  "note": "Read from Instagram's public view (no login). Email, phone and address come with “Business email, phone & address”; join date and country with “Join date & country” (paid Apify plans)"
}
```

Each row has up to 89 fields — the **Output** tab describes every one of them. Fields Instagram
doesn't show come as `null`, never as a fake `0`.

**Coming from Apify's official Instagram scrapers?** Turn on *Also add Apify-style field names*: every row also gets
`likesCount`, `commentsCount`, `videoPlayCount`, `timestamp`, `displayUrl`, `followersCount`, `followsCount`, `verified`
and more with the same values, and the post type as `Video`, `Image` or `Sidecar` — your sheets, code and n8n flows keep
working. Long list of usernames? Upload it as a CSV or TXT file in *Or upload a list*.

### Limits

- Data without login is what Instagram shows a visitor. What it doesn't show for a profile comes as `null`, never as a guess.
- Private accounts: the profile row only — no posts or reels.
- Views: the 12 latest reels come with their plays. A video among the 12 latest posts gets its plays from the same Reels tab when it is one of those reels — 174 of 199 videos on 30 profiles (15 November 2026); otherwise `null`, named in `notCollected` as `latestPosts.views`. The music and place of the latest posts are not read in this row — `null`, named too.
- Similar accounts: up to 50 per profile; some profiles have none.
- Age-restricted (18+) profiles, such as alcohol brands: the profile is in the row (`isAgeRestricted: true`); Instagram shows their posts, reels and similar accounts only to logged-in adults, so those are `null`.
- Join date & country: when Instagram doesn't answer for a profile, it is not charged (`aboutAvailable: false`).
- If our accounts can't take a profile in time, its row still arrives from the public view and the add-on is not charged — a run never waits.
- **Free Apify plan:** the full result, no cap — read from Instagram's public view and paid from your monthly Apify credit at the Free price. Options that need a logged-in read (business contacts, views, saves, shares) are for paid Apify plans.

### How much does it cost to scrape Instagram profiles?

Pay per event: you pay for the rows you get, plus $0.0005 per run. No subscription to this Actor.

| Apify plan | Per 1,000 profiles | What $5 of free credit gets you |
|---|---|---|
| Free | $2.50 | ≈ 2,000 profiles |
| Starter | $1.25 | — |
| Business and higher | $0.95 | — |

Every event of this Actor on the Starter plan:

| Event | What it is | Price |
|---|---|---|
| Profile | Each profile read: the profile with its category, exact posts count, 12 latest posts, 12 latest reels with views and engagement. A profile your filters leave out counts too — it was read | $1.25 per 1,000 |
| Add-on: logged-in read | Each profile read with a login — for business contacts or join date, or a profile hidden from visitors. Only when you tick one of those boxes | $0.70 per 1,000 |
| Add-on: found contact | Each profile where a business email, phone or WhatsApp was found (only with “Business email, phone & address”) | $7.45 per 1,000 |
| Add-on: join date & country | Each profile where Instagram returned “About this account” (only with “Join date & country”) | $4.65 per 1,000 |

**Typical jobs on Starter:**

- 1,000 profiles ≈ $1.25
- 1,000 profiles + business contacts (470 found) ≈ $5.45
- 1,000 profiles + join date & country ≈ $6.60

**Always free:** usernames that don't exist and duplicates. Set **Maximum cost per run** in the run options to cap any run.

### Chain it with other Actors

Use the rows of an earlier run as the input: pick its dataset in *Or: dataset from another run* — we take the usernames.
For example, get a brand's followers with [Instagram Followers Scraper · No Login](https://apify.com/nologin/instagram-followers-scraper),
then give its dataset to this Actor with *Business email & phone* — you get the emails of the brand's followers. Works with the datasets of Apify's own Instagram Actors too.

### Instagram profiles API: Python, n8n, Make, Zapier and AI agents

Python:

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("nologin/instagram-profile-scraper").call(run_input={'usernames': ['natgeo'], 'includeLatestPosts': True, 'includeSimilar': True, 'includeContacts': False, 'includeAbout': False, 'includeHidden': False, 'accountType': 'any', 'onlyVerified': False})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row)
```

**n8n, Make, Zapier or any HTTP client:** one request runs the Actor and returns the rows —
`POST https://api.apify.com/v2/acts/nologin~instagram-profile-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN`
with the input JSON as the body.

**AI agents (MCP)** — your agent gets this Actor as a tool:

- **Claude Code:** `claude mcp add --transport http apify "https://mcp.apify.com?tools=nologin/instagram-profile-scraper"`
- **Claude, Cursor, VS Code, n8n:** add `https://mcp.apify.com?tools=nologin/instagram-profile-scraper` as a remote MCP server and sign in to Apify.
- **Ask it:** *“Get followers, engagement rate and average reel views for these 50 usernames.”* · *“Which of these creators posted in the last 7 days and have over 2% engagement?”*

### FAQ: scraping Instagram profiles

**How fast is it?**
Measured on 15 November 2026: 322 profiles in 22 seconds on paid Apify plans. Rows appear in the dataset while the run goes. Up to 50,000 usernames per run.

**What comes without login and what needs a box?**
Without login: the profile, category, account type, posts count, latest posts and reels, engagement, highlights, similar accounts, e-mails and phones written in the bio — and age-restricted profiles. With a box (paid Apify plans): business email, phone and address; join date and country.

**How are the logged-in add-ons charged?**
Contacts: $0.70 per 1,000 profiles checked + $7.45 per 1,000 with a contact found. Join date & country: $4.65 per 1,000 where Instagram returns it + the check. Nothing is charged for a box you didn't tick.

**Are private profiles charged?**
Yes — you get their row (followers, bio, category); posts and reels are `null`. Usernames that don't exist come back as free `not_found` rows.

**How is the engagement rate calculated?**
Likes plus comments per post, divided by followers, in percent — over the latest posts, pinned ones left out.

**What about profiles my filters leave out?**
They are not delivered but are charged as a profile: each had to be read. The run summary counts them.

**Where do emails and phones come from?**
Business email, phone and address (the box) come from the profile's own contact buttons. E-mails and phones the owner wrote in the bio or a bio link come free in every row — `bioEmails`, `bioPhones`. No guessing, no outside databases.

**Do I need an Instagram account or cookies?**
No. You only paste usernames, links or keywords. Nothing to log in, no proxies to set up, nothing to install, and your own Instagram account is never involved.

**What am I charged for — and what's free?**
Only the events in the pricing table, plus $0.0005 per run. Rows with an `error` field are free, and duplicates are never returned or charged. Each run's `SUMMARY` record shows results and free rows.

**Can I try it for free?**
Yes. On Apify's free plan you get the full result, read from Instagram's public view and paid from the monthly free credit Apify gives every account. Options that need a logged-in read are for paid plans.

**Can I cap what a run costs?**
Yes. Set **Maximum cost per run** in the run options — the run stops at your limit and `SUMMARY` shows `stoppedAtChargeLimit: true`.

**Can I use it from n8n, Make, Zapier or an AI agent?**
Yes, like any Apify Actor: REST API, webhooks, the n8n, Make and Zapier integrations, and the Apify MCP server for Claude, Cursor, VS Code and other MCP clients. Short timeout in your workflow or agent? Set *Return what's ready after (seconds)*: the run stops on time with what it has collected, and you pay only for that.

### For AI agents

```text
Actor:   nologin/instagram-profile-scraper
Does:    Scrape Instagram profiles: followers, bio, category, posts, reel views, engagement rate, similar accounts. Email & join date add-ons. No login. $0.95/1K.
Input:   {"usernames": ["natgeo"], "includeLatestPosts": true, "includeSimilar": true, "includeContacts": false, "includeAbout": false, "includeHidden": false, "accountType": "any", "onlyVerified": false}
Output:  one JSON row per result, up to 89 fields; main: username, fullName, followers, following, posts, category, accountType, isVerified, engagementRate, avgLikes, avgReelViews, lastPostAt, publicEmail, publicPhone, joined, country
Free:    usernames that don't exist and duplicates
Price:   event "profile-full" $1.25 per 1,000 on Starter + $0.0005 per run
Run:     POST https://api.apify.com/v2/acts/nologin~instagram-profile-scraper/run-sync-get-dataset-items?token=APIFY_TOKEN
```

### More Instagram Actors from us

**⭐ Recommended — the No Login line:** [All-in-one Instagram Scraper](https://apify.com/nologin/instagram-scraper) · [Followers](https://apify.com/nologin/instagram-followers-scraper) · [Reels](https://apify.com/nologin/instagram-reels-scraper) · [Posts](https://apify.com/nologin/instagram-posts-scraper) · [Threads](https://apify.com/nologin/threads-scraper) · [Comments](https://apify.com/nologin/instagram-comments-scraper)

**Specialist tools:**

| Content | People | Stories |
|---|---|---|
| [Reel views checker](https://apify.com/instagram-data-api/instagram-reel-views-checker) · [Hashtags](https://apify.com/instagram-data-api/instagram-hashtag-scraper) · [Search](https://apify.com/instagram-data-api/instagram-search-scraper) · [Transcripts](https://apify.com/instagram-data-api/instagram-reels-transcript) · [Tagged posts](https://apify.com/instagram-data-api/instagram-tagged-scraper) · [Audio](https://apify.com/instagram-data-api/instagram-audio-scraper) · [Locations](https://apify.com/instagram-data-api/instagram-location-scraper) · [Hashtag stats](https://apify.com/instagram-data-api/instagram-hashtag-stats) |[Followers count](https://apify.com/instagram-data-api/instagram-followers-count-checker) · [Account age](https://apify.com/instagram-data-api/instagram-account-age-checker) · [Emails & phones](https://apify.com/instagram-data-api/instagram-email-phone-scraper) · [Similar accounts](https://apify.com/instagram-data-api/instagram-similar-accounts) · [Similar accounts with profiles](https://apify.com/instagram-data-api/instagram-lookalike-accounts) · [Likers](https://apify.com/instagram-data-api/instagram-likers-scraper) · [Engagement rate](https://apify.com/instagram-data-api/instagram-engagement-rate-calculator) · [Username checker](https://apify.com/instagram-data-api/instagram-username-checker) · [User ID](https://apify.com/instagram-data-api/instagram-user-id-finder) · [Follower checker](https://apify.com/instagram-data-api/instagram-follower-checker) | [Stories](https://apify.com/instagram-data-api/instagram-stories-scraper) · [Highlights](https://apify.com/instagram-data-api/instagram-highlights-scraper) |

What changed and when — see the **Changelog** tab.

# Changelog

This Actor's version history is a separate document: https://apify.com/nologin/instagram-profile-scraper/changelog.md

# Actor input Schema

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

One per line: <code>natgeo</code>, <code>@natgeo</code> or <code>https://www.instagram.com/natgeo/</code>.

## `inputFile` (type: `string`):

A CSV or TXT file: one username or link per line, or a table — we take the column named <code>username</code>, <code>url</code> or <code>link</code> (otherwise every cell). Added to the list above; duplicates are skipped.

## `includeLatestPosts` (type: `boolean`):

12 latest posts, 12 latest reels with views, engagement rate, top hashtags. Included in the price. Turn off for the fastest run.

## `includeSimilar` (type: `boolean`):

Up to 50 accounts Instagram suggests as similar — a list in each row. Included in the price.

## `maxSimilarProfiles` (type: `integer`):

How many similar accounts per profile get a full row of their own (up to 50). Each is charged as a profile. Empty — only your list.

## `includeContacts` (type: `boolean`):

Email, phone, WhatsApp and address from the profile's contact buttons. $0.70 per 1,000 profiles checked + $7.45 per 1,000 with a contact found (Starter).

## `includeAbout` (type: `boolean`):

The month the account joined, its country and username changes (“About this account”). $4.65 per 1,000 profiles where Instagram returns it + $0.70 per 1,000 checked (Starter).

## `includeHidden` (type: `boolean`):

Age-restricted (18+) profiles come at the profile price without this box. Tick it for the few profiles Instagram shows a visitor nothing of — they are read with a login: the profile price + $0.70 per 1,000 (Starter). Off — they come back as free rows.

## `minFollowers` (type: `integer`):

Keep profiles with at least this many followers.

## `maxFollowers` (type: `integer`):

Keep profiles with at most this many followers.

## `minEngagementRate` (type: `integer`):

Keep profiles with at least this engagement rate (likes + comments per post ÷ followers).

## `postedWithinDays` (type: `integer`):

Keep profiles whose latest post is at most this many days old.

## `accountType` (type: `string`):

Keep only this type of account.

## `onlyVerified` (type: `boolean`):

Keep profiles with the blue check.

## `categoryContains` (type: `array`):

Keep profiles whose category has one of these words, e.g. <code>coffee</code>, <code>beauty</code>.

## `bioContains` (type: `array`):

Keep profiles whose bio or name has one of these words, e.g. <code>coach</code>, <code>booking</code>.

## `datasetId` (type: `string`):

Pick the dataset of an earlier run (or paste its ID). We take usernames from <code>username</code> / <code>ownerUsername</code>.

## `officialFieldNames` (type: `boolean`):

Every row also gets <code>likesCount</code>, <code>commentsCount</code>, <code>videoPlayCount</code>, <code>timestamp</code>, <code>displayUrl</code>, <code>followersCount</code>, <code>followsCount</code>, <code>verified</code>… with the same values, and the post type as Video, Image or Sidecar. Sheets, code and n8n flows made for the official scrapers keep working. Our own fields stay. No extra charge.

## `addSummaryRow` (type: `boolean`):

One free row at the end of the results: rows returned, what was charged (events and USD) and why the run stopped — for n8n, Make, Zapier and AI agents that read only the dataset. The same summary is always saved as SUMMARY in the run's key-value store.

## `returnWithinSecs` (type: `integer`):

Stop after this many seconds and return the results collected so far — you pay only for them. Handy for AI agents with a short tool timeout. Empty — run until everything is collected.

## Actor input object example

```json
{
  "usernames": [
    "natgeo"
  ],
  "includeLatestPosts": true,
  "includeSimilar": true,
  "includeContacts": false,
  "includeAbout": false,
  "includeHidden": false,
  "accountType": "any",
  "onlyVerified": false,
  "officialFieldNames": false,
  "addSummaryRow": false
}
```

# Actor output Schema

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

All rows of this run (JSON, CSV, Excel).

## `summary` (type: `string`):

What was returned, what was free and why (SUMMARY record).

# 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": [
        "natgeo"
    ]
};

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

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

```

## MCP server setup

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