/v1/match-odds
Odds of matching exactly k numbers
Try it live
10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.
It works. Grab an API key and use it in your project.
Get an API keyCode snippets
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_..."}
)
Example response
A real response from this endpoint, captured by the latest 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
}