yt-dlp: Instagram reels fail to download
DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE
- I understand that I will be blocked if I intentionally remove or skip any mandatory* field
Checklist
- I’m reporting that yt-dlp is broken on a supported site
- I’ve verified that I have updated yt-dlp to nightly or master (update instructions)
- I’ve checked that all provided URLs are playable in a browser with the same IP and same login details
- I’ve checked that all URLs and arguments with special characters are properly quoted or escaped
- I’ve searched known issues and the bugtracker for similar issues including closed ones. DO NOT post duplicates
- I’ve read the guidelines for opening an issue
- I’ve read about sharing account credentials and I’m willing to share it if required
Region
Canada
Provide a description that is worded well enough to be understood
Thought it was a rate limit, but I tried from multiple different IPs and all failed, while they all worked from firefox browser
example reel (loud): https://www.instagram.com/reel/DAgxVRCsDgA
Provide verbose output that clearly demonstrates the problem
- Run your yt-dlp command with -vU flag added (
yt-dlp -vU <your command line>) - If using API, add
'verbose': TruetoYoutubeDLparams instead - Copy the WHOLE output (starting with
[debug] Command-line config) and insert it below
Complete Verbose Output
[debug] Command-line config: ['-vU', 'https://www.instagram.com/reel/DAgxVRCsDgA']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version nightly@2024.10.01.232843 from yt-dlp/yt-dlp-nightly-builds [e59c82a74] (zip)
[debug] Python 3.12.3 (CPython x86_64 64bit) - Linux-6.8.0-41-generic-x86_64-with-glibc2.39 (OpenSSL 3.0.13 30 Jan 2024, glibc 2.39)
[debug] exe versions: none
[debug] Optional libraries: certifi-2023.11.17, requests-2.31.0, sqlite3-3.45.1, urllib3-2.0.7
[debug] Proxy map: {}
[debug] Request Handlers: urllib
[debug] Loaded 1838 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp-nightly-builds/releases/latest
Latest version: nightly@2024.10.01.232843 from yt-dlp/yt-dlp-nightly-builds
yt-dlp is up to date (nightly@2024.10.01.232843 from yt-dlp/yt-dlp-nightly-builds)
[Instagram] Extracting URL: https://www.instagram.com/reel/DAgxVRCsDgA
[Instagram] DAgxVRCsDgA: Setting up session
[Instagram] DAgxVRCsDgA: Downloading JSON metadata
WARNING: [Instagram] DAgxVRCsDgA: General metadata extraction failed (some metadata might be missing).
[Instagram] DAgxVRCsDgA: Downloading webpage
WARNING: [Instagram] unable to extract shared data; please report this issue on https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U
WARNING: [Instagram] Main webpage is locked behind the login page. Retrying with embed webpage (some metadata might be missing).
[Instagram] DAgxVRCsDgA: Downloading embed webpage
WARNING: [Instagram] unable to extract additional data; please report this issue on https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U
ERROR: [Instagram] DAgxVRCsDgA: Requested content is not available, rate-limit reached or login required. Use --cookies, --cookies-from-browser, --username and --password, --netrc-cmd, or --netrc (instagram) to provide account credentials
File "/home/facade/AUTO-YTDLP-BOT/./yt-dlp/yt_dlp/extractor/common.py", line 741, in extract
ie_result = self._real_extract(url)
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/facade/AUTO-YTDLP-BOT/./yt-dlp/yt_dlp/extractor/instagram.py", line 460, in _real_extract
self.raise_login_required('Requested content is not available, rate-limit reached or login required')
File "/home/facade/AUTO-YTDLP-BOT/./yt-dlp/yt_dlp/extractor/common.py", line 1257, in raise_login_required
raise ExtractorError(msg, expected=True)
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 4
- Comments: 15 (3 by maintainers)
Commits related to this issue
- [ie/instagram] Fix extractor (#11156) Closes #11151 Authored by: tetra-fox — committed to yt-dlp/yt-dlp by tetra-fox 2 years ago
- [ie/instagram] Fix extractor (#11156) Closes #11151 Authored by: tetra-fox — committed to subrat-lima/yt-dlp by tetra-fox 2 years ago
quick one liner to find the urls based on @tetra-fox 's comment
I can repro. Seems like the decrepit extractor has finally been fully broken
open the dev tools and network tab and then refresh the reel page. switch back to Dev tools and view the network tab results. look for the entry with the name “query”. click the response tab to view the json response. the video_url is in that
this is a community maintained project. All the devs that work on this have lives and don’t owe us anything. Just be patient.
In the mean time, use your browser web tools to get the json packages that contain the
video_urland use that url with yt-dlp@bashonly when I am logged out, there is no request to
api/v1/media/3466101691097200810/info/instead, there is an xhr query post request.that returns json in this format:
I can use the
video_urlvalue with yt-dlp fine