# WHO Global Health Data Tracker (`gochujang/who-global-health-data`) Actor

Collect country-level public health statistics from the WHO Global Health Observatory (GHO) — life expectancy, infant mortality, HIV prevalence, obesity, PM2.5 exposure, alcohol consumption, and 2,000+ more indicators. Filter by country, year range, and indicator. No API key required.

- **URL**: https://apify.com/gochujang/who-global-health-data.md
- **Developed by:** [Hojun Lee](https://apify.com/gochujang) (community)
- **Categories:** Education
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 item processeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## WHO Global Health Data Tracker

Collect country-level public health statistics from the **WHO Global Health Observatory (GHO)** — life expectancy, infant mortality, HIV prevalence, obesity, PM2.5 air pollution, alcohol consumption, and 2,000+ more indicators across 190+ countries.

**No API key required.** Powered by the official [WHO GHO OData API](https://www.who.int/data/gho/info/gho-odata-api).

***

### Use Cases

- **Public health research** — download multi-decade time series for academic analysis
- **Pharmaceutical market sizing** — disease prevalence by country and year
- **ESG & impact investing** — health outcome benchmarks across emerging markets
- **Policy analysis** — compare health expenditure vs. outcomes across nations
- **Journalism & data visualization** — structured WHO data without manual CSV downloads

***

### Modes

| Mode | Description |
|------|-------------|
| `data` | Fetch health observations for selected indicators, countries, and year range |
| `indicators` | List all available WHO indicators with codes and names |
| `countries` | List all available countries with ISO3 codes |

***

### Key Indicators

| Code | Description |
|------|-------------|
| `WHOSIS_000001` | Life expectancy at birth (years) |
| `WHOSIS_000015` | Infant mortality rate (per 1,000 live births) |
| `MDG_0000000026` | HIV/AIDS prevalence (%) |
| `SDGPM25` | PM2.5 air pollution exposure (μg/m³) |
| `NCD_BMI_30A` | Obesity rate among adults (%) |
| `SA_0000001462` | Alcohol consumption (litres per capita) |

Use `mode: indicators` to browse all 2,000+ indicator codes.

***

### Input

```json
{
  "mode": "data",
  "indicators": ["WHOSIS_000001", "WHOSIS_000015", "NCD_BMI_30A"],
  "countries": ["KOR", "USA", "CHN", "DEU", "JPN"],
  "yearFrom": 2010,
  "yearTo": 2023
}
```

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `mode` | string | `data` | `data`, `indicators`, or `countries` |
| `indicators` | array | 6 defaults | WHO indicator codes (e.g. `WHOSIS_000001`) |
| `countries` | array | all | ISO 3-letter country codes (e.g. `KOR`, `USA`) |
| `yearFrom` | integer | `2010` | Minimum year (inclusive). Set `0` for no limit. |
| `yearTo` | integer | `2023` | Maximum year (inclusive). Set `0` for no limit. |
| `maxIndicators` | integer | `50` | Max results when `mode=indicators` |

***

### Output

Each record in `mode: data` contains:

```json
{
  "indicator_code": "WHOSIS_000001",
  "indicator_name": "Life expectancy at birth (years)",
  "country_code": "KOR",
  "country_name": "Republic of Korea",
  "year": 2022,
  "value": 83.6,
  "value_display": "83.6 [82.8-84.4]",
  "sex": "Both sexes",
  "dim2": null,
  "dim3": null,
  "source": "WHO GHO"
}
```

A `SUMMARY` key is also saved to the Key-Value Store with record counts per indicator.

***

### Pricing

| Event | Price |
|-------|-------|
| Actor start | $0.005 (once) |
| Per health observation returned | $0.001 |

A typical run fetching 6 indicators for 10 countries over 10 years returns ~600–3,000 records, costing $0.60–$3.00.

***

### Data Source

WHO Global Health Observatory — <https://www.who.int/data/gho>

Data is updated by WHO on a rolling basis. Most indicators are updated annually. Historical data goes back to the 1990s for many indicators.

***

### Related actors

- [World Bank Data Scraper](https://apify.com/gochujang/world-bank-data) — World Bank health indicators (life expectancy, mortality) alongside WHO disease-specific data
- [PubMed Medical Papers Tracker](https://apify.com/gochujang/pubmed-papers-tracker) — Academic literature to contextualize WHO indicator trends with underlying research
- [IMF Economic Data Tracker](https://apify.com/gochujang/imf-economic-data) — GDP per capita and healthcare spending to correlate with WHO health outcomes

### Feedback

If this actor helps your public health research, a review helps others find it: [Leave a review on Apify Store](https://apify.com/gochujang/who-global-health-data#reviews)

***

**Keywords:** WHO health data scraper, World Health Organization statistics, global health indicators API, life expectancy by country, infant mortality rate data, HIV prevalence statistics, obesity rate tracker, WHO GHO data extractor, public health statistics, country health metrics, WHO open data API, air quality health data, global disease statistics, no API key required

# Actor input Schema

## `mode` (type: `string`):

data = fetch health observations, indicators = list available indicators, countries = list available countries

## `indicators` (type: `array`):

WHO indicator codes to fetch. Leave empty to use defaults. Example: WHOSIS\_000001 (life expectancy), WHOSIS\_000015 (infant mortality).

## `countries` (type: `array`):

ISO 3-letter country codes. Leave empty for all countries. Example: KOR, USA, CHN, DEU.

## `yearFrom` (type: `integer`):

Only return data from this year onwards (inclusive). Set 0 for no lower limit.

## `yearTo` (type: `integer`):

Only return data up to this year (inclusive). Set 0 for no upper limit.

## `maxIndicators` (type: `integer`):

Maximum number of indicators to return when mode=indicators.

## Actor input object example

```json
{
  "mode": "data",
  "indicators": [
    "WHOSIS_000001",
    "WHOSIS_000015",
    "NCD_BMI_30A",
    "SDGPM25"
  ],
  "countries": [
    "KOR",
    "USA",
    "CHN",
    "DEU",
    "JPN",
    "GBR",
    "FRA",
    "BRA",
    "IND"
  ],
  "yearFrom": 2010,
  "yearTo": 2023,
  "maxIndicators": 50
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `summary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "indicators": [
        "WHOSIS_000001",
        "WHOSIS_000015",
        "NCD_BMI_30A",
        "SDGPM25"
    ],
    "countries": [
        "KOR",
        "USA",
        "CHN",
        "DEU",
        "JPN",
        "GBR",
        "FRA",
        "BRA",
        "IND"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("gochujang/who-global-health-data").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "indicators": [
        "WHOSIS_000001",
        "WHOSIS_000015",
        "NCD_BMI_30A",
        "SDGPM25",
    ],
    "countries": [
        "KOR",
        "USA",
        "CHN",
        "DEU",
        "JPN",
        "GBR",
        "FRA",
        "BRA",
        "IND",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("gochujang/who-global-health-data").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "indicators": [
    "WHOSIS_000001",
    "WHOSIS_000015",
    "NCD_BMI_30A",
    "SDGPM25"
  ],
  "countries": [
    "KOR",
    "USA",
    "CHN",
    "DEU",
    "JPN",
    "GBR",
    "FRA",
    "BRA",
    "IND"
  ]
}' |
apify call gochujang/who-global-health-data --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,gochujang/who-global-health-data"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/4O3vZ6fXXIYoAaGFU/builds/KGMclJRli0P4PH3UV/openapi.json
