# WHO Global Health Observatory Data Scraper (`wakey7dev/who-gho-scraper`) Actor

Access 2,700+ WHO health indicators across 194 countries. Mortality, immunization, diseases, health systems — normalized and ready for analysis. Free API, no key needed.

- **URL**: https://apify.com/wakey7dev/who-gho-scraper.md
- **Developed by:** [Chris Wakefield](https://apify.com/wakey7dev) (community)
- **Categories:** Business, AI
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.00 / 1,000 results

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js/docs.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python/docs.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

![Chris The Dev](https://raw.githubusercontent.com/chriswakefield87/appstore-screenshot-translator/main/assets/actor-banner.png)

## WHO Global Health Observatory Data Scraper 🌍

Access 2,700+ health indicators from the World Health Organization's Global Health Observatory — the definitive source for global health statistics. Normalized, searchable, and ready for analysis.

### What This Actor Does

Fetches health data from the WHO GHO API across **194 countries** and **WHO regions**. Covers mortality, diseases, immunization, health systems, environmental health, nutrition, and more. All results are normalized with proper country names and clean indicator descriptions.

### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `indicatorCodes` | string[] | Yes* | WHO indicator codes (e.g. `VACCINECOVERAGE_DTP1`, `WHS2_102`) |
| `searchKeyword` | string | Yes* | Keyword to search indicators (e.g. "mortality", "tuberculosis", "immunization") |
| `countryCodes` | string[] | No | Filter by ISO 3166-1 alpha-3 codes (e.g. `GBR`, `USA`, `FRA`) |
| `yearMin` | integer | No | Earliest year to include |
| `yearMax` | integer | No | Latest year to include |
| `maxResults` | integer | No | Max data points (default: 500, max: 5000) |
| `spatialDimType` | string | No | Spatial dimension: `COUNTRY` (default), `REGION`, `WORLDBANKINCOMEGROUP` |

*Either `indicatorCodes` OR `searchKeyword` must be provided.

### Example Input

```json
{
  "indicatorCodes": ["VACCINECOVERAGE_DTP1", "WHS2_102", "NCDMORT307"],
  "countryCodes": ["GBR", "USA", "FRA", "DEU"],
  "yearMin": 2015,
  "maxResults": 100
}
````

Or search by keyword:

```json
{
  "searchKeyword": "tuberculosis",
  "countryCodes": ["ZAF", "IND", "CHN"],
  "maxResults": 200
}
```

### Example Output

Each dataset item contains:

```json
{
  "IndicatorCode": "VACCINECOVERAGE_DTP1",
  "IndicatorName": "DTP3 immunization coverage among one-year-olds (%)",
  "SpatialDim": "GBR",
  "SpatialDimType": "COUNTRY",
  "LocationNormalized": "United Kingdom",
  "SpatialTypeNormalized": "Country",
  "TimeDim": 2023,
  "NumericValue": 94.0,
  "Value": "94",
  "Low": null,
  "High": null
}
```

Results include normalized country names, clean indicator descriptions, and a human-readable summary table in the console output.

### Popular Indicators

| Code | Description |
|------|-------------|
| `WHS2_102` | Life expectancy at birth (years) |
| `WHOSIS_000001` | Infant mortality rate (per 1000 live births) |
| `NCDMORT307` | NCD mortality rate (age-standardized) |
| `VACCINECOVERAGE_DTP1` | DTP3 immunization coverage (%) |
| `SA_0000001837` | Alcohol poisoning deaths per 100,000 |
| `NCD_HYP_PREVALENCE_A` | Hypertension prevalence (age-standardized) |
| `NCD_DIABETES_PREVALENCE_CRUDE` | Diabetes prevalence |
| `TOBACCO_MPOWER_M1_TOBACCOUSESMOKING` | Tobacco use monitoring |
| `CHILDMORT5TO14` | Mortality rate for 5-14 year-olds |
| `PHE_HHAIR_PROP_POP_CLEAN_FUELS` | Clean cooking fuel access |

### Use Cases

- **Public health research**: Cross-country comparisons of disease burden and health outcomes
- **Pharma market intelligence**: Disease prevalence data for market sizing
- **Health journalism**: Data-driven stories on global health trends
- **NGO reporting**: Track health indicators for grant proposals and impact reports
- **Insurance risk modeling**: Population health statistics for actuarial analysis
- **Academic research**: Multi-year, multi-country health datasets

### Data Source

[WHO Global Health Observatory](https://www.who.int/data/gho) — the World Health Organization's gateway to health-related statistics. Data is licensed under [CC BY-NC-SA 3.0 IGO](https://creativecommons.org/licenses/by-nc-sa/3.0/igo/).

### Features

- ✅ **2,700+ indicators** across 194 countries
- ✅ **Keyword search** — find indicators by disease, topic, or measurement
- ✅ **Country/region filtering** — ISO codes or WHO regions
- ✅ **Year range filtering** — focus on specific time periods
- ✅ **Normalized output** — proper country names, clean descriptions
- ✅ **Multi-dimensional** — country, region, and World Bank income group views

# Actor input Schema

## `indicatorCodes` (type: `array`):

WHO GHO indicator codes to fetch (e.g. VACCINECOVERAGE\_DTP1, WHS2\_102). Use comma-separated values. Leave empty to search all indicators by keyword.

## `searchKeyword` (type: `string`):

Alternative to indicator codes — search indicators by name keyword (e.g. 'mortality', 'immunization', 'tuberculosis'). Ignored if indicatorCodes is provided.

## `countryCodes` (type: `array`):

WHO country codes to filter by (e.g. GBR, USA, FRA). Use ISO 3166-1 alpha-3 codes. Leave empty for all countries.

## `yearMin` (type: `integer`):

Earliest year to include (e.g. 2015). Leave empty for all years.

## `yearMax` (type: `integer`):

Latest year to include (e.g. 2023). Leave empty for all years.

## `maxResults` (type: `integer`):

Maximum number of data points to return. Default 500, max 5000.

## `spatialDimType` (type: `string`):

Spatial dimension to filter by: country, WHO region, or World Bank income group.

## Actor input object example

```json
{
  "indicatorCodes": [
    "VACCINECOVERAGE_DTP1",
    "WHS2_102"
  ],
  "searchKeyword": "",
  "countryCodes": [],
  "yearMin": 0,
  "yearMax": 0,
  "maxResults": 500,
  "spatialDimType": "COUNTRY"
}
```

# Actor output Schema

## `results` (type: `string`):

All data points with normalized country and indicator names.

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

Human-readable formatted results with column layout.

## `stats` (type: `string`):

Machine-readable stats with total data points, indicators, countries, and year range.

# 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 = {
    "indicatorCodes": [
        "VACCINECOVERAGE_DTP1",
        "WHS2_102"
    ],
    "countryCodes": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("wakey7dev/who-gho-scraper").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 = {
    "indicatorCodes": [
        "VACCINECOVERAGE_DTP1",
        "WHS2_102",
    ],
    "countryCodes": [],
}

# Run the Actor and wait for it to finish
run = client.actor("wakey7dev/who-gho-scraper").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "indicatorCodes": [
    "VACCINECOVERAGE_DTP1",
    "WHS2_102"
  ],
  "countryCodes": []
}' |
apify call wakey7dev/who-gho-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=wakey7dev/who-gho-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "WHO Global Health Observatory Data Scraper",
        "description": "Access 2,700+ WHO health indicators across 194 countries. Mortality, immunization, diseases, health systems — normalized and ready for analysis. Free API, no key needed.",
        "version": "1.0",
        "x-build-id": "TxmnJGRGBPTp9GwlP"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/wakey7dev~who-gho-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-wakey7dev-who-gho-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/wakey7dev~who-gho-scraper/runs": {
            "post": {
                "operationId": "runs-sync-wakey7dev-who-gho-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/wakey7dev~who-gho-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-wakey7dev-who-gho-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "indicatorCodes"
                ],
                "properties": {
                    "indicatorCodes": {
                        "title": "Indicator Codes",
                        "type": "array",
                        "description": "WHO GHO indicator codes to fetch (e.g. VACCINECOVERAGE_DTP1, WHS2_102). Use comma-separated values. Leave empty to search all indicators by keyword.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "searchKeyword": {
                        "title": "Search Keyword",
                        "type": "string",
                        "description": "Alternative to indicator codes — search indicators by name keyword (e.g. 'mortality', 'immunization', 'tuberculosis'). Ignored if indicatorCodes is provided.",
                        "default": ""
                    },
                    "countryCodes": {
                        "title": "Country Codes",
                        "type": "array",
                        "description": "WHO country codes to filter by (e.g. GBR, USA, FRA). Use ISO 3166-1 alpha-3 codes. Leave empty for all countries.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "yearMin": {
                        "title": "Start Year",
                        "type": "integer",
                        "description": "Earliest year to include (e.g. 2015). Leave empty for all years.",
                        "default": 0
                    },
                    "yearMax": {
                        "title": "End Year",
                        "type": "integer",
                        "description": "Latest year to include (e.g. 2023). Leave empty for all years.",
                        "default": 0
                    },
                    "maxResults": {
                        "title": "Max Results",
                        "minimum": 1,
                        "maximum": 5000,
                        "type": "integer",
                        "description": "Maximum number of data points to return. Default 500, max 5000.",
                        "default": 500
                    },
                    "spatialDimType": {
                        "title": "Spatial Dimension",
                        "enum": [
                            "COUNTRY",
                            "REGION",
                            "WORLDBANKINCOMEGROUP",
                            ""
                        ],
                        "type": "string",
                        "description": "Spatial dimension to filter by: country, WHO region, or World Bank income group.",
                        "default": "COUNTRY"
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
