/v1/meta
Spec
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/pregnancy-api/v1/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/pregnancy-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/pregnancy-api/v1/meta");
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/pregnancy-api/v1/meta",
headers={"x-oanor-key": "oanor_test_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"data": {
"name": "Pregnancy Due Date API",
"notes": "Naegele's rule: due date = LMP + 280 days; conception assumed at LMP + 14 days. Informational, not medical advice. Nothing is stored.",
"version": "v1",
"endpoints": [
{
"path": "/v1/due-date",
"params": {
"lmp": "last menstrual period YYYY-MM-DD",
"due_date": "or a known due date",
"conception": "or conception date"
},
"returns": "due date, conception estimate and fertile window"
},
{
"path": "/v1/gestational-age",
"params": {
"lmp": "or conception / due_date",
"as_of": "reference date (default today)"
},
"returns": "gestational age, trimester, days remaining and progress"
},
{
"path": "/v1/milestones",
"params": {
"lmp": "or conception / due_date"
},
"returns": "the key pregnancy milestone dates"
},
{
"path": "/v1/meta",
"params": [],
"returns": "this document"
}
],
"description": "Pregnancy and due-date maths as an API, using the standard Naegele's rule (40 weeks / 280 days from the last menstrual period). The due-date endpoint takes the last menstrual period, the conception date, or a known due date — whichever you have — and returns the due date, the estimated conception date and the fertile window. The gestational-age endpoint reports how far along a pregnancy is as of any reference date: gestational age in weeks and days, the trimester, days remaining, progress percent, and whether it is overdue. The milestones endpoint lists the key dates of a pregnancy — the trimester boundaries, the anatomy-scan window, viability at 24 weeks, full term at 37–40 weeks, the due date and post-term at 42 weeks. All dates are handled in UTC and computed locally and deterministically. Ideal for pregnancy and fertility apps, midwifery and clinical tools, and parenting and family planning. Pure local computation — no key, no third-party service, instant. Live, nothing stored. Informational only — not medical advice. 4 endpoints. This is date maths; for general date arithmetic use a datetime API."
},
"meta": {
"timestamp": "2026-06-03T17:42:10.751Z",
"request_id": "9ee2f06b-bb95-4bc6-bd57-7a79c6badea5"
},
"status": "ok",
"message": "Meta",
"success": true
}