Instagram Post Scraper avatar

Instagram Post Scraper

Try for free

Pay $2.30 for 1,000 results

View all Actors
Instagram Post Scraper

Instagram Post Scraper

apify/instagram-post-scraper
Try for free

Pay $2.30 for 1,000 results

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.

Do you want to learn more about this Actor?

Get a demo
EL

API not skipping pinned posts

Closed

El5 opened this issue
a month ago

Hi, Im doing some runs via API with "skipPinnedPosts": true, but the pinned post are not being skipped. Could you help with that?

jakubkonecny avatar

Hello, thank you for your feedback. skipPinnedPosts skips the first pinned posts, so they are not included while filtering for a specific date range.

The issue in your input likely resides in onlyPostsNewerThan, that takes in a literal date in a format YYYY-MM-DD, where as in your run it is "1 day", which doesn't parse correctly. If you want to use a relative date filter, you can use "onlyPostsForLastTimeUnit": "day", "onlyPostsForLastValue": "1" in your input.

That gives the expected output (only posts in the time range from now to 1 day ago). If you have any further questions, feel free to open a new issue or reopen this one :)

Developer
Maintained by Apify

Actor Metrics

  • 1.9k monthly users

  • 143 stars

  • >99% runs succeeded

  • 2.7 days response time

  • Created in Nov 2021

  • Modified 3 hours ago