ECDC ILI
| Attribute | Details |
|---|---|
| Source Name | ecdc_ili |
| Data Source | European Centre for Disease Prevention and Control (ECDC) |
| Geographic Levels | European countries (see Geographic Codes) |
| Temporal Granularity | Weekly (Epiweek) |
| Reporting Cadence | Inactive - No longer updated since 2020w12 |
| Temporal Scope Start | 2018w40 |
| License | This was scraped from a publicly-accessible website, but no explicit license terms were found. |
Overview
This data source provides weekly influenza-like illness (ILI) data for European countries, as reported by the European Centre for Disease Prevention and Control (ECDC).
General topics not specific to any particular endpoint are discussed in the API overview. Such topics include: contributing, citing, and data licensing.
Table of contents
The API
The base URL is: https://api.delphi.cmu.edu/epidata/ecdc_ili/
Parameters
Required
| Parameter | Description | Type |
|---|---|---|
epiweeks |
epiweeks (see Date Formats) | list of epiweeks |
regions |
regions | list of European country labels (see Geographic Codes) |
Optional
| Parameter | Description | Type |
|---|---|---|
issues |
issues (see Date Formats) | list of epiweeks |
lag |
# weeks between each epiweek and its issue | integer |
Notes:
- If both
issuesandlagare specified, onlyissuesis used.- If neither is specified, the current issues are used.
Response
| Field | Description | Type |
|---|---|---|
result |
result code: 1 = success, 2 = too many results, -2 = no results | integer |
epidata |
list of results | array of objects |
epidata[].release_date |
date of release | string |
epidata[].region |
region name | string |
epidata[].issue |
epiweek of issue | integer |
epidata[].epiweek |
epiweek of data | integer |
epidata[].lag |
lag in weeks | integer |
epidata[].count |
number of ILI cases | integer |
epidata[].rate |
ILI rate | float |
message |
success or error message |
string |
Example URLs
ECDC ILI in Austria on 2020w01
https://api.delphi.cmu.edu/epidata/ecdc_ili/?regions=austria&epiweeks=202001
{
"result": 1,
"epidata": [
{
"release_date": "2020-01-10",
"region": "Austria",
"issue": 202001,
"epiweek": 202001,
"lag": 0,
"count": 123,
"rate": 12.34
}
],
"message": "success"
}
Code Samples
Libraries are available for R and Python.
The following samples show how to import the library and fetch ECDC ILI data for Austria for epiweeks 202001 and 202002.
Install the package using pip:
pip install -e "git+https://github.com/cmu-delphi/epidatpy.git#egg=epidatpy"
# Import
from epidatpy import CovidcastEpidata, EpiDataContext, EpiRange
# Fetch data
epidata = EpiDataContext()
res = epidata.ecdc_ili(['austria'], [202001, 202002])
print(res['result'], res['message'], len(res['epidata']))
library(epidatr)
# Fetch data
res <- pub_ecdc_ili(regions = 'austria', epiweeks = c(202001, 202002))
print(res)
Legacy Clients
We recommend using the modern client libraries mentioned above. Legacy clients are also available for Python, R, and JavaScript.
Optionally install the package using pip(env):
pip install delphi-epidata
Otherwise, place delphi_epidata.py from this repo next to your python script.
# Import
from delphi_epidata import Epidata
# Fetch data
res = Epidata.ecdc_ili(['austria'], [202001, 202002])
print(res['result'], res['message'], len(res['epidata']))
Place delphi_epidata.R from this repo next to your R script.
source("delphi_epidata.R")
# Fetch data
res <- Epidata$ecdc_ili(regions = list("austria"), epiweeks = list(202001, 202002))
print(res$message)
print(length(res$epidata))
<!-- Imports -->
<script src="delphi_epidata.js"></script>
<!-- Fetch data -->
<script>
EpidataAsync.ecdc_ili('austria', [202001, 202002]).then((res) => {
console.log(res.result, res.message, res.epidata != null ? res.epidata.length : 0);
});
</script>