Instagram Post Scraper avatar
Instagram Post Scraper

Pricing

$2.30 / 1,000 results

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 (31)

Pricing

$2.30 / 1,000 results

361

Total users

33.4k

Monthly users

4.8k

Runs succeeded

>99%

Issue response

2.4 days

Last modified

3 days ago

EL

API not skipping pinned posts

Closed

El5 opened this issue
7 months 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 :)