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
odds-api. To try it without installing:
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:--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
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
Scripting with --json
--json prints the same JSON the API returns, so you can pipe it into jq or another tool:
0 on success, 1 for an API error (such as a rejected key or a rate limit) and 2 for a usage error.
Related
SDKs & Libraries
Node.js, Python and R clients for full API coverage.
CLI on GitHub
Source, issues and release notes.