Skip to main content
GET
/
api
/
resilience
/
v1
/
get-resilience-score
GetResilienceScore
curl --request GET \
  --url https://api.example.com/api/resilience/v1/get-resilience-score
{
  "countryCode": "<string>",
  "overallScore": 123,
  "level": "<string>",
  "domains": [
    {
      "id": "<string>",
      "score": 123,
      "weight": 123,
      "dimensions": [
        {
          "id": "<string>",
          "score": 123,
          "coverage": 123,
          "observedWeight": 123,
          "imputedWeight": 123,
          "imputationClass": "<string>",
          "freshness": {
            "lastObservedAtMs": "<string>",
            "staleness": "<string>"
          }
        }
      ]
    }
  ],
  "trend": "<string>",
  "change30d": 123,
  "lowConfidence": true,
  "imputationShare": 123,
  "baselineScore": 123,
  "stressScore": 123,
  "stressFactor": 123,
  "dataVersion": "<string>",
  "scoreInterval": {
    "p05": 123,
    "p95": 123
  },
  "pillars": [
    {
      "id": "<string>",
      "score": 123,
      "weight": 123,
      "coverage": 123,
      "domains": [
        {
          "id": "<string>",
          "score": 123,
          "weight": 123,
          "dimensions": [
            {
              "id": "<string>",
              "score": 123,
              "coverage": 123,
              "observedWeight": 123,
              "imputedWeight": 123,
              "imputationClass": "<string>",
              "freshness": {
                "lastObservedAtMs": "<string>",
                "staleness": "<string>"
              }
            }
          ]
        }
      ]
    }
  ],
  "schemaVersion": "<string>",
  "headlineEligible": true
}

Query Parameters

countryCode
string
required

Response

Successful response

countryCode
string
overallScore
number<double>
level
string
domains
object[]
trend
string
change30d
number<double>
lowConfidence
boolean
imputationShare
number<double>
baselineScore
number<double>
stressScore
number<double>
stressFactor
number<double>
dataVersion
string
scoreInterval
object
pillars
object[]
schemaVersion
string

Phase 2 T2.1/T2.3: "2.0" is the current default (adds pillars; keeps overall_score / baseline_score / etc. populated for backward compat). "1.0" is the legacy opt-out shape (pillars empty) retained for one release cycle. Controlled at response build time by the RESILIENCE_SCHEMA_V2_ENABLED env flag (defaults to "true" → v2).

headlineEligible
boolean

Current headline-ranking eligibility. True only when the country passes the headline gate: coverage >= 0.65 AND (population >= 200k OR coverage >= 0.85) AND !lowConfidence. GetResilienceRanking includes only eligible countries in items[]; scored but ineligible countries remain in greyedOut[]. Raw score endpoints still return the country score when available. Widget and country detail copy should show "Outside headline ranking" when false unless low-confidence is the more specific reason.