Naar de inhoud
GET /v1/match-odds

Odds of matching exactly k numbers

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/lottery-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

curl "https://api.oanor.com/lottery-api/v1/match-odds" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/lottery-api/v1/match-odds", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/lottery-api/v1/match-odds");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/lottery-api/v1/match-odds",
    headers={"x-oanor-key": "oanor_test_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "note": "Probability of matching exactly k numbers = C(picks, k) × C(pool − picks, picks − k) ÷ C(pool, picks) — the hypergeometric distribution. For a 6/49 game, matching 3 is about 1 in 57. This counts the main numbers only; a bonus ball splits each tier further.",
        "inputs": {
            "pool": 49,
            "match": 3,
            "picks": 6
        },
        "odds_one_in": 56.66,
        "probability": 0.017650403866870102,
        "ways_to_match": 246820,
        "total_combinations": 13983816
    },
    "meta": {
        "timestamp": "2026-06-06T15:30:39.024Z",
        "request_id": "e8ff8053-953c-4b1d-80ed-0b65995b5e28"
    },
    "status": "ok",
    "message": "Match odds",
    "success": true
}