Skip to main content
A comprehensive TypeScript SDK for the X API (formerly Twitter API) with advanced features including smart pagination, multiple authentication methods, real-time streaming, and full type safety.

Key Features

  • πŸ” Authentication: User Context (OAuth1.0a, OAuth2.0), and App-Only (Bearer token) authentication
  • πŸ”„ Pagination: Automatic pagination with async iteration support
  • πŸ“‘ Streaming: Event-driven streaming with automatic reconnection
  • πŸ“š Type Safety: Complete TypeScript definitions for all endpoints and parameters
  • 🎯 Full X API Support: Users, Posts, Lists, Bookmarks, Communities, and more

Quick Start

quickstart.ts
For detailed code examples using the Javascript/TypeScript XDK, check out our code samples GitHub repo.

What’s Next?