Skip to main content
Use The Odds API through Corsair: one client, typed API calls, local DB sync. Get a key at https://the-odds-api.com (the free Starter plan has 500 credits a month; the key arrives by email).
  • Credits: sports.list and events.list are free. Odds cost 1 credit per market per region (markets: "h2h,spreads" with regions: "us,uk" costs 4), scores cost 1 (2 with daysFrom), 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 401 HISTORICAL_UNAVAILABLE_ON_FREE_USAGE_PLAN. Each description gives the cost.
  • Sports and events: take sport keys from sports.list (basketball_nba, soccer_epl; upcoming means the next games in any sport) and event ids from events.list.
  • Bookmakers: pass regions (us, us2, uk, eu, au…) or bookmakers (draftkings,fanduel); one of them is required for odds.
  • events.odds takes any market key (player props, alternate lines, periods); odds.get takes 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.
What you get:
  • 12 typed API operations
  • 2 synced entities (events, sports) for fast .search() / .list()

Setup

1

Install

2

Add the plugin

corsair.ts
With multiTenancy: true, scope calls with corsair.withTenant(id). See Quick start for KEK + Hub keys, and Multi-tenancy for account isolation.
3

Choose authentication

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 books
Write No write-style endpoint inferred; pick any operation from the API reference. See the full list on the API page.

Query synced data

Synced entities support tenant.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.