Social API
Social-data endpoints sourced from X/Twitter. Use them to gauge sentiment around a topic, surface recent posts, or score the influence of a single account.Base URL
Authentication
All endpoints require a JWT bearer token.Endpoints
Get sentiment
GET /api/v1/social/sentiment/{topic}
Aggregated sentiment score for a topic or symbol over a lookback window.
Path Parameters:
topic(string, required): Topic, symbol, or keyword. Examples:BTC,ETH,Solana.
hours_back(integer, optional): Time window in hours. Default:24.
sentiment is one of bullish, bearish, or neutral. score is 0–100 (higher = more bullish).
Get mentions
GET /api/v1/social/mentions/{topic}
Recent posts matching a topic, ordered most recent first.
Path Parameters:
topic(string, required): Topic or keyword. Examples:BTC,defi,restaking.
hours_back(integer, optional): Time window in hours. Default:24.limit(integer, optional): Max posts to return. Default:20.
Get influence
GET /api/v1/social/influence/{username}
Influence score and follower metrics for a single X/Twitter account.
Path Parameters:
username(string, required): X/Twitter handle without the@. Example:VitalikButerin.
score is 0–100. It blends follower count, engagement rate, and reach.
Error Codes
| Code | HTTP Status | Description |
|---|---|---|
AUTH_REQUIRED | 401 | Missing or invalid bearer token |
INTERNAL_ERROR | 500 | Upstream provider (X/Twitter) error |