# Instagram Scraper – Profiles, Posts & Reels (`overbifrost/instagram-scraper`) Actor

Extract public Instagram profiles, recent posts, Reels and carousels using usernames or URLs. Export available captions, dates and engagement metrics as JSON or CSV. Clear per-target coverage and no Instagram login required; availability varies.

- **URL**: https://apify.com/overbifrost/instagram-scraper.md
- **Developed by:** [OverBifrost](https://apify.com/overbifrost) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 media scrapeds

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 Scraper for profiles, posts and Reels

Extract **public Instagram profiles, recent posts, Reels and carousels** from a list of usernames or links. Get captions, publication dates, available engagement counts and media URLs, then export the results to JSON, CSV or Excel. No Instagram account, password or session cookie is required.

Use Instagram Scraper to research a list of creators, compare recent content from known competitors, or collect post data for a spreadsheet or application. You can mix profile and individual post URLs in one run. Repeated media is saved once, with its contributing inputs preserved in the full output.

This tool works with **profiles and posts you supply**. It does not discover accounts through keyword or hashtag search. Profile feeds cover the recent items exposed publicly, not an account's complete history.

### How to scrape Instagram data

1. Open **Input** and enter a username such as `nasa`, a public profile URL, or an individual post/Reel link.
2. Start with **3 recent posts/Reels per profile**. Set this to `0` for profile details only.
3. Choose **Residential** under **Connection** for profiles and feeds. For direct post links only, Datacenter is also available. The per-result prices are the same for either connection.
4. Set a **maximum cost per run** in Apify's run options and start the Actor. The small example below costs **$0.01305** if it delivers one profile and three media records.
5. Open **Instagram records** and **Run summary**. Export your Dataset, or enable **Create an additional media CSV file** if you want a separate `media.csv`.

#### Copy-and-paste example

This is the small example supplied by the input form:

```json
{
  "targets": ["nasa"],
  "maxMediaPerProfile": 3,
  "resultsLimit": 10,
  "proxyStrategy": "APIFY_RESIDENTIAL",
  "writeCsv": false
}
```

It requests one profile and up to three posts or Reels. **Maximum media results** (`resultsLimit`) counts saved media across the run; profile rows are separate. Limits are ceilings, so inaccessible posts, filters or source coverage can produce fewer results.

The example chooses Residential explicitly. Existing saved inputs retain their connection setting; use **Restore example input** to load the current example. API calls that omit `proxyStrategy` use `AUTO`, which means datacenter. Datacenter can return a login requirement for profiles even when direct post links work. The Actor does not switch connections automatically after a failure.

### What Instagram data can you extract?

| Data | Fields available when the public source exposes them |
| --- | --- |
| Profile identity | Username, Instagram user ID, canonical profile URL and display name |
| Profile details | Biography, external website, profile photo, verification, privacy and business flags |
| Profile counts | Followers, following and media count |
| Posts and Reels | Shortcode, media ID, owner, canonical URL, type, caption, hashtags, mentions and publication time |
| Engagement | Likes, comments, views, plays and shares when available; no guarantee of every count |
| Media references | Image, video and thumbnail URLs, plus observable carousel children |
| Result context | Acquisition state, observed fields, contributing input indexes and coverage notes in the full record |

Missing values remain **`null`**, rather than becoming zero. An observed zero stays zero. Media links can expire; the Actor returns references and does not download video or image files.

#### Example Instagram post output

This is a shortened `FULL` record from the NASA test collected on **16 November 2026**. The counts are a historical snapshot, not current statistics. The actual full record also includes source details, observed fields and coverage notes.

```json
{
  "recordType": "MEDIA",
  "identity": {
    "shortcode": "DfahZrMjAqq",
    "canonicalMediaUrl": "https://www.instagram.com/p/DfahZrMjAqq/",
    "igMediaId": "4024676116912147114",
    "ownerUsername": "nasa",
    "ownerIgUserId": "528817151",
    "inputRefs": [0]
  },
  "media": {
    "mediaType": "IMAGE",
    "takenAt": "2026-11-06T21:00:08.000Z",
    "likeCount": 249698,
    "commentCount": 833,
    "viewCount": null,
    "playCount": null
  },
  "state": "PARTIAL",
  "chargeable": true
}
```

A `PARTIAL` record contains usable data with incomplete fields or coverage. A run can save useful results while other targets fail, so inspect the summary as well as the run's overall status.

### Instagram profile and post examples

#### Export public profile details

Set `maxMediaPerProfile` to `0` to collect profile metadata without a media feed:

```json
{
  "targets": ["nasa", "nasahubble"],
  "maxMediaPerProfile": 0,
  "includeProfileInfo": true,
  "proxyStrategy": "APIFY_RESIDENTIAL",
  "outputFormat": "FLAT"
}
```

#### Scrape individual posts, Reels and carousels

Standard `/p/` and `/reel/` URLs work without a username in the path. Replace these example links with the public posts you want:

```json
{
  "targets": [
    "https://www.instagram.com/p/DfahZrMjAqq/",
    "https://www.instagram.com/reel/Dfc1mYxFevS/",
    "https://www.instagram.com/p/DfSi56IFwZK/"
  ],
  "maxMediaPerProfile": 0,
  "includeProfileInfo": false,
  "resultsLimit": 3,
  "proxyStrategy": "AUTO",
  "writeCsv": true
}
```

Each accepted post must match its requested shortcode and have an identifiable owner. A carousel is one media record with available child items. A direct post request does not also retrieve the owner's profile.

#### Filter recent Reels by date

```json
{
  "targets": ["nasa"],
  "maxMediaPerProfile": 12,
  "resultsLimit": 12,
  "proxyStrategy": "APIFY_RESIDENTIAL",
  "mediaTypes": ["REEL"],
  "dateFrom": "-7 days",
  "unknownDate": "DROP",
  "writeCsv": true
}
```

This keeps Reels from the acquired sample with an observed date in the last seven days. It can return no media when that sample contains no matching Reels. Filters do not extend the public feed or make the Actor keep searching until the requested number of matches is found.

| Optional filter | Behavior |
| --- | --- |
| `dateFrom`, `dateTo` | Filter publication time using a date, ISO timestamp or relative value such as `-7 days` for seven days ago |
| `unknownDate` | `KEEP_FLAGGED` retains undated items; `DROP` excludes them when a date filter is active |
| `mediaTypes` | Select `IMAGE`, `VIDEO`, `CAROUSEL`, `REEL` or `UNKNOWN` |
| `minLikes`, `minComments`, `minViews` | Require an observed count at least as large as the minimum; an unknown count cannot meet a positive minimum |

Dates use UTC. A date-only upper bound includes that entire UTC day. Relative dates resolve when the run starts.

### Export Instagram posts to CSV or JSON

The default Dataset contains `PROFILE` and `MEDIA` rows. Choose the output format for your workflow:

| `outputFormat` | Best for | Contents |
| --- | --- | --- |
| `FULL` — default | Detailed analysis and integrations | Nested profile/media fields, carousel details, observed fields, input references and coverage |
| `FLAT` | Spreadsheets and scalar-column imports | Flattened fields; lists become pipe-separated text and carousels expose a child count |
| `COMPACT` | Small exports and simple summaries | Core identity, selected fields/counts and state; omits the detailed provenance and media asset lists |

Export the Dataset as JSON, CSV or Excel using Apify's export controls. With `writeCsv: true`, the Actor also saves **`media.csv`**, a separate export of media rows only. Profile-only results remain in the Dataset. The media CSV has sixteen columns; unknown values are blank and cells are protected against spreadsheet formulas. Very long cells are truncated to 32,000 characters; use the full Dataset for complete saved captions.

Additional run outputs:

| Output | Use |
| --- | --- |
| **Run summary** — `RUN_SUMMARY` | Input counts, saved records, filters, duplicates, access failures and feed coverage |
| **HTML run report** — `REPORT.html` | Readable profile and media cards with available metrics and coverage |
| **Charge journal** — `CHARGE_JOURNAL` | Per-result eligibility, persistence and billing decisions |
| **Media CSV** — `media.csv` | Optional media-only spreadsheet export |

`media.candidates` in the summary separates discovered, attempted, accepted, rejected and unattempted candidates. Unattempted candidates can be expected when you request only a few posts. Accepted candidates can still be excluded by your filters or result limit.

### Instagram scraper pricing

| Charged result | Price per 1,000 | Event |
| --- | ---: | --- |
| Public profile | **$4.00** | `profile-scraped` |
| Post or Reel, including a carousel parent | **$3.00** | `media-scraped` |
| Actor start | **$0.05** — $0.00005 per run at up to 1 GB | `apify-actor-start` |

Platform usage is included in these event prices. The rate per result does not change with the selected connection. Check the [Pricing tab](https://apify.com/overbifrost/instagram-scraper/pricing) for the active rates before running a larger job.

**Example:** one profile and three posts cost `0.004 + (3 × 0.003) + 0.00005 = $0.01305`. A carousel counts once, not once per image. Profile and media results are separate units.

Only eligible, saved results trigger the profile/post charges. Useful `PARTIAL` results can be charged. Duplicates, filtered-out items and failed lookups do not trigger those successful-result events. The start fee still applies if a run returns no usable results. Deduplication applies within one run; fetching the same record in a later run is a new result.

A minimum **maximum cost per run** setting, such as $0.01, is a spending-cap floor, not a minimum bill. Set a cap appropriate for the number of profiles and posts you request.

### Instagram scraper API

Run the Actor from Python, JavaScript, Apify Tasks or your own HTTP workflow. Use an **Apify API token**; no Instagram API token is needed. Keep your token in the `APIFY_TOKEN` environment variable.

#### JavaScript example

Install `apify-client` (`npm install apify-client@2`) and run this as an ES module. It waits for the run, then reads the small result set:

```javascript
import { ApifyClient } from "apify-client";

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor("overbifrost/instagram-scraper").call(
  {
    targets: ["nasa"],
    maxMediaPerProfile: 3,
    resultsLimit: 10,
    proxyStrategy: "APIFY_RESIDENTIAL",
    writeCsv: false,
  },
  { memory: 1024, maxTotalChargeUsd: 0.05 },
);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

#### Python example

Use Python 3.11+ with `pip install "apify-client>=3.5,<4"`. This example uses the version 3 client's typed run object:

```python
import os
from decimal import Decimal
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("overbifrost/instagram-scraper").call(
    run_input={
        "targets": ["nasa"],
        "maxMediaPerProfile": 3,
        "resultsLimit": 10,
        "proxyStrategy": "APIFY_RESIDENTIAL",
        "writeCsv": False,
    },
    memory_mbytes=1024,
    max_total_charge_usd=Decimal("0.05"),
)
if run is None:
    raise RuntimeError("No completed run was returned; check Apify Console.")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)
```

Both examples request the same input as the form example, with a $0.05 spending cap and 1,024 MB memory. Memory and spending limits are run options, not Actor input fields. Inspect `RUN_SUMMARY` when results are partial or a target fails. For larger datasets, use pagination or item iteration.

For direct HTTP calls, see this Actor's [API endpoints](https://apify.com/overbifrost/instagram-scraper/api). The official [JavaScript client](https://docs.apify.com/api/client/js) and [Python client](https://docs.apify.com/api/client/python) document authentication, datasets and run options.

#### Scheduled exports and integrations

Save your inputs as an Apify Task and attach a schedule for recurring exports. Send completed-run data to your workflow through the API or Apify integrations. Each run collects a new snapshot; this version does not maintain an only-new-posts history or guarantee discovery of every post published between runs.

### Troubleshooting and FAQ

#### Why did I receive fewer posts than requested?

The profile feed is limited to the recent items Instagram exposes publicly. Some candidates may be unavailable, fail identity checks or be removed by your filters. The Actor does not promise a chronological list or complete profile history.

Posts clearly owned by a different account are skipped while the remaining candidates within your limit are checked. Ambiguous identity or access failures can stop that feed; previously verified results are retained. A different owner is not automatically treated as a collaboration.

#### What do PARTIAL and LOGIN_REQUIRED mean?

`PARTIAL` means the checked source supplied usable but incomplete data or coverage. `LOGIN_REQUIRED`, `BLOCKED` and `RATE_LIMITED` describe access failures for that attempt. `INCONCLUSIVE` means a matching usable result could not be established; it does not prove that a profile is empty or a post is deleted.

For profile requests that fail with a login requirement on Datacenter, select Residential explicitly for a later run. There is no automatic proxy escalation, Instagram login or CAPTCHA bypass. Access can still vary by target, region and time.

#### Can this scrape followers, comments, Stories or hashtags?

It can return a **follower count**, available comment counts, and hashtags found in captions. It does **not** extract follower/following lists, comment threads, Stories, highlights, DMs, private content, hashtag search or location search.

#### Does this replace the official Instagram API?

This is an independent public-data extraction tool accessed through the Apify API. It does not grant Instagram account access or provide publishing, messaging or account-management functions. It is not affiliated with Instagram or Meta.

#### How do I get help?

Use the Actor's Issues tab or [contact OverBifrost support](https://overbifrost.com/support/). Include the run ID, input, build and run summary so the issue can be reproduced. Remove API tokens and signed private links before sharing a report publicly.

For public Facebook keyword or hashtag discovery, see [Facebook Post Search & Keyword Scraper API](https://apify.com/overbifrost/facebook-post-search-scraper). Find more tools at [OverBifrost](https://overbifrost.com/).

# Actor input Schema

## `targets` (type: `array`):

Paste a username (for example nasa), a public profile URL, or standard Instagram /p/ or /reel/ share links. One target per line.

## `maxMediaPerProfile` (type: `integer`):

How many recent posts/Reels to request from each profile. Choose 0 for profile details only. Public history can be incomplete.

## `resultsLimit` (type: `integer`):

Maximum number of unique posts/Reels saved across this run. Profile information is separate.

## `proxyStrategy` (type: `string`):

Choose Residential for profiles and feeds. Datacenter is an option for direct post/Reel links, but profiles may return LOGIN_REQUIRED. Per-result prices are the same for both connections and include platform usage. AUTO uses datacenter. The selected connection applies to the whole run and does not switch automatically after a failure.

## `includeProfileInfo` (type: `boolean`):

Save a PROFILE row per profile target (name, bio, counts, verification). Disable to collect media only.

## `mediaTypes` (type: `array`):

Optional filter: keep only these media types. Leave empty to keep all observed types.

## `dateFrom` (type: `string`):

Keep media whose observed publication timestamp is on or after this value. Accepts a date, ISO timestamp or relative value such as -7 days for seven days ago.

## `dateTo` (type: `string`):

Keep media whose observed publication timestamp is on or before this value. A date-only value includes the whole UTC day.

## `unknownDate` (type: `string`):

Choose what happens when a media item's publication time is unavailable. Used only when a date filter is set.

## `minLikes` (type: `integer`):

Keep media with at least this many observed likes. Items whose like count was not observed never satisfy a positive minimum.

## `minComments` (type: `integer`):

Keep media with at least this many observed comments. Unobserved counts never satisfy a positive minimum.

## `minViews` (type: `integer`):

Keep Reels/video with at least this many observed views or plays. Unobserved counts never satisfy a positive minimum.

## `outputFormat` (type: `string`):

FULL preserves all available fields. FLAT is spreadsheet-friendly; COMPACT is smaller. Usually leave FULL.

## `writeCsv` (type: `boolean`):

Apify datasets can already be exported as CSV, Excel or JSON. Enable only if you also want a separate media.csv file in the key-value store.

## `saveDiagnostics` (type: `boolean`):

Advanced API setting, not shown in the form. Include per-record diagnostic details.

## `profileEmbedDiagnostic` (type: `boolean`):

Advanced JSON-only research. Exactly one profile, no media, resultsLimit=1, APIFY_RESIDENTIAL and maxTotalRequests=1. Makes one public embed request and reports only source shape; never returns a scraped profile or charges PPE.

## `browserDiagnostic` (type: `boolean`):

Advanced JSON-only opt-in. Single public profile; APIFY_RESIDENTIAL, maxMediaPerProfile=0, maxConcurrency=1, maxTotalRequests <= 60. Runs Chromium and may incur residential traffic. Unverified; do not enable for customer runs.

## `browserBlockStylesheets` (type: `boolean`):

Experimental A/B only. Requires browserDiagnostic=true and paid residential proxy. Default false preserves working source. CSS removal may make the observed profile disappear.

## `browserStopOnVerifiedHeader` (type: `boolean`):

Private optional A/B. Requires browserDiagnostic=true. Stop rendering early only after exact username/URL and at least two visible statistics (one exact) are verified. May reduce data completeness; default false retains the proven settle behavior.

## `maxTotalRequests` (type: `integer`):

Advanced API setting, not shown in the form. Hard network request budget for predictable operating cost.

## `maxConcurrency` (type: `integer`):

Advanced API setting, not shown in the form. Bounded worker count.

## `minDelayMs` (type: `integer`):

Advanced API setting, not shown in the form. Optional pacing in milliseconds.

## `maxDelayMs` (type: `integer`):

Advanced API setting, not shown in the form. Optional maximum pacing in milliseconds.

## `publicGraphqlDiagnostic` (type: `boolean`):

Private JSON-only, nonbillable source experiment. Exactly one public /p/ or /reel/ URL, residential proxy, maxTotalRequests=2, maxConcurrency=1, resultsLimit=1, includeProfileInfo=false, maxMediaPerProfile=0 and saveDiagnostics=true. Never customer-facing.

## `profileFeedDiagnostic` (type: `boolean`):

Private, nonbillable development canary. Exactly one public profile, 1–3 post/Reel leads, each with an independent max-25-request browser navigation. Require maxTotalRequests=25×(1+maxMediaPerProfile) (50/75/100), resultsLimit=1+maxMediaPerProfile, single concurrency, saved diagnostics and explicit residential. No pagination, complete feed or customer-facing support.

## `browserStickyProxySession` (type: `boolean`):

Private one-profile/one-media cost/reliability comparison only. Requires both external JavaScript blocks and media commit navigation, residential proxy and 50 total requests. Reuses one residential IP per run. No additional requests, retries or automatic rotation; no guarantee of network success.

## `browserMediaCommitNavigation` (type: `boolean`):

Only for a private one-profile/one-media feed with both script blocks enabled. Wait for the HTTP document commit rather than DOMContentLoaded, then inspect bounded inline JSON. Strict owner and shortcode checks stay mandatory.

## `browserProfileBlockScripts` (type: `boolean`):

V5 private one-profile/one-media comparison. Requires profileFeedDiagnostic and browserMediaBlockScripts true, one MEDIA, 50 total admitted requests. Only profile-side external script network resources are denied. Can yield zero media.

## `browserMediaBlockScripts` (type: `boolean`):

Private cost A/B only when profileFeedDiagnostic=true with maxMediaPerProfile=1. Blocks external media-page JS requests only, not profile-side scripts or HTML-embedded source JSON; no savings guaranteed.

## `browserMediaDiagnostic` (type: `boolean`):

Private, nonbillable one-public-media Chromium probe. Requires one /p/ or /reel/ input, 25 maxTotalRequests, residential proxy, maxMediaPerProfile=0, includeProfileInfo=false, maxConcurrency=1, resultsLimit=1, saveDiagnostics=true and no other diagnostics.

## Actor input object example

```json
{
  "targets": [
    "nasa"
  ],
  "maxMediaPerProfile": 3,
  "resultsLimit": 10,
  "proxyStrategy": "APIFY_RESIDENTIAL",
  "includeProfileInfo": true,
  "unknownDate": "KEEP_FLAGGED",
  "outputFormat": "FULL",
  "writeCsv": false,
  "saveDiagnostics": false,
  "profileEmbedDiagnostic": false,
  "browserDiagnostic": false,
  "browserBlockStylesheets": false,
  "browserStopOnVerifiedHeader": false,
  "maxTotalRequests": 200,
  "maxConcurrency": 3,
  "minDelayMs": 0,
  "publicGraphqlDiagnostic": false,
  "profileFeedDiagnostic": false,
  "browserStickyProxySession": false,
  "browserMediaCommitNavigation": false,
  "browserProfileBlockScripts": false,
  "browserMediaBlockScripts": false,
  "browserMediaDiagnostic": false
}
```

# Actor output Schema

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

One row per profile target or media item. FULL preserves complete records; FLAT uses spreadsheet columns; COMPACT keeps essentials. Failed/blocked/private targets appear with their honest state.

## `runSummary` (type: `string`):

Input counts, per-state acquisition histogram, request/byte counters, filter/dedupe telemetry, billing mode and limitations.

## `chargeJournal` (type: `string`):

Auditable per-unit profile-scraped / media-scraped charging decisions recorded after result persistence.

## `mediaCsv` (type: `string`):

Optional media.csv UTF-8 artifact with formula-safe cells, bounded to saved media rows.

## `htmlReport` (type: `string`):

Responsive HTML preview with profile/media result cards, checked scope, field availability, precision notes and browser diagnostics. The Dataset remains authoritative.

# 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 = {
    "targets": [
        "nasa"
    ],
    "maxMediaPerProfile": 3,
    "resultsLimit": 10,
    "proxyStrategy": "APIFY_RESIDENTIAL",
    "writeCsv": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("overbifrost/instagram-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 = {
    "targets": ["nasa"],
    "maxMediaPerProfile": 3,
    "resultsLimit": 10,
    "proxyStrategy": "APIFY_RESIDENTIAL",
    "writeCsv": False,
}

# Run the Actor and wait for it to finish
run = client.actor("overbifrost/instagram-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 '{
  "targets": [
    "nasa"
  ],
  "maxMediaPerProfile": 3,
  "resultsLimit": 10,
  "proxyStrategy": "APIFY_RESIDENTIAL",
  "writeCsv": false
}' |
apify call overbifrost/instagram-scraper --silent --output-dataset

```

## MCP server setup

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