- Credits:
sports.listandevents.listare free. Odds cost 1 credit per market per region (markets: "h2h,spreads"withregions: "us,uk"costs 4), scores cost 1 (2 withdaysFrom), markets and participants cost 1, and an empty answer costs nothing. Historical odds cost 10 per market per region and need a paid plan; a free key gets a 401HISTORICAL_UNAVAILABLE_ON_FREE_USAGE_PLAN. Each description gives the cost. - Sports and events: take
sportkeys fromsports.list(basketball_nba,soccer_epl;upcomingmeans the next games in any sport) and event ids fromevents.list. - Bookmakers: pass
regions(us,us2,uk,eu,au…) orbookmakers(draftkings,fanduel); one of them is required for odds. events.oddstakes any market key (player props, alternate lines, periods);odds.gettakes the featured ones (h2h,spreads,totals,outrights).- Errors carry The Odds API’s reason, for example
The Odds API 401: Usage quota has been reached. OUT_OF_USAGE_CREDITS. - Every operation only reads (
read). With a database, sports and events (teams and start times, never prices) are kept locally.
- 12 typed API operations
- 2 synced entities (
events,sports) for fast.search()/.list()
Setup
1
Install
2
Add the plugin
corsair.ts
multiTenancy: true, scope calls with corsair.withTenant(id). See Quick start for KEK + Hub keys, and Multi-tenancy for account isolation.3
Choose authentication
- API Key (Recommended)
Store the The Odds API API key before the first call: More: API Key
pnpm corsair setup --plugin=theoddsapi --tenant=acme api_key=<your-key> (leave out --tenant without multiTenancy), or pass it as key in the plugin options. With Hub, each tenant enters their own key on the connect page. See API key auth.4
Connect a tenant
Mint a connect link and send the tenant to it. Hub hosts the page and delivers the result to your app — see Connect / OAuth.
Example API calls
NBA moneylines and spreads from US booksQuery synced data
Synced entities supporttenant.theoddsapi.db.<entity>.search() and .list(): events, sports.
See Database for filters and operators.
What’s next
API reference
Every
theoddsapi.api.* operation with input and output types.Database
Synced entities, search filters, and operators.
Connect / OAuth
createLink, Hub delivery, and tenant connect flows.
Use with agents
Expose this plugin’s operations as MCP tools.