Instagram Hashtag Scraper
Pricing
from $1.20 / 1,000 posts
Instagram Hashtag Scraper
Scrape public Instagram posts for any hashtag without an Instagram login. Each result includes the post and the account that published it.
Pricing
from $1.20 / 1,000 posts
Rating
0.0
(0)
Developer
Data Scrapers
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
1
Monthly active users
11 days ago
Last modified
Categories
Features
Share
Instagram Hashtag Scraper creates a structured dataset of public posts collected from Instagram hashtag pages. Each dataset item can include the hashtag, post id, shortcode, caption, like count, comment count, and author username. Query the source with hashtags, search queries, or hashtag URLs, control the result limit with maxItems, and retrieve records through the Apify Dataset API or export them as JSON, CSV, Excel, XML, or another supported format.
Dataset at a glance
| Property | Value |
|---|---|
| Source | instagram.com |
| Record unit | One public hashtag post |
| Input methods | hashtags, searchQueries, startUrls |
| Main identifiers | post_id, shortcode |
| Delivery | Apify Dataset and API |
| Export formats | JSON, CSV, Excel, XML |
| Update model | Fresh records per Actor run |
| Pricing | $1.50 per 1,000 posts on the free plan |
Coverage and available records
The Actor reads public hashtag results. It does not log in. A hashtag with no public posts yields nothing. searchQueries and hashtags accept the tag with or without a leading #. startUrls accepts Instagram hashtag URLs.
Each post row includes media type, counts, caption, thumbnail, and the public username. Private accounts and login walls are not collected. resultsPerHashtag limits one tag. maxItems limits the whole run. Both default to 0, which means no cap.
Data dictionary
| Field | Type | Nullable | Description | Example |
|---|---|---|---|---|
| hashtag | string | no | Hashtag that produced the post, without requiring a hash sign in the output. | exams |
| sourceQuery | string | yes | Input string that led to this tag. | exams |
| post_id | string | no | Instagram media id. Use this field to deduplicate. | 3975569312739622875 |
| shortcode | string | yes | Shortcode used in the post URL. | DcsDzn5yf_b |
| url | string | yes | Public post URL. | https://www.instagram.com/reel/DcsDzn5yf_b/ |
| media_type | string | yes | video, image, or carousel. | video |
| caption | string | yes | Post caption. | |
| like_count | number | yes | Public like count. | 334170 |
| comment_count | number | yes | Public comment count. | 2003 |
| play_count | number | yes | Play count when the media exposes one. | |
| username | string | yes | Public author username. | ashtoon_yt |
| taken_at | string | yes | Publish time in ISO 8601 UTC. | 2026-08-31T02:57:54+00:00 |
| is_verified | boolean | yes | Whether the author is verified. | false |
Example dataset record
{"hashtag": "exams","post_id": "3975569312739622875","shortcode": "DcsDzn5yf_b","url": "https://www.instagram.com/reel/DcsDzn5yf_b/","media_type": "video","like_count": 334170,"comment_count": 2003,"username": "ashtoon_yt","is_verified": false,"taken_at": "2026-08-31T02:57:54+00:00"}
This row is a public reel stored from a hashtag query for exams. The saved record also includes the caption and thumbnail URL.
Query and input reference
| Input | Type | Required | Default | Accepted values | Description |
|---|---|---|---|---|---|
| hashtags | array | no | empty | tag strings | Hashtags to open. |
| searchQueries | array | no | empty | tag strings | Same role as hashtags. |
| startUrls | array | no | empty | hashtag URLs | Direct hashtag links. |
| resultsPerHashtag | integer | no | 0 | 0 or a positive integer | Cap per hashtag. 0 means no cap. |
| maxItems | integer | no | 0 | 0 or a positive integer | Cap for the run. |
| proxyConfiguration | object | no | Apify proxy off | Apify proxy input | Optional proxy. |
Minimal request:
{"hashtags": ["exams"], "maxItems": 5}
Retrieve the data through the API
Start the Actor with JSON input, wait for the run, then read the default dataset.
from apify_client import ApifyClientclient = ApifyClient("<YOUR_API_TOKEN>")run = client.actor("datascrapers/instagram-hashtag-scraper").call(run_input={"hashtags": ["exams"],"maxItems": 5,})for item in client.dataset(run["defaultDatasetId"]).iterate_items():print(item["post_id"], item.get("like_count"))
Data quality and record handling
Deduplicate on post_id. The same post can appear under more than one hashtag in a single run when you pass several tags. like_count and comment_count are the public counts at request time. A hidden like count stays null rather than zero.
Pricing and cost examples
Pay per event. The posts event is $1.50 per 1,000 on Free, $1.40 on Bronze, $1.30 on Silver, and $1.20 on Gold. Platinum and Diamond use the Gold price. Apify platform usage is billed separately. Saving 1,000 posts costs $1.50 in event fees on Free, plus platform usage.
Limitations and responsible data use
The Actor collects public hashtag posts. It does not post, follow, or send messages. Instagram can hide counts or block a session. Use the data in line with Instagram terms and privacy rules.
Dataset questions
What is one record?
One public post from a hashtag page, keyed by post_id.
Which field should I use to deduplicate?
post_id.
Do I need an Instagram account?
No. The Actor reads public hashtag results.
Related datasets from Data Scrapers
Data Scrapers support
Questions about this dataset: stardustspotlight@gmail.com.
