Originally created by @javiersempere on GitHub (Jan 11, 2025).
Original GitHub issue: https://github.com/imputnet/cobalt/issues/1046
### bug description
Cannot fetch page from Instagram
### reproduction steps
1. go to https://www.instagram.com/p/B_Exth0JxcG/
2. click go >>
3. Get error fetching from Instagram
### screenshots

### links
_No response_
### platform information
chrome on Windows
### additional context
_No response_
GiteaMirror
added the bug label 2026-05-24 07:02:51 -05:00
Instagram image posts seem to work fine with multi-image gallery posts, but not single-image posts. (Both examples below from the same account)
Gallery post:
Single-image post:
<!-- gh-comment-id:2593562834 -->
@bailsafe commented on GitHub (Jan 15, 2025):
Instagram image posts seem to work fine with multi-image gallery posts, but not single-image posts. (Both examples below from the same account)
Gallery post:
<img width="679" alt="image" src="https://github.com/user-attachments/assets/48d0b1e5-1464-4225-a124-853559d9605d" />
Single-image post:
<img width="679" alt="image" src="https://github.com/user-attachments/assets/f5681a74-5748-4a13-9936-1059b514ce1e" />
You only need to pass the cookies for it to retrieve the content without any issues.
I was able to download all content from Instagram using my custom model by inputting new cookies.
Instagram image posts seem to work fine with multi-image gallery posts, but not single-image posts. (Both examples below from the same account)
Single-image and multi-image posts are retrieved without any issues.
Here are a few examples:
<!-- gh-comment-id:2620063644 -->
@smhguard commented on GitHub (Jan 28, 2025):
> 1. go to https://www.instagram.com/p/B_Exth0JxcG/
You only need to pass the cookies for it to retrieve the content without any issues.
I was able to download all content from Instagram using my custom model by inputting new cookies.
> Instagram image posts seem to work fine with multi-image gallery posts, but not single-image posts. (Both examples below from the same account)
Single-image and multi-image posts are retrieved without any issues.
Here are a few examples:


Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @javiersempere on GitHub (Jan 11, 2025).
Original GitHub issue: https://github.com/imputnet/cobalt/issues/1046
bug description
Cannot fetch page from Instagram
reproduction steps
screenshots
links
No response
platform information
chrome on Windows
additional context
No response
@sertraline commented on GitHub (Jan 15, 2025):
You need to pass cookies.
@javiersempere commented on GitHub (Jan 15, 2025):
How?
@bailsafe commented on GitHub (Jan 15, 2025):
Instagram image posts seem to work fine with multi-image gallery posts, but not single-image posts. (Both examples below from the same account)
Gallery post:

Single-image post:

@smhguard commented on GitHub (Jan 28, 2025):
You only need to pass the cookies for it to retrieve the content without any issues.
I was able to download all content from Instagram using my custom model by inputting new cookies.
Single-image and multi-image posts are retrieved without any issues.
Here are a few examples: