# Instagram Hashtag Scraper: Reels, Views & Dates, $1.20/1K (`laptime/instagram-hashtag-scraper`) Actor

$1.20/1K reels, no start fee. Up to 2.7x faster than Apify's hashtag scraper in our test. No login. Enter hashtags or keywords: top reels with views (plays), likes, comments, date, caption, hashtags and creator. Date window, min views or likes, exact limits, only-new.

- **URL**: https://apify.com/laptime/instagram-hashtag-scraper.md
- **Developed by:** [Laptime](https://apify.com/laptime) (community)
- **Categories:** Social media, Lead generation, Agents
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.85 / 1,000 posts

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

<p><strong>From Laptime.</strong> We benchmark our scrapers on Apify and date the results, and an automated check runs this Actor's example input every morning.</p>

> **Update, 18 November 2026:** inputs written for apidojo's hashtag scraper (`keyword`, `startUrls`, `maxItems`, `until`) now work as they are.

### Why choose Instagram Hashtag Scraper?

<ul>
<li><strong>Views on every reel.</strong> For #travel on 18 Nov 2026 it returned the play count on 20 of 20 reels. The other hashtag scrapers we ran returned views on at most 3 of 10.</li>
<li><strong>The full result on every Apify plan.</strong> Asked for 20 #travel reels, it returned 20 in 3.2 seconds on 18 Nov 2026. The next fastest returned 10, in 7.8 seconds.</li>
<li><strong>A real date window and engagement filters.</strong> "Last 30 days", minimum views, likes or comments, and caption and account filters. Posts your filters drop are never charged.</li>
</ul>

### Try it with one hashtag

[![How to use Instagram Hashtag Scraper without coding: 1. Try for free 2. Type a hashtag + Start 3. Top reels with views, likes, dates 4. Export the Posts view to Excel](https://api.apify.com/v2/key-value-stores/uhvb1I0vozUDDdhcp/records/howto-instagram-hashtag-scraper-steps.jpg?v=23ce2d89)](https://api.apify.com/v2/key-value-stores/uhvb1I0vozUDDdhcp/records/howto-instagram-hashtag-scraper-steps.jpg?v=23ce2d89)

No code needed: click **Try for free**, keep the example input, click **Start**, then export to Excel. Or paste this into the **JSON** tab of the input:

```json
{
  "hashtags": ["travel"],
  "resultsLimit": 20
}
```

That's the top 20 reels for #travel in about 3 seconds, each with views, likes, comments, post date, caption, hashtags, creator and video link. Swap in any hashtag or keyword, with or without `#`.

**Apify free plan:** the $5 of monthly credit covers about 4,200 posts with this Actor. No card needed.

### Pick the right Instagram tool

#### Using an AI assistant?

Paste this into ChatGPT, Claude, Cursor or any AI agent, then say what you want. It gives the assistant what it needs to run this Actor with your Apify account: inputs, examples, prices and a check of the results.

```text
Help me get data with the Apify Actor laptime/instagram-hashtag-scraper ("Instagram Hashtag Scraper" by Laptime). $1.20/1K reels, no start fee. Up to 2.7x faster than Apify's hashtag scraper in our test. No login. Enter hashtags or keywords: top reels with views (plays), likes, comments, date, caption, hashtags and creator. Date window, min views or likes, exact limits, only-new. Full docs (every input field, pricing): https://apify.com/laptime/instagram-hashtag-scraper.md; the essentials are below. If I have not said what I want yet, ask me in one question. Before the first run, show me the input and the estimated cost.
Run it: with Apify MCP tools (https://mcp.apify.com), call-actor "laptime/instagram-hashtag-scraper" with the input, then get-dataset-items with the run's dataset ID. Otherwise, with my Apify token (https://console.apify.com/settings/integrations; keep it in an environment variable, not in a URL or file): POST https://api.apify.com/v2/acts/laptime~instagram-hashtag-scraper/run-sync-get-dataset-items, header "Authorization: Bearer $APIFY_TOKEN", JSON body = the input; it returns the rows as a JSON array and waits up to 300 s (longer runs: POST /v2/acts/laptime~instagram-hashtag-scraper/runs, poll the run, then GET /v2/datasets/{defaultDatasetId}/items). No token yet: a free Apify account includes $5 of usage a month, no card.
Input (JSON; other fields in the docs): hashtags: One per line, with or without #: "travel", "#streetfood", or a phrase like "nike running shoes". instagram.com/explore/tags/... and /popular/... links work too; resultsLimit: Posts to deliver per hashtag (exact, never exceeded); onlyPostsNewerThan: Keep only posts published on or after this date: "2026-10-01" or a relative age like "7 days", "3 months"; minViews (default 0): Skip reels with fewer views (plays) than this; excludeUsernames: Skip posts from these usernames (with or without @), e.g. your own brand or a competitor; expandRelatedKeywords (default false): On: when a hashtag runs out before "Max posts per hashtag", also search Instagram's related keywords for it (up to "Max related keywords"); onlyNew (default false): On: skip posts delivered by earlier runs with the same "Monitor name" (kept in this Actor's own key-value store); monitorName: Name of the only-new memory (letters, digits, dashes).
Example (the input the Store form opens with): {"hashtags":["travel"],"resultsLimit":20}
Example (top Instagram reels for a hashtag from the last 30 days): {"hashtags":["streetfood"],"resultsLimit":60,"onlyPostsNewerThan":"30 days"}
Example (find creators behind viral reels for a niche): {"hashtags":["homeworkout","pilates","calisthenics"],"resultsLimit":150,"minViews":100000,"expandRelatedKeywords":true,"excludeUsernames":["yourbrand"]}
Cost: pay per result, no start fee (Free-plan prices; paid Apify plans pay less): Post $1.20 per 1,000. To cap a run's charge, add ?maxTotalChargeUsd=<dollars> to the API URL (MCP: callOptions.maxTotalChargeUsd).
Output: Main fields: displayUrl, url, hashtag, rank, ownerUsername, timestamp, videoPlayCount, likesCount, commentsCount, engagementRate, caption.
After the run: tell me how many rows came back and what they cost, then show the first 5 rows as a table (displayUrl, url, hashtag, rank, ownerUsername, timestamp). If nothing came back, read the run's statusMessage (API: GET /v2/acts/laptime~instagram-hashtag-scraper/runs/last; MCP: get-actor-run) and suggest one change to the input.
```

### What can Instagram Hashtag Scraper do?

- **Get a hashtag's top reels.** Instagram's public top list for a hashtag or keyword, about 60 reels, ranked, with views, likes, comments and date on each.
- **Go past the top list.** **Add related keywords** searches Instagram's related keywords too, and each row says which keyword found it.
- **Cover hashtags without a public page.** When Instagram has no public page for the exact hashtag, close variants such as "fitness reels" are used, and `keywordMatch` says so on every row.
- **Filter before you pay.** A from-to date window (`2026-11-01` or `30 days`), minimum views, likes or comments, caption keywords, excluded accounts and **Require the hashtag in the caption**.
- **Keep exact limits and no duplicates.** A limit is never exceeded, and a reel found under two hashtags is delivered once.
- **Monitor hashtags.** **Only new posts** skips what earlier runs delivered, so a schedule returns only new top reels. A run with nothing new costs $0.

### How to scrape Instagram hashtags

Paste one of these into the **JSON** tab of the input, or send it through the API.

#### Top reels for a hashtag from the last 30 days

```json
{ "hashtags": ["streetfood"], "resultsLimit": 60, "onlyPostsNewerThan": "30 days" }
```

Up to 60 reels for at most $0.07.

#### Viral reels only, for an influencer shortlist

```json
{ "hashtags": ["homeworkout", "pilates", "calisthenics"], "resultsLimit": 150, "minViews": 100000, "expandRelatedKeywords": true, "excludeUsernames": ["yourbrand"] }
```

Only reels with 100,000 views or more are delivered and charged. The **Creators** view lists the accounts behind them.

#### A fixed date range for a campaign report

```json
{ "hashtags": ["blackfriday"], "resultsLimit": 60, "onlyPostsNewerThan": "2026-11-01", "onlyPostsOlderThan": "2026-11-30" }
```

The window filters the top reels by post date.

#### Only new top reels on each run

```json
{ "hashtags": ["yourbrand", "yourcampaign"], "resultsLimit": 60, "onlyNew": true, "monitorName": "brand-watch" }
```

Save it as a task and add a schedule. Runs with nothing new cost $0.

#### Only posts that use the exact hashtag

```json
{ "hashtags": ["coffee"], "resultsLimit": 60, "requireHashtagInCaption": true, "excludeUsernames": ["yourbrand"] }
```

Reels without `#coffee` in the caption, and your own account's reels, are skipped for free.

### Input parameters

Give **Hashtags or keywords**. Everything else is optional. Limits apply per hashtag; `maxItems` caps the whole run.

| Parameter | Type | Default | What it does |
|---|---|---|---|
| `hashtags` | array | | Hashtags or keywords, with or without `#`; explore-tag links work too |
| `resultsLimit` | integer | `20` | Posts per hashtag, exact |
| `maxItems` | integer | | Posts in the whole run |
| `onlyPostsNewerThan` / `onlyPostsOlderThan` | string | | A date (`2026-11-01`) or a span (`30 days`) |
| `minViews` / `minLikes` / `minComments` | integer | `0` | Skip quieter posts |
| `includeKeywords` / `excludeKeywords` | array | | Captions must contain any of / must not contain |
| `excludeUsernames` | array | | Skip posts by these accounts |
| `requireHashtagInCaption` | boolean | `false` | Keep only posts that use the exact hashtag |
| `expandRelatedKeywords` / `maxRelatedKeywords` | boolean / integer | `false` / `10` | Also search Instagram's related keywords |
| `onlyNew` / `monitorName` | boolean / string | `false` | Deliver only posts earlier runs with this monitor name didn't |
| `telemetry` | boolean | `true` | Anonymous error reports (what is sent: see the FAQ) |

Input names from other hashtag scrapers work as they are: `keyword`, `startUrls` (hashtag or explore-tag links), `maxItems` and `until` from apidojo.

### Output

One row per post, 35 fields, each documented in the Output tab's schema. Views: **Posts** and **Creators**.

[![Instagram Hashtag Scraper results in Apify: top reels for a hashtag with rank, creator, date, views, likes, comments and engagement rate](https://api.apify.com/v2/key-value-stores/uhvb1I0vozUDDdhcp/records/howto-instagram-hashtag-scraper-output.jpg?v=3804aae8)](https://api.apify.com/v2/key-value-stores/uhvb1I0vozUDDdhcp/records/howto-instagram-hashtag-scraper-output.jpg?v=3804aae8)

*A real run of the example input: the top #travel reels with rank, creator, post date, views, likes, comments and engagement rate.*

| Group | Fields |
|---|---|
| Post | `url`, `shortCode`, `type`, `caption`, `hashtags`, `mentions`, `timestamp`, `displayUrl`, `videoUrl`, `usesOriginalAudio` |
| Performance | `videoPlayCount`, `videoViewCount`, `likesCount`, `commentsCount`, `engagementRate`, `rank` |
| Creator | `ownerUsername`, `ownerId`, `ownerIsVerified`, `ownerProfileUrl` |
| Search | `hashtag`, `searchKeyword`, `keywordMatch`, `isRelatedKeyword` |

#### Example row (shortened)

A real row for #travel (18 Nov 2026):

```json
{
  "hashtag": "travel",
  "rank": 1,
  "url": "https://www.instagram.com/p/DTfS7SMEk8B/",
  "type": "Video",
  "caption": "Switzerland all the year 🇨🇭🥹 Which one is your preferred month? ...",
  "hashtags": ["switzerland", "life_samour_style", "season", "swiss", "travel"],
  "timestamp": "2026-01-14T11:15:50.000Z",
  "videoPlayCount": 30271593,
  "likesCount": 3281914,
  "commentsCount": 6232,
  "engagementRate": 0.1086,
  "ownerUsername": "life_samour_style",
  "ownerIsVerified": true,
  "ownerProfileUrl": "https://www.instagram.com/life_samour_style/",
  "keywordMatch": "exact"
}
```

Every row has every field (`null` when Instagram doesn't show it). `RUN_STATS` in the run's key-value store shows posts per hashtag, the keywords searched and what each filter skipped.

#### Export to Excel or CSV

Open the run's **Export** button and pick a view before you download: the dialog starts on **All fields**, which puts every hashtag and mention in its own column. **Posts** or **Creators** give a sheet you can read. Choose JSON when you want the hashtag and mention lists kept intact.

### Benchmarks

Measured on Apify on Apify's Free plan, the same input on each Actor. Time is the run's total time as Apify reports it, start-up included.

| Task: #travel, 20 posts asked | Instagram Hashtag Scraper | Next best we tested | Date |
|---|---|---|---|
| Run time | **3.2 s** | 7.8 s | 18 Nov 2026 |
| Posts returned | **20** | 10 | 18 Nov 2026 |
| Posts with a view count | **20 of 20** | 3 of 10 | 18 Nov 2026 |

Compared with apidojo/instagram-hashtag-scraper and apify/instagram-hashtag-scraper. Bigger jobs on 18 Nov 2026: 3 hashtags × 60 with a date window in 3.9 s (149 posts kept), and 5 hashtags × 300 with related keywords in 16.1 s (900 posts).

### How much does it cost to scrape Instagram hashtags?

Pay per event. Proxies and platform usage are included, and there is no start fee.

| Event | Price |
|---|---|
| Post | **$1.20 per 1,000** |

| Job | Cost |
|---|---|
| The top 50 reels for 10 hashtags, every week for a month (2,000 posts) | $2.40 |
| The top 20 for one hashtag | $0.024 |
| A monitor run that finds nothing new | $0 |

You are never charged for posts outside your date window or filters, duplicates, or posts a monitor already delivered. Store discounts lower the price on paid Apify plans.

### Integrations

Save your input as a task, give it a schedule, and send the posts wherever you work. New to schedules? Apify's one-minute video shows how:

https://www.youtube.com/watch?v=1jI7WcVQmwM

- **n8n, Make, Zapier:** the Apify node or app, "Run an Actor and get dataset", Actor `laptime/instagram-hashtag-scraper`.
- **Google Sheets or any URL:** Apify's integrations, or a webhook on "run succeeded".

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("laptime/instagram-hashtag-scraper").call(run_input={
    "hashtags": ["streetfood"], "resultsLimit": 60, "onlyPostsNewerThan": "30 days",
})
for p in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(p["url"], p["videoPlayCount"], p["likesCount"], p["timestamp"])
```

#### Claude, ChatGPT, Cursor and other MCP clients

Add `https://mcp.apify.com?tools=laptime/instagram-hashtag-scraper` as a remote MCP server, then ask: "Which #streetfood reels from the last 30 days got the most views?"

### Switch from another Instagram hashtag scraper

Change only the Actor ID.

- **apify/instagram-hashtag-scraper:** `hashtags` and `resultsLimit` mean the same here. The main output fields keep their names: `id`, `type`, `shortCode`, `url`, `caption`, `hashtags`, `mentions`, `likesCount`, `commentsCount`, `videoPlayCount`, `videoViewCount`, `timestamp`, `ownerUsername`, `ownerId`, `displayUrl`, `videoUrl`, `inputUrl`.
- **apidojo/instagram-hashtag-scraper:** `keyword` and `startUrls` (hashtag or explore-tag links) are read as hashtags, `maxItems` is the total, and `until` keeps posts from that date on, as it does there.

### FAQ

#### Which posts do I get?

Instagram's top reels for the hashtag: the ranked list Instagram shows visitors, about 60 per hashtag. The latest-posts feed is shown to logged-in users only, so it isn't included; the date window filters the top reels by their post date. For more volume, turn on **Add related keywords**.

#### Do I need an Instagram account or cookies?

No. No login, cookies or API key, so your own account is never at risk.

#### Why did I get fewer posts than my limit?

Your filters skipped the rest: `RUN_STATS` shows how many each filter removed, and none of them were charged. Turn on **Add related keywords** to search further.

#### Is it reliable?

An automated check runs the example input on Apify every morning and alerts us when it returns nothing or a key field goes empty. Blocked requests move to fresh IPs, a run that finds nothing ends with the reason in its status message and costs nothing, and when Instagram changes its app the query IDs can be updated without a rebuild.

#### Does it send any data back?

When a run hits an error, the Actor sends us a small anonymous report (the error type, which step failed, the HTTP status and a few counts) so we can fix breakages before you notice them. It never includes your input, your results, URLs, your Apify account or your IP address. To turn it off, untick **Anonymous error reports** in the input (or set `"telemetry": false`).

#### Is it legal to scrape Instagram hashtags?

It reads only public posts that Instagram shows any visitor without logging in. Public data can still be personal data: if you store or process it, follow the GDPR or your local law and Instagram's terms, and use it for a legitimate purpose. When in doubt, ask a lawyer. Apify's overview: [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/)

### More Laptime scrapers

- [Instagram Reels Transcript Scraper](https://apify.com/laptime/instagram-reels-transcript-scraper): what each reel says, with the hook and on-screen text. Pass it this run's dataset as `datasetId`.
- [Video Transcript Scraper](https://apify.com/laptime/video-transcript-scraper): transcripts of YouTube, TikTok, Instagram, Facebook and X videos.
- [Threads Scraper](https://apify.com/laptime/threads-scraper): profiles, posts, replies and keyword search, from $0.99 per 1,000.

### Support

Found a bug, or missing a field? Open an issue and we'll answer within a day. Fixes and new fields are listed on the **Changelog** tab.

If it saved you time, a short review on the Actor page helps other people find it.

*Unofficial. Not affiliated with, endorsed by or sponsored by Instagram or Meta Platforms, Inc.*

# Changelog

This Actor's version history is a separate document: https://apify.com/laptime/instagram-hashtag-scraper/changelog.md

# Actor input Schema

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

One per line, with or without #: "travel", "#streetfood", or a phrase like "nike running shoes". instagram.com/explore/tags/... and /popular/... links work too. Each line is searched separately; a reel found under two lines is delivered once.

## `resultsLimit` (type: `integer`):

Posts to deliver per hashtag (exact, never exceeded). Instagram's public top list holds about 60 reels per hashtag; turn on "Add related keywords" to go beyond that. Default 20 (or Max posts in total, when only that is set).

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

Hard cap for the whole run over all hashtags (exact, never exceeded, so the cost is capped too). 0 or empty = no cap beyond the per-hashtag limit.

## `onlyPostsNewerThan` (type: `string`):

Keep only posts published on or after this date: "2026-10-01" or a relative age like "7 days", "3 months". Posts outside the window are skipped and never charged. Empty = no lower bound.

## `onlyPostsOlderThan` (type: `string`):

Keep only posts published on or before this date ("2026-11-01" or "1 week"). Together with "Posted after" this is a full from-to date window. Empty = up to now.

## `minViews` (type: `integer`):

Skip reels with fewer views (plays) than this. 0 = no minimum.

## `minLikes` (type: `integer`):

Skip posts with fewer likes than this. 0 = no minimum.

## `minComments` (type: `integer`):

Skip posts with fewer comments than this. 0 = no minimum.

## `includeKeywords` (type: `array`):

Keep only posts whose caption contains at least one of these words (case-insensitive). Empty = no filter.

## `excludeKeywords` (type: `array`):

Skip posts whose caption contains any of these words (case-insensitive), e.g. "giveaway", "#ad".

## `excludeUsernames` (type: `array`):

Skip posts from these usernames (with or without @), e.g. your own brand or a competitor.

## `requireHashtagInCaption` (type: `boolean`):

On: keep only posts whose caption contains the exact #hashtag. Off (default): every reel Instagram ranks for the hashtag or keyword.

## `expandRelatedKeywords` (type: `boolean`):

On: when a hashtag runs out before "Max posts per hashtag", also search Instagram's related keywords for it (up to "Max related keywords"). Each row says which keyword found it (searchKeyword, isRelatedKeyword). Off (default): only the hashtag itself.

## `maxRelatedKeywords` (type: `integer`):

How many of Instagram's related keywords to add per hashtag when "Add related keywords" is on. Default 10, max 30.

## `onlyNew` (type: `boolean`):

On: skip posts delivered by earlier runs with the same "Monitor name" (kept in this Actor's own key-value store). Schedule the run to watch a hashtag; runs with nothing new cost nothing.

## `monitorName` (type: `string`):

Name of the only-new memory (letters, digits, dashes). Use one per set of hashtags you watch. Default "default".

## `telemetry` (type: `boolean`):

Sends the Actor's author an anonymous report when a run hits an error (error type, failing step, HTTP status, counts). Never your input, results, URLs or account. Untick to turn it off.

## Actor input object example

```json
{
  "hashtags": [
    "travel",
    "streetfood"
  ],
  "resultsLimit": 20,
  "minViews": 0,
  "minLikes": 0,
  "minComments": 0,
  "requireHashtagInCaption": false,
  "expandRelatedKeywords": false,
  "maxRelatedKeywords": 10,
  "onlyNew": false,
  "telemetry": true
}
```

# Actor output Schema

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

Every row, one per post.

## `overview` (type: `string`):

The Posts view: cover, hashtag, rank, creator, date, views, likes, comments, caption.

## `runStats` (type: `string`):

RUN_STATS: posts per hashtag, keywords searched, what the filters skipped, charges and requests.

# 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 = {
    "hashtags": [
        "travel"
    ],
    "resultsLimit": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("laptime/instagram-hashtag-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 = {
    "hashtags": ["travel"],
    "resultsLimit": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("laptime/instagram-hashtag-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 '{
  "hashtags": [
    "travel"
  ],
  "resultsLimit": 20
}' |
apify call laptime/instagram-hashtag-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,laptime/instagram-hashtag-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/iXrkB13XLHtw1WQYX/builds/Z8IsGlcYXBC0nAJsG/openapi.json
