Zum Inhalt springen
GET /v1/gestation

Due date from breeding

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/gestation-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten 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
}