X API v2 (server)

Implementation: server/xApiV2.ts

Home / For You corpus

server/forYouCorpus.ts tries in order:

  1. Reverse-chronological following timeline (user OAuth)

  2. User-authored tweets

  3. List timeline (IFIXEDX_HOME_LIST_ID)

  4. Recent Search fallback

homeDataSource on the payload records which path succeeded (following_timeline, list_timeline, etc.).

Explore

server/corpus.ts — Recent Search with user token, then app Bearer fallback on 401/403.