# Live sports odds in Excel with Power Query

Live sports odds in Excel with Power Query: one M query reads GetOdds NBA odds with your key in a header and refreshes every 15 minutes. Free key.

Canonical page: https://getoddsapi.com/uses/odds-in-excel

## Free API key

Get a free GetOdds API key: **100 requests per UTC day and 60 per minute, no card**. One key covers REST and the hosted MCP server.

Sign up: https://getoddsapi.com/sign-up?ref=ai-claudebot

## Quickstart

1. Create an account at https://getoddsapi.com/sign-up?ref=ai-claudebot, open https://getoddsapi.com/dashboard and issue a key with the sources you need (draftkings, fanduel, betrivers, prizepicks or underdog). Keep it in a server environment variable named GETODDS_API_KEY.
2. Read current DraftKings NBA spreads with curl:

```bash
curl --fail-with-body "https://getoddsapi.com/api/v1/odds?sport=NBA&market=spread&fresh_only=true&limit=50" \
  -H "Authorization: Bearer $GETODDS_API_KEY"
```

3. The same request in Python (standard library only):

```python
import json, os, urllib.request

req = urllib.request.Request(
    "https://getoddsapi.com/api/v1/odds?sport=NBA&market=spread&fresh_only=true&limit=50",
    headers={"Authorization": "Bearer " + os.environ["GETODDS_API_KEY"]},
)
with urllib.request.urlopen(req) as res:
    rows = json.load(res)["data"]
for row in rows:
    print(row["away"], "at", row["home"], row["side"], row["line"], row["american"], row["observed_at"])
```

4. Check `observed_at`, `age_seconds` and `stale` on every row before using a price. Full reference: https://getoddsapi.com/docs

## Use with Claude (MCP)

```bash
claude mcp add --transport http getodds https://getoddsapi.com/api/mcp \
  --header "Authorization: Bearer $GETODDS_API_KEY"
```

The MCP tools follow the key's source grants and share its allowance. Setup guide: https://getoddsapi.com/use-with-claude

SDKs: `pip install getodds` (PyPI) · `npm install getoddsapi` (npm) · `npx -y getodds-mcp` (local MCP server) · R: `remotes::install_github("getoddsapi/getodds-r")`. Source: https://github.com/getoddsapi · https://getoddsapi.com/docs/sdks

## Pricing

| Plan | Allowance | Price |
| --- | --- | --- |
| Free key | 100 requests a day, 60 a minute | $0, no card |
| Starter | 100,000 credits a month, 120 a minute | $49 a month |
| Pro | 750,000 credits a month, 300 a minute | $113 a month |
| Business | 3,000,000 credits a month, 600 a minute | $219 a month |
| Scale | 15,000,000 credits a month, 1,200 a minute | $279 a month |

Each plan is priced just under the matching odds-api.io tier (Solo £49, about $65; Starter £99, about $131; Growth £179, about $236; Pro £229, about $302 a month, checked 2026-11-17), and every GetOdds plan reads every source.

Free evaluation allowance: 100 requests per UTC day and 60 per minute per account, with no payment step. Paid plans $49 to $279 a month for 100K to 15M credits, self-serve at /pricing.
Paid plans keep running past their monthly credits: extra credits are billed at $0.1 per 1,000 on Starter, $0.05 per 1,000 on Pro, $0.025 per 1,000 on Business, $0.012 per 1,000 on Scale, invoiced with the subscription, up to a default monthly cap ($10 on Starter, $38 on Pro, $78 on Business, $198 on Scale) that you can change or set to $0 to turn overage off.
Details: https://getoddsapi.com/pricing

## Guide


Canonical: https://getoddsapi.com/uses/odds-in-excel
Reviewed: 2026-11-22 UTC

**Answer:** You get live sports odds into Excel with Power Query: create a blank query, call the GetOdds odds endpoint with Web.Contents and your key in an Authorization header, and refresh on a schedule.

Live sports odds in Excel with Power Query: one M query reads GetOdds NBA odds with your key in a header and refreshes every 15 minutes. Free key.

| Fact | Value |
| --- | --- |
| Tool | Excel Power Query (Get Data) |
| Endpoint | /api/v1/odds |
| Refresh | Every 15 minutes = 96 requests a day |
| Key | In a one-cell table, sent as a header |

## The query

Put your key in a one-cell table named ApiKey. Then Data > Get Data > From Other Sources > Blank Query, open the Advanced Editor and paste this.

```text
let
    Key = Excel.CurrentWorkbook(){[Name="ApiKey"]}[Content]{0}[Column1],
    Response = Json.Document(Web.Contents("https://getoddsapi.com/api/v1/odds", [
        Query = [sport = "NBA", fresh_only = "true", limit = "200"],
        Headers = [Authorization = "Bearer " & Key, Accept = "application/json"]
    ])),
    Odds = Table.FromRecords(Response[data])
in
    Odds
```

## If the query fails

A 401 means the key cell is empty or the key was revoked. If Excel reports a Formula.Firewall error because the query combines the workbook table with a web source, open Data > Get Data > Query Options > Privacy for the current workbook and choose to ignore privacy levels, or type the key into the query as a parameter instead. An empty table between slates is normal with fresh_only=true.

## Set it up

Choose Anonymous when Excel asks how to connect; the key travels in the header, not the URL. Close and Load puts one row per price in a sheet: teams, market, side, line, American and decimal odds, and observed_at. In the query properties, set Refresh every 15 minutes.

The key is saved in the workbook, so do not share the file.

## Formulas on top of the odds

Implied probability of a decimal price is =1/H2. The overround of a two-row market is =1/H2+1/H3-1, and its no-vig probability for the first row is =(1/H2)/(1/H2+1/H3).

- [Implied probability from decimal odds](https://getoddsapi.com/learn/implied-probability-from-decimal-odds): The formula, worked.
- [No-vig calculator](https://getoddsapi.com/no-vig-calculator): Check the spreadsheet math.

## Other sports and books

Change sport to NFL, NHL, NCAAF or NCAAB. For player props from every book, point the query at /api/v1/props?sport=nba and expand the quotes column.

- [Odds in Google Sheets](https://getoddsapi.com/odds-api-google-sheets): The Apps Script version.
- [All use cases](https://getoddsapi.com/uses): Bots, apps, sheets and trackers.

## Questions

### Do I need Power BI or an add-in?

No. Power Query is built into Excel under Data > Get Data.

### How often can it refresh for free?

Every 15 minutes uses 96 of the 100 free requests a day.

### Why is the table empty?

fresh_only=true keeps prices captured in the last 15 minutes, which can be zero rows between slates.

## Sources

- [Microsoft Learn: Web.Contents](https://learn.microsoft.com/en-us/powerquery-m/web-contents)
- [GetOdds OpenAPI contract](https://getoddsapi.com/openapi.json)
- [GetOdds Google Sheets guide](https://getoddsapi.com/odds-api-google-sheets)

GetOdds (getoddsapi.com) is an independent product, not affiliated with the operators named and separate from The Odds API and Odds-API.io. No picks or predicted profits.

---

GetOdds (getoddsapi.com) is an independent developer product and is not affiliated with any sportsbook or pick’em operator. GetOdds is a separate product from The Odds API (the-odds-api.com) and from Odds-API.io (odds-api.io), and is not affiliated with either. Prices describe data, not betting advice.

GetOdds is operated by Stunning Couches LLC, a Delaware limited liability company. Terms: https://getoddsapi.com/terms · Privacy: https://getoddsapi.com/privacy
