Country Risk API

Travel and security risk for every country, as JSON. Advisory level, regional warnings, political stability, crime and terrorism severity, and health risks. From $19 a month.

What “country risk” means here

Risk to people who travel to a country or work in it. Not sovereign credit risk. Not sanctions screening. If you need to know whether it is safe to send someone to Colombia next month, this is the right API. If you need Colombia's bond rating, it isn't.

What risk data you get

RiskEndpointSourceReturns
Overall risk level/v1/advisoryU.S. State DepartmentLevel 1 to 4, the label, and the reasons given
Regional risk/v1/advisoryU.S. State DepartmentStates, provinces and border areas with their own level
Governance and stability/v1/political-stabilityWorld BankSix scores from 0 to 100, including rule of law and corruption control
Crime, terrorism, kidnapping/v1/traveler-impactRated from the State Department advisorySeverity from 0 to 10 for each, plus consular support
Health/v1/vaccinationsCDCRequired and recommended vaccines, malaria, health notices
What changed/v1/changesU.S. State DepartmentCountries whose level moved in a date range

Two more endpoints help with bulk work. /v1/countries-by-level lists every country at one level, and /v1/compare returns two to four countries in one response.

One country, two calls

These are the real responses for Colombia. The longer text fields are left out.

Governance scores
GET /v1/political-stability?code=CO

{
  "country": { "code": "CO", "name": "Colombia", "flag": "🇨🇴" },
  "rule_of_law": 48.2793409,
  "control_of_corruption": 41.8189955,
  "political_stability": 48.9109961,
  "government_effectiveness": 50.4306866,
  "voice_accountability": 58.5038192,
  "regulatory_quality": 52.0988682,
  "year": "2025"
}
Severity ratings
GET /v1/traveler-impact?code=CO

{
  "country": { "code": "CO", "name": "Colombia", "slug": "colombia" },
  "advisory_level": 3,
  "traveler_impact": {
    "solo": "high",
    "business": "moderate",
    "family": "high",
    "remote": "moderate"
  },
  "consular_support": {
    "availability": "normal",
    "evacuation": "available",
    "limited_services": false
  },
  "severity": {
    "terrorism": 5,
    "kidnapping": 3,
    "crime": 8,
    "overall": 7.5
  }
}

Build your own risk score

The API returns the inputs and leaves the weighting to you. An insurer, a tour operator and an HR team care about different things. This function is a reasonable start. It uses the same scaling as the rankings on this site.

JavaScript
// A 0 to 100 country risk score. Higher is safer.
// Colombia, from the responses above:
// 0.5 * 33.3 + 0.25 * 48.9 + 0.25 * 25 = 35.1
function countryScore(level, politicalStability, overallSeverity) {
  // Level 1 = 100, Level 4 = 0
  const advisory = ((4 - level) / 3) * 100;
  // Severity runs 0 to 10. Flip it so higher is safer.
  const severity = ((10 - overallSeverity) / 10) * 100;
  return 0.5 * advisory + 0.25 * politicalStability + 0.25 * severity;
}

Want to see scores like this for every country first? The safest countries ranking and the most dangerous countries ranking are built from this data.

Pricing

PlanPriceCalls per month
Starter$19 a month1,200
Standard$29 a month2,400
Pro$59 a month5,000

Every plan includes all thirteen endpoints and 60 requests a minute. Need more calls? Email api@traveladvisory.io.

Limits you should know about

  • The advisory level is the U.S. government's view. Other governments rate some countries differently.
  • World Bank scores are annual. They describe a country's institutions, not last week's events.
  • No Freedom House data. Their license doesn't cover resale, so the API leaves it out.

How to start

The integration guide walks through the first request, the response, and how to keep the data current.

Get country risk data in your product

Plans start at $19 a month. Your key shows on screen right after checkout, with a copy sent by email.

Country Risk API: Common Questions

▶What does a country risk API return?
This one returns the U.S. State Department advisory level for a country, the regions inside it that carry a higher level, World Bank governance scores, severity ratings for crime, terrorism and kidnapping, and CDC health notices. Each is a separate JSON endpoint under one key.
▶Does it cover financial or credit risk?
No. It covers travel and security risk, meaning the risk to people who visit or work in a country. It has no sovereign credit ratings, sanctions lists or currency risk.
▶Is there one overall risk score per country?
The advisory level, 1 to 4, is the single number most products use. The API also returns the inputs for a finer score, and this page shows a short function that combines them. You choose the weights.
▶How often does the data change?
Advisory levels are checked several times a day and change whenever the State Department issues an update. World Bank governance scores are published once a year. The response includes the year they cover.
▶How much does it cost?
Plans start at $19 a month. There is no free plan and no per-seat pricing. You pay for a number of calls each month.