# OddsPapi API v4 ## Get started - [OddsPapi API v4 Docs: Free Sports Odds API for Developers](https://oddspapi-v4.mintlify.app/docs/index.md): Start with the OddsPapi v4 REST API. Get a free API key, pull pre-match and live betting odds, player props, scores, settlements and free historical odds as simple JSON. - [Quickstart: Your First Odds API Request in 5 Minutes](https://oddspapi-v4.mintlify.app/docs/quickstart.md): Get a free OddsPapi API key and fetch live betting odds in three requests. Copy-paste examples in curl, Python and JavaScript for the v4 REST API. - [API Requests & Quota: What Counts as a Request](https://oddspapi-v4.mintlify.app/docs/requests-and-quota.md): How OddsPapi v4 counts API requests: which endpoints use your monthly quota, which are free, when the quota resets and how to use fewer requests. - [API Errors & Rate Limits: Codes, Causes and Fixes](https://oddspapi-v4.mintlify.app/docs/errors.md): Every OddsPapi v4 error code with its HTTP status, cause and fix, plus per-endpoint rate limits and how to handle 429 responses. - [OddsPapi v4 API FAQ: Common Questions and Fixes](https://oddspapi-v4.mintlify.app/docs/faq.md): Answers to the questions developers ask most about the OddsPapi v4 odds API: 429 errors, rate limits, quota resets, 403 access errors, data freshness and historical odds. ## WebSocket & upgrading - [WebSocket and Live Odds on v4: Polling Guide](https://oddspapi-v4.mintlify.app/docs/websocket-api.md): How to keep odds fresh with the OddsPapi v4 REST API: polling intervals, rate limits and caching. WebSocket streaming is part of the v5 enterprise API. - [OddsPapi v4 vs v5: Which API Should You Use?](https://oddspapi-v4.mintlify.app/docs/v4-vs-v5.md): The differences between the OddsPapi v4 self-serve REST API and the v5 enterprise API: delivery, authentication, hosts, limits and how to move from v4 to v5. ## Data guides - [Odds Freshness in OddsPapi v4: Stale Prices and True Delay](https://oddspapi-v4.mintlify.app/docs/data-freshness.md): How to tell a fresh price from a stale one in the OddsPapi v4 odds API: bookmakerIsActive, the three active flags, changedAt and bookmakerChangedAt, and how to measure the true delay per bookmaker yourself. - [OddsPapi v4 Betting Markets: Market Types per Sport](https://oddspapi-v4.mintlify.app/docs/markets.md): Overview of the betting markets in the OddsPapi v4 odds API: market types, periods, lines and example marketId values for soccer, basketball, tennis, American football and more. ## REST API Endpoints - [GET /v4/account: Check Your Plan, Quota and Usage](https://oddspapi-v4.mintlify.app/docs/get-account.md): Check your OddsPapi subscription, included sports and bookmakers, request limit and requests used. Never counts against your quota. - [POST /v4/account: Update Your Account Settings](https://oddspapi-v4.mintlify.app/docs/post-account.md): Update your OddsPapi account settings, such as your default language, through the v4 REST API. - [POST /v4/account/refresh-api-key: Rotate Your API Key](https://oddspapi-v4.mintlify.app/docs/post-refresh-api-key.md): Generate a new OddsPapi API key and invalidate the old one. Use it when a key has leaked. - [GET /v4/languages: Supported Languages](https://oddspapi-v4.mintlify.app/docs/get-languages.md): List the languages OddsPapi can return names in, with the codes to pass as the language parameter. - [GET /v4/sports: List of Sports and Sport IDs](https://oddspapi-v4.mintlify.app/docs/get-sports.md): List every sport in the OddsPapi API with its sportId and slug. The starting point for league, event and odds requests. - [GET /v4/bookmakers: List of Bookmakers and Slugs](https://oddspapi-v4.mintlify.app/docs/get-bookmakers.md): List the bookmakers in the OddsPapi API with their slugs and live odds support. Use the slugs in odds requests. - [GET /v4/tournaments: Leagues by Sport](https://oddspapi-v4.mintlify.app/docs/get-tournaments.md): Get the leagues of a sport with tournamentId, country and counts of upcoming and live events. - [GET /v4/fixtures: Upcoming and Live Events](https://oddspapi-v4.mintlify.app/docs/get-fixtures.md): Find events by sport, league, team or date range. Filter by status and by whether bookmakers have odds. - [GET /v4/fixture: Details of One Event](https://oddspapi-v4.mintlify.app/docs/get-fixture.md): Get one event by fixtureId: teams, start time, status, league and external provider IDs. - [GET /v4/markets: Betting Markets and Outcome IDs](https://oddspapi-v4.mintlify.app/docs/get-markets.md): List betting markets with marketId, outcomes, period, handicap and player prop flag. Map the IDs in odds responses to names. - [GET /v4/participants: Teams and Players by Sport](https://oddspapi-v4.mintlify.app/docs/get-participants.md): Get the teams and competitors of a sport with their participantId, to resolve the IDs in event responses. - [GET /v4/odds: Betting Odds for One Event](https://oddspapi-v4.mintlify.app/docs/get-odds.md): Get pre-match and live betting odds for one event from several bookmakers at once: decimal, American or fractional, with limits and player props. - [GET /v4/odds-by-tournaments: Odds for a Whole League](https://oddspapi-v4.mintlify.app/docs/get-odds-by-tournaments.md): Get odds for every upcoming event of several leagues from one bookmaker in a single request. - [GET /v4/historical-odds: Free Historical Odds API](https://oddspapi-v4.mintlify.app/docs/get-historical-odds.md): Get the full price history of an event for up to three bookmakers. Historical odds are free and never use your request quota. - [GET /v4/settlements: Bet Settlement Results](https://oddspapi-v4.mintlify.app/docs/get-settlements.md): Get the settlement result of every market of a finished event, to grade bets as won, lost or void. - [GET /v4/scores: Scores by Period](https://oddspapi-v4.mintlify.app/docs/get-scores.md): Get the score of an event broken down by period, such as halves, quarters or sets. > The links below point to documentation indexes. Follow each `/_llms/` index recursively until you reach documentation pages. ## Indexes - [English (United Kingdom) (25 pages)](https://oddspapi-v4.mintlify.app/_llms/en-gb.txt): Get started, WebSocket & upgrading, Data guides, REST API Endpoints. - [German (25 pages)](https://oddspapi-v4.mintlify.app/_llms/de.txt): Erste Schritte, WebSocket & Upgrade, Daten-Guides, REST API Endpoints. - [Spanish (25 pages)](https://oddspapi-v4.mintlify.app/_llms/es.txt): Primeros pasos, WebSocket y actualización, Guías de datos, Endpoints de la API REST. - [French (25 pages)](https://oddspapi-v4.mintlify.app/_llms/fr.txt): Premiers pas, WebSocket et mise à niveau, Guides des données, Endpoints de l’API REST. - [Italian (25 pages)](https://oddspapi-v4.mintlify.app/_llms/it.txt): Per iniziare, WebSocket e upgrade, Guide ai dati, Endpoint API REST. - [Portuguese (25 pages)](https://oddspapi-v4.mintlify.app/_llms/pt.txt): Primeiros passos, WebSocket e upgrade, Guias de dados, Endpoints da API REST. - [Russian (25 pages)](https://oddspapi-v4.mintlify.app/_llms/ru.txt): Начало работы, WebSocket и переход на v5, Руководства по данным, Эндпоинты REST API. - [Turkish (25 pages)](https://oddspapi-v4.mintlify.app/_llms/tr.txt): Başlarken, WebSocket ve yükseltme, Veri rehberleri, REST API Uç Noktaları. - [Chinese (25 pages)](https://oddspapi-v4.mintlify.app/_llms/zh.txt): 快速入门, WebSocket 与升级, 数据指南, REST API 端点. This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.