https://api.twexapi.io for X/Twitter reads, writes, search, followers, DMs, lists, communities, articles, and account utilities.
Use this page as the entry point before opening individual endpoint pages in the sidebar.
Base URL
Authentication
Send your API key on every request:auth_token on the request. See Authentication for examples across cURL, Python, JavaScript, and Java.
Response format
Successful responses use a consistent envelope:Pagination
Many list and search endpoints return cursor fields such ashas_next_page, next_cursor, or page tokens inside data. Pass the cursor from the previous response unchanged on the next request. Preserve cursors outside chat or workflow memory when jobs must resume after failures.
Check balance
Inspect remaining credits before large exports:Endpoint groups
Browse generated pages under Endpoints in the sidebar, or jump to common groups:Agent and SDK paths
Operational guides
- Error Handling — HTTP status recovery, MCP errors, and write retries
- Rate Limits — throughput guidance and
429backoff - Write Actions — cookie /
auth_token, duplicate checks, and403credits - Authentication — API keys, Bearer headers, and write credentials