/v1/punnett
Punnett cross
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/genetics-api/v1/punnett" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/genetics-api/v1/punnett", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/genetics-api/v1/punnett");
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/punnett",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"note": "Offspring distribution from independent assortment. Phenotype 'A_' means at least one dominant allele; 'aa' is homozygous recessive.",
"inputs": {
"genes": 1,
"parent1": "Aa",
"parent2": "Aa"
},
"genotypes": [
{
"percent": 25,
"fraction": 0.25,
"genotype": "AA",
"out_of_16": 4
},
{
"percent": 50,
"fraction": 0.5,
"genotype": "Aa",
"out_of_16": 8
},
{
"percent": 25,
"fraction": 0.25,
"genotype": "aa",
"out_of_16": 4
}
],
"phenotypes": [
{
"percent": 75,
"fraction": 0.75,
"phenotype": "A_"
},
{
"percent": 25,
"fraction": 0.25,
"phenotype": "aa"
}
]
},
"meta": {
"timestamp": "2026-06-05T03:09:02.361Z",
"request_id": "ad52aa69-be45-4afd-a9d2-4c7ceef0ca2e"
},
"status": "ok",
"message": "Punnett cross",
"success": true
}