Skip to content

fix(twitter/search): restore search after X removed genTxId and rotated queryId - #73

Open
rickross wants to merge 1 commit into
epiral:mainfrom
rickross:fix/twitter-search-genTxId
Open

fix(twitter/search): restore search after X removed genTxId and rotated queryId#73
rickross wants to merge 1 commit into
epiral:mainfrom
rickross:fix/twitter-search-genTxId

Conversation

@rickross

Copy link
Copy Markdown

Fixes #49

What broke

X made two breaking changes:

  1. Removed genTxId (jJ) from webpack chunk 83914
  2. SearchTimeline queryId oKkjeoNFNQN7IeK7AHYc0A returns 404

Fix

  • QueryId: now discovered dynamically by scanning webpack modules for queryId:"...",operationName:"SearchTimeline". Hardcoded fallback included for resilience.
  • Transaction ID: new generator found via module scan — look for exports kc, Ay, _E (module 991160 as of 2026-05). Replaces the old jJ/genTxId approach.
  • Header fix: X-Twitter-Active-User corrected to no (matching actual browser behavior).

Tested against live x.com as of 2026-05-16.

…ed queryId

- jJ/genTxId removed from X webpack bundle ~2026-04
- New transaction ID generator discoverable via module scan (exports kc, Ay, _E)
- SearchTimeline queryId now discovered dynamically with hardcoded fallback
- Fix X-Twitter-Active-User header value (no, not yes)

Fixes epiral#49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[twitter] search adapter broken: X.com removed genTxId + GraphQL query ID 404

1 participant