# Instagram Highlights Scraper — Highlights & Story Status (`thenetaji/instagram-highlights-scraper`) Actor

List the story highlights of public Instagram profiles by title, fetch the media inside each one, or check which profiles have a story live right now.

- **URL**: https://apify.com/thenetaji/instagram-highlights-scraper.md
- **Developed by:** [The Netaji](https://apify.com/thenetaji) (community)
- **Categories:** Social media, For creators, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.25 / 1,000 results

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/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 Highlights Scraper

The Actor lists the story highlights saved on public Instagram profiles, one row per highlight with its title, and can attach the media inside each one. A second mode checks which of the given profiles have a story live at the moment of the run.

### Accepted input

- `profiles`: Instagram usernames, one per line, without the `@`.
- `scraperType`: `profileHighlights` lists the highlights of each account; `profileStories` reports whether a story is live. The default is `profileHighlights`.
- `limit`: the number of highlights saved for each account. The default is `100`; `0` returns every highlight. The value does not apply to `profileStories`, which produces at most one row per account.
- `addonHighlightDetails`: when enabled in `profileHighlights` mode, the media inside each highlight is fetched and attached to its row. The default is `false`.

```json
{
  "profiles": ["natgeo"],
  "scraperType": "profileHighlights",
  "limit": 20,
  "addonHighlightDetails": true
}
```

### Response fields

- `title`: the highlight name as shown on the profile.
- `enriched`: `true` when the highlight media was fetched and attached.
- `has_story`: present in `profileStories` mode and always `true`, since only accounts with a live story produce a row.
- `source_username`: the account the row belongs to.

### Behaviour of the two modes

In `profileStories` mode an account without a live story produces no row, so the dataset lists exactly the accounts that had one; the run still finishes successfully when none do. Stories expire after 24 hours, so the result describes the moment of the run only.

In `profileHighlights` mode the `limit` is applied before any media is fetched, and the media charge is made once per highlight only after its media has been read. A highlight whose media cannot be read is left out of the dataset and is not charged.

### Frequently asked questions

**Can the Actor download the story or highlight files?**
No. Rows describe highlights and story status. Media files are outside the scope of this Actor.

**Are highlights from private accounts available?**
No. A private account returns no highlights and contributes no rows.

**Where are the account's posts and reels?**
Feed content is exported by the [Instagram Profile Posts Scraper](https://apify.com/thenetaji/instagram-profile-posts-scraper), and profile details such as follower counts by the [Instagram User Info Scraper](https://apify.com/thenetaji/instagram-user-info-scraper).

# Actor input Schema

## `profiles` (type: `array`):

Usernames of public accounts, one per line, without the @.

## `scraperType` (type: `string`):

The highlights on each profile, or whether a story is live now.

## `limit` (type: `integer`):

How many items to return for each profile. 0 returns everything the profile has.

## `addonHighlightDetails` (type: `boolean`):

Fetch the media inside each highlight. Charged once per highlight. Highlights only.

## Actor input object example

```json
{
  "profiles": [
    "cristiano"
  ],
  "scraperType": "profileHighlights",
  "limit": 100,
  "addonHighlightDetails": false
}
```

# Actor output Schema

## `dataset` (type: `string`):

All records scraped by this run

# 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 = {
    "profiles": [
        "cristiano"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("thenetaji/instagram-highlights-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 = { "profiles": ["cristiano"] }

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,thenetaji/instagram-highlights-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/8sNTDtAS5io2W29zE/builds/Vc73VlxLvqBByIYak/openapi.json
