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/genetics-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/genetics-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/genetics-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/genetics-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/genetics-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": "Frequencies are 0–1. Genotypes are written as allele pairs (Aa, AaBb …); a capital letter is the dominant allele. Independent assortment is assumed.",
        "service": "genetics-api",
        "formulae": {
            "hardy_weinberg": "p² + 2pq + q² = 1",
            "carrier_frequency": "2pq, with q = √(affected frequency)"
        },
        "endpoints": {
            "GET /v1/meta": "This document.",
            "GET /v1/carrier": "Carrier frequency and counts from a recessive-disease incidence.",
            "GET /v1/punnett": "Offspring genotype and phenotype ratios from two parent genotypes.",
            "GET /v1/hardy-weinberg": "Genotype frequencies from an allele frequency (or the recessive incidence)."
        },
        "description": "Population-genetics calculator: Hardy-Weinberg genotype and allele frequencies, Punnett-square crosses for one or more genes, and carrier frequency from a recessive-disease incidence."
    },
    "meta": {
        "timestamp": "2026-06-05T03:09:02.424Z",
        "request_id": "0c43b2ca-8442-4654-9ac4-cc8792e21a13"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}