fix: adapt to Twitter API schema changes (April 2026)#51
Open
nemoaigc wants to merge 2 commits intopublic-clis:mainfrom
Open
fix: adapt to Twitter API schema changes (April 2026)#51nemoaigc wants to merge 2 commits intopublic-clis:mainfrom
nemoaigc wants to merge 2 commits intopublic-clis:mainfrom
Conversation
- User fields migrated out of legacy{}: name/screen_name/created_at now
live in core{}, profile image in avatar.image_url, location in
location.location. Update parse_user_result() and fetch_user() to read
from the new locations with legacy fallback.
- UserTweets: add missing includePromotedContent variable (was causing
HTTP 422); update instructions path from timeline_v2 to timeline with
v2 fallback.
- Followers/Following: both endpoints now require POST. Add use_post flag
to _fetch_user_list() and enable it for both callers.
- Refresh all stale FALLBACK_QUERY_IDS from fa0311/twitter-openapi
(15 of 20 IDs had changed).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
The queryId refresh in the previous commit bumped SearchTimeline to VhUd6vHVmLBcw0uX-6jMLA; align the pinned-value regression test with it. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
Summary
name,screen_name,created_atfromlegacy{}tocore{}, profile image toavatar.image_url, and location tolocation.location. Updatedparse_user_result()andfetch_user()with fallback to legacy for older response shapes. Affectsuser,whoami,status,followers,following.user-postsreturns empty: Two compounding bugs — missing requiredincludePromotedContentvariable (HTTP 422), and instructions path changed fromtimeline_v2totimeline. Both fixed with legacy fallback.followers/followingreturn 404: Both endpoints now require POST. Addeduse_postflag to_fetch_user_list()and enabled it for both callers.FALLBACK_QUERY_IDSfrom fa0311/twitter-openapi.Test plan
twitter user elonmusk— name, profileImageUrl, createdAt populatedtwitter user-posts elonmusk -n 5— returns tweets (was empty)twitter followers elonmusk -n 3— returns users (was 404)twitter following elonmusk -n 3— returns userstwitter feed,twitter search,twitter bookmarks— still working🤖 Generated with Claude Code