$npx skillfedfor your agent

xclienttransaction

Twitter X-Client-Transaction-Id generator written in python.

With conditionsPyPI Python ModulesReleased Jun 2026243.0K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — xclienttransaction-1.0.3-py3-none-any.whl
v1.0.3 · released 2026-06-26 · Python >=3 · 1 runtime deps: beautifulsoup4

Yes, if you need to make authenticated requests to X.com APIs outside official SDK channels. The package is actively maintained, has low install friction, carries no known vulnerabilities, and uses a permissive MIT license. Be aware that reverse-engineered authentication mechanisms can break if X.com changes its algorithms.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires fetching X.com home page and ondemand.s file responses first to initialize ClientTransaction; these responses must be parsed and passed to the constructor.
  • Low install friction with a single runtime dependency (beautifulsoup4).
  • Actively maintained with recent commits; marked Production/Stable.

License · maintenance · safety

MIT (permissive) — MIT license permits unrestricted use, modification, and distribution with minimal restrictions—suitable for both commercial and personal projects.

last release 2026-06-26 (49 days) · last repo commit 2026-06-26 · 265 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 242,990 downloads/mo, #8,831 on PyPI

Verify before relying

pip install xclienttransaction

from xclienttransaction import ClientTransaction
from urllib.parse import urlparse

ct = ClientTransaction(home_page_response=home_page_response, ondemand_file_response=ondemand_file_response)
transaction_id = ct.generate_transaction_id(method='POST', path='/i/api/1.1/jot/client_event.json')
  • Whether the reverse-engineered algorithm remains stable as X.com updates its authentication mechanisms.
  • Performance characteristics when generating transaction IDs at scale or high frequency.
  • Compatibility with different X.com API versions and endpoints beyond those shown in examples.
  • Whether use of this package complies with X.com's terms of service.
Same gist for agents: .md · .json

What it is and what it does

XClientTransaction generates the X-Client-Transaction-ID header required to authenticate requests to X.com APIs. The package implements a reverse-engineered transaction ID generation algorithm and provides utilities to create valid transaction IDs for specific HTTP methods and API paths. It works by parsing the X.com home page and an ondemand.s file to extract cryptographic material, then uses that material to compute transaction IDs.

The package supports both synchronous and asynchronous workflows. It includes helper functions to fetch and parse necessary X.com responses, handle domain migration from twitter.com to x.com, and generate properly formatted headers. The single runtime dependency is beautifulsoup4 for HTML parsing, keeping the installation lightweight.

Use it for

  • Automating X.com API requests that require valid X-Client-Transaction-ID headers without using official SDK authentication.
  • Building bots or scrapers that interact with X.com endpoints and need to satisfy transaction ID validation.
  • Reverse-engineering or testing X.com's API authentication mechanisms in security research contexts.
  • Integrating X.com API access into applications where standard OAuth flows are unavailable or impractical.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need to make authenticated requests to X.com APIs outside official SDK channels.

The package is actively maintained, has low install friction, carries no known vulnerabilities, and uses a permissive MIT license. Be aware that reverse-engineered authentication mechanisms can break if X.com changes its algorithms.

Install

xclienttransaction on PyPI

Before you install

Low install friction with a single runtime dependency (beautifulsoup4). Actively maintained with recent commits; marked Production/Stable.

Requires fetching X.com home page and ondemand.s file responses first to initialize ClientTransaction; these responses must be parsed and passed to the constructor.

License in practice

MIT license permits unrestricted use, modification, and distribution with minimal restrictions—suitable for both commercial and personal projects.

Quickstart

pip install xclienttransaction

from xclienttransaction import ClientTransaction
from urllib.parse import urlparse

ct = ClientTransaction(home_page_response=home_page_response, ondemand_file_response=ondemand_file_response)
transaction_id = ct.generate_transaction_id(method='POST', path='/i/api/1.1/jot/client_event.json')

Verify before relying

  • Whether the reverse-engineered algorithm remains stable as X.com updates its authentication mechanisms.
  • Performance characteristics when generating transaction IDs at scale or high frequency.
  • Compatibility with different X.com API versions and endpoints beyond those shown in examples.
  • Whether use of this package complies with X.com's terms of service.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
beautifulsoup4
MaintenanceActively maintained 49 days since the last release
Last repo commit
First released
Downloads242,990 / month, #8,831 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersIntended Audience :: End Users/DesktopLicense :: OSI Approved :: MIT LicenseOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: UnixProgramming Language :: Python :: 3Topic :: Software Development :: Build ToolsTopic :: Software Development :: Libraries :: Python Modules

Evidence: xclienttransaction-1.0.3-py3-none-any.whl

Tags

Capabilities
twitter x client transaction idx.com api authentication headertwitter tid generatorx api client transactiontwitter api header generationx.com request authentication
Topics
twitter-apireverse-engineeringauthentication
PyPI keywords
XClientTransactiontwitter transaction idclient transaction id twittertid generatorx client transaction id generatorxid twittertweeterpy

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “twitter x client transaction id”

  • xclienttransactionGenerates X-Client-Transaction-ID headers for authenticating requests…
  • twythonTwython is a Python wrapper for the Twitter API that lets you query…
  • python-twitterA Python wrapper that provides programmatic access to the Twitter…

Give your agent the search over MCP, or paste the wish link into any chat.

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.

Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also Scweet · twscrape · edgegrid-python · rauth · tweepy · django-xff · requests-oauth · wafer-py · eth-account · www-authenticate