API Documentation

    Comprehensive guides, code examples, and reference documentation to get you started quickly

    Getting Started

    Get up and running with Scorelib API in just a few minutes

    1. Sign Up

    Create your account and get instant API access

    2. Get API Key

    Access your dashboard to retrieve your unique API key

    3. Make Requests

    Start calling our endpoints with your API key

    Example API Request

    // Get NFL odds from multiple sportsbooks
    const response = await fetch(
      'https://api.scorelib.com/v1/odds/nfl',
      {
        headers: {
          'Authorization': 'Bearer YOUR_API_KEY'
        }
      }
    );
    
    const data = await response.json();
    console.log(data);

    Replace YOUR_API_KEY with your actual API key from your dashboard

    Authentication

    Learn how to authenticate your API requests using API keys and best security practices

    • API Key setup
    • Request authentication
    • Security guidelines

    Endpoints

    Complete reference of all available API endpoints for odds, scores, and statistics

    • Odds endpoints
    • Scores & results
    • Player statistics

    Sports & Leagues

    Browse available sports, leagues, and event IDs for your API requests

    • Sport IDs
    • League coverage
    • Event identifiers

    WebSocket Streaming

    Real-time data streaming via WebSocket connections for instant updates

    • Connection setup
    • Message formats
    • Event subscriptions

    Rate Limits

    Understanding API rate limits, quotas, and best practices for optimization

    • Request limits
    • Quota management
    • Optimization tips

    Error Handling

    Handle API errors gracefully with proper error codes and responses

    • HTTP status codes
    • Error responses
    • Retry logic

    Ready to Start Building?

    Get your API key and access full documentation

    Start Free Trial