# Instagram Scraper All-in-One (`scrapeforge/instagram-scraper-all-in-one`) Actor

Scrape Instagram profiles, posts, reels, tagged posts, hashtags, search results, highlights and video transcripts. No login required.

- **URL**: https://apify.com/scrapeforge/instagram-scraper-all-in-one.md
- **Developed by:** [ScrapeForge](https://apify.com/scrapeforge) (community)
- **Categories:** Social media, Videos, AI
- **Stats:** 6 total users, 5 monthly users, 88.9% runs succeeded, 1 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $1.25 / 1,000 post or reels

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

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

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Instagram Scraper All-in-One — Profiles, Posts, Reels, Hashtags & Transcripts

Fifteen Instagram scrapers in a single Actor: profile details, posts, reels, tagged posts, hashtag feeds, search, story highlights and AI video transcripts — one input format, one consistent output schema, one bill.

Stop wiring together a separate Actor for every content type. This one covers them all.

No login and no cookies required. Most runs finish in seconds rather than minutes, and never get stuck on Instagram's login wall.

### What you can scrape

| Scrape type | What you get | Input you provide |
| --- | --- | --- |
| **Profile details (full)** | Followers, following, posts count, bio, links, contact info, verification, category + 12 latest posts | Usernames |
| **Profile details (basic)** | Lighter profile payload without the latest posts | Usernames |
| **User posts** | Every post and reel from a profile grid, with full engagement metrics | Usernames |
| **User reels** | Reels from the reels tab, with play counts and audio info | Usernames |
| **Tagged posts** | Posts where the account is tagged by other users | Usernames |
| **Story highlights list** | All highlight covers on a profile, with IDs and titles | Usernames |
| **Story highlight items** | Every story saved inside one highlight | Highlight IDs |
| **Post / Reel details** | Full metadata for a single post or reel | Post URLs |
| **Video transcript** | AI speech-to-text of a reel or video post | Post URLs |
| **Hashtag posts** | Posts and reels published under a hashtag, with date filters | Hashtags |
| **Search** | Accounts, hashtags and places matching a term | Search queries |
| **Search profiles by bio keyword** | Find creators and businesses by what their bio says | Search queries |
| **Search reels by keyword** | Reels matching a keyword, with date filters | Search queries |
| **Trending reels** | Instagram's public trending reels feed | — |
| **Reels using an audio** | Every reel using a specific audio track | Audio IDs |

### Quick start

1. Pick a **scrape type** from the dropdown.
2. Fill in only the input field named in brackets next to it — for example *User posts — \[Usernames]* needs the **Usernames** field.
3. Set **Max results per target** to cap how many results each username, hashtag or query returns.
4. Click **Start**.

#### Example input

```json
{
  "scrapeType": "posts",
  "usernames": ["natgeo", "nasa"],
  "maxItems": 50
}
```

Usernames accept plain handles (`natgeo`), `@handles`, or full profile URLs.

### Example output

Every post and reel comes back in one flat, consistent shape, ready for CSV or Excel:

```json
{
  "type": "reel",
  "id": "3957463127796339198",
  "shortCode": "Dbru79IAdH-",
  "url": "https://www.instagram.com/reel/Dbru79IAdH-/",
  "caption": "This young cub could be king…",
  "hashtags": ["NatGeoLION"],
  "mentions": ["DisneyPlus", "hulu"],
  "timestamp": "2026-08-06T14:00:02.000Z",
  "username": "natgeo",
  "fullName": "National Geographic",
  "ownerId": "787132",
  "ownerIsVerified": true,
  "likesCount": 183652,
  "commentsCount": 1209,
  "videoPlayCount": 3915427,
  "videoDuration": 62.08,
  "displayUrl": "https://…jpg",
  "videoUrl": "https://…mp4",
  "music": {
    "audioId": "28139527835659346",
    "songName": "Original audio",
    "artistName": "natgeo"
  },
  "taggedUsers": [{ "username": "natgeotv", "fullName": "National Geographic TV" }],
  "isPaidPartnership": false
}
```

Profiles return follower counts, bio links and business contact details:

```json
{
  "type": "profile",
  "username": "natgeo",
  "fullName": "National Geographic",
  "biography": "Step into wonder and find your inner explorer…",
  "followersCount": 268808347,
  "followsCount": 194,
  "postsCount": 31890,
  "isVerified": true,
  "isBusinessAccount": false,
  "externalUrl": "http://visitstore.bio/natgeo",
  "profilePicUrl": "https://…jpg"
}
```

Need a field that is not in the normalized output? Turn on **Include all available fields** and every result carries everything Instagram exposes under `raw`.

### What you can build with it

- **Influencer discovery** — search profiles by bio keyword, then pull follower counts and contact details to build outreach lists.
- **Competitor tracking** — scrape a competitor's posts on a schedule and watch engagement trends over time.
- **Content research** — find the top-performing reels for a hashtag or keyword before planning a campaign.
- **Audio trend spotting** — pull every reel using a trending sound to see how other creators use it.
- **Video SEO and repurposing** — transcribe reels to turn spoken content into captions, blog posts or subtitles.

### Options

- **Max results per target** — caps results per username, hashtag or query. Applies to list-based scrape types.
- **Only content posted within** — restricts hashtag and reel searches to the last hour, day, week, month or year.
- **Hashtag media type** — return posts and reels, or reels only.
- **Accept recent data up to** — reuse recently collected data instead of refreshing it. Much faster and cheaper when freshness is not critical. Applies to profile details, post details and transcripts.
- **Include all available fields** — append every field Instagram exposes to each result.

### Notes and limits

- Only **public** data is returned. Private accounts expose profile metadata but not their posts.
- **Comment extraction is not supported** by this Actor.
- **Transcripts** work on videos up to 2 minutes and take 10–30 seconds each. Videos with no speech return an empty transcript.
- **Hashtag and keyword searches** are capped at roughly 110 results per query, which is Instagram's own limit for these feeds.
- **Trending reels** come from Instagram's public feed, which repeats items; duplicates are removed automatically.
- **Play counts** reflect Instagram only and can lag slightly behind what the app shows.
- **Story highlight items** need a highlight ID, which you get from the *Story highlights list* scrape type.
- **On Apify's free plan** each run returns up to 20 results for a single target, and video transcripts require a paid plan. Any paid plan lifts both limits.

### Pricing

This Actor uses **pay per event**: you are charged per result delivered, so a run that returns nothing costs nothing.

| Event | Charged for |
| --- | --- |
| `profile-result` | Each profile returned |
| `post-result` | Each post or reel from a profile, hashtag, search or trending feed |
| `post-detail-result` | Each post or reel looked up by its own URL |
| `search-result` | Each account, hashtag or place returned by a search |
| `highlight-result` | Each highlight or story returned |
| `transcript-result` | Each video transcript returned |

You can cap the spend of any run with the **maximum cost** setting in the run options. The Actor stops cleanly when the cap is reached and keeps everything collected up to that point.

### Integrations

Results land in an Apify dataset, exportable as JSON, CSV, Excel, XML or via API. Connect the Actor to Make, Zapier, Google Sheets, Slack, Airbyte or any HTTP webhook, and schedule runs to build a time series of any account or hashtag.

### Is it legal to scrape Instagram?

This Actor collects only publicly available information — the same data any visitor can see without logging in. It does not access private accounts or personal data behind a login. You remain responsible for how you use the data, including compliance with GDPR and other regulations; consult a lawyer if you plan to process personal data.

# Actor input Schema

## `scrapeType` (type: `string`):

Pick the type of data to extract. Then fill in ONLY the input field belonging to that type (the field name is shown in brackets).

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

Instagram usernames or profile URLs. Used by: Profile details, User posts, User reels, Tagged posts, Story highlights list.

## `postUrls` (type: `array`):

Full URLs of Instagram posts or reels, e.g. https://www.instagram.com/p/ABC123/ or https://www.instagram.com/reel/ABC123/. Used by: Post / Reel details, Video transcript.

## `queries` (type: `array`):

Keywords to search for. Used by: Search, Search profiles by bio keyword, Search reels by keyword.

## `hashtags` (type: `array`):

Hashtags to scrape, with or without the # symbol. Used by: Hashtag posts.

## `highlightIds` (type: `array`):

Story highlight IDs (get them first with the 'Story highlights list' scrape type). Used by: Story highlight items.

## `audioIds` (type: `array`):

Instagram audio / music IDs. Used by: Reels using an audio.

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

Maximum number of results to return for each username, hashtag or query. Only applies to scrape types that return lists.

## `datePosted` (type: `string`):

Filter results by recency. Used by: Hashtag posts and Search reels by keyword.

## `mediaType` (type: `string`):

Which media to return for Hashtag posts: everything, or reels only.

## `cacheMaxAge` (type: `string`):

Reuse recently collected data when it is available instead of refreshing it. Much faster and cheaper, but results may be a few days old. Applies to: Profile details, Post / Reel details, Video transcript.

## `includeRawData` (type: `boolean`):

Add every field Instagram exposes for each result under the 'raw' field, including ones left out of the standard output. Useful when you need something the normalized fields do not cover.

## Actor input object example

```json
{
  "scrapeType": "profile",
  "usernames": [
    "instagram"
  ],
  "maxItems": 100,
  "datePosted": "any",
  "mediaType": "all",
  "cacheMaxAge": "off",
  "includeRawData": false
}
```

# Actor output Schema

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

Every result from the run. Posts and reels include shortCode, url, caption, hashtags, mentions, timestamp, username, likesCount, commentsCount, videoPlayCount, videoDuration, displayUrl, videoUrl, music, taggedUsers and childPosts. Profiles include followersCount, followsCount, postsCount, biography, bioLinks and business contact details.

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

// Run the Actor and wait for it to finish
const run = await client.actor("scrapeforge/instagram-scraper-all-in-one").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": ["instagram"] }

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapeforge/instagram-scraper-all-in-one"
        }
    }
}

```

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/4q7Q5OvbiKKAS2dEC/builds/rR6YRdKXR95QV81LN/openapi.json
