Instagram Post Scraper avatar
Instagram Post Scraper
Try for free

No credit card required

View all Actors
Instagram Post Scraper

Instagram Post Scraper

apify/instagram-post-scraper
Try for free

No credit card required

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.

User avatar

Only scrape items published in the last 24 hours

Closed

fine_neonate opened this issue
a month ago

I'm looking for the most efficient way to scrape all posts made in the last 24 hrs daily. I've found a recently closed issue that recommended adding the input as so:

{ "resultsLimit": 1, "username": [ "user", "names", "to", "scrape" ], "onlyPostsForLastValue": "1", "onlyPostsForLastTimeUnit": "days" }

However it still pulls in posts older than 24 hours ago. Any recommendations?

User avatar

zestful_timer

a month ago

I'm facing the same issue. Our use case requires us to scrape data < 24h old

User avatar

Hi! Sorry for confusion, from your run all posts for older dates are "pinned" https://api.apify.com/v2/datasets/mWqBOT1dt7CoRNnfj/items?clean=true&fields=shortCode,timestamp,isPinned&format=json so please increase amount of results in order to get new posts. We can not really change logic for pinned posts because most of users expecting output as its displayed in browser, so pinned posts are topmost and actor just following Instagram logic.

I´m going to close the issue now, but if there would be anything else we could help with, please let us know.

Developer
Maintained by Apify
Actor metrics
  • 1.4k monthly users
  • 100.0% runs succeeded
  • 1.9 days response time
  • Created in Nov 2021
  • Modified 8 days ago