Tools · for developers
Odds API request builder
Pick an endpoint, a league, books and markets, and copy a ready request: the URL, a curl command and Node code. It runs in your browser and calls nothing. The key stays a placeholder, $PRICEDODDS_API_KEY, that you set on your own machine.
URL
https://api.pricedodds.com/v1/best?league=nba&market=moneylinecurl
curl -s "https://api.pricedodds.com/v1/best?league=nba&market=moneyline" \
-H "Authorization: Bearer $PRICEDODDS_API_KEY"Node
// Node 18 or later. Run: PRICEDODDS_API_KEY=... node request.mjs
const res = await fetch("https://api.pricedodds.com/v1/best?league=nba&market=moneyline", {
headers: { Authorization: `Bearer ${process.env.PRICEDODDS_API_KEY}` },
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const body = await res.json();
console.log(JSON.stringify(body.data, null, 2).slice(0, 2000));
console.log("asOf", body.asOf);The curl and Node this page writes were run against the API on 25 November 2026 for each of the five endpoints, with a test key. Leagues, books and market keys: coverage response of 2026-11-28 17:22 UTC.
How the request is put together
Every odds endpoint is a GET on https://api.pricedodds.com with the key in the Authorization header. Lists such as books and markets are comma separated. A market key can carry a period, as in spread@1h. The parameter names on this page are the ones in the docs and in openapi.json; the page is rebuilt from them, so it cannot write a parameter the API does not document.
| Endpoint | Parameters on this page | What it is for |
|---|---|---|
/v1/events | league, status, limit | Start here: it returns the event ids the other endpoints take. |
/v1/events/{id}/odds | markets, books, include | Main lines of one game at each book. Paste an event id from GET /v1/events. |
/v1/best | league, market, books | Line shopping for a league. This endpoint takes one market key (market), not a list. |
/v1/fair | event_id, markets | Fair price and the margin of each book for one game. Paste an event id from GET /v1/events. |
/v1/ev | league, books, markets, min_ev, max_ev | Pre-match prices with an edge between min_ev and max_ev against the fair price. |
A usual first project: GET /v1/events for a league, take an id, then GET /v1/events/{id}/odds or GET /v1/fair for that game. The developer hub has the curl and Node quickstarts, and Try it runs the endpoints that need no key from your browser.
Questions
Does this page call the API?
No. It only writes text: the URL, the curl command and the Node code. Nothing is sent anywhere. You run the code yourself with your own key.
Where does the key go?
In the Authorization header as a Bearer token, read from the PRICEDODDS_API_KEY environment variable. Keys in the URL are rejected. Keep the key on your server, not in browser code.
Why can a request return 403 for a book?
The books parameter only accepts books in your plan: the ones you chose at signup. GET /v1/account lists them. Leave books empty to get every book in your plan.
Where do the league ids and market keys come from?
From the coverage response this page was built from (2026-11-28T17:22:11.039Z): the 24 leagues with data now carried by the most books, with the market keys seen in each. Every league and market key is in /coverage.json, and GET /v1/markets lists the market keys with no key needed.
Does the request builder send my API key?
No. It runs in your browser and calls nothing. The key stays the placeholder $PRICEDODDS_API_KEY, which you set on your own machine.
Where do I find a league id?
In coverage.json, which lists every league id. The guide Find league ids without a key shows how to read it.
Why does GET /v1/best take only one market?
It takes one market key (market), not a list. To read several markets, make one request per market, or use GET /v1/events/{id}/odds for one game.
How do I get more than 50 rows?
Set limit up to 500, and page on with the cursor from next.
Is this betting advice?
No. It is a tool for writing API requests. PricedOdds is a data API, not a sportsbook, and takes no bets.
Other tools: Market key finder · Odds JSON to CSV · Live +EV sample ·Odds converter · No-vig calculator. All tools.
Informational only; not betting advice. PricedOdds is a data API, not a sportsbook, and takes no bets. Prices move fast and can be wrong; nothing here is a promise of profit. 21+ in most US states. Responsible gaming.