/v1/countriesList country rankings, scores, availability, and update metadata.
Data API
A proposed API contract for the data the frontend is prepared to consume. Production endpoints are not yet available.
Current provider: mock. The active frontend uses the mock provider until a verified production API base URL is configured.
Proposed endpoints
/v1/countriesList country rankings, scores, availability, and update metadata.
/v1/countries/{slug}Retrieve a country profile, indicators, sources, and history.
/v1/indicatorsList indicator definitions, units, and source categories.
/v1/summaryRetrieve global and regional aggregate statistics.
/v1/tickerRetrieve the compact ticker sequence and stable change fields.
Access model
Response example
{
"code": "CH",
"name": "Switzerland",
"slug": "switzerland",
"rank": 1,
"score": 84.7,
"scoreChange": 0.4,
"dataAvailability": "complete",
"measurementDate": "2026-05-26",
"verificationStatus": "api-normalized"
}Error example
{
"error": {
"code": "validation_failed",
"message": "Country score must be a number between 0 and 100.",
"requestId": "req_..."
}
}Data model
Indicator catalog currently contains 9 proposed indicator definitions. Production API responses should keep missing values as null rather than fabricating fallback measurements.