Instagram Post Scraper avatar
Instagram Post Scraper

Pricing

from $1.60 / 1,000 posts

Go to Store
Instagram Post Scraper

Instagram Post Scraper

Developed by

Apify

Apify

Maintained by Apify

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

ZN

"onlyPostsNewerThan" input parameter does not apply to pinned posts

Closed

zaneezanoo opened this issue
22 days ago

The "onlyPostsNewerThan" input parameter does not apply to pinned posts. Steps to reproduce:

  1. Find an instagram profile with at least one pinned post
  2. Add their username to the "username" input parameter
  3. Set the "onlyPostsNewerThan" input to something relative, eg "1 day". Make sure the relative date is newer than the pinned post
  4. Run the actor
  5. 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.
ZN

zaneezanoo

22 days ago

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/

alexey avatar

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.

ZN

zaneezanoo

19 days ago

I would still like pinned posts to appear in the resulting dataset, but only if they are newer than 1 day. Is this possible?

alexey avatar

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

ZN

zaneezanoo

14 days ago

Awesome, thanks for clarifying!