# Instagram Profile Details by Username or ID (`arjun_code/instagram-profile-details-scraper`) Actor

Look up Instagram profiles by username, profile URL, or numeric ID. Export bios, bio links, follower and post counts, and available public business contacts. Enable About for account country and join month when available. No Instagram login required.

- **URL**: https://apify.com/arjun_code/instagram-profile-details-scraper.md
- **Developed by:** [ArjunAI Data](https://apify.com/arjun_code) (community)
- **Categories:** Social media
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.99 / 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.

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

Use this Instagram profile scraper to look up known accounts by username, profile URL, or numeric account ID. Export bios, bio links, follower and post counts, verification flags, and available public business contacts for creator research and brand audits. Turn on **Include About Account details** to add the reported account country and join month when available. No Instagram login is required.

### Quick Start

1. Keep the prefilled `patagonia` username, or enter a different username, profile link, or numeric account ID.
2. Leave About off for a basic lookup. Turn it on only if you want the optional About Account fields.
3. Run the Actor and open **Profile overview**, or export JSON for nested data such as bio links.

```json
{
  "usernames": ["patagonia"],
  "userIds": [],
  "includeAboutSection": false
}
```

#### Input fields

| Input | What to enter |
| --- | --- |
| `usernames` | Usernames, `@usernames`, or Instagram profile URLs. A post or Reel URL is not a profile. |
| `userIds` | Numeric Instagram **account** IDs as strings. Quote IDs in JSON so that every digit is preserved. |
| `includeAboutSection` | Optional, off by default. Adds account country, join month, and verification month when available. |

Use either list or both. A run accepts up to 30 distinct inputs after deduplication. Each matched account is saved once, even if you enter both its username and numeric ID.

### Instagram Profile Data

| Fields | Meaning |
| --- | --- |
| `inputValue` | Original username, profile URL, or account ID from the lookup that produced the saved profile. When multiple inputs resolve to one account, only the input for the saved row is shown. |
| `userId`, `username`, `fullName`, `profileUrl` | Account identity. The ID is a string and the profile URL is built from the returned username. |
| `biography`, `avatarUrl`, `externalUrl` | Public profile text, one avatar URL, and the primary profile link, which may be a link hub. |
| `externalUrls` | All public bio link records returned by the profile lookup, in source order, with original properties such as `url`, `title`, `link_type`, `is_pinned`, and `lynx_url` when supplied. `lynx_url` is a redirect for the same link, not another destination. An empty list means no links were returned in the list; `null` means the source did not provide a list. |
| `followersCount`, `followingCount`, `postsCount` | Instagram counters returned by the source. The Actor does not collect the posts or lists behind these counts. |
| `isVerified`, `isPrivate`, `isBusiness`, `hasHighlights`, `hasPublicBroadcastChannels` | Source-reported account flags. No private content or broadcast channel details are requested. |
| `accountType` | `personal`, `business`, or `creator`, based on the account type reported by the source. Unknown or missing types are `null`. |
| `publicContact` | Public `email`, `phoneNumber`, and `phoneCountryCode` only when supplied. No email or phone guessing. |
| `businessAddress` | Public `street`, `city`, and `postalCode` when supplied. No geocoding. |
| `about` | Optional `accountCountry`, `joinedMonth`, and `verifiedMonth`. It is omitted when the option is off. Months use `YYYY-MM`; account country is not nationality, audience location, or business address. |

Successful rows have `recordType: "profile"`. Missing values are not shown as zero or false. The overview focuses on profile identity and counters, and the Contacts and About Account view displays the additional data. Export JSON for nested links, contact, and address information.

Invalid or unavailable inputs appear as separate `lookupStatus` rows with a message in **Lookup notices**. If About data is unavailable, the base profile is still saved. An interrupted run may have incomplete output.

#### Example results

These are selected fields from real runs, not a complete list of output fields. Counts can change.

For the prefilled Patagonia lookup:

```json
{
  "recordType": "profile",
  "username": "patagonia",
  "userId": "143939018",
  "profileUrl": "https://www.instagram.com/patagonia/",
  "fullName": "Patagonia",
  "followersCount": 5519446,
  "postsCount": 4423,
  "isVerified": true
}
```

To look up NASA by account ID with About enabled:

```json
{
  "userIds": ["528817151"],
  "includeAboutSection": true
}
```

```json
{
  "recordType": "profile",
  "username": "nasa",
  "userId": "528817151",
  "profileUrl": "https://www.instagram.com/nasa/",
  "fullName": "NASA",
  "followersCount": 104331163,
  "postsCount": 5010,
  "isVerified": true,
  "about": {
    "accountCountry": "United States",
    "joinedMonth": "2013-08",
    "verifiedMonth": null
  }
}
```

### Pricing

- **Profile:** $3.99 per 1,000 profiles saved without About data.
- **Profile with About:** $7.99 per 1,000 profiles saved with at least one About field. This is the total price for the profile, not an add-on.
- **Actor start:** $0.00005 per run at the default memory.

At the default 256 MB, one saved basic profile costs **$0.00404** and one saved profile with About data costs **$0.00804**, each including one start. Each profile incurs at most one result fee. If you request About and no About fields are available, a saved profile is billed at the basic rate. Invalid inputs, unavailable profiles, duplicates, and lookup notices have no result fee; a start fee can still apply. Platform usage is not charged separately.

Set a maximum charge in the run options to limit spending. If About is enabled, the remaining budget must cover the higher result price before another lookup can begin.

### Use with AI Assistants via MCP

Add the following remote **Streamable HTTP** URL to an MCP-compatible client. It selects this Actor through the [Apify MCP server](https://docs.apify.com/mcp).

```text
https://mcp.apify.com/?tools=arjun_code/instagram-profile-details-scraper
```

1. Connect your Apify account with OAuth if the client supports it. Otherwise, use your Apify API token as a Bearer token in the client's `Authorization` header. Keep it in credentials, not in the URL or the chat prompt.

2. Choose the `arjun_code--instagram-profile-details-scraper` tool. Try this prompt:

   > Look up @patagonia on Instagram. Return the username, follower count, and bio links. Leave About Account details off.

3. If the tool returns run information instead of rows, wait for the run to finish and pass its Dataset ID to `get-dataset-items`.

For automations, keep `recordType: "profile"` rows as profile data. A `lookupStatus` row can report an invalid input, missing profile, or temporary failure; do not treat every notice as proof that an account does not exist.

Running the Actor through MCP follows the pricing above. If you need a per-run spending limit, use the Apify API example below: this MCP tool does not expose `maxTotalChargeUsd`.

### Apify API and n8n

#### Run a lookup with the Apify API

Set `APIFY_TOKEN` in your environment. The [synchronous endpoint](https://docs.apify.com/api/v2/actor-run-sync-get-dataset-items-post) returns Dataset rows as JSON. This example sets a $0.01 spending limit for one run.

```bash
curl --request POST \
  'https://api.apify.com/v2/actors/arjun_code~instagram-profile-details-scraper/run-sync-get-dataset-items?maxTotalChargeUsd=0.01' \
  --header "Authorization: Bearer $APIFY_TOKEN" \
  --header 'Content-Type: application/json' \
  --data '{"usernames":["patagonia"],"includeAboutSection":false}'
```

`maxTotalChargeUsd` is a URL query parameter, not an Actor input field.

#### Connect an n8n or Make workflow

- **n8n:** In the [Apify node](https://docs.apify.com/integrations/n8n), choose **Run an Actor and get dataset**, select `arjun_code/instagram-profile-details-scraper`, and use the Quick Start input. Keep only profile rows when sending results to a spreadsheet or another service.
- **Make or n8n HTTP Request:** Use the same POST URL, credentials, and JSON body from the API example. This lets you specify the per-run spending limit as a query parameter.

### Related social media profile scrapers

Building a creator shortlist or brand report? If you already know the account on another platform, use the matching Actor to add the details that Instagram alone cannot show.

- [TikTok Profile Scraper](https://apify.com/arjun_code/tiktok-profile-details-scraper) — look up a known TikTok account for follower counts, total likes received, profile links, and available creator or business details.
- [Threads Profile Scraper](https://apify.com/arjun_code/threads-profile-details-scraper) — add Threads follower counts, bios, bio links, profile topics, and verification. [Try the Threads username example](https://apify.com/arjun_code/threads-profile-details-scraper/examples/threads-profile-lookup-by-username).
- [YouTube Channel Details Scraper](https://apify.com/arjun_code/youtube-channel-details-scraper) — look up a channel by handle, URL, or ID for subscriber counts, channel descriptions, and available public links.

Keep each platform's profile URL in your report. Matching usernames alone do not confirm that two accounts belong to the same creator or brand.

### FAQ and Support

- **Can I search by keyword or download posts and followers?** No. This Actor looks up known accounts and reports counts, not the posts or follower lists behind them.
- **Will I always get an email or account country?** No. Public business contact details and About fields are optional. Account country does not describe a creator’s nationality or audience.
- **Why are the counts different from Instagram?** Counts change over time and may lag behind what you see in the app.
- **Where do I see why an account was not returned?** Check the **Lookup notices** view for an explanation. A notice is not a profile result.
- **Need help?** Open an issue on the Actor page with the run ID and a short description. Do not post credentials or private exports.

This independent Actor is not affiliated with or endorsed by Instagram. Use the results only as permitted by applicable platform terms and privacy requirements.

# Actor input Schema

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

Enter a username, @username, or a profile link such as https://www.instagram.com/patagonia/. For a numeric account ID, use the next field. Post and Reel links are not profile links.

## `userIds` (type: `array`):

Enter account IDs as text, for example 528817151. Quote IDs in JSON to preserve every digit. These are not post IDs, shortcodes, or Facebook IDs.

## `includeAboutSection` (type: `boolean`):

Also return the account country, join month, and verification month when available. Public contact and business address fields do not require this option.

## Actor input object example

```json
{
  "usernames": [
    "patagonia"
  ],
  "includeAboutSection": false
}
```

# Actor output Schema

## `profiles` (type: `string`):

No description

## `summary` (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": [
        "patagonia"
    ]
};

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

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

```

## MCP server setup

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