# Arbitrage betting API: every book’s price in one call

GET /v4/sports/{sport}/odds returns each carried book’s moneyline, spread and total for every upcoming game in one request, in The Odds API format. Take the best price on each side across books; when 1/d1 + 1/d2 is below 1, backing both sides returns more than the stake. GetOdds returns the prices; the arbitrage check runs in your code, and a result is only real if both bets are accepted at those prices.

Canonical page: https://getoddsapi.com/arbitrage-api

**Price.** 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.

## 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 (fanduel, betrivers, prizepicks or underdog). Keep it in a server environment variable named GETODDS_API_KEY.
2. Read current NBA spreads from every book with curl:

```bash
curl --fail-with-body "https://getoddsapi.com/v4/sports/basketball_nba/odds?regions=us,us_ex,eu&markets=spreads&oddsFormat=american" \
  -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/v4/sports/basketball_nba/odds?regions=us,us_ex,eu&markets=spreads&oddsFormat=american",
    headers={"Authorization": "Bearer " + os.environ["GETODDS_API_KEY"]},
)
with urllib.request.urlopen(req) as res:
    events = json.load(res)
for e in events:
    for b in e["bookmakers"]:
        for o in b["markets"][0]["outcomes"]:
            print(e["away_team"], "at", e["home_team"], b["key"], o["name"], o.get("point"), o["price"], b["last_update"])
```

4. Check each book’s `last_update` 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

## Facts

- **Books in one call:** FanDuel, BetRivers, bet365, Novig, Pinnacle
- **Markets:** h2h (moneyline), spreads, totals
- **Format:** The Odds API v4 JSON
- **Cost:** One credit per odds request

## Read every book for one league

Create an account at /sign-up, open /dashboard and issue a key with the source grants you need (fanduel, betrivers, prizepicks or underdog). Keep the key in a server environment variable named GETODDS_API_KEY and send it as a bearer token. Never put it in a URL or in browser code.

regions=us returns FanDuel, BetRivers and bet365; add us_ex for the Novig exchange and eu for Pinnacle. Each bookmaker block carries its own last_update, so you can skip stale prices before comparing.

```bash
curl --fail-with-body "https://getoddsapi.com/v4/sports/basketball_nba/odds?regions=us,us_ex,eu&markets=h2h&oddsFormat=decimal" \
  -H "Authorization: Bearer $GETODDS_API_KEY"
```

## Check each game for a two-way arb

The script takes the best decimal price per side across books and prints games where the implied probabilities sum below one, with stakes that return the same amount either way.

```python
import json, os
from urllib.request import Request, urlopen

url = "https://getoddsapi.com/v4/sports/basketball_nba/odds?regions=us,us_ex,eu&markets=h2h&oddsFormat=decimal"
req = Request(url, headers={"Authorization": "Bearer " + os.environ["GETODDS_API_KEY"]})
with urlopen(req, timeout=20) as r:
    events = json.load(r)

bankroll = 100
for e in events:
    best = {}
    for book in e.get("bookmakers", []):
        for market in book["markets"]:
            for o in market["outcomes"]:
                if o["price"] > best.get(o["name"], (0, ""))[0]:
                    best[o["name"]] = (o["price"], book["key"])
    if len(best) != 2:
        continue
    total = sum(1 / price for price, _ in best.values())
    if total < 1:
        print(f'{e["away_team"]} @ {e["home_team"]}  margin {(1 / total - 1):.2%}')
        for side, (price, book) in best.items():
            print(f'   {book:<10} {side:<24} {price}  stake ${bankroll / price / total:.2f}')
```

## The math, and why it is conditional

For two outcomes with decimal prices d1 and d2, an arbitrage exists when 1/d1 + 1/d2 is below 1. Stakes are split in proportion to 1/d so both outcomes return the same amount.

It is conditional because both bets must be accepted at those prices and settle on the same game under the same rules. Football moneylines can tie, whole-number lines can push, and books differ on overtime and void rules. Fees, taxes, stake limits and account restrictions are not modeled.

## Expect few results

Regulated US books rarely disagree enough to create an arb, and when they do it closes fast. An empty result usually means no arb right now, not missing data: check that each game returned more than one bookmaker before concluding.

## FAQ

### Is an arbitrage result guaranteed profit?

No. It assumes both prices are accepted together and both bets settle normally on the same game.

### Which sportsbooks can I compare?

FanDuel, BetRivers and bet365 (region us), the Novig exchange (us_ex) and Pinnacle (eu), in one /v4 request.

### Does GetOdds calculate the arb for me?

No. It returns each book’s prices with update times; the comparison runs in your code, as in the script above.

### Does it include player prop arbitrage?

Player props from every book come back merged per player and stat on /api/v1/props, so you can run the same check on props.

---

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
