# WHO Global Health Observatory Data Scraper (`thirdwatch/who-global-health-scraper`) Actor

Export official WHO Global Health Observatory indicators for countries and years. Get indicator values, confidence bounds, sex dimensions, regions, update dates, and source links.

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

## Pricing

from $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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Observatory Data Scraper

Export official World Health Organization health indicators by code, country, year, and sex dimension. Turn WHO Global Health Observatory records into analysis-ready datasets without writing OData queries.

### What you get

- Official observations from the WHO Global Health Observatory
- Country and region names, years, sex dimensions, and update dates
- Numeric values plus WHO's formatted values and confidence bounds
- Up to 20 indicators and 50 countries in one run

### Output fields

`indicator_code`, `indicator_name`, `country_code`, `country_name`, `region_code`, `region_name`, `year`, `sex_code`, `numeric_value`, `display_value`, `low`, `high`, `updated_at`, and `source_url`.

### Example output

```json
{"indicator_code":"WHOSIS_000001","indicator_name":"Life expectancy at birth (years)","country_code":"USA","country_name":"United States of America","year":2021,"sex_code":"SEX_BTSX","numeric_value":76.37368104,"display_value":"76.4 [76.3-76.5]"}
```

### Input parameters

| Parameter | Description |
|---|---|
| `indicatorCodes` | WHO Global Health Observatory indicator codes. |
| `countryCodes` | Three-letter WHO country codes. |
| `sexCodes` | Optional sex-dimension filters. |
| `yearFrom` | First reporting year. |
| `yearTo` | Last reporting year. |
| `maxResultsPerIndicator` | Maximum observations saved per indicator. |

### Use cases

Public-health research, country benchmarking, epidemiology dashboards, policy reports, academic projects, market analysis, and data journalism.

### Limitations

Coverage and update cadence differ by indicator and country. Indicator codes must exist in WHO GHO. A value can represent an estimate and should be interpreted with its confidence bounds and WHO methodology.

### Compared to alternatives

No direct WHO GHO Actor was found in targeted Apify Store research when this listing was prepared. This Actor adds normalized country metadata and safe result limits. Try the [WHO Global Health Scraper](https://apify.com/thirdwatch/who-global-health-scraper), browse [Thirdwatch Actors](https://apify.com/thirdwatch), or use the [WHO Actor guide](https://thirdwatch.dev/actors/who-global-health-scraper).

### FAQ

**Does it need a WHO API key?** No.

**Can I request several countries?** Yes. Supply multiple three-letter codes.

Open the [input form](https://apify.com/thirdwatch/who-global-health-scraper?tab=input) or review [recent runs](https://apify.com/thirdwatch/who-global-health-scraper?tab=runs).

Last verified: 2026-07

# Actor input Schema

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

Global Health Observatory indicator codes, such as WHOSIS\_000001 for life expectancy at birth.

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

WHO three-letter country codes, such as USA, IND, GBR, or BRA.

## `sexCodes` (type: `array`):

Optional filters such as SEX\_BTSX, SEX\_MLE, or SEX\_FMLE. Leave empty for all values.

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

First reporting year to include.

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

Last reporting year to include.

## `maxResultsPerIndicator` (type: `integer`):

Stop after this many observations for each WHO indicator.

## Actor input object example

```json
{
  "indicatorCodes": [
    "WHOSIS_000001"
  ],
  "countryCodes": [
    "USA",
    "IND"
  ],
  "sexCodes": [
    "SEX_BTSX"
  ],
  "yearFrom": 2015,
  "yearTo": 2026,
  "maxResultsPerIndicator": 10
}
```

# 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 = {
    "indicatorCodes": [
        "WHOSIS_000001"
    ],
    "countryCodes": [
        "USA",
        "IND"
    ],
    "sexCodes": [
        "SEX_BTSX"
    ],
    "yearFrom": 2015,
    "yearTo": 2026,
    "maxResultsPerIndicator": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("thirdwatch/who-global-health-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": ["WHOSIS_000001"],
    "countryCodes": [
        "USA",
        "IND",
    ],
    "sexCodes": ["SEX_BTSX"],
    "yearFrom": 2015,
    "yearTo": 2026,
    "maxResultsPerIndicator": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("thirdwatch/who-global-health-scraper").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 '{
  "indicatorCodes": [
    "WHOSIS_000001"
  ],
  "countryCodes": [
    "USA",
    "IND"
  ],
  "sexCodes": [
    "SEX_BTSX"
  ],
  "yearFrom": 2015,
  "yearTo": 2026,
  "maxResultsPerIndicator": 10
}' |
apify call thirdwatch/who-global-health-scraper --silent --output-dataset

```

## MCP server setup

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

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/AAPSofhSdSlTeQBUn/builds/kJ1ua2k1YfecTYMJk/openapi.json
