# Instagram Scraper (`neuro-scraper/instagram-video-scraper`) Actor

Instagram Scraper SD - Instagram Scraper is a social media data tool that reads public profiles, posts, reels, comments, hashtag and location pages without login (27 rows from 3 links in 20 s) and exports JSON, CSV or Excel - apify instagram scraper.

- **URL**: https://apify.com/neuro-scraper/instagram-video-scraper.md
- **Developed by:** [Neuro Scraper](https://apify.com/neuro-scraper) (community)
- **Categories:** Social media, Automation
- **Security:** Full permissions
- **Stats:** 13 total users, 0 monthly users, 0.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.49 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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 Scraper: posts, reels, profiles and comments without login

The Instagram Scraper turns public Instagram pages into clean rows: posts, reels, profiles, comments, hashtag pages and location pages, with no login and no cookies. It is an Apify Instagram scraper, so you paste links or search terms, press Start and export JSON, CSV or Excel.

Use the Instagram Scraper to scrape Instagram for marketing, research or a data pipeline. Measured on 2026-10-03: one profile, one hashtag and one post link gave 27 rows in 20 seconds.

#### An Apify Instagram scraper for every public URL type

One field of the Instagram Scraper, `directUrls`, takes every kind of public Instagram link. The `resultsType` setting decides which rows come back.

- **Instagram Scraper by username**: a bare username or a profile link gives posts, reels, one profile row or mention rows.
- **Instagram Scraper by hashtag**: a tag link, or a search term with `searchType` hashtag, gives posts from Instagram's public tag page.
- **Instagram Scraper by keyword**: a search term gives posts from Instagram's public keyword page.
- **Post and reel links** (/p/, /reel/) give the post itself or its comments.
- **Location links** (/explore/locations/) give the top posts of the place.

It is an Instagram Scraper without login: it never asks for a password or cookies and reads only what any logged-out visitor sees.

### Why choose this Instagram Scraper

- **Every URL type in one run.** The Instagram Scraper turned a profile, a hashtag and a post link into 27 rows in 20 s (local test, 2026-10-03).
- **No login, nothing hardcoded.** Every query id, token and cursor is read from Instagram's own page or its JavaScript bundles on each run; none is stored in the code.
- **Fields the top 10 offer.** After a comparison with the ten most used Instagram Actors on the Store, posts gained isPinned, musicInfo, coauthorProducers, paidPartnership, sponsors, latestComments and place coordinates.
- **Date windows, pinned posts and mentions.** onlyPostsNewerThan "7 days" with resultsType mentions gave 11 mention rows for natgeo in 10 s.
- **Comments in the same Actor.** The Instagram Scraper read 30 comments of a NASA post in 11 s (Instagram showed 886 on it).
- **Tested on the platform.** An Apify run with the residential proxy returned 10 rows from a profile and a hashtag in 38 s.

### What the Instagram Scraper extracts

Each Instagram Scraper row is one post, reel, profile, comment or mention, depending on `resultsType`. Fields Instagram does not publish stay empty; nothing is guessed. Every field below appeared in the 2026-10-03 test runs.

#### Post and reel rows (posts, reels, hashtag and location links)

| Field | Meaning |
|---|---|
| `id`, `shortCode`, `url` | Media id, short code and public link |
| `type`, `productType` | Image, Video or Sidecar; Instagram's feed, clips or carousel_container label |
| `caption`, `hashtags`, `mentions` | Caption text, its #hashtags and its @mentions |
| `likesCount`, `commentsCount` | Likes and comments |
| `videoPlayCount` | Plays (reels tab and tag pages) |
| `timestamp` | Publication time (UTC, ISO 8601) |
| `ownerUsername`, `ownerId`, `ownerFullName` | Account that posted it |
| `ownerIsVerified`, `ownerProfilePicUrl` | Owner's verified badge and picture link |
| `displayUrl`, `images` | Largest image link; every image of the post |
| `videoUrl`, `audioUrl` | Video file and audio-only track (signed links that expire) |
| `videoDurationSec`, `width`, `height` | Length in seconds and size in pixels |
| `altText` | Instagram's accessibility caption |
| `childPosts`, `carouselCount` | Carousel items and how many there are |
| `taggedUsers`, `coauthors`, `coauthorProducers` | Tagged accounts; collab co-authors (with name, id, verified flag) |
| `locationName`, `locationId`, `locationLat`, `locationLng` | Tagged place, its id and coordinates |
| `audio`, `musicInfo`, `hasAudio` | Song or original audio (title, artist, id, licensed or original, explicit, trending); video has sound |
| `captionIsEdited` | Caption edited after posting |
| `isPinned` | Pinned to the top of the profile (Instagram's own flag) |
| `paidPartnership`, `sponsors` | Paid-partnership label and the brands named |
| `likesAndViewsHidden` | The owner hides like and view counts |
| `topics` | Topic labels Instagram attaches to the post |
| `firstComment`, `latestComments` | Newest comment; first comments page (about 13-15) with author, likes and date |
| `detailsAvailable` | True when the post's own data was read, false for list data only |
| `inputUsername`, `inputUrl`, `hashtag`, `searchTerm` | The username, link, tag or search term the row came from |
| `position`, `source` | Rank on Instagram's tag page; where the post was found (instagram = its public page) |
| `dataSource` | With addParentData: profile, post, hashtag, location, comment or search |
| `scrapedAt` | When the row was read |

#### Profile rows (resultsType details)

| Field | Meaning |
|---|---|
| `id`, `fbid`, `username`, `fullName`, `url` | Account ids, username, display name and link |
| `biography`, `biographyHashtags`, `biographyMentions` | Bio text, its #hashtags and @accounts |
| `externalUrl`, `externalUrlShimmed`, `bioLinks` | First bio link, the same through l.instagram.com, all bio links |
| `followersCount`, `followsCount` | Followers and accounts followed |
| `isVerified`, `isPrivate`, `isMemorialized` | Verified badge, private and memorialized flags |
| `accountType`, `isBusinessAccount`, `isProfessionalAccount` | personal, business or creator |
| `businessCategoryName` | Category shown on the profile (Brand, Bakery ...) |
| `profilePicUrl`, `profilePicUrlHD` | Profile picture link and full-size picture link |
| `isEmbedsDisabled`, `pronouns`, `threadsBadge`, `hasReels` | Embedding blocked, pronouns, Threads badge, has reels |
| `highlights`, `highlightsCount` | Story highlight ids and titles, and their number |
| `latestStoryAt`, `hasPublicStory` | Time of the newest story; story from the last 24 hours |
| `latestPosts` | The 12 newest posts with link, type, caption, image, date, likes and comments |
| `inputUsername`, `scrapedAt` | Username as entered; when the row was read |

#### Comment rows (resultsType comments)

| Field | Meaning |
|---|---|
| `id`, `text`, `timestamp` | Comment id, text and time (UTC) |
| `ownerUsername`, `ownerId`, `ownerIsVerified`, `ownerProfilePicUrl` | The comment's author |
| `likesCount`, `repliesCount` | Likes; replies (Instagram leaves this empty logged out) |
| `parentCommentId`, `commentUrl` | Parent comment id; the comment's permalink |
| `postUrl`, `postShortCode`, `postOwnerUsername`, `postCommentsCount` | The post, its owner and its total comments |
| `scrapedAt` | When the row was read |

#### Mention rows (resultsType mentions)

| Field | Meaning |
|---|---|
| `sourceUsername` | Profile whose posts were read |
| `mentionedUsername`, `mentionedProfileUrl` | Account it mentions, tags or collaborates with |
| `mentionType` | caption, tagged or coauthor |
| `postUrl`, `postShortCode`, `postId`, `postType`, `postTimestamp` | The post that holds the mention |
| `postLikesCount`, `postCommentsCount`, `postDisplayUrl` | Its likes, comments and image link |
| `postIsPinned`, `postPaidPartnership` | Pinned and paid-partnership flags of the post |
| `captionExcerpt`, `scrapedAt` | First 280 characters of the caption; when the row was read |

Export the Instagram Scraper dataset as JSON, CSV, Excel, XML or HTML, or read it through the Apify API. Dates are UTC ISO 8601 and counts are numbers, so the export opens in Excel, Google Sheets or Python as it is.

### What you can do with the data

#### Scrape Instagram data from profiles, posts and reels

Track what an account publishes: give the Instagram Scraper its profile link and keep resultsType posts or reels. Rows carry likes, comments, dates, captions, hashtags and media links. Measured: 30 posts of a profile in 11 s and 30 reels in 2 s, with full details off.

#### Instagram web scraper for hashtag and location pages

See what people post under a tag or at a place: give the Instagram Scraper /explore/tags/ or /explore/locations/ links. Rows carry the tag or place, a position and the post data. Measured: 30 #cats posts in 5 s, 40 New York posts in 4 s.

#### Instagram data scraper for brand and competitor monitoring

Schedule the Instagram Scraper on competitor or partner profiles with onlyPostsNewerThan "7 days" and skipPinnedPosts on. Each run returns only recent posts, and paidPartnership and sponsors flag branded content: a natgeo post named Rolex as its sponsor in our test.

#### Instagram data scraping for market and academic research

The Instagram Scraper collects many accounts, tags and places into one dataset with the same keys per row type. Turn on addParentData and every row says where it came from. Counts stay exact where Instagram publishes them: natgeo's profile row read 268,451,390 followers.

#### Instagram crawler and extractor for bulk URL lists

Paste a long list into `directUrls`: as an Instagram crawler, the Instagram Scraper reads the links one after another, and a link that fails is logged while the run continues. As an Instagram extractor it applies `resultsLimit` to each link and `maxItems` to the whole run.

#### Instagram Python: call the scraper from your code

Looking for an Instagram scraper Python developers can call in a few lines? Use the Apify client: the Instagram Scraper runs on Apify's servers and your script reads the rows.

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("neuro-scraper/instagram-video-scraper").call(run_input={
    "directUrls": ["https://www.instagram.com/nasa/"],
    "resultsType": "posts",
    "resultsLimit": 20,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["url"], item["likesCount"])
```

### How to use the Instagram Scraper

Here is how to scrape Instagram data in four steps:

1. Open the Instagram Scraper in Apify Console and add links or usernames to `directUrls`, or terms to `search`.
2. Choose `resultsType` (posts, reels, details, comments or mentions) and set `resultsLimit`.
3. Keep the residential proxy: Instagram limits logged-out visitors per IP address.
4. Press Start, then export the dataset or read it through the API.

You run the Instagram Scraper online in Apify Console, with nothing to install. Every input field of the Instagram Scraper:

| Field | Type | Default | What it does |
|---|---|---|---|
| `directUrls` | array | \["https://www.instagram.com/nasa/"] | Profiles, usernames, posts, reels, hashtag or location links, mixed freely |
| `search` | array | \[] | Keywords or hashtags: posts by default, profiles (found through Google) with details |
| `resultsType` | string | posts | posts, reels, details, comments or mentions |
| `resultsLimit` | integer | 20 | Limit for each link or search term |
| `includeDetails` | boolean | true | Reads each post's own data (one extra request per post); off is faster |
| `searchType` | string | auto | auto, hashtag, profile or user; place search needs a login, so it is not offered |
| `searchLimit` | integer | 0 | Hashtag search: this many tags in total (the term's tag plus related tags); profile search: this many profiles |
| `onlyPostsNewerThan` | string | - | Leave out older posts: 2026-09-01, an ISO time or "7 days" (UTC) |
| `onlyPostsOlderThan` | string | - | Leave out newer posts (same formats); combine both for a date range |
| `skipPinnedPosts` | boolean | false | Leave out posts pinned to the top of a profile |
| `addParentData` | boolean | false | Adds `dataSource` (profile, post, hashtag, location, comment or search) |
| `maxItems` | integer | 0 | Stops the run after this many rows; 0 = only the per-link limits |
| `proxyConfiguration` | object | RESIDENTIAL | Apify proxy; a blocked IP is swapped for a fresh one |

Example Instagram Scraper input, mixing a profile, a hashtag and a post:

```json
{
  "directUrls": [
    "https://www.instagram.com/nasa/",
    "https://www.instagram.com/explore/tags/cats/",
    "https://www.instagram.com/p/DdHyaYAifb6/"
  ],
  "resultsType": "posts",
  "resultsLimit": 13
}
```

### Instagram API: call it from any app

Every Apify Actor is also an API, so the Instagram Scraper API takes the JSON input above over HTTPS and returns the dataset. It is not Meta's Instagram Graph API: there is no app review and no Meta token, only your Apify token.

One request runs the Instagram Scraper and returns the rows: POST the input to `https://api.apify.com/v2/acts/neuro-scraper~instagram-video-scraper/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>`.

For the Instagram Python API route, use the apify-client snippet above. Make, Zapier and n8n have Apify integrations, and a webhook can push each finished run into your own system for automation.

### Instagram Scraper pricing, speed and limits

The Instagram Scraper uses pay-per-event pricing: one `result` event per dataset row, plus the Apify platform usage of your run. Your Instagram API cost is the row price below plus that usage.

| Apify plan | Price per 1,000 rows |
|---|---|
| Free | $2.99 |
| Bronze | $2.89 |
| Silver | $2.69 |
| Gold and above | $2.49 |

Free-plan runs are capped at 30 rows. That is a size cap, not a free allowance: every row is charged. Set a maximum cost per run in Apify and the run stops when it is reached.

Instagram Scraper speed in the local test runs (2026-10-03, home connection, no proxy):

| Test | Result | Rows | Time |
|---|---|---|---|
| prefill input (regression) | PASS | 20 | 15 s |
| mixed URLs, posts | PASS | 27 | 20 s |
| details of profiles | PASS | 1 | 10 s |
| comments of a post | PASS | 30 | 11 s |
| reels of a profile | PASS | 13 | 20 s |
| NEW hashtag search + addParentData + skip pinned | PASS | 9 | 12 s |
| NEW mentions results + date filter | PASS | 11 | 10 s |

A pagination check of the Instagram Scraper followed Instagram's cursor up to every limit: 30 posts in 3 list calls, 40 comments, 30 #cats posts and 15 related tags with 2 posts each (30 rows in 25 s).

Instagram Scraper limits, measured on 2026-10-03:

- Follower and following lists, stories, the tagged tab, likers and Instagram's user and place search need a login, so they are not available.
- Instagram returns no total post count for a profile logged out, and no share counts or separate view counts for posts.
- Replies to comments are not shown to logged-out visitors; comments come newest first.
- A location link gives one page of top posts: about 54 for New York.
- Only some tags get a public page (travel and cats yes, food and fitness no), and a tag page ends after about 48-60 posts.
- Profile search goes through Google with Apify's Google SERP proxy: "coffee roasters" gave 15 profiles in 77 s.
- Video and audio links are signed and expire: a link read on 2026-10-03 expired on 2026-10-07.

### Frequently asked questions

#### Is it legal to scrape Instagram?

The Instagram Scraper reads only pages any logged-out visitor can open, and it never bypasses a login. Whether you may collect and reuse the data depends on your country and purpose: personal data stays under laws such as the GDPR, so check them before you store or publish it.

#### Can you scrape Instagram without logging in?

Yes, for public content: profiles, posts, reels, comments, tag pages and location pages. Follower lists, stories and the tagged tab are login walls, so the Instagram Scraper does not return them.

#### How do I scrape Instagram data?

Add links, usernames or search terms, choose `resultsType` and press Start; the four steps are above. From code, call the Instagram Scraper through the Apify API and read the dataset items.

#### Does Instagram allow scraping?

Instagram's Terms of Use say information should not be collected in an automated way without its permission. The Instagram Scraper never logs in, but you remain responsible for how you use the data, so read Instagram's terms and the privacy law that applies to you.

#### What is an Instagram scraper?

A program that reads public Instagram pages and turns them into structured data: captions, likes, dates, links. The Instagram Scraper runs on Apify's servers, so it is an Instagram scraper tool with nothing to install.

#### Can it scrape comments and reels too?

Yes. Set the Instagram Scraper's resultsType to comments for post links (30 comments in 11 s) or to reels for profiles (13 reels in 20 s). Replies are not shown logged out, so `repliesCount` stays empty.

#### Can I get the follower list of an Instagram account?

No. Follower and following lists need a login, and the Instagram Scraper never logs in. You do get the follower count: `followersCount` in a profile row (resultsType details).

#### Is there a free Instagram scraper?

You can run the Instagram Scraper on the Apify Free plan, but runs there are capped at 30 rows and every row is charged at $2.99 per 1,000. Paid Apify plans have no such cap and a lower row price.

#### Can I use this Instagram scraper from Python?

Yes. Install apify-client, call the Instagram Scraper (`neuro-scraper/instagram-video-scraper`) with the same JSON input and iterate the dataset items. The Instagram Python snippet above is complete.

#### Which Instagram scraping tool should I use?

Use the Instagram Scraper when one run must mix profiles, posts, tags, places and search terms. For one job at scale, the single-purpose Actors below add options of their own, such as the media-type and minimum-likes filters of the Instagram Hashtag Scraper.

### Related Instagram scrapers

These published Actors run on the same logged-out engine as the Instagram Scraper, each tuned for one job.

| Actor | Link |
|---|---|
| Instagram Hashtag Scraper | [neuro-scraper/instagram-reeel-scraper](https://apify.com/neuro-scraper/instagram-reeel-scraper) |
| Instagram Reels Scraper | [neuro-scraper/instagram-reels-scraper](https://apify.com/neuro-scraper/instagram-reels-scraper) |
| Instagram Posts Scraper | [neuro-scraper/instagram-posts-scraper](https://apify.com/neuro-scraper/instagram-posts-scraper) |
| Instagram Reels Downloader | [neuro-scraper/instagram-reels-downloader](https://apify.com/neuro-scraper/instagram-reels-downloader) |
| Instagram Trends Scraper | [neuro-scraper/instagram-reels-scraper-and-downloader](https://apify.com/neuro-scraper/instagram-reels-scraper-and-downloader) |
| Instagram Location Scraper | [neuro-scraper/instagram-reels-scraper-and-downloader-advanced](https://apify.com/neuro-scraper/instagram-reels-scraper-and-downloader-advanced) |
| Instagram Comments Scraper | [neuro-scraper/instagram-reels-scraper-and-downloader-premium](https://apify.com/neuro-scraper/instagram-reels-scraper-and-downloader-premium) |
| Instagram Profile Scraper | [neuro-scraper/instagram-reels-scraper-downloader-pro](https://apify.com/neuro-scraper/instagram-reels-scraper-downloader-pro) |
| Instagram Video Downloader | [neuro-scraper/instagram-video-downloader](https://apify.com/neuro-scraper/instagram-video-downloader) |
| Instagram Search Scraper | [neuro-scraper/instagram-video-scraper-advanced](https://apify.com/neuro-scraper/instagram-video-scraper-advanced) |
| Instagram Image Downloader | [neuro-scraper/instagram-video-scraper-and-downloader](https://apify.com/neuro-scraper/instagram-video-scraper-and-downloader) |
| Instagram Keyword Scraper | [neuro-scraper/instagram-video-scraper-and-downloader-fastest](https://apify.com/neuro-scraper/instagram-video-scraper-and-downloader-fastest) |

### Leave a review

If the Instagram Scraper saved you time, please leave a star rating and a short review on its Apify page. Reviews help other buyers judge the Instagram Scraper and tell us what to build next; if something failed, open an issue instead.

# Actor input Schema

## `directUrls` (type: `array`):

Profiles, posts, reels, hashtag (/explore/tags/...) or location URLs - mix freely.

## `search` (type: `array`):

Keywords or hashtags. With "details" returns matching profiles (found through Google), otherwise posts.

## `resultsType` (type: `string`):

Rows produced for each URL.

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

Limit for each input URL or search term.

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

Reads each post's own data (likes, comments count, date, caption, tagged users, location, audio, video link). One extra request per post. Turn off for the fastest, lightest run.

## `searchType` (type: `string`):

What a search term looks for. Instagram's place search needs a login, so places are not offered: add location URLs instead.

## `searchLimit` (type: `integer`):

Hashtag search: the term's own tag page plus this many minus one related tags Instagram suggests. Profile search: this many profiles.

## `onlyPostsNewerThan` (type: `string`):

Leave out posts published before this date: 2026-09-01, an ISO time (2026-09-01T10:00:00Z) or relative ("7 days", "2 weeks", "1 month"). UTC. Profile lists stop paging once older posts are reached.

## `onlyPostsOlderThan` (type: `string`):

Leave out posts published after this date (same formats). Combine with "newer than" for a date range.

## `skipPinnedPosts` (type: `boolean`):

Leave out the posts a profile pinned to the top of its grid (often months old). Instagram flags them in the profile's post list.

## `addParentData` (type: `boolean`):

Adds a dataSource field to every row: profile, post, hashtag, location, comment or search.

## `maxItems` (type: `integer`):

Stops the whole run after this many dataset rows. 0 means only the per-target limits apply.

## `proxyConfiguration` (type: `object`):

Instagram limits logged-out visitors per IP address. Residential proxies (the default) give the most reliable results; the Actor switches to a fresh IP when Instagram blocks one.

## Actor input object example

```json
{
  "directUrls": [
    "https://www.instagram.com/nasa/"
  ],
  "search": [],
  "resultsType": "posts",
  "resultsLimit": 20,
  "includeDetails": true,
  "searchType": "auto",
  "searchLimit": 0,
  "skipPinnedPosts": false,
  "addParentData": false,
  "maxItems": 0,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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 = {
    "directUrls": [
        "https://www.instagram.com/nasa/"
    ],
    "search": [],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("neuro-scraper/instagram-video-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 = {
    "directUrls": ["https://www.instagram.com/nasa/"],
    "search": [],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("neuro-scraper/instagram-video-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 '{
  "directUrls": [
    "https://www.instagram.com/nasa/"
  ],
  "search": [],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call neuro-scraper/instagram-video-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,neuro-scraper/instagram-video-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/c5ZtPxoPStOpa566V/builds/BMr3pZntRC1XPWPoY/openapi.json
