A sleek Next.js application to check Twitter/X users' historical usernames and current profile data.
- 🔍 Real-time user lookup - Get current Twitter profile data including followers, bio, verification status
- 📊 Historical username tracking - View past usernames (when available)
- ⚡ Fast autocomplete - Smart suggestions as you type
- 🎨 Clean UI - Modern, responsive design
- 🔒 Server-side API keys - Secure environment variable handling
- Next.js 15 - React framework with App Router
- TypeScript - Type safety
- Tailwind CSS - Styling
- TwitterAPI.io - Real-time Twitter data
- Memory.lol - Historical username data
- Clone the repository:
git clone git@github.com:oxnr/twitter-checker.git
cd twitter-checker
- Install dependencies:
yarn install
- Set up environment variables:
cp .env.example .env.local
- Get your TwitterAPI.io API key:
- Sign up at twitterapi.io
- Get $1 free credit
- Add your API key to
.env.local
:
TWITTER_API_IO_KEY=your_api_key_here
- Run the development server:
yarn dev
Visit http://localhost:3000 to use the app.
GET /api/search?username=USERNAME
- Search for user with historical dataGET /api/twitter-user?username=USERNAME
- Get current user profileGET /api/autocomplete?q=QUERY
- Get username suggestions
- Push to GitHub
- Connect repository to Vercel
- Add environment variables in Vercel dashboard
- Deploy
Environment variables needed for production:
TWITTER_API_IO_KEY
- Your TwitterAPI.io API key
- TwitterAPI.io: $0.15 per 1k requests (very affordable)
- Vercel: Free tier available
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
MIT License