Instagram Popular Search Scraper — Hashtag & Keyword avatar

Instagram Popular Search Scraper — Hashtag & Keyword

Pricing

from $0.75 / 1,000 results

Go to Apify Store
Instagram Popular Search Scraper — Hashtag & Keyword

Instagram Popular Search Scraper — Hashtag & Keyword

Search Instagram by hashtag or keyword for public media, optionally fetching full media details for each result.

Pricing

from $0.75 / 1,000 results

Rating

0.0

(0)

Developer

The Netaji

The Netaji

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

1

Monthly active users

10 days ago

Last modified

Share

The Actor searches Instagram for a hashtag or keyword and returns the popular public media it surfaces, paginated, with the related terms Instagram associates with each search.

It is the discovery entry point that needs no account: where the other Actors in this set start from a username or a post, this one starts from a subject.

Accepted input

FieldTypeDefaultDescription
keywordsarray of stringsRequired. Hashtags or keywords.
mediaCountintegerMedia items requested per page from Instagram.
maxIteminteger100Maximum items saved per keyword. 0 removes the limit.
enrichMediabooleanfalseFetches the full media object for every item.
{
"keywords": ["astrophotography", "spacex"],
"maxItem": 100,
"enrichMedia": false
}

maxItem applies to each keyword independently rather than as a shared total. Two keywords with maxItem at 100 can therefore return up to 200 media records.

Response fields

One record per media item.

FieldContents
pkInstagram media ID
codeShortcode, the identifier in a post URL
like_countLikes
comment_countComments
taken_atPublication timestamp
media_typeImage, video, or carousel
enrichedWhether the full media object was fetched
source_keywordThe keyword that surfaced this item
{
"pk": "3412987456123456789",
"code": "C9xY2zAqBcD",
"like_count": 18422,
"comment_count": 214,
"taken_at": 1785312000,
"source_keyword": "astrophotography",
"enriched": false
}

The search metadata row

Each keyword also produces a single row carrying _type: "search_meta", with source_keyword, related_keywords, and description. Instagram repeats this information on every page, so it is emitted once per keyword rather than duplicated across every media record.

These rows describe the search rather than any post, and are distinguished by the _type field. related_keywords is the useful part — Instagram's own associated terms, which make a single seed keyword expandable into a set worth searching next.

Behaviour on partial results

Media is collected through a cursor and ends when Instagram reports no further pages, returns an empty page, or maxItem is reached.

Enrichment is applied per item and issues one additional request each. Items that fail to enrich are skipped rather than aborting the run.

Frequently asked questions

Is this every post using the hashtag? No. It returns what Instagram's popular-search surface serves, which is a ranked selection rather than a complete tag archive. A hashtag with millions of posts will not return millions of records, and the selection favours engagement.

What are the search_meta rows? One per keyword, carrying related_keywords and description rather than media fields. They are separated out because Instagram repeats them on every page; emitting them once avoids duplicating the same block onto every media record. Filter on _type to keep or drop them.

How are related_keywords useful? They are Instagram's own associations for the term, so they identify the adjacent tags an audience actually uses rather than the ones that seem logical. Feeding them back as a second run is the straightforward way to widen coverage of a subject.

What is the difference between mediaCount and maxItem? mediaCount asks Instagram for a page size; maxItem caps how many records are saved per keyword. maxItem is the one that bounds the run, and it applies per keyword rather than across all of them.

Should the keyword include a #? It is not required. Terms are searched as supplied, and Instagram's popular search covers both hashtags and plain keywords.

What does enrichMedia add, and what does it cost? The complete media object — full caption, carousel children, tagged users, and location where present. One additional request and one billed event per item, so a 500-item run performs 500 extra requests. Searching first and enriching a chosen subset afterwards is usually cheaper.

ActorPurpose
Instagram Post ScraperFull detail or comments for the posts found
Instagram User Info ScraperProfile details for the accounts behind them
Instagram Profile Content ScraperEverything one account has published
Instagram Location ScraperMetadata for locations tagged on posts