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. 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. 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. 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 -H "Authorization: Bearer ta_live_..." \ "https://api.traveladvisory.io/v1/advisory?code=JP"
// 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.
{
"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.level | 1 to 4. The number most products need. |
| advisory.label | The State Department's wording for that level. |
| advisory.updated_at | When the State Department last issued the advisory. |
| areas | States, provinces and border areas that carry their own level. A Level 2 country can have Level 4 regions. |
| do_not_travel | Names of the areas rated Do Not Travel. |
| restrictions | Curfews, movement limits and escort requirements. |
| entry_exit | Visa 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.
| Level | Label | What to do with it |
|---|---|---|
| 1 | Exercise Normal Precautions | Show nothing, or a green badge. |
| 2 | Exercise Increased Caution | A yellow badge with a link to the detail. |
| 3 | Reconsider Travel | Warn before the user books or confirms. |
| 4 | Do Not Travel | Block, 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 -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.