API Reference
Base URL: https://api-nekosinga.vercel.app
Authentication
Most market data endpoints are public. The /api/auth/login endpoint
returns a JWT token for protected routes.
Include the token in the Authorization header:
Authorization: Bearer <token>Rate Limits & Caching
All Elfa API calls are cached in Upstash Redis to preserve the free tier credit budget (1,000 credits/month). Cache TTLs:
| Endpoint | TTL |
|---|---|
/api/market/trending | 30 minutes |
/api/market/sentiment/:token | 15 minutes |
/api/market/news | 30 minutes |
/api/market/trending-cas | 30 minutes |
/api/market/stats/:username | 1 hour |
/api/market/icon/:symbol | 24 hours |
Endpoints
Market
| Method | Path | Description |
|---|---|---|
GET | /api/market/trending | Top trending tokens by smart money activity |
GET | /api/market/sentiment/:token | Sentiment score for a specific token |
GET | /api/market/news | Latest crypto news from tracked accounts |
GET | /api/market/trending-cas | Trending contract addresses |
GET | /api/market/stats/:username | Social stats for a Twitter/X username |
Auth
| Method | Path | Description |
|---|---|---|
POST | /api/auth/login | Get JWT token |