Skip to main content

Introduction

epydemix Web API is a REST API for running epidemic simulations powered by epydemix.

Overview

The API exposes epydemix's simulation engine over HTTP. You can run compartmental models (SIR, SEIR, SIS) against built-in population data by sending a single JSON request. No Python environment required on the client side.

How it works

  1. Pick a model preset and population
  2. POST a simulation request with your parameters
  3. Get back compartment trajectories for each simulation run

Endpoints

MethodPathDescription
POST/api/v1/simulationsRun a simulation
GET/api/v1/populationsList available populations
GET/api/v1/populations/{name}Get population details
GET/api/v1/populations/{name}/contactsGet contact matrices
GET/api/v1/models/presetsList model presets
GET/api/v1/healthHealth check

The API Reference has interactive docs where you can explore schemas and send requests directly.