---
name: fetch-resilience-score
version: 1
description: Retrieve a composite country resilience score and breakdown using the COD/WorldMonitor bridge.
---

# fetch-resilience-score

Use this skill when the user asks how resilient a country is, wants a 0-100 resilience score, or asks for a domain/pillar breakdown.

## Access

Preferred Asha self-hosted base:

```
https://cod.asha.news
```

Server-side callers that go directly to WorldMonitor must send the API key as `X-WorldMonitor-Key`, not as a bearer token. Do not put the key in URLs or public docs.

## Endpoint

```
GET {base}/api/resilience/v1/get-resilience-score
```

Parameters:

| Name | Required | Shape |
| --- | --- | --- |
| `countryCode` | yes | ISO 3166-1 alpha-2 uppercase, for example `DE`, `KE`, `BR` |

## Response Fields To Preserve

- `overallScore`: headline 0-100 score.
- `level`: human bucket such as `LOW`, `MODERATE`, `HIGH`, or `VERY_HIGH`.
- `trend` and `change30d`: recent direction.
- `scoreInterval`: confidence band.
- `domains` and `pillars`: component breakdowns.

## Operator Notes

- Use `COD_NEWS_API_BASE` for Asha self-hosted services.
- If using `https://api.worldmonitor.app` directly, set `MC_WORLDMONITOR_API_KEY` or `WORLDMONITOR_API_KEY` and send it with `X-WorldMonitor-Key`.
- Preserve the numeric fields and confidence interval in Asha review notes; do not flatten the score into only a label.

## Example

```bash
curl -s "$COD_NEWS_API_BASE/api/resilience/v1/get-resilience-score?countryCode=DE"
```
