The VitalDB web application programming interface (API) is a language independent interface that allows users to get the VitalDB open dataset via HTTP secure protocol. All Web API’s endpoint can be accessed by sending HTTP requests with GET method or by entering an address in the web browser.
The responses are files with GZip-compressed comma separated values (CSV) format.
Each CSV file has a header row at the begining which contains column names.
Supported endpoints and their purposes are as below.
| Endpoint URL | Method |
|---|---|
| https://api.vitaldb.net/cases | GET |
| https://api.vitaldb.net/trks | GET |
| https://api.vitaldb.net/{tid} | GET |
| https://api.vitaldb.net/labs | GET |
Endpoint URL: https://api.vitaldb.net/cases
This endpoint contains information related to the clinical information.
Parameter lists are available here.
Please note that all timepoints are in seconds from casestart. Therefore, the casestart is always zero in all cases and the caseend becomes the length of the entire case in seconds.
Endpoint URL: https://api.vitaldb.net/trks
This endpoint contains information related to the track.
The definition of each column is as follows.
| Column Name | Description |
|---|---|
| caseid | case identifier |
| tname | track name |
| tid | track identifier |
Full list of tname is available here.
Endpoint URL: https://api.vitaldb.net/TID
To download the track data including the actual measurements of the track, you can send a GET request to the address. For TID, you can use the track id on the track list.
All tracks in the same case use the same start time, therefore they are time-synchronized.
Track data has two columns: Time and Values
The first column has the times (s) and the second column has corresponding values.
However, according to the track type (ttype), the stored form varies.
Endpoint URL: https://api.vitaldb.net/labs
This endpoint contains the test results.
| Variable Name | Description |
|---|---|
| caseid | case identifier |
| dt | test time (seconds based on casestart) |
| name | test name |
| result | test result |
Full list of laboratory test names is available here.