Aller au contenu
GET /v1/meta

Spec

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/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/lottery-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/lottery-api/v1/meta");
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/meta",
    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": {
        "notes": "Jackpot = C(pool,picks)×bonus; tier = C(picks,k)·C(pool−picks,picks−k)/C(pool,picks); EV = jackpot/odds − price. Exact combinatorics. Educational — not gambling advice.",
        "service": "lottery-api",
        "endpoints": {
            "GET /v1/meta": "This document.",
            "GET /v1/odds": "Jackpot odds = C(pool, picks) × bonus pool.",
            "GET /v1/match-odds": "Odds of matching exactly k of the main numbers (a prize tier).",
            "GET /v1/expected-value": "Expected value and break-even jackpot of a ticket."
        },
        "description": "Lottery combinatorics: jackpot odds for a pick-N game, the odds of matching exactly k numbers, and the expected value of a ticket."
    },
    "meta": {
        "timestamp": "2026-06-06T15:30:39.174Z",
        "request_id": "9302c5d5-239c-4504-a195-c4f6da948c80"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}