From 653efed311e03e812076c251cae44ae5fc9c441e Mon Sep 17 00:00:00 2001 From: Alexander Graf <17130992+aandergr@users.noreply.github.com> Date: Fri, 23 Oct 2026 20:58:31 +0000 Subject: [PATCH] Query Post metadata through api/graphql when not logged in --- instaloader/structures.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/instaloader/structures.py b/instaloader/structures.py index e1d9f60..941b03c 100644 --- a/instaloader/structures.py +++ b/instaloader/structures.py @@ -415,6 +415,8 @@ class Post: "shortcode": self.shortcode, "__relay_internal__pv__PolarisAIGMMediaWebLabelEnabledrelayprovider": False, }, + # As the logged-out web app does. + web_api=not self._context.is_logged_in, ) web_info = (resp.get("data") or {}).get("xdt_api__v1__media__shortcode__web_info") or {} items = web_info.get("items")