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

Scrape Instagram profiles, posts, reels, tagged posts, hashtags, search results, story highlights, reels by audio and video transcripts from one actor.

- **URL**: https://apify.com/seemuapps/instagram-scraper-all-in-one.md
- **Developed by:** [Andrew](https://apify.com/seemuapps) (community)
- **Categories:**
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

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

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#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

Scrape Instagram profiles, posts, reels, tagged posts, hashtag feeds, search results, story highlights, reels by audio track and video transcripts from a single actor. Pick a scrape type, paste your usernames, URLs, hashtags or keywords, and get clean, flat records you can export to JSON, CSV, Excel or Google Sheets. No login, no cookies, no proxies to manage.

### What you can scrape

| Scrape type | What you get | Input field |
| --- | --- | --- |
| **Profile details (full)** | Followers, following, post count, bio, bio links, contact email/phone, verification, business category, plus the 12 latest posts | Usernames |
| **Profile details (basic)** | The same profile record without the latest posts (cheaper, faster) | Usernames |
| **User posts** | Every post and reel from a profile grid with likes, comments, plays, media URLs and music | Usernames |
| **User reels** | Reels from the reels tab with play counts, duration and audio info | Usernames |
| **Tagged posts** | Posts where the account was tagged by other users | Usernames |
| **Story highlights list** | Every highlight cover on a profile with its ID, title and story count | Usernames |
| **Story highlight items** | Every story saved inside a highlight, with image/video URLs, links and mentions | Highlight IDs |
| **Post / Reel details** | Full metadata for a single post or reel, including carousel images and tagged users | Post URLs |
| **Video transcript** | Speech-to-text transcript of a reel or video post | Post URLs |
| **Hashtag posts** | Posts and reels under a hashtag, optionally reels-only or restricted to a date window | Hashtags |
| **Search** | Accounts, hashtags and places matching a keyword | Search queries |
| **Search profiles** | Full profile records (bio, follower counts, contact details) for every account matching a keyword | Search queries |
| **Search reels by keyword** | Reels matching a keyword, optionally restricted to a date window | Search queries |
| **Reels using an audio** | Every reel that uses a given audio track or original sound | Audio IDs |

### Quick start

1. Choose a **scrape type** from the dropdown.
2. Fill in the input field shown in brackets next to it. Usernames accept plain handles, `@handles` or profile URLs; post URLs accept `/p/`, `/reel/` and `/tv/` links or bare shortcodes; hashtags work with or without `#`.
3. Set **Max results per target** for list-based types (default 100, `0` for unlimited).
4. Click **Start**. Results stream into the **Dataset** tab as they arrive.

Example input:

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

### Output format

Every record carries a `type` field so mixed exports stay easy to filter. Posts and reels share one flat shape:

```json
{
  "type": "reel",
  "id": "3957463127796339198",
  "shortCode": "Dbru79IAdH-",
  "url": "https://www.instagram.com/reel/Dbru79IAdH-/",
  "mediaType": "Video",
  "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": 212542,
  "commentsCount": 1623,
  "videoPlayCount": 9376735,
  "videoDuration": 62.08,
  "displayUrl": "https://…jpg",
  "videoUrl": "https://…mp4",
  "images": [],
  "music": { "audioId": "28139527835659346", "songName": "Original audio", "artistName": "natgeo" },
  "taggedUsers": [],
  "locationName": null,
  "isPaidPartnership": false,
  "source": "natgeo"
}
```

Profiles:

```json
{
  "type": "profile",
  "id": "787132",
  "username": "natgeo",
  "fullName": "National Geographic",
  "biography": "Step into wonder and find your inner explorer…",
  "externalUrl": "http://visitstore.bio/natgeo",
  "bioLinks": [],
  "followersCount": 268605892,
  "followsCount": 194,
  "postsCount": 31964,
  "isVerified": true,
  "isPrivate": false,
  "isBusinessAccount": true,
  "accountType": "business",
  "businessCategory": null,
  "publicEmail": null,
  "publicPhone": null,
  "profilePicUrl": "https://…jpg",
  "url": "https://www.instagram.com/natgeo/",
  "latestPosts": [ { "type": "reel", "shortCode": "…" } ]
}
```

Highlights (`type: "highlight"`) return `id`, `title`, `coverUrl`, `mediaCount` and `url`; highlight items (`type: "story"`) return `displayUrl`, `videoUrl`, `timestamp`, `links` and `mentions`. Search results are `account`, `hashtag` or `place` records with the matching `query`. Transcripts (`type: "transcript"`) return `language`, `transcript` and the post's engagement metrics.

Need a field that is not in the normalized output? Turn on **Include all available fields** and every record carries the complete upstream payload under `raw`.

### Use cases

- **Influencer discovery** — search profiles by keyword, then pull follower counts and contact details for outreach lists
- **Competitor tracking** — scrape a competitor's posts and reels on a schedule and watch engagement over time
- **Content research** — find the best-performing reels for a hashtag or keyword before planning a campaign
- **Audio trend spotting** — pull every reel built on a trending sound to see how creators are using it
- **Video SEO and repurposing** — transcribe reels into captions, blog posts or subtitles
- **Lead generation** — export business accounts with public emails and phone numbers from hashtag and search results

### Options

- **Max results per target** — caps results per username, hashtag, query or audio ID. Applies to list-based scrape types.
- **Only content posted within** — restricts hashtag posts and reel searches to the last hour, day, week, month or year.
- **Hashtag media type** — return posts and reels, or reels only.
- **Include all available fields** — append the full upstream payload to each record under `raw`.

### Notes and limits

- Only **public** data is returned. Private accounts expose profile metadata but not their posts.
- **Video transcripts** work on videos up to 25 MB, take a few seconds each, and require a paid Apify plan. Videos with no speech return an empty transcript.
- **Hashtag and keyword searches** are ranked by Instagram and typically cap out at around 100–150 results per query. When a date filter is active on a ranked feed, the actor stops after several pages with no matching results to keep runs fast.
- **Story highlight items** need a highlight ID, which you get from the *Story highlights list* scrape type. Audio IDs come from the `music.audioId` field of any reel result or from a `instagram.com/reels/audio/…` URL.
- **On the free plan** each run returns up to 20 results per target. Any paid plan lifts the limit.

### Pricing

This actor uses **pay per event**: you are charged per record written to the dataset, so runs that return nothing cost nothing.

| Event | Charged for |
| --- | --- |
| `profile-result` | Each profile returned |
| `post-result` | Each post or reel from a profile, hashtag, keyword search or audio track |
| `post-detail-result` | Each post or reel looked up by its own URL |
| `search-result` | Each account, hashtag, place or profile returned by a search |
| `highlight-result` | Each highlight cover returned by the highlights list |
| `story-result` | Each story returned from a highlight |
| `transcript-result` | Each started minute of audio transcribed (a 45-second reel is one event, a 90-second reel is two) |

Cap the spend of any run with the **maximum cost** option in the run settings. The actor stops cleanly when the cap is reached and keeps everything collected up to that point.

### Integrations

Results land in a standard Apify dataset. Export them as JSON, CSV, Excel or XML, push them to Google Sheets, or fetch them from the Apify API, webhooks, Zapier and Make.

# Actor input Schema

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

Pick the type of data to extract, then fill in ONLY the input field named in brackets for that type.

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

Instagram usernames or profile URLs, with or without @. 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/ (plain shortcodes also work). Used by: Post / Reel details, Video transcript.

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

Keywords to search for. Used by: Search, Search profiles, 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 or highlight URLs (get IDs first with the 'Story highlights list' scrape type). Used by: Story highlight items.

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

Instagram audio IDs or audio page URLs (https://www.instagram.com/reels/audio/123.../). The audioId of any reel result works here. Used by: Reels using an audio.

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

Maximum number of results to return for each username, hashtag, query or audio. 0 = unlimited. 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.

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

Add every field Instagram exposes for each result under the 'raw' field, including ones left out of the standard output.

## Actor input object example

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

# Actor output Schema

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

One record per result. Every record has a 'type' field (profile, post, reel, highlight, story, account, hashtag, place, transcript) plus the flat normalized fields for that type: posts/reels carry id, shortCode, url, caption, hashtags, mentions, timestamp, username, ownerId, likesCount, commentsCount, videoPlayCount, videoDuration, displayUrl, videoUrl, music, taggedUsers, isPaidPartnership; profiles carry followersCount, followsCount, postsCount, biography, externalUrl, bioLinks, isVerified, isBusinessAccount, publicEmail, publicPhone.

# 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("seemuapps/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": ["natgeo"] }

# Run the Actor and wait for it to finish
run = client.actor("seemuapps/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": [
    "natgeo"
  ]
}' |
apify call seemuapps/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,seemuapps/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/rfl3h0eaPn4c7z5pT/builds/sDhTbKBeWCKQSgy1m/openapi.json
