Instagram hashtag posts, billed only for the rows you actually get
Give it a hashtag and a session cookie for an Instagram account you control. It writes posts to your dataset, newest first, and charges $0.0005 per delivered post — and for nothing else.
What "delivered" means, exactly
A post is billable only once it has been written to your dataset. Everything that does not reach it is free, and the run still tells you it happened:
- A run that returns nothing costs nothing.
- Duplicate posts are dropped and not charged — deduplicated across the whole run, not just within a page.
- Posts outside the date window you asked for are not charged.
- Posts past your result limit are not charged. The limit is exact, whatever a feed page happens to contain.
- A post the actor could not read is not charged.
- A run that cannot reach Instagram at all charges nothing, and fails rather than reporting success.
Apify meters and bills this, and the platform usage the run consumes — compute and storage — is included in that price. There is no separate platform charge added to your bill.
A date filter that stops the run
onlyPostsNewerThan takes a date, a datetime, or a relative window like 7 days. It is not a post-filter over everything the actor already fetched — the run stops when the feed reaches that date, so a week of a hashtag costs a week of rows.
Every run says why it stopped
The status message names one of these, so you can act on it without reading the log:
- the result limit was reached
- the date cutoff was reached — everything newer has been delivered
- Instagram has no more posts for the hashtag
- the page budget was reached — raise
maxPagesto go further - Instagram refused the session — supply a fresh cookie