International Data Tools¶
Tools for downloading epidemiological and health data from international sources.
Overview¶
EpidBot supports multiple international data sources beyond Brazilian DATASUS:
| Source | Description | API Key Required |
|---|---|---|
| Mosqlimate | Brazilian climate and epidemiological data | Yes |
| WHO GHO | World Health Organization Global Health Observatory | No |
| ECDC | European Centre for Disease Prevention and Control | No |
| World Bank | Global health and development indicators | No |
Mosqlimate¶
Mosqlimate provides complementary Brazilian epidemiological and climate data, including Infodengue nowcasting and climate variables.
Prerequisites¶
Set your API key:
Get your key at: https://mosqlimate.org/profile/auth
list_mosqlimate_sources¶
List all available Mosqlimate data sources.
Example:
Available sources:
| Source | Description | Required Params |
|---|---|---|
infodengue |
Weekly epidemiological data | disease, start, end |
climate |
Daily climate data | start, end |
climate_weekly |
Weekly aggregated climate | start, end |
mosquito |
Ovitrap monitoring data | date_start, date_end |
episcanner |
Epidemic parameters | disease, uf |
download_mosqlimate_infodengue¶
Download Infodengue epidemiological data (dengue, zika, chikungunya).
download_mosqlimate_infodengue(
ctx: RunContext[None],
disease: str, # "dengue", "zika", or "chik"
start: str, # YYYY-MM-DD
end: str, # YYYY-MM-DD
uf: Optional[str], # State abbreviation (e.g., "RJ")
geocode: Optional[int] # IBGE municipality code
) -> str
Example:
Columns include:
- SE - Epidemiological week
- casos - Reported cases
- casos_est - Estimated cases (nowcasting)
- p_rt1 - Probability of Rt > 1
- nivel - Alert level (1-4)
download_mosqlimate_climate¶
Download daily climate data from Copernicus ERA5.
download_mosqlimate_climate(
ctx: RunContext[None],
start: str,
end: str,
uf: Optional[str],
geocode: Optional[int]
) -> str
Example:
Columns include:
- temp_min, temp_max, temp_med - Temperature
- umid_min, umid_max, umid_med - Humidity
- precip_min, precip_max, precip_med - Precipitation
download_mosqlimate_climate_weekly¶
Download weekly aggregated climate data.
download_mosqlimate_climate_weekly(
ctx: RunContext[None],
start: str,
end: str,
uf: Optional[str],
geocode: Optional[int]
) -> str
download_mosqlimate_mosquito¶
Download mosquito abundance data from Contaovos ovitrap network.
download_mosqlimate_mosquito(
ctx: RunContext[None],
date_start: str,
date_end: str,
state: Optional[str],
municipality: Optional[str]
) -> str
Example:
download_mosqlimate_episcanner¶
Download EpiScanner epidemic parameters.
download_mosqlimate_episcanner(
ctx: RunContext[None],
disease: str, # "dengue", "zika", "chik"
uf: str, # State abbreviation
year: Optional[int]
) -> str
Example:
Columns include:
- R0 - Basic reproduction number
- beta - Transmissibility
- gamma - Recovery rate
- peak_week - Peak epidemiological week
- epi_duration - Epidemic duration
WHO Global Health Observatory¶
Access thousands of health indicators from the World Health Organization.
list_who_health_indicators¶
List available WHO indicators.
Example:
search_who_health_indicators¶
Search indicators by keyword.
Example:
Popular searches:
- malaria - Malaria indicators
- mortality - Mortality rates
- immunization - Vaccination coverage
- life expectancy - Life expectancy data
- tuberculosis - TB indicators
download_who_health_data¶
Download WHO indicator data.
download_who_health_data(
ctx: RunContext[None],
indicator_code: str,
countries_json: Optional[str] # '["BRA", "USA", "IND"]'
) -> str
Example:
Popular indicator codes:
| Code | Indicator |
|---|---|
MDG_0000000020 |
TB incidence per 100,000 |
WHS4_544 |
Life expectancy at birth |
NCD_BMI_30A |
Overweight prevalence |
WHS8_110 |
Infant mortality rate |
ECDC (European CDC)¶
Access European infectious disease surveillance data.
list_ecdc_datasets_tool¶
List available ECDC datasets.
Example:
Available datasets:
- covid_cases - COVID-19 cases
- covid_deaths - COVID-19 deaths
- influenza - Influenza surveillance
- measles - Measles cases
get_ecdc_dataset_info_tool¶
Get detailed dataset information.
Example:
download_ecdc_data¶
Download ECDC surveillance data.
download_ecdc_data(
ctx: RunContext[None],
dataset_name: str,
countries_json: Optional[str], # '["DE", "FR", "IT"]'
year: Optional[int]
) -> str
Example:
Country codes: Use ISO 2-letter codes (DE, FR, IT, ES, PT, etc.)
World Bank Open Data¶
Access global health, population, and development indicators.
search_wb_indicators_tool¶
Search World Bank indicators.
Example:
list_wb_countries_tool¶
List available countries and regions.
Example:
list_popular_wb_indicators_tool¶
List commonly used health indicators.
Example:
Popular indicators:
| Code | Indicator |
|---|---|
SP.DYN.LE00.IN |
Life expectancy at birth |
SP.DYN.IMRT.IN |
Infant mortality rate |
SH.XPD.CHEX.GD.ZS |
Health expenditure (% of GDP) |
SH.MED.PHYS.ZS |
Physicians per 1,000 people |
SP.POP.TOTL |
Total population |
download_wb_indicator_data¶
Download World Bank indicator data.
download_wb_indicator_data(
ctx: RunContext[None],
indicator_code: str,
countries_json: Optional[str], # '["BRA", "USA", "CHN"]'
start_year: Optional[int],
end_year: Optional[int]
) -> str
Example:
PAHO (Pan-American Health Organization)¶
Pan-American health data via the PAHO/WHO data API.
| Tool | Description |
|---|---|
list_paho_countries / list_paho_subregions |
List countries / subregions |
list_paho_vaccines |
List vaccines in the immunization dataset |
download_paho_immunization_coverage |
Immunization coverage data |
download_paho_malaria_data |
Malaria cases by country/year |
download_paho_dengue_data |
Dengue data |
download_paho_health_indicators |
Core health indicators |
compare_paho_countries |
Compare indicators across countries |
ECDC Atlas¶
Surveillance for 59 infectious diseases across EU/EEA plus antimicrobial resistance (AMR).
| Tool | Description |
|---|---|
list_ecdc_atlas_diseases |
List diseases by category |
download_ecdc_atlas_disease_data |
Download disease surveillance data |
download_ecdc_atlas_amr_data |
Download AMR data |
get_ecdc_atlas_summary |
Summary statistics |
HealthData.gov¶
US health system open data.
| Tool | Description |
|---|---|
list_healthdata_gov_datasets |
List datasets |
download_healthdata_gov_hospital_capacity |
Hospital capacity |
download_healthdata_gov_covid_metrics |
COVID-19 metrics |
download_healthdata_gov_nursing_home_data |
Nursing-home data |
download_healthdata_gov_vaccination_data |
Vaccination |
download_healthdata_gov_testing_data |
Testing |
get_healthdata_gov_current_stats |
Current headline stats |
compare_healthdata_gov_states |
Compare across US states |
Eurostat¶
EU health statistics (all data_sources_all-gated).
| Tool | Description |
|---|---|
list_eurostat_indicators / search_eurostat_indicators |
Discover indicators |
list_eurostat_countries / list_eurostat_causes_of_death |
Countries / ICD causes of death |
download_eurostat_health_indicator |
Generic health indicators |
download_eurostat_mortality_data / download_eurostat_infant_mortality |
Mortality |
download_eurostat_life_expectancy |
Life expectancy |
download_eurostat_healthcare_expenditure |
Healthcare expenditure |
download_eurostat_physicians / download_eurostat_hospital_beds |
Workforce / capacity |
download_eurostat_self_perceived_health |
Self-perceived health |
UN Data¶
UN Data Commons statistical indicators (8 undata_* tools): search indicators, inspect metadata (definitions, sources, facets), resolve place groupings, and retrieve observations for a place, a whole region/grouping, or multi-entity series (e.g. aid flows).
New Zealand Health¶
| Tool | Description |
|---|---|
list_nz_health_datasets |
List available datasets |
download_nz_mortality |
Mortality data |
download_nz_hospital_events |
Hospital events |
download_nz_life_tables |
Life tables |
download_nz_immunisation |
Immunisation coverage |
UKHSA¶
UK Health Security Agency dashboard data: list_ukhsa_topics, list_ukhsa_topic_geographies, list_ukhsa_topic_metrics, download_ukhsa_metric_data — browse topics, then download metric time series per geography.
China CDC Weekly¶
| Tool | Description |
|---|---|
search_china_cdc_articles |
Search China CDC Weekly articles |
download_china_cdc_report |
Download report data |
Genomics & Biodiversity¶
| Source | Tools |
|---|---|
| Pathoplexus | list_pathoplexus_organisms_tool, get_pathoplexus_sequence_counts — open pathogen genomic sequence counts |
| GADM | list_gadm_countries, download_gadm_boundaries, get_gadm_info — administrative boundaries for choropleths |
| GBIF | list_gbif_species, search_gbif_species, download_gbif_occurrences, get_gbif_occurrence_summary — occurrence data for disease vectors/reservoirs |
Data Storage¶
All downloaded data is stored in parquet format under the data directory ({data_dir}, default ~/public), e.g. ~/pysus/mosqlimate/, ~/pysus/who/, ~/pysus/ecdc/, ~/pysus/worldbank/.
Use list_available_datasets to see all downloaded files.
Example Workflows¶
Compare Brazilian and European Dengue-like Diseases¶
1. Download Infodengue data for dengue in Brazil (2023)
2. Download ECDC dengue data for Europe (2023)
3. Compare temporal trends
Analyze Global Health Indicators¶
1. Search WHO indicators for "mortality"
2. Download infant mortality data for South American countries
3. Download World Bank health expenditure data
4. Create correlation analysis