API ReferenceMarketGET /stats/:username

GET /api/market/stats/:username

Returns social influence stats for a Twitter/X username based on their activity in the Elfa smart money index.

Request

GET https://api-nekosinga.vercel.app/api/market/stats/:username
ParameterInTypeRequiredDescription
usernamepathstringTwitter/X username without @, e.g. elonmusk

No authentication required.

Response

{
  "username": "cobie",
  "elfaScore": 92,
  "smartMoneyRank": 14,
  "totalPosts": 3820,
  "avgEngagement": 6.7,
  "topTokens": ["BTC", "ETH", "SOL"],
  "cachedAt": "2025-01-15T09:00:00Z"
}
FieldTypeDescription
usernamestringTwitter/X username
elfaScorenumberElfa-assigned influence score (0–100)
smartMoneyRanknumberRank within the smart money index
totalPostsnumberTotal indexed posts
avgEngagementnumberAverage engagement score per post
topTokensstring[]Most mentioned token tickers
cachedAtstringISO timestamp of last cache refresh

Error

{ "error": "Username not found in index" }

Returns 404 if the username is not in the Elfa smart money index.

Caching

TTL: 1 hour — cached in Upstash Redis. Cache key: market:stats:{username}.