Skip to main content

Welcome to SportsQuant API

The SportsQuant API allows developers to integrate prediction market functionality into their applications. Our RESTful API provides access to market data, trading operations, and real-time updates.

OpenAPI Specification

View the complete OpenAPI specification

Authentication

All API endpoints require authentication using API keys. You can generate API keys from your SportsQuant dashboard.

API Key Authentication

Include your API key in the request headers:
Authorization: Bearer YOUR_API_KEY

Rate Limits

  • Free tier: 1,000 requests per hour
  • Pro tier: 10,000 requests per hour
  • Enterprise: Custom limits

Base URL

https://api.sportsquant.com/v1

Response Format

All API responses follow a consistent JSON format:
{
  "success": true,
  "data": {
    // Response data
  },
  "error": null,
  "timestamp": "2024-01-15T10:30:00Z"
}

Error Handling

The API uses standard HTTP status codes:
  • 200 - Success
  • 400 - Bad Request
  • 401 - Unauthorized
  • 403 - Forbidden
  • 404 - Not Found
  • 429 - Rate Limit Exceeded
  • 500 - Internal Server Error
Error responses include details:
{
  "success": false,
  "error": {
    "code": "INVALID_MARKET_ID",
    "message": "Market ID is invalid",
    "details": {
      "field": "market_id",
      "value": "invalid-id"
    }
  },
  "data": null
}

SDKs and Libraries

We provide official SDKs for popular programming languages: