Instagram Post Scraper avatar
Instagram Post Scraper

Pricing

from $1.60 / 1,000 posts

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

Pricing

from $1.60 / 1,000 posts

403

Total users

38K

Monthly users

5.7K

Runs succeeded

>99%

Issues response

2.8 days

Last modified

3 hours ago

LF

API not working

Closed

llyc_fabrica opened this issue
10 months ago

The api does not work, we can only execute task through the web platform

jakubkonecny avatar

Hello, thank you for your feedback. Can you please specify what happens when you try to run the API on your side, so we can investigate the issue futher? Any error codes or messages? Thank you :)

alexey avatar

Hi!

Follow up: API is platform feature and works in the same way for all actors. Please click "API" button in actor console https://console.apify.com/actors/nH2AHrwxeTRJoN5hX/ then "API endpoints" - you will see brief description and generated URLs with the token and "Test endpoint" option.

For further reference please check https://docs.apify.com/api/v2#tag/ActorsRun-actor-synchronously

There was not runs initiated by API under your account, so something is wrong about the way how you call API endpoint - token is missing or input is not correctly specified, or something else. We can not track issue at our side since wrong API call returned to the caller with error but not saved in actor history under caller account (assuming that you will check the error and take actions accordingly)

alexey avatar

Follow up about python https://console.apify.com/actors/KoJrdxJCTtpon81KY/issues/fIiKIuczjoQVtTOXg case

from apify_client import ApifyClient
# Initialize the ApifyClient with your API token
client = ApifyClient("<YOUR_API_TOKEN>")
# Prepare the Actor input
run_input = {
"startUrls": [{ "url": "https://www.facebook.com/humansofnewyork/" }],
"resultsLimit": 20,
}
# Run the Actor and wait for it to finish
run = client.actor("KoJrdxJCTtpon81KY").call(run_input=run_input)
# Fetch and print Actor results from the run's dataset (if there are any)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item)
misa avatar

Hello, I'm going to close this issue thread for now, but feel free to reach out should you have any further questions.