cobalt icon indicating copy to clipboard operation
cobalt copied to clipboard

Instagram API is unaccessible on many instances

Open lpwyz opened this issue 1 year ago • 10 comments

Hello, we are unable to obtain the video link for Instagram

For example: https://www.instagram.com/reel/C8N7FIHuENX/?igsh=Znk2azI2MHJwNnk0 https://www.instagram.com/reel/C4vRLDmrbqq/?igsh=OWxqOXE5NTBvNGp2 https://www.instagram.com/reel/C7HaVTsOxPp/?igsh=MWU0dWEzdDFzZmw2NA==

lpwyz avatar Jun 15 '24 04:06 lpwyz

I am not sure, but what my initial guess for your problem is server and location. Instagram cleverly started restricting content based on location. Like being in Europe, i was not able to download the contents from URL, it showed as INVALID URL HASH although it was correct. I was geo restricted.

So, i shifted my server to San Francisco ultimately everything was working fine as hell.

prabeshAryal avatar Jun 19 '24 15:06 prabeshAryal

affects instances with a lot of users or datacenter ips, try another instance https://instances.hyper.lol/

ihatespawn avatar Jun 27 '24 15:06 ihatespawn

only affects the main instance

it affects all instances with big enough traffic (and especially those with datacenter ips)

wukko avatar Jun 27 '24 16:06 wukko

from my testing

i didn't test every instance, just some

i also updated the message

ihatespawn avatar Jun 27 '24 16:06 ihatespawn

please don't reply with unproven assumptions next time

wukko avatar Jun 27 '24 16:06 wukko

please don't reply with unproven assumptions next time

okay, i just didn't know. i'll be sure to not make that mistake next time

ihatespawn avatar Jun 27 '24 16:06 ihatespawn

it's ok :3

wukko avatar Jun 27 '24 16:06 wukko

Hi, about the ig download issue, is there any fix?

I tried to deploy cobalt api and web on my local NAS and fill the cookies.json file but X(twitter) and Instagram still getting "couldn't find any media content" or "content may be region restricted" errors

tediorelee avatar Jun 28 '24 12:06 tediorelee

twitter only works for video in case you're trying to download images. you can save images from the app, this functionality isn't needed in cobalt.

there's currently no clear fix for instagram :(

wukko avatar Jun 28 '24 12:06 wukko

twitter only works for video in case you're trying to download images. you can save images from the app, this functionality isn't needed in cobalt.

there's currently no clear fix for instagram :(

Understood, download x videos with cobalt works fine and I didn't know it only meant for videos...

tediorelee avatar Jun 28 '24 12:06 tediorelee

main instance has been mostly fine lately, we cannot do anything more to increase availability at the moment. we've implemented (essentially) all possible ways of getting post info from instagram.

i recommend adding more dummy accounts or changing server IP addresses to ones that aren't blocked by instagram.

wukko avatar Jul 20 '24 10:07 wukko