# Instagram Trending Scraper - Trending Topics, Reels & Audio (`hexagone-data/instagram-trending-scraper`) Actor

Scrape Instagram's official Popular on Instagram board without an account: trending topics with rank and posts count, profiles to look out for, categories. Optional top Reels per topic with views, likes, comments, date, creator and the sound used. Pay per row.

- **URL**: https://apify.com/hexagone-data/instagram-trending-scraper.md
- **Developed by:** [Hexagone Data](https://apify.com/hexagone-data) (community)
- **Categories:** Social media, Automation, Agents
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.54 / 1,000 rows

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 Trending Scraper - Trending Topics, Viral Reels & Audio

Scrape Instagram's official **Popular on Instagram** board ([instagram.com/popular](https://www.instagram.com/popular/)) without an account or login: every trending topic with its section, rank, exact number of posts and link, the profiles to look out for and the browse categories, about 400 entries in 8 sections. For each topic you choose (your own words, or every topic of the board), get Instagram's own summary of the topic, its related keywords, and its **top Reels** with views, likes, comments, date, creator, caption and the **sound used** (song title, artist, audio id, original audio or licensed song, Instagram's trending flag).

Built for social media managers, agencies, creators and brands who plan content from what is rising today, for daily trend monitoring (schedule it and keep the history of ranks), and for AI agents that need fresh Instagram trends as structured data.

### Try it

1. Open the Input tab: the form is prefilled with the *Trending now* section (10 entries), the topic `christmas` and 3 Reels per topic.
2. Click **Start**. It gives about 50 rows: the 10 entries, then `christmas` and each topic of those entries with its top 3 Reels (a close input gave 48 rows in about 30 seconds on Apify).
3. Open the Output tab: **Board entries**, **Reels** and **All rows** are table views of the same dataset; the **Run summary** says what was read and why anything is missing.

For the whole board only (about 400 rows, 2 requests to Instagram): in the form, select all 8 sections, clear `Entries per section` and `Topics`, and set `Reels per topic` to 0; through the API, `{"topics": [], "reelsPerTopic": 0}` (the defaults read every section).

### What to paste

| Field | What it does |
|---|---|
| `sections` | Board sections to read (default: all 8). Codes: `TRENDING_NOW` (Trending now), `ENTERTAINMENT` (Pop culture moments), `CELEBRITIES` (Profiles to look out for), `BROWSE_CATEGORIES` (Find what you're into), `GET_INSPIRED`, `LEARN_SOMETHING_NEW`, `SHOP_THE_TRENDS`, `TRENDING_MONTH` (What's happening now). None selected: only your topics. An unknown code stops the run before any request. |
| `maxEntriesPerSection` | Only the first N ranks of each section (empty: all, up to 60). |
| `topics` | Words (`christmas`, `home workout`, `#coachella`) or addresses `https://www.instagram.com/popular/<word>/` and `https://www.instagram.com/explore/tags/<word>/`, with or without `www`, `?utm_source=...` and `%20` (an address copied after a click on the board works). Words are read in lowercase, the Actor does it for you (Instagram knows only lowercase topics: sent as `Christmas`, it gives nothing). `home-workout` and `home workout` are the same topic: read once. Another Instagram address (a Reel, a post, a profile, a sound) is refused for that line only (`invalid_input`), the rest of the run goes on. |
| `reelsPerTopic` | Top Reels per topic, 0 to 50 (default 0). Above 0, the topics of the board sections read (keywords and categories, not profiles) are read too, after yours, each once. |
| `maxItems` | Stop after this many rows in the dataset (default 1,000; 0 = no limit). |

### Output

One dataset, three kinds of rows, in the site's order: the board (sections as on the board, ranks 1 to 60), then each topic followed by its Reels (your topics first, then the board's). Each kind has its own fields (`type` says which); unknown values are `null`, never invented. Example (rows from a real run of 18/11/2026: a board entry of Learn something new, its topic and its first Reel; image addresses and the topic's lists shortened):

```json
[
  {
    "type": "trend",
    "section": "LEARN_SOMETHING_NEW",
    "sectionTitle": "Learn something new",
    "rank": 4,
    "entryType": "keyword",
    "keyword": "cookie recipe",
    "categoryName": null,
    "postsCount": 969405,
    "topicUrl": "https://www.instagram.com/popular/cookie-recipe/",
    "featuredReelCode": "DAL7u0QPlH_",
    "featuredReelUrl": "https://www.instagram.com/reel/DAL7u0QPlH_/",
    "thumbnailUrl": "https://scontent-iad3-1.cdninstagram.com/v/t51.71878-15/503819255_619373057181137_672136977981183839_n.jpg?...",
    "username": null,
    "fullName": null,
    "followersCount": null,
    "isVerified": null,
    "userId": null,
    "profileUrl": null,
    "scrapedAt": "2026-11-18T14:28:09Z"
  },
  {
    "type": "topic",
    "keyword": "cookie recipe",
    "topicUrl": "https://www.instagram.com/popular/cookie-recipe/",
    "status": "ok",
    "topicKind": "topic",
    "description": "Chewy gluten free chocolate chip cookies use melted butter, dark brown sugar, and a mix of gluten free flour and oat flour. The dough gets 15-16 scoops, chilled for at least 2 hours, then baked at 375F for 10-12 minutes until edges are golden. Finish with flaky sea salt right out of the oven ¹.\\n\\nFor a loaded option, Salted Brown Butter Cowboy Cookies combine oats, chocolate chips, pecans and coconut with browned butter. Chill 30-60 minutes, scoop 3 tablespoons each, and bake at 350F for 11-14 minutes. Sprinkle Maldon sea salt on top while warm ².\\n\\nBoth recipes highlight chilling to control spread and create thick centers. Use parchment, avoid overbaking, and let cookies rest on the tray 5-10 minutes before moving to a rack for best texture ¹ ²",
    "descriptionSources": [
      "https://butternutbakeryblog.com/gluten-free-chocolate-chip-cookies/print/2996/",
      "https://dreamcatcher320.com/2026/11/18/a-little-western-christmas-salted-brown-butter-cowboy-cookies/"
    ],
    "relatedKeywords": [
      "homemade cookie cake recipe",
      "recipe for drop sugar cookies",
      "shaz cookie recipes",
      "carrot cake cookies recipe",
      "oreo cheesecake cookies recipe"
    ],
    "reelsDelivered": 3,
    "scrapedAt": "2026-11-18T14:31:48Z"
  },
  {
    "type": "reel",
    "topic": "cookie recipe",
    "topicUrl": "https://www.instagram.com/popular/cookie-recipe/",
    "position": 1,
    "code": "DAL7u0QPlH_",
    "url": "https://www.instagram.com/reel/DAL7u0QPlH_/",
    "mediaId": "3462123440511537663",
    "caption": "BAKED TO PERFECTION, EVERY TIME! 😮‍💨✨ These legendary chocolate chip cookies have received rave reviews from home bakers just like you! Soft, chewy, and utterly irresistible. Give them a try and taste the magic for yourself! Chocolate Chip Cookies Recipe 🍪 (Makes 9-10 cookies) Ingredients: - 1/2 cup (115g) unsalted butter, melted and cooled - 1/2 cup (100g) light brown sugar - 1/3 cup (67g) granulated sugar - 1 large egg, room temperature - 1 tbsp vanilla extract - 1 1/4 cups (185g) all-purpose flour, spooned and leveled - 1/2 tsp baking soda -Pinch of flaky sea salt - 1 1/2 cups semi-sweet chocolate chips For Garnish: - Flaky sea salt Instructions: 1. Preheat oven to 350°F (175°C). Line a baking sheet with parchment paper. 2. Whisk together flour, baking soda, and salt. Set aside. 3. In a separate bowl, combine melted butter, brown sugar, and granulated sugar. Whisk (1-2 min) until smooth. 4. Crack in egg and add vanilla extract. Mix until combined. 5. Fold dry ingredients into wet batter until just combined. 6. Stir in chocolate chips. 7. Scoop 9 cookies onto parchment paper, leaving space (max 4 cookies per 15x10 baking tray). 8. Bake 12 minutes or until golden and crispy at edges, gooey at center. 9. Sprinkle with flaky sea salt. 10. Cool completely before serving. Tips: - Don’t overmix batter. - Leave space between cookies for spreading. #chocolate #chocolatechip #cookies #chocolatechipcookies #recipe #baking",
    "playsCount": 23164291,
    "likesCount": 1313197,
    "commentsCount": 1559,
    "takenAt": "2024-09-21T16:56:18Z",
    "countsHidden": false,
    "ownerUsername": "iramsfoodstory",
    "ownerId": "33169283841",
    "ownerIsVerified": true,
    "thumbnailUrl": "https://scontent-ord5-1.cdninstagram.com/v/t51.71878-15/503819255_619373057181137_672136977981183839_n.jpg?...",
    "audioType": "original",
    "audioId": "1430361690961998",
    "audioTitle": "Original audio",
    "audioArtist": "iramsfoodstory",
    "audioUrl": "https://www.instagram.com/reels/audio/1430361690961998/",
    "audioIsTrendingUS": false,
    "audioIsExplicit": false,
    "scrapedAt": "2026-11-18T14:31:50Z"
  }
]
```

- **trend** (one per board entry): `section`, `sectionTitle`, `rank`, `entryType` (`keyword`, `profile` or `category`), `keyword`, `categoryName`, `postsCount` (exact; `null` when Instagram does not give it, never 0), `topicUrl`, `featuredReelCode`/`Url`, `thumbnailUrl`; profiles: `username`, `fullName`, `followersCount`, `isVerified`, `userId`, `profileUrl`.
- **topic** (one per topic read): `keyword`, `topicUrl`, `status`, `topicKind` (`topic`, or `category` for a browse category: see Known limits), `description` (Instagram's summary) and `descriptionSources`, `relatedKeywords` (up to 100, in Instagram's order), `reelsDelivered`.
- **reel** (one per Reel): `topic`, `position`, `code`, `url`, `mediaId`, `caption`, `playsCount`, `likesCount`, `commentsCount`, `takenAt`, `countsHidden`, `ownerUsername`, `ownerId`, `ownerIsVerified`, `thumbnailUrl`, `audioType` (`music` or `original`), `audioId`, `audioTitle`, `audioArtist`, `audioUrl`, `audioIsTrendingUS`, `audioIsExplicit`.
- `scrapedAt` on every row: when it was read (UTC).

### Run summary

The **Run summary** (key-value store record `SUMMARY`, and the same as JSON in `OUTPUT`) gives the run `status` (`done`, `stopped_at_limit`, `partial` or `blocked`), the board sections (entries delivered, served, end confirmed), every topic with its status, Reels delivered and the reason for anything missing, and warnings. Topic statuses:

- `ok`: in the dataset, charged;
- `no_results`: Instagram has no popular page for this word (it answered with an empty topic: a rare word, a typo, or a word that is not a topic); the row, with Instagram's description when there is one, is in `OUTPUT.rowsNotInDataset`, not charged;
- `invalid_input`: not a word or a `/popular/` address; not sent to Instagram, not charged;
- `blocked`: Instagram refused this topic on every access tier; not charged, your input is not the cause;
- `duplicate`: same topic as an earlier line, read and charged once;
- `not_processed`: not read because a limit came first (`maxItems`, maximum charge, run time).

`OUTPUT` also counts `trends`, `topics`, `reels`, `reelsWithoutDetails` (Reels whose own page Instagram refused: delivered from the topic card, with `likesCount`, `commentsCount`, `takenAt` and the sound fields `null`), `reelDetailsUnavailable` (Reels whose page Instagram does not show without an account), `topicsNoResults`, `categoryTopics` (count and words of the topics that are categories, delivered without Reels), `unknownEntryTypes` and the access tier used.

### Pricing

Pay per event: **$0.0022 per row** ($2.20 per 1,000 rows), one row in the dataset per board entry, topic or Reel, plus **$0.005 per run** (Apify's start fee, one per GB of memory: the default 512 MB is one start). Topics with no popular page, invalid or duplicate inputs, refused requests and retries are never charged. Tier discounts of the Apify Store apply (Bronze -10 %, Silver -20 %, Gold to Diamond -30 %).

| Run | Price at the base rate (Free plan) |
|---|---|
| 20 rows | $0.049 |
| 1,000 rows | $2.205 |

The whole board (about 400 rows) costs about $0.89. Set a maximum charge per run in Apify: the Actor stops at it and says so.

### Known limits

- **One board for everyone**: Instagram serves the same Popular board to every country and language (measured from France, the US and the UK, in English, French and Spanish: same entries, same ranks; only the section titles are translated). Titles are delivered in English.
- **Ranks 13 and up**: a visitor without an account sees 12 entries per section; the page's own request serves the whole board (up to 60 per section), and all of it is delivered. The same goes for Reels past the 12 shown on a topic page.
- **Sound trending flag**: `audioIsTrendingUS` is Instagram's flag as seen from the United States: it depends on the visitor's country (the same song can be trending in France and not in the US).
- **No sound charts**: this Actor gives the sound of each trending Reel, not a list of trending sounds with their exact number of Reels: Instagram serves that list only to European visitors through residential addresses, which would cost more than the row.
- **Reel details**: likes, comments, date and sound come from each Reel's own page. When Instagram refuses it, the Reel row still comes from the topic card (code, caption, views, creator) with those fields `null`, and the Run summary counts it. When the creator hides like and view counts, `playsCount` and `likesCount` are `null` (as on Instagram).
- **Categories**: for a word that is one of the board's browse categories (`restaurants`, `golf`, `cute animals`...): Instagram shows a category hub for this word, not a list of Reels: use one of its relatedKeywords as a topic. The topic row is delivered with `topicKind` `category`, its description and related keywords (the hub's sub-topics come first), and no Reel rows; the Run summary lists these words (`categoryTopics`). The board is read in every run that reads topics, to know its categories (rows of sections you did not ask for are neither delivered nor charged). A hub that is not among the board's categories of the day is not recognized.
- **Videos inside a carousel**: a topic can show a video that is one slide of a carousel post; its link opens the whole post, so likes, comments, date and sound are the post's (as on the page), never the slide's zeros. If the post cannot be read, those fields are `null`.
- **Lowercase topics** only, up to 50 Reels per topic and 100 related keywords (what Instagram serves), and up to 1,000 topics per run.
- **Featured Reel of a board entry** (`featuredReelCode`, `featuredReelUrl` and its `thumbnailUrl`): chosen by Instagram and it changes during the day (about 36 of 399 entries changed within 2 hours, measured); the words, ranks and post counts stayed the same.
- **Large runs**: measured up to about 1,000 Reels (and their Reel pages) per run; runs of several thousand Reels are not measured. If Instagram refuses Reel pages, those Reels still come from their topic cards, charged as rows with likes, comments, date and sound `null`, and the Run summary counts them (`reelsWithoutDetails`).
- **Image addresses** (`thumbnailUrl`) are Instagram CDN links that expire after some days: download images soon if you need them.
- No login, no private data: profiles are the public entries of the board (username, name, followers, badge); no contact field. Captions are delivered as published: a creator may have written an e-mail or a phone number in one.

### Support

Questions, a missing field or a wrong value: open an issue in the Issues tab with the run link, we answer quickly. If this Actor helps you, please leave a review on its Store page: it helps others find it.

This Actor is not affiliated with, endorsed by or sponsored by Instagram or Meta. It reads public pages that Instagram shows to any visitor without an account.

# Actor input Schema

## `sections` (type: `array`):

Sections of the Popular on Instagram board to read (default: all 8, about 400 entries in all). Rows come in the site's order: sections as on the board, ranks 1 to 60. Leave none selected to read only your topics.

## `maxEntriesPerSection` (type: `integer`):

Only the first N ranks of each section read (empty: all, up to 60). Instagram shows 12 per section to a visitor without an account; the others come from the same request of the page.

## `topics` (type: `array`):

Words to look up (christmas, home workout, #coachella) or pasted addresses https://www.instagram.com/popular/<word>/ or /explore/tags/<word>/. Read in lowercase (Instagram knows only lowercase topics). For each: a topic row (description, related keywords) and, with Reels per topic above 0, its top Reels. Other Instagram addresses (a Reel, a profile) are refused for that line only. A word with no popular page on Instagram gets a no_results row in the Run summary, not charged.

## `reelsPerTopic` (type: `integer`):

Top Reels read for each topic: your topics AND every keyword or category of the board sections read (profiles excepted). 0 = no Reel and no topic row for the board's topics. Each Reel is one charged row, with likes, comments, date and sound read from its own page.

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

Stop after this many rows in the dataset (board entries, topics and Reels together; the only charged rows). 0 = no limit.

## Actor input object example

```json
{
  "sections": [
    "TRENDING_NOW"
  ],
  "maxEntriesPerSection": 10,
  "topics": [
    "christmas"
  ],
  "reelsPerTopic": 3,
  "maxItems": 1000
}
```

# Actor output Schema

## `rows` (type: `string`):

Every row (trend, topic, reel), every field, in the site's order.

## `trends` (type: `string`):

Trend rows: section, rank, topic or profile, posts or followers.

## `reels` (type: `string`):

Reel rows: topic, position, creator, plays, likes, comments, date, sound.

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

Readable summary: board sections, topics with their status, warnings.

## `summaryJson` (type: `string`):

The same summary as JSON (OUTPUT record), with rowsNotInDataset: the no_results, invalid_input and blocked topic rows, not charged.

# 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 = {
    "sections": [
        "TRENDING_NOW"
    ],
    "maxEntriesPerSection": 10,
    "topics": [
        "christmas"
    ],
    "reelsPerTopic": 3
};

// Run the Actor and wait for it to finish
const run = await client.actor("hexagone-data/instagram-trending-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 = {
    "sections": ["TRENDING_NOW"],
    "maxEntriesPerSection": 10,
    "topics": ["christmas"],
    "reelsPerTopic": 3,
}

# Run the Actor and wait for it to finish
run = client.actor("hexagone-data/instagram-trending-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 '{
  "sections": [
    "TRENDING_NOW"
  ],
  "maxEntriesPerSection": 10,
  "topics": [
    "christmas"
  ],
  "reelsPerTopic": 3
}' |
apify call hexagone-data/instagram-trending-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,hexagone-data/instagram-trending-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/1sbLp2OgYIeoLVQfd/builds/Hd75HxO1XuxxowggY/openapi.json
