Back to Documentation
API Reference
REST API documentation for accessing Xandeum network data programmatically.
Base URL
https://your-domain.comEndpoints
GET
/api/pnodesGet list of all active provider nodes with basic info
Response
{
"success": true,
"data": [
{
"address": "192.168.1.1:8001",
"pubkey": "ABC123...",
"version": "1.2.3",
"last_seen_timestamp": 1703500000,
"cpu_percent": 45.2,
"ram_used": 8589934592,
"ram_total": 17179869184,
"uptime": 864000
}
]
}GET
/api/network/overviewGet network-wide analytics and health metrics
Response
{
"success": true,
"data": {
"totals": {
"total": 251,
"healthy": 216,
"degraded": 25,
"offline": 10
},
"health": {
"score": 86,
"healthyPercentage": 86.1
},
"versions": {
"latest": "1.2.3",
"distribution": {
"1.2.3": 180,
"1.2.2": 50,
"1.2.1": 21
}
}
}
}GET
/api/pnodes/leaderboardGet top performing nodes ranked by pod credits
Response
{
"success": true,
"data": [
{
"rank": 1,
"pubkey": "ABC123...",
"podCredits": 9500,
"uptime": 30.5,
"cpu": 25.3,
"storage": 85.2
}
]
}GET
/api/tradingGet current token prices for XAND and SOL
Response
{
"success": true,
"data": {
"xand": {
"price": 0.0234,
"change24h": 5.2,
"volume24h": 1250000
},
"sol": {
"price": 98.45,
"change24h": -1.8,
"volume24h": 850000000
}
}
}GET
/api/stakingGet liquid staking information and APY
Response
{
"success": true,
"data": {
"apy": 7.20,
"exchangeRate": 1.072,
"totalStaked": 15000000,
"validators": 42
}
}Rate Limiting
API requests are rate limited to ensure fair usage:
- 100 requests per minute for unauthenticated requests
- 1000 requests per minute for authenticated requests
- Rate limit headers are included in all responses
Error Responses
All errors follow a consistent format:
{
"success": false,
"error": {
"code": "RATE_LIMITED",
"message": "Too many requests"
}
}