fix(instagram): read the user timeline the web client loads - #2522
Open
Benjamin-eecs wants to merge 1 commit into
Open
Benjamin-eecs wants to merge 1 commit into
Benjamin-eecs wants to merge 1 commit into
Conversation
Benjamin-eecs
force-pushed
the
fix/instagram-user-timeline
branch
3 times, most recently
from
September 17, 2026 08:37
34e1ab7 to
cc3e18f
Compare
Instagram retired /api/v1/feed/user/* for web sessions and web_profile_info answers 429 (jackwener#2456).
Benjamin-eecs
force-pushed
the
fix/instagram-user-timeline
branch
from
September 17, 2026 09:18
cc3e18f to
01bc0e3
Compare
Benjamin-eecs
marked this pull request as ready for review
September 17, 2026 09:27
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
instagram useris dead for every account. Instagram retired/api/v1/feed/user/*for web sessions: it answers200withredirected: trueand the homepage app shell, so this command'sif (!r2.ok)guard cannot fire andr2.json()throws a rawSyntaxErrorunder theUNKNOWNcode. Its documented fallback is gone too,web_profile_infoanswers429with an HTML block page (#2456).The command now reads the timeline the web client itself loads: it forces a fresh document, installs the request interceptor, routes to the profile through the history API so the interceptor survives, drains captures until the timeline arrives, and scrolls when the limit needs another page. Instagram's own Relay client issues the query, so nothing here pins a persisted-query
doc_id.Related issue: Closes #2456
Type of Change
Checklist
Documentation (if adding/modifying an adapter)
docs/adapters/(if new adapter)docs/adapters/index.mdtable (if new adapter)docs/.vitepress/config.mts(if new adapter)README.md/README.zh-CN.mdwhen command discoverability changedCliErrorsubclasses instead of rawErrorScreenshots / Output
Both endpoints, probed in a logged-in session:
Before, on any account:
After, same session (first of three rows):
--limit 20returns 20 distinct posts across captured pages, a professional account resolves the same way, and a handle with no public timeline reportsCOMMAND_EXECnaming the cause instead of leaking a page stack trace.clis/instagramsuite 204 / 204, and every behaviour above is mutation-checked: reverting any one of the forced reload, the envelope unwrap, the settled-pathname check, the pagination gates, deduplication, media id or media type validation, capture-timeout classification or deferred GraphQL error reporting fails a test. Typecheck, both lint gates and doc coverage pass;cli-manifest.jsonchanges only this command's strategy and navigateBefore entries.