
Instagram Post Scraper
Pricing
from $1.60 / 1,000 posts

Instagram Post Scraper
Scrape Instagram posts. Just add one or more Instagram usernames and get your data in seconds including text, hashtags, mentions, comments, images, URLs, likes, locations, and metadata. Export scraped data, run the scraper via API, schedule and monitor runs or integrate with other tools.
4.5 (32)
Pricing
from $1.60 / 1,000 posts
435
Total users
41K
Monthly users
5.6K
Runs succeeded
>99%
Issues response
2.6 days
Last modified
2 days ago
"onlyPostsNewerThan" input parameter does not apply to pinned posts
Closed
The "onlyPostsNewerThan" input parameter does not apply to pinned posts. Steps to reproduce:
- Find an instagram profile with at least one pinned post
- Add their username to the "username" input parameter
- Set the "onlyPostsNewerThan" input to something relative, eg "1 day". Make sure the relative date is newer than the pinned post
- Run the actor
- Observe the results. Notice that regular posts are filtered correctly. But if a post was pinned it will appear in the output as well, even if it is several weeks old.
zaneezanoo
In this example run https://console.apify.com/actors/nH2AHrwxeTRJoN5hX/runs/KyZU1ojuMM0hbtEoN#output I specified to only include posts newer than 1 day. But the first result is a pinned post from 6 weeks ago https://www.instagram.com/p/DItcjfEtgRO/. The second post was only 1 day old and was filtered correctly: https://www.instagram.com/p/DKmkFOBN_1r/

Hi!
In your run, input "skipPinnedPosts": false
so you provided a parameter but assigned a logically wrong value to it.
I will close the issue now, but if there is anything else we can help with, please let us know.
zaneezanoo
I would still like pinned posts to appear in the resulting dataset, but only if they are newer than 1 day. Is this possible?

Hi!
Yes, if onlyPostsNewerThan
is set and skipPinned === true
, we do "smart skipping", meaning that we only skip pinned if they are older than onlyPostsNewerThan
zaneezanoo
Awesome, thanks for clarifying!