Instagram Hashtag Scraper
Instagram Hashtag Scraper returns one JSON row per post or reel found under a hashtag or keyword: id, shortCode, url, type, caption, parsed hashtags and mentions, likesCount, commentsCount, videoPlayCount, videoViewCount, displayUrl, timestamp, ownerUsername and ownerId. It costs $0.001 per post, which is $1.00 per 1,000 posts, and delivers at most 20 hashtags per run. Run it from the Apify Console, the API or MCP.
from $0.001 per post, $1.00 per 1,000 · Updated Nov 2026, version 0.1.20
Key facts
- Price
- from $0.001 per post, $1.00 per 1,000
- Pricing model
- Pay per event
- Output
- JSON, CSV, Excel, XML, RSS via Apify datasets
- Access
- Apify Console, REST API, Python and JS clients
- Version
- Updated Nov 2026, version 0.1.20
- Actor
subimpact/instagram-hashtag-scraper
Who it is for
- Social media managers measuring hashtag performance by niche
- Influencer agencies finding creators behind a hashtag
- Brand teams watching how a campaign tag spreads
- Content strategists mining captions and hooks that earn engagement
Use cases
Find creators behind a hashtag
Set hashtags to a niche tag such as malaysianfood and resultsLimit to a few hundred rows. Group the output by ownerUsername and sum likesCount and commentsCount to rank the accounts that actually perform under that tag, rather than the ones with the biggest followings. ownerId stays stable across runs, so you can track the same creators over time.
Measure a campaign tag
Run the campaign hashtag daily with resultsType set to posts, then chart timestamp against likesCount and commentsCount to see when interest peaked. Captions arrive with parsed hashtags and mentions, so you can spot companion tags and accounts riding the campaign. Keep url and shortCode as the join key between snapshots.
Mine captions and hooks
Every row carries the full caption plus alt text and the hashtags array. Export those to a spreadsheet or a language model to cluster the angles that appear most often under a tag, then compare each cluster's median likesCount. With resultsType reels you get videoPlayCount for the video posts, which separates reach from engagement.
Get reels with view counts
Logged out, Instagram caps a hashtag at roughly 12 posts and hides play counts. Supply a sessionCookie and the Actor calls Instagram's hashtag API directly instead, returning up to resultsLimit rows per tag with real videoPlayCount. Use feedType recent for the newest posts or top for the ranked grid, and expect up to 40 pages per hashtag.
Test a tag list before you spend
Set dryRun to true and the Actor validates your hashtag input without extracting data or triggering billing. That is a cheap way to check that a 20 tag list is spelled correctly and that your proxy settings are accepted, before a scheduled run starts pulling posts at the per-result price.
Output fields
| Field | Type | Description |
|---|---|---|
id | string/null | Unique Instagram post ID |
type | string/null | Post type (Video, Image, or Sidecar) |
shortCode | string/null | Short alphanumeric code identifying the post |
caption | string/null | Full text caption and hashtags from the post |
hashtags | array/null | List of hashtags associated with the post |
mentions | array/null | List of user mentions (@username) in the post |
url | string/null | Canonical web link to the Instagram post or reel |
commentsCount | integer/null | Number of comments on the post |
displayUrl | string/null | CDN image URL for the thumbnail or photo |
videoUrl | string/null | Direct video CDN URL if post is a video or reel |
alt | string/null | Accessibility alt text describing the image or reel preview |
likesCount | integer/null | Number of likes on the post |
Show all 37 fields
| Field | Type | Description |
|---|---|---|
videoPlayCount | integer/null | Number of video plays / views |
videoDuration | number/null | Video duration in seconds |
productType | string/null | Instagram product type: clips for reels, feed for posts |
enrichmentSource | string/null | How the row was enriched: json (embedded media JSON), og (og meta tags fallback), session (logged-in hashtag API), or none |
scrapedAt | string/null | ISO timestamp of when the row was scraped during this run |
ownerFullName | string/null | Full display name of the post owner |
ownerIsVerified | boolean/null | Whether the owner account is verified |
timestamp | string/null | Publication timestamp in ISO 8601 format |
ownerUsername | string/null | Instagram handle of the post owner |
ownerId | string/null | Numeric user ID of the post owner |
locationName | string/null | Named location attached to the post, when available |
dimensionsHeight | integer/null | Media height in pixels |
dimensionsWidth | integer/null | Media width in pixels |
originalHeight | integer/null | Original media height in pixels (same source as dimensionsHeight) |
originalWidth | integer/null | Original media width in pixels (same source as dimensionsWidth) |
audioUrl | string/null | Direct audio CDN URL for reels using original audio |
igPlayCount | integer/null | Instagram internal play count (same source as videoPlayCount) |
videoViewCount | integer/null | Video view count (same source as videoPlayCount) |
musicInfo | object/null | Music attribution info for reels (artist_name, song_name, uses_original_audio, audio_id, should_mute_audio) |
paidPartnership | boolean/null | Whether the post is marked as a paid partnership |
isCommentsDisabled | boolean/null | Whether commenting is disabled on the post |
inputUrl | string/null | Hashtag or explore page URL the row was scraped from |
error | string/null | Set only on un-charged error placeholder rows (e.g. no_items): why nothing could be scraped for the input |
errorDescription | string/null | Human-readable detail accompanying the error field |
requestErrorMessages | array/null | Raw upstream error messages attached to error placeholder rows |
Sample output
From one of our own test runs on 20 Nov 2026, trimmed. Personal data is redacted.
2 rows, first 3 shown
[
{
"id": "3987290199670918186",
"type": "Video",
"productType": "clips",
"shortCode": "DdVs0-fyAwq",
"caption": "Malaysian Creamy Butter Chicken (Lai Yao Gai)🧈🌟\nOne of my favourite Malaysian comfort foods! ꒰ঌ( ᴗ͈ˬᴗ͈)໒꒱\n\nMethods:\nChicken Marinade (20mins) \n500g chicken thigh ( I used chicken breast in this video but thigh is better!) \n1 egg\n1 tbsp s...",
"hashtags": [
"cooking",
"malaysianfood",
"chicken",
"..."
],
"mentions": [],
"url": "https://www.instagram.com/reel/DdVs0-fyAwq/",
"commentsCount": 61,
"dimensionsHeight": null,
"dimensionsWidth": null,
"originalHeight": null,
"originalWidth": null,
"displayUrl": "https://scontent-cdg4-1.cdninstagram.com/v/t51.82787-15/809519098_18627802786036479_3098824088244236022_n.jpg?stp=dst-jpg_e15_tt6&_nc_cat=104&_nc_map=urlgen_bucketless&ig_cache_key=Mzk4NzI5MDE5OTY3MDkxODE4NjE4NjI3ODAyNzgzMDM2NDc5.3-ccb7-...",
"videoUrl": "https://scontent-cdg4-3.cdninstagram.com/o1/v/t16/f2/m84/AQPZk4hqf2KGiQfkn6G7DQz6eZ8oxhD-NoxnhUn1eH4m4mSM0s5HoZTCxQDUyfPgghT8LK1f2E3FDcBLihkPIYYNLC7HeDJy8-50oUI.mp4?_nc_cat=101&_nc_sid=5e9851&_nc_ht=scontent-cdg4-3.cdninstagram.com&_nc_o...",
"audioUrl": null,
"videoDuration": null,
"alt": "Malaysian Creamy Butter Chicken (Lai Yao Gai)🧈🌟\nOne of my favourite Malaysian comfort foods! ꒰ঌ( ᴗ͈ˬᴗ͈)໒꒱\n\nMethods:\nChicken Marinade (20mins) \n500g chicken thigh ( I used chicken breast in this video but thigh is better!) \n1 egg\n1 tbsp s...",
"likesCount": 3185,
"videoPlayCount": null,
"igPlayCount": null,
"videoViewCount": null,
"timestamp": "2026-09-16T07:02:10.000Z",
"ownerUsername": "sammyy.loh",
"ownerFullName": "Samantha Loh",
"ownerId": "17841401094364393",
"ownerIsVerified": false,
"locationName": "Melbourne, Victoria, Australia",
"scrapedAt": "2026-11-20T03:57:22.598Z",
"enrichmentSource": "json"
},
{
"id": "3784921199089364458",
"type": "Video",
"productType": "clips",
"shortCode": "DSGvcb2kS3q",
"caption": "Malaysia Chicken Curry | 马来风味咖喱鸡\n\nNo fancy tricks… just Malaysian curry chicken the way we all grew up eating it. Creamy, spicy, lemak just nice it’s a kind of aroma that already makes you hungry before you even plate it. Malaysian curry...",
"hashtags": [
"cooknplatebysharilyn",
"chickencurry",
"malaysianfood",
"..."
],
"mentions": [],
"url": "https://www.instagram.com/reel/DSGvcb2kS3q/",
"commentsCount": 50,
"dimensionsHeight": null,
"dimensionsWidth": null,
"originalHeight": null,
"originalWidth": null,
"displayUrl": "https://scontent-atl3-1.cdninstagram.com/v/t51.82787-15/590411092_18048224780701286_402442297521058596_n.jpg?stp=dst-jpg_e15_tt6&_nc_cat=109&_nc_map=urlgen_bucketless&ig_cache_key=Mzc4NDkyMTE5OTA4OTM2NDQ1ODE4MDQ4MjI0Nzc3NzAxMjg2.3-ccb7-5...",
"videoUrl": "https://scontent-atl3-2.cdninstagram.com/o1/v/t16/f2/m69/AQMb1ibf7JdZf1vnfUNRAsbPIiRRrkJNtVOqRHAf6lcJREqt9f5_SfPV9t5eSfiiPWGbzrWIgMyQ8OPIFSV2bY7L.mp4?strext=1&_nc_cat=108&_nc_sid=5e9851&_nc_ht=scontent-atl3-2.cdninstagram.com&_nc_ohc=JqB...",
"audioUrl": null,
"videoDuration": null,
"alt": "Malaysia Chicken Curry | 马来风味咖喱鸡\n\nNo fancy tricks… just Malaysian curry chicken the way we all grew up eating it. Creamy, spicy, lemak just nice it’s a kind of aroma that already makes you hungry before you even plate it. Malaysian curry...",
"likesCount": 5665,
"videoPlayCount": null,
"igPlayCount": null,
"videoViewCount": null,
"timestamp": "2025-12-11T01:50:07.000Z",
"ownerUsername": "cook.n.plate",
"ownerFullName": "Sharilyn",
"ownerId": "17841451038569476",
"ownerIsVerified": true,
"locationName": null,
"scrapedAt": "2026-11-20T03:57:22.759Z",
"enrichmentSource": "json"
}
]Input
| Field | Type | Required | Description | Default |
|---|---|---|---|---|
hashtags | array | Yes | List of Instagram hashtags to scrape (with or without #). Runs are capped at the first 20 hashtags. Defaults to ['malaysianfood'] when not provided. | ["malaysianfood"] |
resultsLimit | integer | No | Maximum number of posts or reels to scrape per hashtag. | 20 |
resultsType | string | No | Choose whether to scrape posts or reels for the selected hashtags. | posts |
keywordSearch | boolean | No | Treat search terms as keyword phrases instead of single hashtags. | false |
dryRun | boolean | No | Validates hashtag parameters without extracting live data or triggering billing charges. | false |
proxyConfiguration | object | No | Apify Proxy configuration. WARNING: with the default options (no groups) the run uses Apify datacenter IPs, which Instagram blocks. Enable the RESIDENTIAL proxy group (or supply a sessionCookie, which uses its own residential lane) for r... | {"useApifyProxy":true} |
sessionCookie | string | No | OPTIONAL. Paste a sessionid cookie from a secondary Instagram account (never your main account; using an account may violate Instagram terms and risk restrictions). Accepted forms: a raw Cookie header string (e.g. 'sessionid=...; ds_user... | - |
feedType | string | No | Which hashtag feed to fetch in logged-in mode: the ranked Top grid (default) or the newest posts first (Recent). Logged-out mode always returns the ranked grid. | top |
Example input
{
"hashtags": [
"malaysianfood"
],
"resultsLimit": 20
}Pricing
| Event | What it means | Price | Lowest tier |
|---|---|---|---|
result | Single Instagram post or reel extracted and saved to dataset | $0.001 | $0.001 |
apify-actor-start | Charged when the Actor starts running. Number of events charged depends on Actor memory (one event per GB, minimum one event). | $0.00005 | $0.00005 |
$1.00 for 1,000 posts at the listed price.
Prices from the Apify Store on 20 November 2026. Apify shows the final price before each run.
How it compares with other Apify actors
Price per 1,000 posts at Apify Store list prices. Every row is a live listing on the Store, read on 20 Nov 2026, so a buyer can check each number at the source.
| Actor | Price per 1,000 posts (Free plan) | Higher plans (Gold) | Start fee per run | Platform usage | Users | Rating | Last build |
|---|---|---|---|---|---|---|---|
| Instagram Hashtag Scraper — Fast Posts, Reels & Metrics This API | $1.00 | $1.00 | $0.00005 | Included | 8 | No reviews yet | 20 Nov 2026 |
| Instagram Hashtag Scraper | $2.60 | $1.90 | None | Included | 160,300 | 3.5 (91 reviews) | 19 Nov 2026 |
| Instagram Hashtag Analytics Scraper | Charges per hashtag result, with separate add-on fees for top posts and latest posts. | $0.001 | Included | 6,167 | 4.1 (11 reviews) | 19 Nov 2026 | |
| Instagram Hashtag Scraper | $0.4 | $0.388 | None | Included | 4,751 | 3.4 (16 reviews) | 20 Nov 2026 |
| Instagram Hashtag Scraper | Posts & Reels | No Cookies | $1.25 | $1.00 | None | Included | 2,320 | 5.0 (5 reviews) | 18 Nov 2026 |
| Instagram Scraper | $2.70 | $1.50 | None | Included | 495,277 | 4.7 (608 reviews) | 19 Nov 2026 |
Where Instagram Hashtag Scraper is stronger
Where Instagram Hashtag Scraper is stronger
- Output includes an images array, first and latest comments and reshare counts
- Far larger user base and a long review history on the Apify Store
- Maintained by Apify itself, alongside a wide family of Instagram actors
Where this API is stronger
- Output schema matches theirs, so an existing pipeline swaps over without reshaping
- A dry run option sizes a run before any posts are collected
- Error fields record failed rows instead of dropping them silently
Where Instagram Hashtag Analytics Scraper is stronger
Where Instagram Hashtag Analytics Scraper is stronger
- Returns hashtag level metrics such as total post count and related hashtags
- Combines top posts, latest posts and semantic related hashtags in one call
Where this API is stronger
- Returns one row per post, with creator, views and engagement on each row
- Top and latest posts need no separate add-on fees
- Keyword search and hashtag scraping share the same input and output shape
Where Instagram Hashtag Scraper is stronger
Where Instagram Hashtag Scraper is stronger
- Each keyword query comes with an allowance of items included
- Listing states that no authentication or proxy setup is needed
Where this API is stronger
- Charges per post only, with no separate per keyword query event
- Output includes music info, video duration and product type fields
- Schema follows Apify's hashtag scraper, so field names stay familiar
Where Instagram Hashtag Scraper | Posts & Reels | No Cookies is stronger
Where Instagram Hashtag Scraper | Posts & Reels | No Cookies is stronger
- Runs without login or cookies, with top, recent and reels only feeds
- Output groups caption text and hashtags in a nested caption object
Where this API is stronger
- Keyword search sits alongside hashtags, with creator verification and audio fields
- Output includes view and play counts, music info and video duration per post
- Error and errorDescription fields explain rows that could not be collected
Where Instagram Scraper is stronger
Where Instagram Scraper is stronger
- Much larger user base and also covers profiles, places and comments
- Date filters such as onlyPostsNewerThan are in the input, as in ours
Where this API is stronger
- Focused on hashtags and keywords, with the same schema as the hashtag actor
- Dry run option lets a run be sized before posts are pulled
- A session cookie input can be supplied when a signed in session is needed
Buyers who need hashtag level statistics or a broad Instagram actor with profiles and comments have good reasons to look elsewhere. For straightforward post and reel harvesting by hashtag or keyword, the four dedicated actors here are close substitutes, and the schema compatibility with Apify's hashtag scraper makes switching between them a low effort change.
Prices are Apify Store list prices, checked 20 Nov 2026. Platform usage 'Paid separately' means Apify bills compute on top of the event price. Check each listing before you buy.
How to run it
- List your tags in hashtags, with or without the hash, for example ["malaysianfood"]; runs are capped at the first 20.
- Set resultsLimit, for example 20, the default, and choose resultsType posts or reels.
- Enable the residential proxy group in proxyConfiguration, or supply a sessionCookie; the default datacenter IPs are widely blocked by Instagram.
- Optional: set dryRun to true for a validation-only pass that does not bill.
- Start the run in the Apify Console; rows stream into the dataset and the run summary reports delivered, walled and skipped terms.
- Export the dataset as JSON, CSV or Excel.
cURL
curl -X POST "https://api.apify.com/v2/acts/subimpact~instagram-hashtag-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"hashtags":["malaysianfood"],"resultsLimit":20}'Python
from apify_client import ApifyClient
client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("subimpact/instagram-hashtag-scraper").call(run_input={"hashtags":["malaysianfood"],"resultsLimit":20})
for item in client.dataset(run["default_dataset_id"]).iterate_items():
print(item)JavaScript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('subimpact/instagram-hashtag-scraper').call({"hashtags":["malaysianfood"],"resultsLimit":20});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);n8n
Use the Apify node (Run an Actor).
Actor ID: subimpact/instagram-hashtag-scraper
Input JSON: paste the example input above.Limits
- At most 20 hashtags are processed per run; later entries in the list are ignored.
- The default datacenter proxy lane is widely blocked by Instagram and often returns no posts.
- Logged-out access caps a hashtag at roughly 12 posts and omits play counts.
- Automated access with an account cookie can breach Instagram's terms, so a secondary account is advised and restrictions are possible.
Questions people ask
What does one post or reel cost?
$0.001 per delivered post or reel, which is $1.00 per 1,000 posts, plus a $0.00005 Actor start event. Only rows that reach the dataset are charged, and a blocked run's placeholder and error rows are free.
Do I need an Instagram login?
No for public hashtag grids, though logged-out access is limited: Instagram caps a tag at about 12 posts and hides play counts. A sessionCookie, from a secondary account, switches to Instagram's hashtag API for the full feed up to resultsLimit and real view counts. Credentials are used for the run only and are never stored or logged.
Why did my run deliver zero posts?
Instagram blocks most datacenter IP ranges, so the default proxy settings often return nothing. The run is marked failed rather than reported as a silent success, and the message names the proxy you used plus the fix: enable the residential group, or supply a sessionCookie, which runs through its own residential lane.
How many posts can one hashtag return?
resultsLimit takes 1 to 1000 and defaults to 20. Logged in, the hard cap is 1,000 per hashtag, with pagination capped at 40 pages per tag and 1.5 to 3.5 second delays between page requests. Logged out, Instagram usually stops you at roughly 12 posts per tag.
Can I use keywords instead of hashtags?
Yes, with keywordSearch set to true, but keyword terms need a sessionCookie because logged-out keyword search hits Instagram's login wall. After two consecutive walled terms the run stops trying and writes one uncharged login_wall row per remaining term.
Which fields come back per post?
id, type, shortCode, url, caption, alt, hashtags, mentions, likesCount, commentsCount, displayUrl, timestamp, ownerUsername and ownerId, plus videoUrl and the view counters where Instagram provides them. Rows taken through a session cookie are marked enrichmentSource set to session.
Is it a drop-in replacement for the Apify Instagram hashtag actor?
Yes. The output schema matches apify/instagram-hashtag-scraper, so existing pipelines read the same field names without reshaping, and the per-post price is $1.00 per 1,000 posts, below that listing's Free plan price.
Need a data source that is not here?
We build and run scrapers for sites that have no public API. Tell us the site, the fields and how often you need them.