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/birthdayparadox-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/birthdayparadox-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/birthdayparadox-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/birthdayparadox-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/birthdayparadox-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": "Days/buckets default to 365. The exact product is used for small spaces; the e^(−n²/2d) approximation for very large ones. Handy for hash-collision and UUID-uniqueness estimates.",
        "service": "birthdayparadox-api",
        "endpoints": {
            "GET /v1/meta": "This document.",
            "GET /v1/collision": "Generalized collision probability for a hash/bucket space (by count or bits).",
            "GET /v1/probability": "Collision probability for n people over d days.",
            "GET /v1/people-needed": "Group size needed to reach a target collision probability."
        },
        "description": "Birthday paradox and generalized collision probability."
    },
    "meta": {
        "timestamp": "2026-06-05T19:50:11.087Z",
        "request_id": "6a64595c-6f73-4b24-9eee-5d1e6d42e32b"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}