# SX Bet Sports Prediction Market API
> Live data for SX Bet, the on-chain sports prediction & betting exchange on SX Network, with no key. List the active sports-betting markets (moneyline, spread, total) with their two named outcomes, teams, league, sport and game time; get the supported sports; the active leagues with event counts; and the active fixtures (upcoming games) for any league. The peer-to-peer sports-prediction layer for odds dashboards, fixture monitors and sports-data apps — distinct from Polymarket, Kalshi and Limitless. Covers 29 sports across 100+ live markets.

## Authentication
All requests require your oanor API key in the `x-oanor-key` header. Get one at https://www.oanor.com/developer/keys.

```bash
curl -H "x-oanor-key: oanor_live_…" "https://api.oanor.com/sxbet-api/..."
```

## Pricing
- **Free** (Free) — 1,540 calls/Mo, 3 req/s
- **Basic** ($12/Mo) — 45,800 calls/Mo, 7 req/s
- **Pro** ($34/Mo) — 184,000 calls/Mo, 17 req/s
- **Business** ($70/Mo) — 760,000 calls/Mo, 44 req/s

## Endpoints

### Markets

#### `GET /v1/fixtures` — Active fixtures for a league (defaults to top active league)

**Parameters:**
- `leagueId` (query, optional, string) — League id (optional)

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/sxbet-api/v1/fixtures"
```

**Response:**
```json
{
    "data": {
        "count": 79,
        "venue": "sxbet",
        "fixtures": [
            {
                "league": "WNBA",
                "status": 2,
                "event_id": "L10825636",
                "sport_id": 1,
                "start_date": "2023-06-21T19:30:00.000Z",
                "participant_one": "Phoenix Mercury W",
                "participant_two": "Las Vegas Aces W"
            },
            {
                "league": "WNBA",
                "status": 2,
                "event_id": "L10863054",
                "sport_id": 1,
                "start_date": "2023-06-28T23:00:00.000Z",
                "participant_one": "Washington Mystics W",
                "participant_two": "Atlanta Dream W"
            },
            {
                "league": "WNBA",
                "status": 2,
                "event_id": "L10875303",
                "sport_id": 1,
                "start_date": "2023-06-30T23:30:00.000Z",
                "participant_one": "Atlanta Dream W",
                "participant_two": "Washington Mystics W"
            },
            {
                "league": "WNBA",
                "status": 2,
                "event_id": "L10816434",
                "sport_id": 1,
                "start_date": "2023-06-23T23:30:00.000Z",
                "participant_one": "Atlanta Dream W",
                "participant_two": "New York Liberty W"
            },
            {
                "league": "WNBA",
                "status": 2,
      
…(truncated, see openapi.json for full schema)
```

#### `GET /v1/leagues` — Active leagues with event counts

**Parameters:**
- `sportId` (query, optional, string) — Filter by sport id Example: `1`

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/sxbet-api/v1/leagues?sportId=1"
```

**Response:**
```json
{
    "data": {
        "count": 1,
        "venue": "sxbet",
        "leagues": [
            {
                "label": "WNBA",
                "events": {
                    "game-lines": 5
                },
                "sport_id": 1,
                "league_id": 1384,
                "popularity": 0
            }
        ]
    },
    "meta": {
        "timestamp": "2026-06-15T11:15:47.339Z",
        "request_id": "060f7dd8-3c3b-440f-987c-2831f639c4d0"
    },
    "status": "ok",
    "message": "Leagues retrieved successfully",
    "success": true
}
```

#### `GET /v1/markets` — Active sports-betting markets

**Parameters:**
- `sportId` (query, optional, string) — Filter by sport id Example: `5`
- `leagueId` (query, optional, string) — Filter by league id

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/sxbet-api/v1/markets?sportId=5"
```

**Response:**
```json
{
    "data": {
        "count": 100,
        "venue": "sxbet",
        "markets": [
            {
                "type": 274,
                "sport": "Soccer",
                "league": "Outrights - World Cup",
                "status": "ACTIVE",
                "sport_id": 5,
                "team_one": "France",
                "team_two": "The Field",
                "game_time": 1784721600,
                "league_id": 10048,
                "market_hash": "0xaa552a6ad0ade2aec5a98e182902c2974973bd6c4df9f965bed556fd1532d480",
                "outcome_one": "France",
                "outcome_two": "The Field"
            },
            {
                "type": 274,
                "sport": "Soccer",
                "league": "Outrights - World Cup",
                "status": "ACTIVE",
                "sport_id": 5,
                "team_one": "England",
                "team_two": "The Field",
                "game_time": 1784721600,
                "league_id": 10048,
                "market_hash": "0xccdf34391cef4a531bad900ee30938d81bc45c051968d5653f870b1d6e4ac7fd",
                "outcome_one": "England",
                "outcome_two": "The Field"
            },
            {
                "type": 274,
                "sport": "Soccer",
                "league": "Outrights - World Cup",
                "status": "ACTIVE",
                "sport_id": 5,
                "team_one": "Brazil",
                "team_two": "The Field",
                "game_time": 17847
…(truncated, see openapi.json for full schema)
```

#### `GET /v1/sports` — Supported sports

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/sxbet-api/v1/sports"
```

**Response:**
```json
{
    "data": {
        "count": 29,
        "venue": "sxbet",
        "sports": [
            {
                "label": "Basketball",
                "sport_id": 1
            },
            {
                "label": "Hockey",
                "sport_id": 2
            },
            {
                "label": "Baseball",
                "sport_id": 3
            },
            {
                "label": "Golf",
                "sport_id": 4
            },
            {
                "label": "Soccer",
                "sport_id": 5
            },
            {
                "label": "Tennis",
                "sport_id": 6
            },
            {
                "label": "Mixed Martial Arts",
                "sport_id": 7
            },
            {
                "label": "Football",
                "sport_id": 8
            },
            {
                "label": "E Sports",
                "sport_id": 9
            },
            {
                "label": "Novelty Markets",
                "sport_id": 10
            },
            {
                "label": "Rugby Union",
                "sport_id": 11
            },
            {
                "label": "Racing",
                "sport_id": 12
            },
            {
                "label": "Boxing",
                "sport_id": 13
            },
            {
                "label": "Crypto",
                "sport_id": 14
            },
            {
                "label": "Cricket",
            
…(truncated, see openapi.json for full schema)
```

### Meta

#### `GET /v1/meta` — Venue metadata & endpoint guide

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/sxbet-api/v1/meta"
```

**Response:**
```json
{
    "data": {
        "chain": "SX Network",
        "venue": "SX Bet",
        "source": "SX Bet public REST (api.sx.bet), keyless",
        "examples": {
            "sports": "/v1/sports",
            "leagues": "/v1/leagues?sportId=1",
            "markets": "/v1/markets?sportId=5",
            "fixtures": "/v1/fixtures"
        },
        "endpoints": {
            "/v1/sports": "supported sports",
            "/v1/leagues": "active leagues with event counts (filter sportId)",
            "/v1/markets": "active sports-betting markets with named outcomes, teams, league & game time (filter sportId, leagueId)",
            "/v1/fixtures": "active fixtures for a league (leagueId optional — defaults to the top active league)"
        },
        "instrument": "on-chain sports prediction & betting markets",
        "cache_ttl_ms": 10000
    },
    "meta": {
        "timestamp": "2026-06-15T11:15:48.415Z",
        "request_id": "e24b13a8-afdc-4a8e-9ba7-868c7ab9149e"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}
```


---
Marketplace page: https://www.oanor.com/api/sxbet-api
OpenAPI spec: https://www.oanor.com/api/sxbet-api/openapi.json
