API ReferenceOverview

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:

EndpointTTL
/api/market/trending30 minutes
/api/market/sentiment/:token15 minutes
/api/market/news30 minutes
/api/market/trending-cas30 minutes
/api/market/stats/:username1 hour
/api/market/icon/:symbol24 hours

Endpoints

Market

MethodPathDescription
GET/api/market/trendingTop trending tokens by smart money activity
GET/api/market/sentiment/:tokenSentiment score for a specific token
GET/api/market/newsLatest crypto news from tracked accounts
GET/api/market/trending-casTrending contract addresses
GET/api/market/stats/:usernameSocial stats for a Twitter/X username

Auth

MethodPathDescription
POST/api/auth/loginGet JWT token