# Instagram Highlights Downloader (`deepmine/instagram-highlights-downloader`) Actor

Instagram highlights downloader: usernames or highlight links in; a direct download link for every photo and video in each highlight, with file name, highlight title, position and time posted. $1.49 per 1,000 items on Starter, 2x cheaper than the most-used stories and highlights scraper. No login.

- **URL**: https://apify.com/deepmine/instagram-highlights-downloader.md
- **Developed by:** [DeepMine](https://apify.com/deepmine) (community)
- **Categories:** Social media, Videos
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.09 / 1,000 highlight items

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 Downloader

This **Instagram highlights downloader** takes usernames or highlight links and gives you a **direct download link for
every photo and video in each highlight**, with a ready file name, the highlight's title, the item's position and the
time it was posted. **Every highlight of an account** by default, not only the first 10. No login, no browser.

**$1.49 per 1,000 highlight items on the Starter plan** ($1.69 Free, $1.29 Scale, $1.09 Business). You pay per photo or
video delivered; an account with no highlights costs nothing.

### How to download Instagram highlights

1. Paste usernames (`nasa`, `@natgeo`) or profile links into **Instagram usernames or profile links**, or single
   highlight links (`https://www.instagram.com/stories/highlights/18145966027591735/`) or their numbers into
   **Highlight links or IDs**.
2. Leave **Max highlights per account** at 0 for all of them, or set a number.
3. Run, then open the **Downloads** table: `mediaUrl` is the file itself (the video for a video, the photo for a
   photo), `fileName` is a name to save it under. Export as JSON, CSV or Excel, or read the dataset through the API and
   fetch each `mediaUrl`.

### What you get, per photo or video

- `mediaUrl`: the direct download link (Instagram's CDN), and `fileName` (`nasa_highlight_<id>.mp4`)
- `imageUrl`, `videoUrl`, `thumbnailUrl`, and every size in `imageVersions` and `videoVersions`
- `mediaType` (image / video), `width`, `height`, `videoDuration`, `hasAudio`
- `highlightId`, `highlightTitle`, `highlightCoverUrl`, `highlightUrl`, `position` (1 = first item of the highlight)
- `storyId`, `shortcode`, `storyUrl`, `takenAt`, `takenAtTimestamp`, `ageHours`
- stickers when Instagram includes them logged out: `links` and `linkStickers` (the real target address, unwrapped),
  `mentions`, `hashtags`, `locations`, `musicSticker`, `linkedPost`, `questions`, `sliders`, `countdowns`,
  `isPaidPartnership`, `accessibilityCaption`
- the owner: `username`, `userId`, `fullName`, `isVerified`, `profilePicUrl`, `followersCount`
- `source` (instagram.com), `inputUrl`, `scrapedAt`

Fields, in row order: `username`, `kind`, `position`, `storyId`, `shortcode`, `storyUrl`, `mediaType`, `mediaUrl`,
`fileName`, `productType`, `takenAt`, `takenAtTimestamp`, `expiringAt`, `isLive`, `ageHours`, `imageUrl`, `videoUrl`,
`thumbnailUrl`, `width`, `height`, `videoDuration`, `hasAudio`, `imageVersions`, `videoVersions`, `linkStickers`,
`links`, `hashtags`, `locations`, `mentions`, `musicSticker`, `linkedPost`, `questions`, `sliders`, `countdowns`,
`isPaidPartnership`, `accessibilityCaption`, `highlightId`, `highlightTitle`, `highlightCoverUrl`, `highlightUrl`,
`userId`, `fullName`, `isVerified`, `isPrivate`, `profilePicUrl`, `followersCount`, `source`, `mediaUrlsFrom`,
`inputUrl`, `scrapedAt`.

### Input example

```json
{ "usernames": ["nasa", "https://www.instagram.com/natgeo/"], "maxHighlightsPerProfile": 0, "maxItemsPerHighlight": 0 }
```

### Good to know

- Highlights come from **Instagram itself** (its public, logged-out pages), so the links are Instagram's own CDN links.
  They carry an expiry (`oe=` in the address), usually days: download the files soon after the run, or run again.
- This Actor gives links, not a stored copy of the files.
- Private accounts, accounts that don't exist and accounts with no highlights are named in the run's status line and
  in the `OUTPUT` record, and are never charged. If Instagram refuses every highlights call, the run fails with one
  line and charges nothing.
- Only Apify's datacenter proxy is used; no residential proxy, no account.
- Need live stories (the last 24 hours) too? Use Instagram Stories & Highlights Scraper or Instagram Story Downloader.

Did it save you time? Please **leave a review** on the Store page: it helps others find it.

# Actor input Schema

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

Usernames (nasa, @natgeo) or profile links (https://www.instagram.com/nasa/). Every highlight of each account is downloaded, up to 'Max highlights per account'.

## `highlightUrls` (type: `array`):

Single highlights: links like https://www.instagram.com/stories/highlights/18145966027591735/ or just the number.

## `maxHighlightsPerProfile` (type: `integer`):

How many highlights to open per account, in the order the profile shows them. 0 = all of them.

## `maxItemsPerHighlight` (type: `integer`):

How many photos and videos to take from each highlight, from the first. 0 = all.

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

Apify datacenter proxy is enough; residential is never needed.

## Actor input object example

```json
{
  "usernames": [
    "nasa"
  ],
  "maxHighlightsPerProfile": 3,
  "maxItemsPerHighlight": 0,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `downloads` (type: `string`):

No description

## `summary` (type: `string`):

No description

# 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": [
        "nasa"
    ],
    "maxHighlightsPerProfile": 3,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("deepmine/instagram-highlights-downloader").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": ["nasa"],
    "maxHighlightsPerProfile": 3,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("deepmine/instagram-highlights-downloader").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": [
    "nasa"
  ],
  "maxHighlightsPerProfile": 3,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call deepmine/instagram-highlights-downloader --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,deepmine/instagram-highlights-downloader"
        }
    }
}
```

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/lTOCgWUqDylYe1Xck/builds/kvujUgepiO6eOv01D/openapi.json
