Skip to main content
odds-api-cli is the official command-line client for Odds-API.io. It lists sports, bookmakers and events, prints odds for an event, and finds value bets and arbitrage, as readable tables or raw JSON. It is built on the Node.js SDK.

Install

The command is odds-api. To try it without installing:
Node.js 18 or later is required.

Set your API key

The CLI needs an API key from a paid plan. Get one at odds-api.io/pricing, then set it once:
Or pass --key <key> to any command. sports and bookmakers work without a key.

Commands

Global options:

Examples

Sample output below is illustrative; ids, prices and fixtures will differ.

List sports

Find events

Compare odds for an event

Value bets

The API returns expectedValue as bookmaker odds / fair odds x 100, so an expectedValue of 104.12 shows as a 4.12% edge. Add --min-ev 3 to keep only bets with at least a 3% edge (CLI 0.1.1 and later).

Arbitrage

More commands

Arbitrage rows are calculated at the quoted prices. Prices move and bookmakers can limit or void bets, so check every leg before acting. See the Arbitrage guide.

Scripting with --json

--json prints the same JSON the API returns, so you can pipe it into jq or another tool:
The exit code is 0 on success, 1 for an API error (such as a rejected key or a rate limit) and 2 for a usage error.

SDKs & Libraries

Node.js, Python and R clients for full API coverage.

CLI on GitHub

Source, issues and release notes.