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.9 (60)

Pricing

from $1.50 / 1,000 results

1750

Total users

108K

Monthly users

13K

Runs succeeded

>99%

Issues response

2.5 days

Last modified

5 days ago

WH

Is it possible to add download link for reels?

Closed

widened_hero opened this issue
a month ago

For my use case it would be really great if I could get download link for audio/video of scraped reels.

weuts avatar

Hi 😊

I've created an internal ticket for looking into it - we'll let you know once we know more 😊

WH

widened_hero

a month ago

Thank you! Keep me posted

alexey avatar

Hi!

Currently, video is already available, and audio should be scraped in two steps. You can try as follows:

  1. Scrape the post or reel, i.e., https://console.apify.com/view/runs/8V6LCcb0a2jqHWfdu use videoUrl to download video manually or by an external actor or tool

  2. Use musicInfo.audio_id to compose a direct audio URL (https://www.instagram.com/reels/audio/1363185204928041/ for the post above) and scrape it again https://console.apify.com/view/runs/4UKLOm2miVEhCfKqb

As you can see https://api.apify.com/v2/datasets/i8QtEzbCSbN0lkuCr/items?clean=true&format=json there is metadata.progressive_download_url and you can download it in the same way.

Please note that media URLs will expire in a day or two, so need to download files fast enough.

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

WH

widened_hero

24 days ago

Thank you!

WH

widened_hero

22 days ago

I had issues with other APIs that provide download links, where Meta blocks some of the requests. I was advised to set up a custom proxy to work around it. Do you think that’s necessary here, or does your API handle those cases internally?

alexey avatar

Hi!

It is necessary, please check your https://console.apify.com/proxy/http-settings and compose a custom URL to use residential proxies for downloading. Data center IPs are randomly blocked by Meta even for direct downloading.

WH

widened_hero

22 days ago

Do you mean use existing APIfy residential proxy or using own proxy outside of APIfy?

alexey avatar

I'm not sure exactly how you're downloading media files, but to prevent blocking, downloading should be performed from residential IPs. You can use an Apify proxy or your own, but it should be residential.

WH

widened_hero

21 days ago

Oh, let me rephrase my question a bit. With previous API we had a problem not on step of downloading from link. But on the step of API itself (API was giving no results due to it being blocked by meta). So I am trying to understand if your parser ever has such problem. So I am wondering if I need to setup proxy for API itself

alexey avatar

Hi!

API is an Apify platform feature, and running an actor by API or getting run details by API is totally external to the actor. If the run is done as expected, please check your API tokens and calls.