# How to Scrape Instagram Posts by Hashtag or Keyword

To scrape Instagram posts by hashtag, use apidojo's Instagram Hashtag Scraper with a hashtag as its keyword and choose posts, reels or both; to search by plain keyword, put words in the keywords input of the Instagram Scraper.

[![apidojo](/blog/authors/apidojo.png)**Apidojo** *15+ years of experience in data retrieval.*](/blog/authors/apidojo/)

**16 October 2026** Published

**3 min** Read

![Cover card reading 'How to Scrape Instagram Posts by Hashtag or Keyword'](/blog/covers/instagram-scrape-hashtags.png)

**To scrape Instagram posts by hashtag, use apidojo’s [Instagram Hashtag Scraper](https://apify.com/apidojo/instagram-hashtag-scraper) with a hashtag as its `keyword` and choose posts, reels or both; to search by plain keyword, put words in the `keywords` input of the [Instagram Scraper](https://apify.com/apidojo/instagram-scraper).** Both return posts with captions, likes, comments, dates, locations and owners, and need no Instagram login.

Hashtags show what people tag; keyword search shows what people talk about, tagged or not. This guide covers both, the inputs that matter, how to collect reels, and costs. The full overview is in [how to scrape Instagram data in 2026](/blog/instagram-scraping/how-to-scrape-instagram/). Places and sounds work like tags, covered in [how to scrape Instagram location data](/blog/instagram-scraping/scrape-locations/) and [how to scrape Instagram reels and audio](/blog/instagram-scraping/scrape-reels-audio/).

## Which apidojo Actor Should You Use?

**Use the Hashtag Scraper for hashtag research and the Instagram Scraper for keyword searches or mixed inputs.** The table compares them (Apify, Apify).

| Point | Instagram Hashtag Scraper | Instagram Scraper |
| --- | --- | --- |
| Main input | keyword (one hashtag or keyword) or hashtag search URLs | keywords (a list) or tag, profile, location and other URLs |
| Posts and reels | getPosts and getReels, both on by default | Tag URLs return posts; set getReels to add the hashtag’s reels |
| Date filter | until: posts on or after a date, most reliable with posts only | until: posts newer than a date, not applied to reels |
| Extra field | hashtags list on each post | Full owner profile summary |
| Price | $0.016 per hashtag with 60 posts included, then $0.0004 per post | $0.50 per 1,000 posts |

## How Do You Scrape an Instagram Hashtag?

**Give the Hashtag Scraper one hashtag, choose posts and reels, and set a cap.**

```
{
  "keyword": "veganrecipes",
  "getPosts": true,
  "getReels": true,
  "maxItems": 1000
}
```

For a date cut-off, set `getReels` to `false` and add `until`, because results come back in date order only for posts (Apify). 1,000 posts from one hashtag cost about $0.39.

## How Do You Scrape Instagram by Keyword?

**Put one or more words in the Instagram Scraper’s `keywords` input; each keyword runs its own search.**

```
{
  "keywords": ["plant based protein", "vegan meal prep"],
  "maxItems": 600
}
```

A keyword stops when its results stop surfacing new posts, so it can return fewer than `maxItems` (Apify). The same search works from a search URL in `startUrls`, such as `https://www.instagram.com/explore/search/keyword/?q=vegan%20meal%20prep`. On the Instagram Scraper API, keyword results may come with limited captions, like counts and comment counts, because Instagram’s search results don’t always include them ([Apify](https://apify.com/apidojo/instagram-scraper-api)).

## How Do You Collect a Hashtag’s Reels With the Instagram Scraper?

**Add the tag URL and set `getReels` to `true`; posts and reels then share `maxItems`.**

```
{
  "startUrls": ["https://www.instagram.com/explore/tags/veganrecipes/"],
  "getReels": true,
  "maxItems": 500
}
```

A tag URL alone returns recent posts, which don’t include reels (Apify).

## What Can You Learn From Hashtag Data?

**Hashtag data shows how active a topic is, who drives it, and which formats win.** The table maps questions to fields.

| Question | Fields |
| --- | --- |
| Is the hashtag active? | Posts per day from createdAt |
| Which posts win? | likeCount, commentCount, video.playCount |
| Who posts most? | owner.username |
| Which tags travel together? | hashtags |
| Where are posts from? | location.name, location.lat, location.lng |

Spotting rising tags is covered in [how to find trending hashtags on Instagram](/blog/instagram-trends/trending-hashtags/), and running this on a schedule in [how to monitor Instagram hashtags and brand mentions](/blog/instagram-scraping/monitor-hashtags/). TikTok hashtag pages are covered in [how to scrape TikTok hashtag pages](/blog/tiktok-scraping/scrape-hashtags/).

## What Does Scraping Instagram Hashtags Cost?

**On the Hashtag Scraper, 60 posts from one hashtag cost $0.016, 1,000 posts $0.39, 10,000 posts $3.99, and 5 hashtags with 2,000 posts in total $0.76** (Apify). On the Instagram Scraper, 10,000 posts cost $5.

## The scrapers behind this

-   [Instagram Hashtag Scraper Top posts and reels for any hashtag; 60 items free per hashtag $0.016 / hashtag + $0.40 / 1K](/scrapers/instagram-hashtag-scraper/)
-   [Instagram Scraper Posts and reels from profiles, hashtags, locations and audio URLs; 100–200 posts/sec $0.50 / 1K posts](/scrapers/instagram-scraper/)

## Questions people ask

### Can you scrape several hashtags at once?

Yes, list several tag URLs in the Instagram Scraper, or run the Hashtag Scraper once per hashtag.

### Why does a hashtag return no results?

The hashtag must exist and have public content.

### Can you scrape hashtags without logging in?

Yes, both actors work without an Instagram login.

### Where do you start?

At [how to scrape Instagram data in 2026](/blog/instagram-scraping/how-to-scrape-instagram/).

## More on scraping Instagram data

-   [How to Scrape Instagram Data in 2026 What Instagram data you can scrape, the 3 ways to collect it, which apidojo actor fits each task, limits, costs and Python code.](/blog/instagram-scraping/how-to-scrape-instagram/)
-   [How to Scrape Instagram Profiles and Posts Scrape any public Instagram profile's posts and profile details with apidojo's actors, with fields, reels and tagged URLs, and costs.](/blog/instagram-scraping/scrape-profiles/)
-   [How to Scrape Instagram Comments Scrape comments from any public Instagram post with apidojo's comment actors, with inputs, fields, costs and what to do with the data.](/blog/instagram-scraping/scrape-comments/)
-   [How to Scrape Instagram Followers and Following Export public Instagram follower and following lists, with the inputs, fields, verified-account limit and real costs per user.](/blog/instagram-scraping/scrape-followers/)
-   [How to Scrape Instagram Location Data Scrape posts tagged at Instagram locations with apidojo's actors, with inputs, location fields, costs, uses and limits.](/blog/instagram-scraping/scrape-locations/)
-   [How to Scrape Instagram Reels and Audio Scrape a creator's reels, every reel using a sound, or a hashtag's reels, with play counts, durations, costs and uses.](/blog/instagram-scraping/scrape-reels-audio/)
-   [How to Collect Instagram Data With Python A Python script that collects Instagram posts, comments and author profiles with apidojo's actors, then cleans and saves them.](/blog/instagram-scraping/instagram-python/)
-   [Instagram Scraping Limits: Pagination and Blocks The documented limits of apidojo's Instagram actors, how pagination works, what gets runs blocked, and fixes for missing results.](/blog/instagram-scraping/limits/)
-   [Instagram profiles: search or handle lookup? A keyword search costs $0.02 and brings forty profiles. A handle lookup costs $0.01 and brings one. The right choice depends on what you already know.](/blog/instagram/instagram-keyword-vs-handle/)
-   [Measuring a campaign hashtag inside its own window A hashtag query costs $0.016 and brings sixty items with it. That allowance is per hashtag, which decides how you should slice a campaign.](/blog/instagram/instagram-campaign-hashtag-window/)
-   [What replyCount tells you before you pay Instagram comments are billed per post plus per comment, and reply threads are comments too. The top-level replyCount is your estimate, free.](/blog/instagram/instagram-reply-threads-cost/)

![apidojo](/blog/authors/apidojo.png)

## [Apidojo](/blog/authors/apidojo/)

15+ years of experience in data retrieval.

API Dojo is always ready for you. With 15+ years of experience, data acquisition has never been that easy. Cheapest prices with high availability.

-   🏯 15+ years of experience in data retrieval.
-   💰 Cheapest prices, qualified data.
-   ⚙️ High availability, extreme maintenance.
-   🐉 Hyper communicative, excellent support.

-   [apify.com](https://apify.com/apidojo)
-   [x.com](https://x.com/apidojo_)
-   [github.com](https://github.com/apidojo-io)
