> ## Documentation Index
> Fetch the complete documentation index at: https://oddspapi-v4.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# OddsPapi API v4 Docs: Free Sports Odds API for Developers

> 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.

OddsPapi v4 is the **self-serve REST API** for sports betting odds. Sign up, copy your key, and you can pull odds as JSON a minute later. No sales call, no contract.

> [card] [Quickstart](https://oddspapi-v4.mintlify.site/en/docs/quickstart.md)
>
> Your first odds in three requests, with curl, Python and JavaScript.

> [card] [Requests & quota](https://oddspapi-v4.mintlify.site/en/docs/requests-and-quota.md)
>
> One call is one request. See what counts and what is free.

> [card] [Errors](https://oddspapi-v4.mintlify.site/en/docs/errors.md)
>
> Every error code, what caused it and how to fix it.

> [card] [v4 or v5?](https://oddspapi-v4.mintlify.site/en/docs/v4-vs-v5.md)
>
> When the self-serve API is enough and when to move to the enterprise API.

## What you can build with v4

* **Odds comparison and line shopping**: the same market from many bookmakers in one response shape. Tutorial: [odds comparison dashboard in Python](https://oddspapi.io/blog/odds-comparison-dashboard-python-streamlit/).
* **Models and backtests**: historical odds are free and never use your quota.
* **Bots and alerts**: poll the fixtures you care about and react to price changes. Tutorial: [arbitrage bot in Python](https://oddspapi.io/blog/arbitrage-betting-bot-python/).
* **Bet tracking**: scores and settlements tell you how a selection ended.

More step-by-step guides are on the [OddsPapi blog](https://oddspapi.io/blog/).

## The same on every plan

* **Same data, same speed.** A free key gets the same prices as a paid key, collected at the same speed. Plans differ in the request quota and in the bookmakers, sports and options they include.
* **One call is one request.** No credits and no multipliers. One odds call returns every market from every bookmaker on your plan for a fixture, and still counts as one.
* **Two timestamps on every price.** The bookmaker's own time and ours, so you can [measure the delay yourself](https://oddspapi-v4.mintlify.site/en/docs/data-freshness.md).
* **Delay published per bookmaker.** We list how long each bookmaker takes to reach the API, and mark which figures are measured. See the [bookmakers page](https://oddspapi-v4.mintlify.site/en/docs/get-bookmakers.md).
* **A flag for stale odds.** `bookmakerIsActive` tells you when a bookmaker cannot be refreshed, instead of leaving you to guess from old timestamps.
* **Free price history.** Historical odds hold every recorded price change, not snapshots at fixed intervals, and do not use your quota.
* **Fixed IDs.** A market or outcome ID means the same on every bookmaker. See the [markets overview](https://oddspapi-v4.mintlify.site/en/docs/markets.md).

## What's in the API

| You want | Endpoint |
| - | - |
| Sports, bookmakers, markets, languages | [`/v4/sports`](https://oddspapi-v4.mintlify.site/en/docs/get-sports), [`/v4/bookmakers`](https://oddspapi-v4.mintlify.site/en/docs/get-bookmakers), [`/v4/markets`](https://oddspapi-v4.mintlify.site/en/docs/get-markets), [`/v4/languages`](https://oddspapi-v4.mintlify.site/en/docs/get-languages) |
| Tournaments and teams | [`/v4/tournaments`](https://oddspapi-v4.mintlify.site/en/docs/get-tournaments), [`/v4/participants`](https://oddspapi-v4.mintlify.site/en/docs/get-participants) |
| Fixtures | [`/v4/fixtures`](https://oddspapi-v4.mintlify.site/en/docs/get-fixtures), [`/v4/fixture`](https://oddspapi-v4.mintlify.site/en/docs/get-fixture) |
| Pre-match and live odds, player props | [`/v4/odds`](https://oddspapi-v4.mintlify.site/en/docs/get-odds), [`/v4/odds-by-tournaments`](https://oddspapi-v4.mintlify.site/en/docs/get-odds-by-tournaments) |
| Price history for one fixture | [`/v4/historical-odds`](https://oddspapi-v4.mintlify.site/en/docs/get-historical-odds) |
| Results | [`/v4/scores`](https://oddspapi-v4.mintlify.site/en/docs/get-scores), [`/v4/settlements`](https://oddspapi-v4.mintlify.site/en/docs/get-settlements) |
| Your plan and usage | [`/v4/account`](https://oddspapi-v4.mintlify.site/en/docs/get-account) |

Which sports, bookmakers, live odds and player props you can request depends on your plan. [`/v4/account`](https://oddspapi-v4.mintlify.site/en/docs/get-account) shows exactly what your key includes.

## The basics

**Host.** Every request goes to `https://api.oddspapi.io`.

**Authentication.** Add your key as the `apiKey` query parameter on every request:

```bash theme={null}
curl "https://api.oddspapi.io/v4/sports?apiKey=YOUR_API_KEY"
```

Your key is a UUID, for example `3f8a1c2e-9b47-4d6a-8e15-7c2b9d04a6f1`. Find it in [your account settings](https://oddspapi.io/en/account). Keep it on your server: anyone who has the key can spend your requests. If it leaks, [refresh it](https://oddspapi-v4.mintlify.site/en/docs/post-refresh-api-key.md).

**Format.** Responses are JSON. Times are ISO 8601 in UTC.

**Limits.** Your plan has a monthly request allowance, and each endpoint has a short minimum wait between two calls. See [Requests & quota](https://oddspapi-v4.mintlify.site/en/docs/requests-and-quota.md) and [rate limits](https://oddspapi-v4.mintlify.site/en/docs/errors.md#rate-limits).

## v4 and v5 in one minute

> [!NOTE]
>
> OddsPapi has two APIs with separate docs. You are in the **v4** docs.
>
> * **v4 (these docs)**: self-serve REST API at `api.oddspapi.io/v4`. Free plan, pay-as-you-grow plans, built for individual developers and small teams.
> * **v5**: enterprise API at `v5.oddspapi.io` with WebSocket streaming, documented at [docs.oddspapi.io](https://docs.oddspapi.io). Access is arranged with our team.
>
> A v4 key, v4 URLs and v4 code samples do not work on v5, and the other way round. [See the full comparison](https://oddspapi-v4.mintlify.site/en/docs/v4-vs-v5.md).

## Need help?

* Read the [FAQ](https://oddspapi-v4.mintlify.site/en/docs/faq.md): the questions we get most, including 429 errors, 403 errors and data freshness.
* Ask in our [Discord community](https://discord.gg/eSzvRMDxHv).
* Email [contact@55-tech.com](mailto:contact@55-tech.com). Include the request URL (without your key) and the full error body.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.