Skip to main content

ZeqEpi — Epidemic Modeling

SIR/SEIR epidemic modeling via ODE solver with HulyaPulse temporal resolution. Model disease spread with real-time R(t)-modulated transmission rates.

EndpointPOST /api/health/epidemic/simulate
Authapi-key
Rate limit10/min
Categoryhealthcare

Parameters

NameTypeRequiredDescription
modelstringNo'sir', 'seir', 'seirs'. Default: 'seir'.
populationnumberYesTotal population.
infectedInitialnumberYesInitial infected count.
R0numberYesBasic reproduction number.
tDaysnumberNoSimulation duration in days. Default: 180.

Returns

{ timeSeries: [{ day, S, E?, I, R }], peakDay, peakInfected, totalInfected, herdImmunityThreshold }

Example

curl -sS -X POST \
-H "Authorization: Bearer zsm_..." \
-H "Content-Type: application/json" \
-d '{
"model": "seir",
"population": 0,
"infectedInitial": 0,
"R0": 0,
"tDays": 180
}' \
"https://zeqsdk.com/api/health/epidemic/simulate"

This protocol is a named building block — one of the operations you compose inside a state contract. Call it directly with the request above, or invoke it from a contract that fires on your machine's clock. Browse the whole library at GET /api/protocols; fetch this one at GET /api/protocols/zeq-epidemiology.