microlinkhq / sdk

Make any URL embeddable. Turn any URL into a beautiful link preview.
https://microlink.io/sdk
MIT License
575 stars 38 forks source link

Instagram links aren't fetching #373

Open coffeewithdonut opened 1 week ago

coffeewithdonut commented 1 week ago

Bug Report

Current Behavior

Within the last few days, all Instagram posts have been intercepted with a login page instead of returning the content.

Test – https://microlink.io/sdk?url=https%3A%2F%2Fwww.instagram.com%2Fp%2FC8hIungMPmD

I've tried tweaking prerendering, devices, and video/audio with no success.

Kikobeats commented 1 week ago

Hello, one way to escape from the Instagram wall is by passing your own proxy server: https://microlink.io/docs/api/parameters/proxy

Another way could be pass your authentication cookies via headers: https://microlink.io/docs/api/parameters/headers

coffeewithdonut commented 1 week ago

We're using the pro endpoint, to quote your documentation:

We provide an automatic proxy resolution included for any pro plan to handle IP blocking, CAPTCHAs, banners, or any other scraping shield protection.

I think it's a bug, Instagram is a biggie