Instagram Hashtag Scraper avatar

Instagram Hashtag Scraper

Pricing

from $1.20 / 1,000 posts

Go to Apify Store
Instagram Hashtag Scraper

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

Data Scrapers

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

1

Monthly active users

11 days ago

Last modified

Categories

Features

Limited permissions

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.

Instagram Hashtag Scraper — input to structured data

Dataset at a glance

PropertyValue
Sourceinstagram.com
Record unitOne public hashtag post
Input methodshashtags, searchQueries, startUrls
Main identifierspost_id, shortcode
DeliveryApify Dataset and API
Export formatsJSON, CSV, Excel, XML
Update modelFresh 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

FieldTypeNullableDescriptionExample
hashtagstringnoHashtag that produced the post, without requiring a hash sign in the output.exams
sourceQuerystringyesInput string that led to this tag.exams
post_idstringnoInstagram media id. Use this field to deduplicate.3975569312739622875
shortcodestringyesShortcode used in the post URL.DcsDzn5yf_b
urlstringyesPublic post URL.https://www.instagram.com/reel/DcsDzn5yf_b/
media_typestringyesvideo, image, or carousel.video
captionstringyesPost caption.
like_countnumberyesPublic like count.334170
comment_countnumberyesPublic comment count.2003
play_countnumberyesPlay count when the media exposes one.
usernamestringyesPublic author username.ashtoon_yt
taken_atstringyesPublish time in ISO 8601 UTC.2026-08-31T02:57:54+00:00
is_verifiedbooleanyesWhether 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

InputTypeRequiredDefaultAccepted valuesDescription
hashtagsarraynoemptytag stringsHashtags to open.
searchQueriesarraynoemptytag stringsSame role as hashtags.
startUrlsarraynoemptyhashtag URLsDirect hashtag links.
resultsPerHashtagintegerno00 or a positive integerCap per hashtag. 0 means no cap.
maxItemsintegerno00 or a positive integerCap for the run.
proxyConfigurationobjectnoApify proxy offApify proxy inputOptional 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 ApifyClient
client = 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.

Data Scrapers support

Questions about this dataset: stardustspotlight@gmail.com.