Aller au contenu
GET /v1/odds

Jackpot odds of a pick-N game

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/lottery-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

curl "https://api.oanor.com/lottery-api/v1/odds" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/lottery-api/v1/odds", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/lottery-api/v1/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/odds",
    headers={"x-oanor-key": "oanor_test_..."}
)

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "data": {
        "note": "Jackpot odds = the number of possible tickets, C(pool, picks), times the bonus-ball pool if there is one. A 6/49 game is 1 in 13,983,816; a 5/69 + 1/26 (Powerball-style) is 1 in 292,201,338. Every line is equally unlikely — past numbers, 'hot' numbers and lucky picks change nothing.",
        "inputs": {
            "pool": 49,
            "picks": 6,
            "bonus_pool": null
        },
        "odds_one_in": 13983816,
        "probability": 7.151123842018516e-8,
        "total_combinations": 13983816
    },
    "meta": {
        "timestamp": "2026-06-06T15:30:39.116Z",
        "request_id": "6f7d76ae-6aa6-4f41-86ac-2f9ec9fe3e9f"
    },
    "status": "ok",
    "message": "Jackpot odds",
    "success": true
}