# BetOpenly odds API

BetOpenly prices as structured JSON through one REST API.

BetOpenly is a betting exchange with the bookmaker key `betopenly`. SockOdds is independent and is not affiliated with or endorsed by BetOpenly.

## Leagues

BetOpenly prices are delivered for 1 league as of 15 October 2026: [NHL](https://sockodds.com/leagues/nhl-odds-api/).

## Request BetOpenly prices

Filter any odds request to BetOpenly with `bookmakers=betopenly`:

```bash
curl -sS "https://api.sockodds.com/v1/odds?league=nhl&bookmakers=betopenly&markets=winner&limit=1&starts_after=$(date -u +%Y-%m-%dT%H:%M:%SZ)" \
  -H "Authorization: Bearer $SOCKODDS_API_KEY"
```

```javascript
const response = await fetch(`https://api.sockodds.com/v1/odds?league=nhl&bookmakers=betopenly&markets=winner&limit=1&starts_after=${new Date().toISOString().slice(0, 19)}Z`, {
  headers: { Authorization: `Bearer ${process.env.SOCKODDS_API_KEY}` },
});
console.log(JSON.stringify(await response.json(), null, 2));
```

```python
import json, os, urllib.request
from datetime import datetime, timezone

request = urllib.request.Request(
    f"https://api.sockodds.com/v1/odds?league=nhl&bookmakers=betopenly&markets=winner&limit=1&starts_after={datetime.now(timezone.utc):%Y-%m-%dT%H:%M:%SZ}",
    headers={"Authorization": "Bearer " + os.environ["SOCKODDS_API_KEY"]},
)
with urllib.request.urlopen(request) as response:
    print(json.dumps(json.load(response), indent=2))
```

Response (from a local copy of the API with invented test prices):

```json
{
  "data": [
    {
      "id": "ev_000ckk0w9ynj",
      "name": "Anaheim Ducks v Boston Bruins",
      "league": {
        "key": "nhl",
        "name": "NHL"
      },
      "scheduled_start": "2026-10-16T21:00:00.000Z",
      "status": "scheduled",
      "participants": [
        {
          "role": "away",
          "identity": {
            "key": "boston_bruins",
            "name": "Boston Bruins"
          }
        },
        {
          "role": "home",
          "identity": {
            "key": "anaheim_ducks",
            "name": "Anaheim Ducks"
          }
        }
      ],
      "markets": [
        {
          "id": "mk_bg0b5yy8a507qx5c",
          "key": "winner",
          "name": "Winner",
          "period": "full",
          "subject": null,
          "alternate": false,
          "outcomes": [
            {
              "id": "oc_0kr7xvzpdedf8erj",
              "name": "Anaheim Ducks",
              "side": "home",
              "line": null,
              "prices": [
                {
                  "bookmaker": "betopenly",
                  "decimal_odds": 1.81,
                  "implied_probability": 0.552486,
                  "available": true,
                  "observed_at": "2026-10-15T07:58:00.000Z"
                }
              ]
            },
            {
              "id": "oc_7syjxnk9xmcawrmp",
              "name": "Boston Bruins",
              "side": "away",
              "line": null,
              "prices": [
                {
                  "bookmaker": "betopenly",
                  "decimal_odds": 2.23,
                  "implied_probability": 0.44843,
                  "available": true,
                  "observed_at": "2026-10-15T07:58:00.000Z"
                }
              ]
            }
          ]
        }
      ]
    }
  ],
  "meta": {
    "count": 1,
    "cursor": null
  },
  "links": {
    "next": null
  }
}
```

## Plans

BetOpenly is included on Pro. See [pricing](https://sockodds.com/pricing/) for the bookmakers each plan includes.

## Related

- [Every bookmaker](https://sockodds.com/bookmakers/)
- [Reading prices](https://sockodds.com/docs/odds/)
- [Quickstart](https://sockodds.com/docs/quickstart/)
