π·οΈ Instagram Hashtag Posts | Every post under a hashtag, and how crowded that tag is Give it hashtags and get the posts behind them as rows β author, likes, comments, caption, media type and link β plus the tag's own lifetime post count, so you can tell a tag worth entering from one that is alreadβ¦
One run-wide request budget for the whole run. Upstream requests are now
capped at 12 on the free plan / 40 on paid plans, shared by every
account, keyword, hashtag or post in the run and counting retries. Previously
only each item had a page cap, so cost multiplied by the number of items a
wide run could issue hundreds of calls under one actor-start charge. A single
item can still walk all of its pages; only wide runs are compressed.
The ceiling is enforced in UpstreamClient.getJson() before every real HTTP
call, so it covers helper-leg requests (profile lookups, enrichments) too.
Exhaustion is a business outcome: a type: "notice" dataset row,
SUMMARY.budgetExhausted, SUMMARY.maxRequestsPerRun and
SUMMARY.upstreamRequests, and a SUCCEEDED run β never a throw.
test/request-budget.js (wired into npm test) drives both tiers with a
fake upstream that never stops paginating, and asserts retries count toward
the same budget.
[0.4] - 2026-11-09
The Billing section claimed the Actor charges "pay per result". It does not: the
only charge event registered on the platform is apify-actor-start, collected once
when the run begins, so a run returning 300 rows costs the same as one returning 3.
The section now describes that, and stops promising something the invoice contradicts.
Free-plan runs are capped at 5 hashtags x 3 pages x 60 posts, 10 author enrichments. Every page, seed and enrichment is one upstream
request, so this is where the real cost sits. The cap is written to the dataset as a
notice row and to SUMMARY.appliedLimits.capped, and a capped run still ends
SUCCEEDED - exceeding a plan quota is never a failed run.
[0.3] - 2026-10-12
The run can no longer be killed by the key-value store. Under
LIMITED_PERMISSIONS β how Apify's automated QA and every API-triggered run
starts an Actor β opening the store is refused with HTTP 403
(KeyValueStoreCollectionClient.getOrCreate), and that call was not inside a
try/catch, so the throw ended the run with exit code 91 and a FAILED run
with 0 items. Store opens now go through a wrapper that returns a no-op store
instead of throwing.
The gate store's name-to-id lookup no longer depends on the store still being
on the first page. This Actor is the one that exposed the bug: the lookup used
a fixed limit=50 page of /v2/key-value-stores, and once the account passed
50 stores usage-gate-instagram-hashtag-posts was already off that page, so
the gate silently fell through to a raw store open that is refused. The lookup
now pages (100 per page, up to 20 pages).
medianLikes was not a median on an even-sized sample.
likes[Math.floor(likes.length / 2)] returns the larger of the two middle
values, biasing the number upward β the exact bias a median exists to remove.
Now uses the shared medianOfSorted, which averages the two middle values.
[0.2] - 2026-10-09
Changed
README: added three sections before Quick start - what you can use it for, who it fits, and who it does not fit. The last section now names the Actor's real limits (what it cannot reach, which field is unavailable, which reading of a metric is wrong), so a buyer can tell whether it is the wrong tool before paying.
0.1 (2026-10-04)
Initial release. One dataset row per post behind a hashtag: author (id, plus handle and follower count when enriched), caption, likes, comments, media type, timestamp and link, tagged with its hashtag.
Uses the v1 hashtag leg, which costs a fraction of the v2/v3 equivalents for the same GraphQL payload. Input accepts yoga, #yoga or an /explore/tags/ URL, up to 20 hashtags per run with cursor paging and de-duplication by shortcode.
Measured quirks handled: the payload nests as data.data.hashtag.edge_hashtag_to_media; media nodes name the code shortcode and the author owner (not code/user as on the user-posts leg), and this leg's owner carries only an id β so author handles are filled in through a bounded number of profile lookups (enrichAuthors, default 10 per hashtag); and Instagram hides like counts inside hashtag listings, so rows carry likesMayBeHidden and each tag summary reports shareWithLikes, instead of presenting a median of zero as a finding.
Per-hashtag summary: lifetime post count reported by Instagram, your coverage of it, unique authors, rows still missing a handle, median likes, video share and the top posting accounts.
Free tier: 5 runs/day (counter persisted in a cross-run named KV store).