Vai al contenuto
GET /v1/gestation

Foaling due date

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/equine-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/equine-api/v1/gestation" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/equine-api/v1/gestation", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/equine-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/equine-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": "Mare gestation averages about 340 days but a healthy range is roughly 320–362 days, so treat the due date as the middle of a window, not a deadline. Watch for waxing, udder fill and softening near term, and have the vet's number ready — most mares foal at night, quickly.",
        "inputs": {
            "breeding_date": "2026-04-01",
            "gestation_days": 340
        },
        "due_date": "2027-03-07",
        "window_late": "2027-03-29",
        "window_early": "2027-02-15"
    },
    "meta": {
        "timestamp": "2026-06-06T15:30:46.808Z",
        "request_id": "6eb9cd63-914d-4946-b2f1-0e5b73279472"
    },
    "status": "ok",
    "message": "Foaling due date",
    "success": true
}