Instagram Scraper avatar
Instagram Scraper

Pricing

from $1.50 / 1,000 results

Go to Store
Instagram Scraper

Instagram Scraper

Developed by

Apify

Apify

Maintained by Apify

Scrape and download Instagram posts, profiles, places, hashtags, photos, and comments. Get data from Instagram using one or more Instagram URLs or search queries. Export scraped data, run the scraper via API, schedule and monitor runs or integrate with other tools.

3.6 (62)

Pricing

from $1.50 / 1,000 results

1870

Total users

112K

Monthly users

13K

Runs succeeded

98%

Issues response

3.1 days

Last modified

7 hours ago

KO

"onlyPostsNewerThan" not working properly

Closed

Keytrends-owner opened this issue
2 months ago

Tested various examples using relative and fixed date and it still extracts posts before the specified date.

Input:
{
"addParentData": true,
"directUrls": [
"https://www.instagram.com/mapfre",
"https://www.instagram.com/pprimor"
],
"enhanceUserSearchWithFacebookPage": false,
"isUserReelFeedURL": false,
"isUserTaggedFeedURL": false,
"onlyPostsNewerThan": "2025-05-09", // same result using "5 days"
"resultsLimit": 50,
"resultsType": "posts",
"searchType": "hashtag"
}
Result:
{
"inputUrl": "https://www.instagram.com/mapfre",
"id": "3618406893455272053",
"username": "mapfre",
"url": "https://www.instagram.com/p/DI3KeYBOeh1/",
"fullName": "MAPFRE",
"biography": "#CuidamosLoQueTeImporta",
...
"timestamp": "2025-04-25T08:00:12.000Z",
...
}``
alexey avatar

Hi!

Run in the issue deleted, I checked your latest run https://console.apify.com/view/runs/6ACGneVmTvexXLF4B

You're getting pinned posts outside of the date range: https://api.apify.com/v2/datasets/kjIckXfECHwWHdQQr/items?clean=true&fields=url,timestamp,isPinned&format=json

Please use skipPinnedPosts: true as JSON input

I will close the issue now, but if there is anything else we can help with, please let us know.

TM

tama

8 days ago

Still problem with onlyPostsNewerThan ? A lot of old posts coming in. We usually spend around 10 $ per day (ranging from 9$ to 11$). Today we are at 26$. We're lucky that we also put a limit of 50 posts per query and most of them downloaded 50 posts. Thansk

DL

dlwangzg

7 days ago

Having the same problem. I specified onlyPostsNewerThan":"1 day" but roughly 4400 out of 5000 posts returned aren't within a day. Some even dates back to 2017.

alexey avatar

Hi!

Bug confirmed, working on hot fix, will notify you about the fix ASAP.

alexey avatar

Hot-fixed, please try new latest build

TO

tama-owner

3 days ago

Thanks,

last run seems right. We'll see better tomorrow morning, when we'll run most of our runs. Last few days we spent 50$ more the the usual. Hoping tomorrow we'll get back to our usual 10$ per day.

denca avatar

Hello, sorry for the inconvenience - the compensation in credits will be added to your account. They can be used in the current billing cycle.

I will close the issue now, but if there is anything else we can help with, please let us know.