Instagram Scraper avatar

Instagram Scraper

Try for free

Pay $2.30 for 1,000 results

View all Actors
Instagram Scraper

Instagram Scraper

apify/instagram-scraper
Try for free

Pay $2.30 for 1,000 results

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.

Do you want to learn more about this Actor?

Get a demo
CV

Problem on onlyPostsNewerThan

Open

customary_viburnum opened this issue
a month ago

Hi there. Im running through API but "onlyPostsNewerThan" is not triggering ok. Please check it and confirm me if this is the parameter name or not. I've just run and returned 740 tasks when should only trigger from yesterday.

{ "data": { "id": "GsPPR0lYI5tIHXa0f", "actId": "shu8hvrXbJbY3Eb9W", "userId": "NNNNNNNNN", "actorTaskId": "h8Bh01IUfvjAL2anh", "onlyPostsNewerThan": "{{5.result}}", "finishedAt": null, "skipPinnedPosts": true, "status": "READY", "meta": { "origin": "API", "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, como Gecko) Chrome/126.0.0.0 Safari/537.36" }, "stats": { "inputBodyLen": 2030, "rebootCount": 0, "restartCount": 0, "resurrectCount": 0, "computeUnits": 0 }, "options": { "build": "latest", "timeoutSecs": 604800, "memoryMbytes": 4096, "diskMbytes": 8192 }, "createdByOrganizationMemberUserId": "EL3pqsau7NibbydbD", "buildId": "detz7JNWe2S8Yfy3s", "defaultKeyValueStoreId": "gKigiFNVfVyNVhCB3", "defaultDatasetId": "0LxgO783MVBHtAbPQ", "defaultRequestQueueId": "tSOIGOVcKljFnsNzo", "buildNumber": "0.0.256", "containerUrl": "https://n9mfcl7lnrkr.runs.apify.net", "usage": { "ACTOR_COMPUTE_UNITS": 0, "DATASET_READS": 0, "DATASET_WRITES": 0, "KEY_VALUE_STORE_READS": 0, "KEY_VALUE_STORE_WRITES": 1, "REQUEST_QUEUE_READS": 0, "REQUEST_QUEUE_WRITES": 0, "DATA_TRANSFER_INTERNAL_GBYTES": 0, "DATA_TRANSFER_EXTERNAL_GBYTES": 0, "PROXY_RESIDENTIAL_TRANSFER_GBYTES": 0, "PROXY_SERPS": 0 }, "usageTotalUsd": 0.00005, "usageUsd": { "ACTOR_COMPUTE_UNITS": 0, "DATASET_READS": 0, "DATASET_WRITES": 0, "KEY_VALUE_STORE_READS": 0, "KEY_VALUE_STORE_WRITES": 0.00005, "KEY_VALUE_STORE_LISTS": 0, "REQUEST_QUEUE_READS": 0, "REQUEST_QUEUE_WRITES": 0, "DATA_TRANSFER_INTERNAL_GBYTES": 0, "DATA_TRANSFER_EXTERNAL_GBYTES": 0, "PROXY_RESIDENTIAL_TRANSFER_GBYTES": 0, "PROXY_SERPS": 0 } } }

jakubkonecny avatar

Hello, thank you for your feedback. The parameter name is indeed correct. We will investigate the issue futher and get back to you as soon as possible.

CV

customary_viburnum

a month ago

Any feedback?

jakubkonecny avatar

Hello, it seems like the issue is in the "location" of your onlyPostsNewerThan. In the input you provided, it is inside a data object.

When you put it outside of it (so top level of the input), and edit it so instead of { "onlyPostsNewerThan": "2024-08-12T00:00:00Z" }, it would become { "onlyPostsNewerThan": "2024-08-12" } (because the actor now supports date strings in this format), it works as expected.

It that a viable solution for you? :)

Developer
Maintained by Apify
Actor metrics
  • 4.6k monthly users
  • 304 stars
  • 100.0% runs succeeded
  • 1.8 days response time
  • Created in Apr 2019
  • Modified 3 days ago