API Documentation
Complete reference for integrating SUI Monitor API into your application
v1.0 - RESTful API
Base URL: https://api.suimonitor.com
Authentication: Bearer Token
🚀 Quick Start
1. Get Your API Key
Sign up for a free account and generate your API key from the dashboard.
Get API Key2. Make Your First Request
curl -H "Authorization: Bearer YOUR_API_KEY" https://api.suimonitor.com/api/v1/tokens3. Handle the Response
All responses are in JSON format with a consistent structure including success status and data/error fields.
Endpoints
Tokens
Market Data
Real-Time (WebSocket)
GET
/api/v1/tokensGet list of tokens with filtering and sorting
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| limit | integer | No | Number of tokens to return (max 200) |
| page | integer | No | Page number for pagination |
| sortBy | string | No | Sort field (volume_24h, price_change_24h, market_cap) |
| sortOrder | string | No | Sort order (asc, desc) |
Response
{
"success": true,
"data": [
{
"address": "0x2::sui::SUI",
"symbol": "SUI",
"name": "SUI",
"price": "4.23",
"price_change_24h": "5.2",
"volume_24h": "125000000",
"liquidity": "450000000",
"market_cap": "12000000000"
}
],
"meta": {
"page": 1,
"limit": 20,
"total": 184,
"hasMore": true
}
}Code Examples
cURL
curl -X GET \
"https://api.suimonitor.com/api/v1/tokens" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"JavaScript
const response = await fetch('https://api.suimonitor.com/api/v1/tokens', {
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
}
});
const data = await response.json();
console.log(data);Python
import requests
headers = {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
}
response = requests.get(
'https://api.suimonitor.com/api/v1/tokens',
headers=headers
)
data = response.json()
print(data)Rate Limits
Rate limits are enforced per API key and vary by plan:
- • Free: 10 requests/minute, 10,000 requests/month
- • Starter: 60 requests/minute, 100,000 requests/month
- • Professional: 300 requests/minute, 1,000,000 requests/month
- • Enterprise: 1000 requests/minute, 10,000,000+ requests/month
Rate limit headers are included in every response:
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 58
X-RateLimit-Reset: 1672531200