/v1/gestation
Due date from breeding
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
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_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"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
}