> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sportrix.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Sportrix Data: Real-Time Sports Data API

> Sportrix Data gives you instant access to live scores, match fixtures, statistics, and final results — delivered over REST and WebSocket.

Sportrix Data is a sports data API that puts fixture catalogs, real-time scores, and post-match statistics at your fingertips. Whether you're building a live scores widget, a results dashboard, or a statistics tracker, Sportrix Data provides a single, consistent interface for the data you need.

<CardGroup cols={2}>
  <Card title="Quick Start" icon="bolt" href="/quickstart">
    Make your first API call in minutes with your API key
  </Card>

  <Card title="Authentication" icon="key" href="/authentication">
    Learn how to authenticate every request with your API key
  </Card>

  <Card title="API Reference" icon="code" href="/api/overview">
    Explore every REST endpoint and response schema
  </Card>

  <Card title="WebSocket Stream" icon="signal" href="/api/websocket-overview">
    Subscribe to real-time live scores and statistics
  </Card>
</CardGroup>

## What you can build

<CardGroup cols={3}>
  <Card title="Live Score Widgets" icon="gauge-high">
    Stream real-time match scores, clock, and phase updates directly to your UI
  </Card>

  <Card title="Statistics Dashboards" icon="chart-bar">
    Access possession, shots, corners, and more for every live match
  </Card>

  <Card title="Results & Archives" icon="trophy">
    Retrieve half-time and full-time snapshots once a match ends
  </Card>
</CardGroup>

## Get started in three steps

<Steps>
  <Step title="Get your API key">
    Contact Sportrix Data to create your account and receive your `sk_` API key with the scopes your use case requires.
  </Step>

  <Step title="Call the REST API">
    Browse sports and leagues, then query matches by status or date range — all with a single `X-API-Key` header.

    ```bash theme={null}
    curl https://api.sportrixdata.com/api/sports \
      -H "X-API-Key: sk_your_api_key_here"
    ```
  </Step>

  <Step title="Subscribe to live updates">
    Connect to the WebSocket stream and subscribe to any live match by its `match_id` to receive real-time score and statistics updates.

    ```json theme={null}
    { "action": "subscribe", "match_id": 41282 }
    ```
  </Step>
</Steps>

## Two delivery surfaces

Sportrix Data exposes your sports data through two complementary interfaces:

| Surface       | Best for                                             | Base URL                                  |
| ------------- | ---------------------------------------------------- | ----------------------------------------- |
| **REST API**  | Fixture browsing, on-demand snapshots, final results | `https://api.sportrixdata.com/api`        |
| **WebSocket** | Real-time live scores and statistics streaming       | `wss://scores.sportrixdata.com/v1/stream` |

<Note>
  All requests require an `X-API-Key` header. Contact [support@sportrixdata.com](mailto:support@sportrixdata.com) to get your key.
</Note>
