{
"method": "lmp",
"edd": "2026-10-15",
"conception_date": "2026-01-22",
"meta": {
"disclaimer": "Reference implementation. Informational only -- not clinical advice, not for diagnostic use, not contraceptive guidance."
}
}
curl --location --request POST 'https://zylalabs.com/api/13381/lmp+based+due+date+calculation+api/28641/calculate+estimated+due+date' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{"method": "lmp", "lmp": "2026-01-04", "cycle_length": 32}'
{
"method": "ivf",
"edd": "2026-11-17",
"conception_date": "2026-02-24",
"meta": {
"disclaimer": "Reference implementation. Informational only -- not clinical advice, not for diagnostic use, not contraceptive guidance."
}
}
curl --location --request GET 'https://zylalabs.com/api/13381/lmp+based+due+date+calculation+api/28642/get+estimated+due+date?method=ivf&transfer_date=2026-03-01&embryo_age_days=5' --header 'Authorization: Bearer YOUR_API_KEY'
{
"edd_lmp": "2026-10-08",
"edd_ultrasound": "2026-10-21",
"edd_used": "2026-10-21",
"ga_lmp_at_scan": "10w3d",
"ga_ultrasound_at_scan": "8w4d",
"discrepancy_days": 13,
"redated": true,
"rule_applied": "9w0d-13w6d: redate if discrepancy > 7 days (ACOG CO 700 Table 1)",
"within_acog_guideline": true,
"guideline_note": null,
"suboptimally_dated": false,
"formula": "robinson_fleming_1975",
"meta": {
"disclaimer": "Reference implementation. Informational only -- not clinical advice, not for diagnostic use, not contraceptive guidance.",
"as_of": "2026-03-15",
"citation": "ACOG Committee Opinion 700 (2017, reaffirmed 2022), Table 1."
}
}
curl --location --request POST 'https://zylalabs.com/api/13381/lmp+based+due+date+calculation+api/28643/apply+acog+ultrasound+redating+rules' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{"lmp": "2026-01-01", "scan_date": "2026-03-15", "crl_mm": 20}'
{
"edd_lmp": "2026-07-08",
"edd_ultrasound": "2026-06-19",
"edd_used": "2026-07-08",
"ga_lmp_at_scan": "30w2d",
"ga_ultrasound_at_scan": "33w0d",
"discrepancy_days": 19,
"redated": false,
"rule_applied": ">=28w0d: redate if discrepancy > 21 days (ACOG CO 700 Table 1)",
"within_acog_guideline": true,
"guideline_note": null,
"suboptimally_dated": true,
"formula": "hadlock_1984_composite",
"meta": {
"disclaimer": "Reference implementation. Informational only -- not clinical advice, not for diagnostic use, not contraceptive guidance.",
"as_of": "2026-05-01",
"citation": "ACOG Committee Opinion 700 (2017, reaffirmed 2022), Table 1."
}
}
curl --location --request GET 'https://zylalabs.com/api/13381/lmp+based+due+date+calculation+api/28644/get+acog+redating+decision?lmp=2025-10-01&scan_date=2026-05-01&bpd_mm=86&hc_mm=300&ac_mm=280&fl_mm=65' --header 'Authorization: Bearer YOUR_API_KEY'
{
"edd": "2026-10-11",
"gestational_age": {
"label": "29w2d",
"total_days": 205
},
"warnings": [],
"meta": {
"disclaimer": "Reference implementation. Informational only -- not clinical advice, not for diagnostic use, not contraceptive guidance.",
"as_of": "2026-07-28"
}
}
curl --location --request POST 'https://zylalabs.com/api/13381/lmp+based+due+date+calculation+api/28645/calculate+gestational+age' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{"as_of": "2026-07-28", "edd": "2026-10-11"}'
{
"edd": "2026-10-11",
"gestational_age": {
"label": "29w2d",
"total_days": 205
},
"warnings": [],
"meta": {
"disclaimer": "Reference implementation. Informational only -- not clinical advice, not for diagnostic use, not contraceptive guidance.",
"as_of": "2026-07-28"
}
}
curl --location --request GET 'https://zylalabs.com/api/13381/lmp+based+due+date+calculation+api/28646/get+gestational+age?as_of=2026-07-28&lmp=2026-01-04' --header 'Authorization: Bearer YOUR_API_KEY'
{
"edd": "2026-10-11",
"gestational_age": {
"label": "29w2d",
"total_days": 205
},
"trimester": 3,
"is_viable": true,
"term_class_if_delivered_today": "very_preterm",
"milestones": {
"trimester_2_start": "2026-04-12",
"trimester_3_start": "2026-07-19",
"viability": "2026-06-21",
"very_preterm_start": "2026-07-19",
"moderate_preterm_start": "2026-08-16",
"late_preterm_start": "2026-08-30",
"early_term_start": "2026-09-20",
"full_term_start": "2026-10-04",
"late_term_start": "2026-10-18",
"post_term_start": "2026-10-25"
},
"visit_schedule": {
"schedule": "who_2016",
"parity": null,
"visits": [
{
"week": 12,
"date": "2026-03-29"
},
{
"week": 20,
"date": "2026-05-24"
},
{
"week": 26,
"date": "2026-07-05"
},
{
"week": 30,
"date": "2026-08-02"
},
{
"week": 34,
"date": "2026-08-30"
},
{
"week": 36,
"date": "2026-09-13"
},
{
"week": 38,
"date": "2026-09-27"
},
{
"week": 40,
"date": "2026-10-11"
}
]
},
"postpartum": {
"projected_six_week_check": "2026-11-22"
},
"warnings": [],
"meta": {
"disclaimer": "Reference implementation. Informational only -- not clinical advice, not for diagnostic use, not contraceptive guidance.",
"as_of": "2026-07-28"
}
}
curl --location --request POST 'https://zylalabs.com/api/13381/lmp+based+due+date+calculation+api/28647/get+pregnancy+milestones+and+visit+schedule' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{"as_of": "2026-07-28", "edd": "2026-10-11"}'
{
"edd": "2026-10-11",
"gestational_age": {
"label": "29w2d",
"total_days": 205
},
"trimester": 3,
"is_viable": true,
"term_class_if_delivered_today": "very_preterm",
"milestones": {
"trimester_2_start": "2026-04-12",
"trimester_3_start": "2026-07-19",
"viability": "2026-06-21",
"very_preterm_start": "2026-07-19",
"moderate_preterm_start": "2026-08-16",
"late_preterm_start": "2026-08-30",
"early_term_start": "2026-09-20",
"full_term_start": "2026-10-04",
"late_term_start": "2026-10-18",
"post_term_start": "2026-10-25"
},
"visit_schedule": {
"schedule": "who_2016",
"parity": null,
"visits": [
{
"week": 12,
"date": "2026-03-29"
},
{
"week": 20,
"date": "2026-05-24"
},
{
"week": 26,
"date": "2026-07-05"
},
{
"week": 30,
"date": "2026-08-02"
},
{
"week": 34,
"date": "2026-08-30"
},
{
"week": 36,
"date": "2026-09-13"
},
{
"week": 38,
"date": "2026-09-27"
},
{
"week": 40,
"date": "2026-10-11"
}
]
},
"postpartum": {
"projected_six_week_check": "2026-11-22"
},
"warnings": [],
"meta": {
"disclaimer": "Reference implementation. Informational only -- not clinical advice, not for diagnostic use, not contraceptive guidance.",
"as_of": "2026-07-28"
}
}
curl --location --request GET 'https://zylalabs.com/api/13381/lmp+based+due+date+calculation+api/28649/list+pregnancy+milestones?as_of=2026-07-28&edd=2026-10-11&schedule=who_2016' --header 'Authorization: Bearer YOUR_API_KEY'
{
"lmp": "2026-01-01",
"ovulation_estimate": "2026-01-17",
"fertile_window": {
"start": "2026-01-12",
"end": "2026-01-18"
},
"next_periods": [
"2026-01-31",
"2026-03-02",
"2026-04-01"
],
"meta": {
"disclaimer": "Reference implementation. Informational only -- not clinical advice, not for diagnostic use, not contraceptive guidance."
}
}
curl --location --request POST 'https://zylalabs.com/api/13381/lmp+based+due+date+calculation+api/28651/calculate+ovulation+and+fertile+window' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{"lmp": "2026-01-01", "cycle_length": 30, "n": 3}'
{
"lmp": "2026-01-01",
"ovulation_estimate": "2026-01-17",
"fertile_window": {
"start": "2026-01-12",
"end": "2026-01-18"
},
"next_periods": [
"2026-01-31",
"2026-03-02",
"2026-04-01"
],
"meta": {
"disclaimer": "Reference implementation. Informational only -- not clinical advice, not for diagnostic use, not contraceptive guidance."
}
}
curl --location --request GET 'https://zylalabs.com/api/13381/lmp+based+due+date+calculation+api/28652/get+ovulation+and+fertile+window?lmp=2026-01-01&cycle_length=30&n=3' --header 'Authorization: Bearer YOUR_API_KEY'
{
"results": [
{
"index": 0,
"status": 200,
"body": {
"method": "lmp",
"edd": "2026-10-08",
"conception_date": "2026-01-15",
"meta": {
"disclaimer": "Reference implementation. Informational only -- not clinical advice, not for diagnostic use, not contraceptive guidance."
}
}
},
{
"index": 1,
"status": 200,
"body": {
"edd": "2026-10-11",
"gestational_age": {
"label": "29w2d",
"total_days": 205
},
"warnings": [],
"meta": {
"disclaimer": "Reference implementation. Informational only -- not clinical advice, not for diagnostic use, not contraceptive guidance.",
"as_of": "2026-07-28"
}
}
}
],
"meta": {
"disclaimer": "Reference implementation. Informational only -- not clinical advice, not for diagnostic use, not contraceptive guidance."
}
}
curl --location --request POST 'https://zylalabs.com/api/13381/lmp+based+due+date+calculation+api/28655/batch+multiple+pregnancy+calculations' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{"items": [
{"endpoint": "edd", "params": {"method": "lmp", "lmp": "2026-01-01"}},
{"endpoint": "gestational_age", "params": {"as_of": "2026-07-28", "edd": "2026-10-11"}}
]}'
{
"endpoints": [
{
"path": "/v1/edd",
"methods": [
"conception",
"ivf",
"lmp",
"reverse",
"ultrasound_biometry",
"ultrasound_crl"
]
},
{
"path": "/v1/gestational-age",
"input": [
"edd",
"lmp"
]
},
{
"path": "/v1/redate",
"input": [
"crl_mm",
"bpd_mm/hc_mm/ac_mm/fl_mm"
]
},
{
"path": "/v1/milestones",
"schedules": [
"who_2016",
"acog",
"nice"
]
},
{
"path": "/v1/cycle",
"input": [
"lmp",
"cycle_length",
"luteal_phase_length",
"n"
]
},
{
"path": "/v1/batch",
"max_items": 25,
"endpoints": [
"cycle",
"edd",
"gestational_age",
"milestones",
"redate"
]
}
]
}
curl --location --request GET 'https://zylalabs.com/api/13381/lmp+based+due+date+calculation+api/28656/list+available+methods+and+parameters' --header 'Authorization: Bearer YOUR_API_KEY'
注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 LMP Based Due Date Calculation API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
| 标头 | 描述 |
|---|---|
授权
|
必需
应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。
|
无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。
(年度计费可节省 2 个月 🎉)
领先企业的信赖之选
Due date from last menstrual period using Naegele's rule, with 21-45 day cycle length correction.
纳格尔法则:预产期是最后一次月经期加280天,若周期长度与28天不同则需调整。还可以从受孕日期(加266天)、试管婴儿移植或超声波测量进行推算。每个回答都说明了是哪个公式得出了答案
好的 /v1/redate 完全实施了ACOG委员会意见700(2017年,2022年重申)的表1,包括大多数实现所遗漏的细节:根据表格自己的脚注,妊娠周数行是根据扫描时的末次月经推算的年龄而选择的,而不是超声波推算的年龄。响应告诉您哪个规则被触发了 discrepancy in days 以及您发送的测量值是否是ACOG在该妊娠周数下推荐的值
它们是分别计算的:预产期 = 转移日期 + (266 - 胚胎年龄(天))。第3天转移给出转移 + 263天,第5天囊胚给出转移 + 261,第6天转移给出转移 + 260,取卵给出取卵 + 266。第3天和第5天的转移在同一天之间相隔两天 — 这是一般计算器通常会简化的差异
冠臀长使用Robinson-Fleming 1975(英国妇产科杂志1975;82:702-710),该方程被NICE、RCOG和ISUOG引用为第一孕期标准。颅底径、头围、腹围和股骨长使用Hadlock 1984(放射学1984;152:497-501),同时提供所有四项使用Hadlock自己的多参数复合回归。每个响应都标明了所应用的确切公式
是的 没有端点读取服务器时钟 任何依赖于“今天”的计算都需要一个明确的as_of日期 并且省略它会返回一个特定的错误而不是静默猜测 同样的请求在/v1中会无限期返回相同的答案 这使得响应安全以缓存和测试
发送 cycle_length_range 作为 [最小值, 最大值] 而不是单个 cycle_length 响应返回 edd_earliest edd_latest 明确标记的中点和时间范围宽度(天数)而不是单个日期,这样就不会暗示输入不支持的精度
是的 as_of 接受任何日期,因此传递过去的交付日期会返回交付时的孕龄 /v1/milestones 还报告该交付将属于哪个妊娠分期类别 - 早期妊娠 全期妊娠 晚期妊娠 过期妊娠 或四个早产亚类别之一
不 该API是无状态的不会存储任何内容 请求日志仅记录端点 状态码 响应时间以及请求来自哪个市场 从不记录日期 测量 周期长度或计算结果
不 这是一份已发布日期公式和指南表的参考实现 用于信息和软件集成使用 这不是临床建议 不是用于诊断 也不是避孕指导 每个响应在其meta.disclaimer字段中都包含该声明
是的,有一个为期7天的试用期,最多可进行50次请求,您可以在决定订阅计划之前将计算与您自己的参考案例进行验证