---
title: "POST /api/rpc/queryCountryRisk"
method: POST
path: "/api/rpc/queryCountryRisk"
tags: ["insurance"]
---

# POST /api/rpc/queryCountryRisk

`POST /api/rpc/queryCountryRisk`

## Request

- Base URL: `https://21risk.com`
- URL: `https://21risk.com/api/rpc/queryCountryRisk`
- Auth: OAuth 2 (client credentials, token URL `/api/v1/oauth/token`)

Read the 21RISK country risk score for every country, with the organization's sites and total insured value in each for an Insurance period, the way Insurance Analytics → Country risk shows it. The score is 0–100, higher is riskier, and is the highest of four parts: political violence, war, expropriation and biological hazards. An AI model gives it from public data by a fixed rubric: governments' travel advice and health notices (US, UK, German, CDC), World Bank governance scores, UCDP conflict deaths and GDELT news-coded unrest. A country is scored again when those facts change. By default it returns each country's score, parts, band, the score before it last changed, and its sites and insured value; add sites for every site's position and value, and, with countryCode, justifications, advice and history for why a country scores what it does. The scores are an indication from public sources, not underwriting advice; show the sources' attribution with them.

## Request body

- object
  - `tenant` unknown, required
  - `period` string, required: Name of the Insurance period whose sites and insured values to show, for example "2027". The scores are always the latest.
  - `countryCode` string: Only this country, as an ISO 3166 alpha-2 code such as CO.
  - `include` string[]: What to add to each country's score, insured value and site count, which are always returned: sites lists the sites with their insured value and position; justifications each part's reasoning and the facts it cites; advice each government's advice in force, in our words with a link; history every score the country has had. justifications, advice and history need countryCode. Leave it out for the smallest answer.

## Response `200`

Successful response

- object
  - `period` object, required
    - `name` string, required
  - `baseCurrency` 'AED' | 'AFN' | 'ALL' | 'AMD' | 'ANG' | 'AOA' | 'ARS' | 'AUD' | 'AWG' | 'AZN' | 'BAM' | 'BBD' | 'BDT' | 'BGN' | 'BHD' | 'BIF' | 'BND' | 'BOB' | 'BRL' | 'BSD' | 'BWP' | 'BYN' | 'BZD' | 'CAD' | 'CDF' | 'CHF' | 'CLP' | 'CNY' | 'COP' | 'CRC' | 'CVE' | 'CZK' | 'DJF' | 'DKK' | 'DOP' | 'DZD' | 'EGP' | 'ERN' | 'ETB' | 'EUR' | 'FJD' | 'GBP' | 'GEL' | 'GHS' | 'GIP' | 'GMD' | 'GNF' | 'GTQ' | 'GYD' | 'HKD' | 'HNL' | 'HRK' | 'HTG' | 'HUF' | 'IDR' | 'ILS' | 'INR' | 'IQD' | 'IRR' | 'ISK' | 'JMD' | 'JOD' | 'JPY' | 'KES' | 'KGS' | 'KHR' | 'KMF' | 'KRW' | 'KWD' | 'KZT' | 'LAK' | 'LBP' | 'LKR' | 'LRD' | 'LSL' | 'LYD' | 'MAD' | 'MDL' | 'MGA' | 'MKD' | 'MMK' | 'MNT' | 'MOP' | 'MRU' | 'MUR' | 'MVR' | 'MWK' | 'MXN' | 'MYR' | 'MZN' | 'NAD' | 'NGN' | 'NIO' | 'NOK' | 'NPR' | 'NZD' | 'OMR' | 'PAB' | 'PEN' | 'PGK' | 'PHP' | 'PKR' | 'PLN' | 'PYG' | 'QAR' | 'RON' | 'RSD' | 'RUB' | 'RWF' | 'SAR' | 'SBD' | 'SCR' | 'SDG' | 'SEK' | 'SGD' | 'SLL' | 'SOS' | 'SRD' | 'SSP' | 'STN' | 'SVC' | 'SYP' | 'SZL' | 'THB' | 'TJS' | 'TMT' | 'TND' | 'TOP' | 'TRY' | 'TTD' | 'TWD' | 'TZS' | 'UAH' | 'UGX' | 'USD' | 'UYU' | 'UZS' | 'VES' | 'VND' | 'VUV' | 'WST' | 'XAF' | 'XAU' | 'XCD' | 'XDR' | 'XOF' | 'XPF' | 'YER' | 'ZAR' | 'ZMW' | 'ZWL', required: The currency of every tiv.
  - `countries` object[], required: Every scored country and every country with sites, highest score first. With countryCode, only that country.
    - `countryCode` string, required
    - `countryName` string, required
    - `countryEmoji` string, required
    - `sites` integer, required: The organization’s sites in the country.
    - `tiv` number, required: Their total insured value this period, in base currency.
    - `score` integer, nullable, required: The 21RISK country risk score, 0–100; null when not scored yet.
    - `band` 'veryLow' | 'low' | 'moderate' | 'high' | 'veryHigh', nullable, required: The score's band; a country takes the band of its riskiest part. veryLow, from 0: No part shows more than normal risk: governments advise normal precautions, governance is strong, and there are no conflict deaths or outbreaks. low, from 15: Some risk on at least one part, such as a government advising increased caution over unrest or terrorism, a few conflict deaths, somewhat weaker governance, or a health notice listing many countries. moderate, from 35: Raised risk, such as advice against travel to some areas, 25 to 999 conflict deaths in a year, middling governance, or an outbreak in the country. high, from 55: Serious risk, such as a government advising to reconsider travel to the country, 1,000 or more conflict deaths in a year, or weak governance. veryHigh, from 75: Severe risk, such as a government advising against all travel to the country, or very weak governance.
    - `parts` object, nullable, required: The four parts of the score, each 0–100; the score is the highest of them.
      - `politicalViolence` integer, required: Riots, strikes, civil commotion, terrorism and sabotage.
      - `war` integer, required: War, civil war, insurrection and armed conflict.
      - `expropriation` integer, required: Confiscation, nationalisation and other government action against property.
      - `biological` integer, required: Epidemics and other biological hazards.
    - `scoredAt` string, date-time, nullable, required: When the latest score was given.
    - `previous` object, nullable, required: The score before it last changed; null when it never has. A country is scored again only when its facts change.
      - `score` integer, required
      - `changedAt` string, date-time, required: When the score changed from it.
    - `history` object[]: Every score, oldest first; only when include has history.
      - `score` integer, required
      - `parts` object, required: The four parts of the score, each 0–100; the score is the highest of them.
        - `politicalViolence` integer, required: Riots, strikes, civil commotion, terrorism and sabotage.
        - `war` integer, required: War, civil war, insurrection and armed conflict.
        - `expropriation` integer, required: Confiscation, nationalisation and other government action against property.
        - `biological` integer, required: Epidemics and other biological hazards.
      - `scoredAt` string, date-time, required
    - `justifications` object: Why each part scores what it does; only when include has justifications.
      - `politicalViolence` object, required
        - `justification` string, required: Why the part scores what it does, in the model’s words, citing facts by ref.
        - `facts` object[], required: The facts the justification cites, each with its ref. Advice is named by publisher and level; its summary is under advice, with the same ref.
          - `ref` string, required
          - `text` string, required
      - `war` object, required
        - `justification` string, required: Why the part scores what it does, in the model’s words, citing facts by ref.
        - `facts` object[], required: The facts the justification cites, each with its ref. Advice is named by publisher and level; its summary is under advice, with the same ref.
          - `ref` string, required
          - `text` string, required
      - `expropriation` object, required
        - `justification` string, required: Why the part scores what it does, in the model’s words, citing facts by ref.
        - `facts` object[], required: The facts the justification cites, each with its ref. Advice is named by publisher and level; its summary is under advice, with the same ref.
          - `ref` string, required
          - `text` string, required
      - `biological` object, required
        - `justification` string, required: Why the part scores what it does, in the model’s words, citing facts by ref.
        - `facts` object[], required: The facts the justification cites, each with its ref. Advice is named by publisher and level; its summary is under advice, with the same ref.
          - `ref` string, required
          - `text` string, required
    - `advice` object[]: The travel advice and health notices in force that the score was given from; only when include has advice.
      - `ref` string, required: How the justifications cite it, such as A1.
      - `publisher` string, required
      - `updatedOn` string, nullable, required: When the publisher last changed it, YYYY-MM-DD.
      - `level` integer, required: For the whole country, on one scale for every government: 1 normal precautions, 2 increased caution, 3 reconsider or avoid non-essential travel, 4 avoid all travel.
      - `partsLevel` integer, nullable, required: The higher level for some areas, when there is one.
      - `parts` string[], required: The areas at partsLevel.
      - `reasons` string[], required
      - `topic` string, nullable, required: The disease, for a health notice.
      - `summary` string, required: What it advises and why, in our words, never the publisher’s.
      - `url` string, nullable, required: The publisher’s page.
  - `sites` object[]: The sites with their insured value and position; only when include has sites.
    - `_id` string, required
    - `name` string, required
    - `countryCode` string, nullable, required
    - `tiv` number, required
    - `latitude` number, nullable, required
    - `longitude` number, nullable, required
  - `sources` object[], required: The public sources the scores are given from. Show their attribution wherever the scores are shown.
    - `name` string, required
    - `url` string, required
    - `attribution` string, required

---

[API](https://skmtc.dev/21risk/apis/21risk-api.md) · [All operations](https://skmtc.dev/21risk/apis/21risk-api/llms.txt) · [OpenAPI document](https://skmtc.dev/21risk/apis/21risk-api/revisions/273a727dfd49?raw)
