# Global Health Indicator Lookup — WHO Data (`m_ctim/global-health-indicator-lookup`) Actor

Look up any WHO Global Health Observatory indicator (life expectancy, immunization coverage, disease prevalence, health spending, and thousands more) for one or more countries over recent years via the official WHO GHO OData API. For global health, NGO, and public-health research teams.

- **URL**: https://apify.com/m\_ctim/global-health-indicator-lookup.md
- **Developed by:** [Timothy Kelvin](https://apify.com/m_ctim) (community)
- **Categories:** Other
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## 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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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

## Global Health Indicator Lookup — WHO Data

Look up any WHO Global Health Observatory indicator — life
expectancy, immunization coverage, disease prevalence, health
spending, and thousands more — for one or more countries over recent
years, via the official [WHO GHO OData
API](https://www.who.int/data/gho/info/gho-odata-api).

Built for global health, NGO, and public-health research teams
comparing countries without downloading WHO's own data exports.

### Input

```json
{
  "countries": ["USA", "GBR", "JPN"],
  "indicatorCode": "WHOSIS_000001",
  "mostRecentYears": 5
}
```

| Field | Type | Description |
|---|---|---|
| `countries` | array of strings (required) | One or more ISO 3-letter country codes, e.g. `"USA"`, `"GBR"`, `"JPN"`, `"IND"`. |
| `indicatorCode` | string (required) | A WHO GHO indicator code. Common ones: `WHOSIS_000001` (life expectancy at birth), `WHOSIS_000002` (healthy life expectancy), `WHS4_100` (measles immunization coverage %), `SA_0000001688` (alcohol consumption per capita), `GHED_CHEGDP_SHA2011` (health spending % of GDP). Browse the full catalog at [ghoapi.azureedge.net/api/Indicator](https://ghoapi.azureedge.net/api/Indicator). |
| `mostRecentYears` | number | How many of the most recent distinct years (per country) to return. Indicators broken down by sex/age/etc return multiple rows per year. Default `5`, max `20`. |

### Output

One record per country/year/dimension-breakdown:

```json
{
  "countryCode": "USA",
  "indicatorCode": "WHOSIS_000001",
  "year": 2021,
  "value": 76.373681040,
  "displayValue": "76.4 [76.3-76.5]",
  "dimension1": "SEX_BTSX",
  "dimension1Type": "SEX",
  "dimension2": null,
  "dimension2Type": null
}
```

Many indicators are broken down by sex (`SEX_BTSX` = both sexes,
`SEX_MLE`, `SEX_FMLE`) or other dimensions — each breakdown for a
given year is returned as its own row rather than picking one
arbitrarily. `displayValue` includes WHO's own confidence interval
text where available; `value` is the plain number for calculations.

An unrecognized indicator code returns a clear error; an unrecognized
country code returns zero rows for that indicator (a real "no data"
outcome, since WHO's API doesn't distinguish the two cases itself).

### How it works

Direct calls to the official [WHO GHO OData
API](https://ghoapi.azureedge.net/api/) — no proxy, no key, no
scraping. WHO data is freely available for reuse per WHO's open data
terms.

### Pricing note

Billed per **lookup** (one run), not per value returned — one charge
whether you request 1 country/1 year or 20 countries/20 years.

### Related products

- [Economic Indicator Lookup](https://github.com/timmKal01/economic-indicator-lookup) — the World Bank economic counterpart to this WHO health data

# Actor input Schema

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

One or more ISO 3-letter country codes, e.g. "USA", "GBR", "JPN", "IND".

## `indicatorCode` (type: `string`):

A WHO GHO indicator code. Common ones: WHOSIS\_000001 (life expectancy at birth), WHOSIS\_000002 (healthy life expectancy), WHS4\_100 (measles immunization coverage %), SA\_0000001688 (alcohol consumption per capita), GHED\_CHEGDP\_SHA2011 (health spending % of GDP). Browse the full catalog at https://ghoapi.azureedge.net/api/Indicator or the WHO GHO OData site.

## `mostRecentYears` (type: `integer`):

How many of the most recent distinct years (per country) to return. Indicators broken down by sex/age/etc return multiple rows per year.

## Actor input object example

```json
{
  "mostRecentYears": 5
}
```

# Actor output Schema

## `results` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("m_ctim/global-health-indicator-lookup").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("m_ctim/global-health-indicator-lookup").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 '{}' |
apify call m_ctim/global-health-indicator-lookup --silent --output-dataset

```

## MCP server setup

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

```

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/5KxLHOPHxYODXRkm1/builds/18Ge6SCzeaGL5ObsF/openapi.json
