Unable to download Instagram reels using Cobalt API #72

Closed
opened 2025-11-09 09:39:58 -06:00 by GiteaMirror · 5 comments
Owner

Originally created by @zymsbgt on GitHub (May 18, 2023).

Video used: https://www.instagram.com/reel/CsMdjLAJ9ZX/?igshid=NTc4MTIwNjQ2YQ==
Resulting text: something went wrong and i couldn't get anything for you. try again, but if issue persists, create an issue on github.

I have tried downloading it 3 times and it has failed on all 3 times

Originally created by @zymsbgt on GitHub (May 18, 2023). Video used: https://www.instagram.com/reel/CsMdjLAJ9ZX/?igshid=NTc4MTIwNjQ2YQ== Resulting text: something went wrong and i couldn't get anything for you. try again, but if issue persists, <a class="text-backdrop italic" href="https://github.com/wukko/cobalt" target="_blank">create an issue on github</a>. I have tried downloading it 3 times and it has failed on all 3 times
GiteaMirror added the bug label 2025-11-09 09:39:58 -06:00
Author
Owner

@wukko commented on GitHub (May 18, 2023):

removing tracking info (everything after ?) helps, but cobalt should ignore that, so i'll look into it.

@wukko commented on GitHub (May 18, 2023): removing tracking info (everything after ?) helps, but cobalt should ignore that, so i'll look into it.
Author
Owner

@zymsbgt commented on GitHub (May 19, 2023):

I've implemented that and it helps, thank you!
I am using this project in my own code (https://github.com/zymsbgt/instagram-reel-preview-discord/blob/main/cobalt.py) but in my code the resulting link always leads to downloading a MP3 file when I'm expecting a video from my example link above.

@zymsbgt commented on GitHub (May 19, 2023): I've implemented that and it helps, thank you! I am using this project in my own code (https://github.com/zymsbgt/instagram-reel-preview-discord/blob/main/cobalt.py) but in my code the resulting link always leads to downloading a MP3 file when I'm expecting a video from my example link above.
Author
Owner

@wukko commented on GitHub (May 19, 2023):

you can remove all params but url from the request body, try that :D

btw, all instagram videos are always returned with redirect status (unless you ask cobalt to convert it to audio or mute the video)

@wukko commented on GitHub (May 19, 2023): you can remove all params but `url` from the request body, try that :D btw, all instagram videos are always returned with redirect status (unless you ask cobalt to convert it to audio or mute the video)
Author
Owner

@zymsbgt commented on GitHub (May 19, 2023):

It works now, thank you very much!

@zymsbgt commented on GitHub (May 19, 2023): It works now, thank you very much!
Author
Owner

@wukko commented on GitHub (May 19, 2023):

glad to hear it :)

@wukko commented on GitHub (May 19, 2023): glad to hear it :)
Sign in to join this conversation.