curl quickstart

Get your first odds with 4 curl commands. The first two need no key. We ran all four on 23 November 2026.

1. List the books, no key

curl -s "https://api.pricedodds.com/v1/books"

On 23 November 2026 this returned 16 books.

2. Find a league, no key

curl -s "https://api.pricedodds.com/v1/leagues?q=nba"

It returned 2 leagues, nba and wnba, each with its event count.

3. List the games of a league

curl -s "https://api.pricedodds.com/v1/events?league=nba" \
  -H "Authorization: Bearer $PRICEDODDS_API_KEY"

Each event has id, sport, league, home, away, startsAt, status, live, books and markets_available. Without a key this call returns HTTP 401. By default it lists the next 7 days: add to for a later date.

4. Get the odds of one game

curl -s "https://api.pricedodds.com/v1/events/{id}/odds?markets=moneyline" \
  -H "Authorization: Bearer $PRICEDODDS_API_KEY"

Replace {id} with an evt_ id from step 3. The response has data.event and data.markets. Each selection has id, side, line, prices (one per book), best and fair.

What next?

The same steps in JavaScript are in the Node quickstart. Every endpoint is in the docs, and the books and leagues are on the coverage page. Every plan starts with a 3-day free trial with a $1 card verification that is refunded immediately. The plan you pick at signup is charged from day 4 unless you cancel before the trial ends. See pricing or create an account.

FAQ

Do I need a key for the first call?

No. The books, sports, leagues, markets, coverage and status endpoints work without one.

What does a call without a key return on an odds endpoint?

HTTP 401. Odds, events and props need a key in the Authorization header.

How do I find a league id?

Call GET /v1/leagues with q, for example q=nba. It needs no key.

Where do market keys come from?

From GET /v1/markets. Read them from the API and do not guess them.