The Easiest Way to Integrate Travel Risk Data Into Your Product

One GET request returns the current U.S. State Department advisory level for any country, as JSON. No scraping. No parsing government web pages.

Three ways to get travel risk data

  1. 1. Collect it from the sources yourself

    The data is public. The State Department publishes each advisory as a web page, the CDC publishes health notices, and the World Bank publishes governance scores. You write a parser for each one and keep all three working. When we built ours, travel.state.gov answered automated requests with a 403.

  2. 2. Buy an enterprise risk platform

    These are built for corporate security teams, with analysts and live alerting. A good fit if you run a travel security program. Too much if you need a level and a label next to a country name.

  3. 3. Call an API that has already done the parsing

    The rest of this page. Five steps, and the first four take about ten minutes.

Step 1. Get a key

Pick a plan on the pricing page. The smallest is $19 a month for 1,200 calls. Your key starts with ta_live_ and shows on screen as soon as checkout finishes.

Step 2. Make the request

Send the key as a Bearer token and the country as a two-letter ISO code.

curl
curl -H "Authorization: Bearer ta_live_..." \
  "https://api.traveladvisory.io/v1/advisory?code=JP"
JavaScript
// Run this on your server. Never ship the key to the browser.
const res = await fetch(
  "https://api.traveladvisory.io/v1/advisory?code=JP",
  { headers: { Authorization: "Bearer " + process.env.TRAVEL_ADVISORY_KEY } }
);
const { advisory } = await res.json();

console.log(advisory.level); // 1
console.log(advisory.label); // "Exercise Normal Precautions"

Step 3. Read the response

This is the real response for Japan, with the longer arrays shortened.

200 OK
{
  "country": { "code": "JP", "name": "Japan", "slug": "japan", "flag": "🇯🇵" },
  "advisory": {
    "level": 1,
    "label": "Exercise Normal Precautions",
    "reasons": [],
    "summary_points": [
      "U.S. citizens should always exercise caution when traveling abroad.",
      "Use general tips to stay safe."
    ],
    "headline": "Japan - Level 1: Exercise Normal Precautions",
    "state_dept_url": "https://travel.state.gov/...",
    "updated_at": "2025-05-14T20:00:00-04:00"
  },
  "areas": [],
  "do_not_travel": [],
  "trend": { "direction": "stable", "since": null, "signals": ["No active notices"] },
  "restrictions": {
    "movement_restrictions": false,
    "curfew": false,
    "escort_required": false,
    "details": []
  },
  "conditions": { "state_of_emergency": false },
  "entry_exit": {
    "visa_required": false,
    "currency": "Japanese Yen (JPY)",
    "language": "Japanese",
    "notable_restrictions": []
  }
}
advisory.level1 to 4. The number most products need.
advisory.labelThe State Department's wording for that level.
advisory.updated_atWhen the State Department last issued the advisory.
areasStates, provinces and border areas that carry their own level. A Level 2 country can have Level 4 regions.
do_not_travelNames of the areas rated Do Not Travel.
restrictionsCurfews, movement limits and escort requirements.
entry_exitVisa requirement, currency and language.

Step 4. Show it to your users

There are only four levels, so the display logic is a lookup table. The right-hand column is our suggestion. Your product decides.

LevelLabelWhat to do with it
1Exercise Normal PrecautionsShow nothing, or a green badge.
2Exercise Increased CautionA yellow badge with a link to the detail.
3Reconsider TravelWarn before the user books or confirms.
4Do Not TravelBlock, or require an explicit confirmation.

Check areas too. A traveler headed to a Level 4 region of a Level 2 country should see the Level 4 warning.

Step 5. Keep it current

Advisories change with no schedule. A country can move two levels overnight. Cache each country for a few hours, then ask the changes feed once a day which ones moved.

curl
curl -H "Authorization: Bearer ta_live_..." \
  "https://api.traveladvisory.io/v1/changes?since=2026-11-01"

One poll a day is about 30 calls a month. The rest of your calls go to the countries your users look at.

What else is in the API

Thirteen endpoints share the same key. Beyond the advisory itself you get World Bank governance scores, crime, terrorism and kidnapping severity, CDC vaccination and health notices, and a side-by-side comparison of up to four countries. The docs list every endpoint, and the Country Risk API page shows how to turn them into a single score.

What it doesn't do

  • It gives the U.S. government's view. Other governments rate some countries differently.
  • It is not a live incident feed. You get advisory data refreshed several times a day, not minute-by-minute alerts.
  • It has no Freedom House data. Their license doesn't cover resale, so the API leaves it out.

Ready to make the first request?

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

Travel Risk Data: Common Questions

▶Is there a free travel advisory API?
The underlying data is public, so you can collect it yourself for free. We don't offer a free plan. Paid plans start at $19 a month for 1,200 calls.
▶How current is the data?
Our pipeline checks the State Department several times a day. Each advisory response carries updated_at, the date the State Department last issued it, so you can show your users how fresh it is.
▶Which countries are covered?
Every country and territory the U.S. State Department publishes an advisory for. Request one by its two-letter ISO code, or list them all with /v1/countries.
▶Can I call the API from the browser?
Call it from your server. A key in client-side code can be read by anyone who opens the page, and they can spend your monthly calls.
▶What happens when I run out of calls?
The API returns 429 Too Many Requests until your month resets. There are no overage charges. Every response includes X-RateLimit-Remaining so you can see it coming.