/v1/gestation
Due date from breeding
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/gestation-api/v1/gestation" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/gestation-api/v1/gestation", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/gestation-api/v1/gestation");
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/gestation-api/v1/gestation",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"note": "Due date = breeding date + gestation days. The earliest/latest span the normal ± window for the species; individual animals vary.",
"inputs": {
"species": "cattle",
"breeding_date": "2026-01-01"
},
"due_date": "2026-10-11",
"due_weekday": "Sunday",
"latest_date": "2026-10-16",
"window_days": 5,
"earliest_date": "2026-10-06",
"gestation_days": 283
},
"meta": {
"timestamp": "2026-06-06T07:14:11.665Z",
"request_id": "c65a2499-d2f4-49ed-afa5-69d13b26498f"
},
"status": "ok",
"message": "Gestation due date",
"success": true
}