400 Bad Request when downloading posts
Author: amchapCreated Jul 29, 2026Updated Aug 29, 2026
Labelsbug
When I want to download images associated with a public user profile (I'm the admin) I get the following error
posts = instaloader.Profile.from_username(L.context, PROFILE).get_posts()
File "/Library/Python/3.9/lib/python/site-packages/instaloader/structures.py", line 1007, in from_username
data = context.get_json(
File "/Library/Python/3.9/lib/python/site-packages/instaloader/instaloadercontext.py", line 463, in get_json
raise QueryReturnedBadRequestException(self._response_error(resp))
instaloader.exceptions.QueryReturnedBadRequestException: 400 Bad Request - "fail" status, message "Asset asset://laser.provider/ig_business_category_subvertical has been deleted. You cannot use this schema" when accessing https://www.instagram.com/api/v1/users/web_profile_info/?username=###
It looks like the IG API expects a different schema than what Instaloader is asking
I'm running the python script and the latest version of Instaloader, v4.15.3.
I thought it might be permissions, but I get the same error when I add the password function
Source: instaloader/instaloader