# Bet tracker app API: log prices, grade bets, track CLV

Bet tracker app API: record the price you took, the closing line and the verified final result with one key, then grade bets and track CLV.

Canonical page: https://getoddsapi.com/uses/bet-tracker-app

## 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/bet-tracker-app
Reviewed: 2026-11-22 UTC

**Answer:** A bet tracker app needs three API reads: the price when the bet was placed, the closing line, and the final result to grade it, and GetOdds serves all three on one key.

Bet tracker app API: record the price you took, the closing line and the verified final result with one key, then grade bets and track CLV.

| Fact | Value |
| --- | --- |
| Price | /api/v1/odds |
| Closing line | /api/v1/historical/closing-lines |
| Result | /api/v1/events/{id}/result |
| Books | DraftKings game lines |

## Three reads per bet

Use the event_id from the first read in the next two.

```bash
# 1. When the bet is placed: store the price you took, with its capture time
curl --fail-with-body -H "Authorization: Bearer $GETODDS_API_KEY" \
  "https://getoddsapi.com/api/v1/odds?sport=NBA&event_id=EVENT_ID&market=spread"

# 2. After the start: the last price before kickoff, for closing-line value
curl --fail-with-body -H "Authorization: Bearer $GETODDS_API_KEY" \
  "https://getoddsapi.com/api/v1/historical/closing-lines?event_id=EVENT_ID&market=spread"

# 3. After the final: the verified result, to grade the bet
curl --fail-with-body -H "Authorization: Bearer $GETODDS_API_KEY" \
  "https://getoddsapi.com/api/v1/events/EVENT_ID/result"
```

## A table per bet

Store one row per bet so every number can be rebuilt later.

| Column | Where it comes from |
| --- | --- |
| event_id, market, side, line | The row the user picked from /api/v1/odds |
| price_taken, observed_at | decimal and observed_at on that row |
| closing_price | decimal on the matching closing-lines row |
| result | The final score from the result endpoint, graded against side and line |
| clv_percent | (price_taken / closing_price − 1) × 100 |

## Grade the bet

The result endpoint returns a result only for completed games (STATUS_FINAL); otherwise it returns result_available=false, which is not a void. Compare the final score with the market, side and line you stored to mark a win, loss or push.

## Track closing-line value

Closing-line value compares the price you took with the last price before the start. Beating the close consistently is the usual sign a bettor is getting good prices. Store both decimal prices and compute it per bet.

- [Closing line value calculator](https://getoddsapi.com/closing-line-value-calculator): Check the math.
- [Closing line API](https://getoddsapi.com/closing-line-api): How closing lines are selected.

## Limits

Closing lines and results need a key with the draftkings source and DraftKings selected. History is retained since November 2026. Results come from ESPN final scores, not sportsbook settlement records.

- [Event results reference](https://getoddsapi.com/docs/event-results): Result states and errors.
- [Settlement assessments](https://getoddsapi.com/docs/settlement-assessments): Provisional grading of stored contracts.
- [All use cases](https://getoddsapi.com/uses): Bots, apps, sheets and trackers.

## Questions

### Does GetOdds read my sportsbook account?

No. Users enter their bets; GetOdds supplies the prices and results.

### Which leagues have results?

NFL, NBA, NHL, NCAAF, NCAAB, MLB, EPL and MLS events GetOdds has stored.

### Is the result a sportsbook settlement?

No. It is the verified final score; each book settles under its own rules.

## Sources

- [GetOdds OpenAPI contract](https://getoddsapi.com/openapi.json)
- [GetOdds event results](https://getoddsapi.com/docs/event-results)
- [GetOdds closing lines](https://getoddsapi.com/docs/closing-lines)

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
