Authentication
All API requests require authentication using a Bearer token. Include your API key in the Authorization header:
Authorization Header
Authorization: Bearer YOUR_API_KEYRate Limits
Starter Plan
1,000
requests/day
Pro Plan
10,000
requests/day
Enterprise
Custom
Contact sales
Rate limit information is included in response headers: X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset
GET /events
Retrieve a list of available events across all categories.
Parameters
| Parameter | Type | Description |
|---|---|---|
category | string | Filter by category: "sports", "weather", "economic", "crypto", "news" |
status | string | Filter by status: "active" or "resolved" |
limit | integer | Maximum number of results (default: 20, max: 100) |
offset | integer | Number of results to skip (default: 0) |
sortBy | string | Sort by field: "probability", "timestamp", "confidence" |
Example Request
Request
curl -H "Authorization: Bearer YOUR_API_KEY" \
"https://api.alivator.com/v1/events?category=sports&limit=10&sortBy=probability"Example Response
Response
{
"data": [
{
"id": "evt_1001",
"category": "sports",
"name": "World Cup Final Winner",
"description": "Will Argentina win the World Cup?",
"status": "active",
"probability": 0.82,
"confidence": 0.95,
"resolved": false,
"timestamp": "2026-01-15T14:30:00Z",
"resolutionDate": "2026-12-18T00:00:00Z",
"volume": 1500000
}
],
"meta": {
"total": 1,
"limit": 10,
"offset": 0,
"timestamp": "2026-01-15T14:30:00Z"
}
}GET /events/:id
Retrieve details for a specific event.
Path Parameters
| Parameter | Type | Description |
|---|---|---|
id* | string | Event ID (e.g., evt_1001) |
Example Request
Request
curl -H "Authorization: Bearer YOUR_API_KEY" \
https://api.alivator.com/v1/events/evt_1001Example Response
Response
{
"data": {
"id": "evt_1001",
"category": "sports",
"name": "World Cup Final Winner",
"description": "Will Argentina win the World Cup?",
"status": "active",
"probability": 0.82,
"confidence": 0.95,
"resolved": false,
"timestamp": "2026-01-15T14:30:00Z",
"resolutionDate": "2026-12-18T00:00:00Z",
"volume": 1500000,
"historicalProbabilities": [
{ "timestamp": "2026-01-14T14:30:00Z", "probability": 0.80 },
{ "timestamp": "2026-01-13T14:30:00Z", "probability": 0.78 }
]
}
}GET /status
Check the operational status of the API. This endpoint does not require authentication.
Example Request
Request
curl https://api.alivator.com/v1/statusExample Response
Response
{
"status": "operational",
"version": "v1",
"timestamp": "2026-01-15T14:30:00Z",
"uptime": 99.97,
"latency": 45
}Error Codes
400Bad Request
Invalid request parameters
401Unauthorized
Missing or invalid API key
403Forbidden
API key lacks permission
404Not Found
Resource not found
429Rate Limit Exceeded
Too many requests
500Server Error
Internal server error
Pagination
Results are paginated by default. Use offset and limit parameters to navigate:
Pagination Examples
# Get first 20 results
https://api.alivator.com/v1/events?limit=20&offset=0
# Get next 20 results
https://api.alivator.com/v1/events?limit=20&offset=20
# Get next 20 results
https://api.alivator.com/v1/events?limit=20&offset=40Webhooks (Pro Plan)
Pro plan customers can subscribe to webhooks for real-time event updates. Contact support to configure webhooks for your application.
- • event.created - New event added
- • event.updated - Event probability changed
- • event.resolved - Event reached resolution
- • event.cancelled - Event was cancelled