Vibe-coding? Drop this into your
CLAUDE.mdBuilding with Claude Code, Cursor or another AI assistant? Paste this at the top of your
CLAUDE.md, AGENTS.md or .cursorrules and your assistant will call the API the right way from the first prompt.Getting started
Odds337 API
Live prices from every book we carry, lined up by event, market and selection, over REST and WebSocket.
What you get
One request returns a single event priced by every book that lists it: bookmakers and exchanges side by side, each price lined up under the same market key and selection key, with when we last read that book.
- A catalogue of sports, leagues and events (/sports, /events).
- Per-book prices per market and selection (/odds), with the opening and closing price and a link to the book's own event page.
- History: finished events and their closing prices back to 26 August 2026, and per-book price moves back to 22 July 2026.
- Horse, greyhound and harness racing: meetings, every book's fixed prices, Betfair and the result on /racing/race, and per-book price moves.
- Closing line value for any price you took, and OpenAPI and AsyncAPI specs to generate a typed client.
- A WebSocket that pushes each price change as soon as we see it.
Base URL
Every REST path in these docs is relative to:
The WebSocket is wss://api.b337.ai/odds/v1/ws. Try it now without signing up, using the public demo key:
Conventions
- Format: JSON,
snake_case, UTF-8. Responses over 1KB are gzipped when you sendAccept-Encoding: gzip. - Times: ISO-8601 UTC, seconds precision,
Zsuffix (2026-10-04T09:30:00Z). - Odds: decimal, stake included (
2.10returns 2.10 per 1 staked), unless you ask for American or fractional. - Stability: fields documented here are stable within
v1. New fields may be added; ignore fields you do not know.schema_versionon odds bodies and the WebSockethellochanges only for a breaking change.
Next steps
- Quickstart: a live price comparison in three calls.
- Tokens & pricing: what each call costs.
- Create an account to get your own key.