AlphaLoop API
Integrate real-time MEV data, bot intelligence, and wallet analytics into your applications with our powerful REST API and WebSocket streaming.
Getting Started
Base URL
https://api.alphaloop.ioQuick Start
- Create an account and choose a subscription plan
- Generate an API key in Settings → API Keys
- Include your API key in the Authorization header
- Start making requests to the API endpoints
Example Request
curl -X GET "https://api.alphaloop.io/api/v1/mev/sandwich?timeframe=24h" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"Authentication
AlphaLoop uses API key authentication. Include your API key in the Authorization header of every request:
Authorization: Bearer YOUR_API_KEYSecurity Best Practices
- • Never expose your API key in client-side code
- • Store API keys in environment variables
- • Rotate API keys regularly (every 90 days)
- • Use different keys for development and production
- • Monitor API usage for unusual activity
REST API Endpoints
MEV Events
/api/v1/mev/sandwichGet sandwich attack events with filters
/api/v1/mev/arbitrageGet arbitrage opportunities
/api/v1/mev/jitGet JIT liquidity events
/api/v1/mev/liquidationsGet liquidation events
Bot Intelligence
/api/v1/botsGet top MEV bots
/api/v1/bots/:addressGet detailed bot profile
Wallet Analytics
/api/v1/wallets/:addressGet wallet analytics
/api/v1/wallets/:address/tradesGet wallet trade history
Analytics
/api/v1/statsGet platform statistics
/api/v1/pools/hotGet hot trading pools
WebSocket Streaming
Connection URL
wss://api.alphaloop.io/ws/enhancedFeatures
- Real-time MEV event streaming
- Sub-second latency
- Custom event filtering
- Automatic reconnection
Example (JavaScript)
const ws = new WebSocket('wss://api.alphaloop.io/ws/enhanced');
ws.onopen = () => {
// Subscribe to channels
ws.send(JSON.stringify({
type: 'subscribe',
channels: ['sandwich', 'arbitrage']
}));
};
ws.onmessage = (event) => {
const data = JSON.parse(event.data);
console.log('MEV Event:', data);
};Pro & Enterprise Only
WebSocket streaming is available on Pro and Enterprise plans. Upgrade your subscription to access real-time data feeds.
Rate Limits
Rate limits vary by subscription tier. All limits are per hour.
Free
100
requests/hour
Explorer
500
requests/hour
Alpha
2,000
requests/hour
Pro
10,000
requests/hour
Rate Limit Headers
X-RateLimit-Limit - Your rate limit ceiling
X-RateLimit-Remaining - Requests remaining
X-RateLimit-Reset - Unix timestamp when limit resets
Error Handling
The API uses standard HTTP status codes and returns errors in JSON format:
{
"error": {
"code": "RATE_LIMIT_EXCEEDED",
"message": "Rate limit exceeded. Please try again later.",
"statusCode": 429
}
}Common Error Codes
Invalid request parameters or malformed JSON
Missing or invalid API key
Insufficient permissions for this resource
Too many requests, please slow down
Something went wrong on our end