![Instagram Post Scraper avatar](https://images.apifyusercontent.com/_jjfNtMQbiyuOcU3Dluj3VOVSNafpUYrO_wVraan7xk/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS9uSDJBSHJ3eGVUUkpvTjVoWC9IdEo2MlllMmk4TURkNjdvcy1JbnN0YWdyYW1fUG9zdF9TY3JhcGVyLnBuZw.webp)
Pay $2.30 for 1,000 results
![Instagram Post Scraper](https://images.apifyusercontent.com/_jjfNtMQbiyuOcU3Dluj3VOVSNafpUYrO_wVraan7xk/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS9uSDJBSHJ3eGVUUkpvTjVoWC9IdEo2MlllMmk4TURkNjdvcy1JbnN0YWdyYW1fUG9zdF9TY3JhcGVyLnBuZw.webp)
Instagram Post Scraper
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 demoLimiting scraping to past 24hrs
Closed
I would like to scrape daily the past 24hrs of posts from clients. Rather then having to change the date each time (this is an automated task), is there a way to set a specific time period to go back, ie: "onlyPostsNewerThan": "24h",
Currently we are using: "onlyPostsNewerThan": "2024-05-06",
Thanks.
![alexey avatar](https://apify-image-uploads-prod.s3.amazonaws.com/wM4FzNZqJ8zKeBi7x/B7JmFnXiwps4jzKic-profile2021_250.png)
Hi!
Please use json input values onlyPostsForLastValue
equal to 24 and onlyPostsForLastTimeUnit
equal to hours
then relative date will be calculated and applied.
I´m going to close the issue now, but if there would be anything else we could help with, please let us know.
- 1.5k monthly users
- 91 stars
- 100.0% runs succeeded
- 23 hours response time
- Created in Nov 2021
- Modified 1 day ago