Locations, hotels and lodging limits
Base URL https://api.travelriskapi.com/api/v1. Send your key in the X-API-Key header. All responses are JSON.
Country scores answer "is Belgium risky?". The endpoints on this page answer the questions a traveller and a travel manager ask about a stay: how safe is this street, this hotel, and is this nightly rate within policy?
| Endpoint | Question |
|---|---|
GET /areas/risk |
How risky is this exact location right now? |
POST /hotels/risk |
How safe is this hotel for these dates? |
GET /hotels/search |
Which hotel is this? (name → coordinates) |
GET /hotels/benchmark |
Is this nightly rate within the official lodging limits? |
Every score is on the same 0–5 scale as /risk-score, comes with a risk_level
(Low < 1.5 ≤ Moderate < 2.5 ≤ Elevated < 3.5 ≤ High < 4.5 ≤ Extreme), and lists every component in
factors, so you can show the traveller why.
Area risk
GET /areas/risk
| Parameter | Description |
|---|---|
lat, lon |
The location (required) |
radius_km |
Radius for point alerts, 0.2–25, default 2. Natural hazards are always checked within 100 km |
start, end |
ISO 8601. Only alerts in effect during this window (for example a stay) |
How the score is built:
- Country risk at the point (the country is found from the coordinates): the same number
/risk-scorereturns. When the US advisory sets a different level for the state, province or city the point is in ("Do Not Travel to Borno state", "Valle del Cauca, excluding Cali"), that level replaces the country-wide one. The area is shown inregional_advisory. Cities the advisory excludes keep the country level. - Active alerts at the location: alerts whose warning area covers the point, alerts within
radius_km, and natural hazards within 100 km. Weighted by severity, up to +1.0. Flight-disruption and strike alerts are listed so you can warn the traveller, but they do not raise a safety score. - Serious incidents nearby: +0.25 for each report of mass violence within 10 km in the last 7 days (max +0.5).
Other news-reported incidents are counted in
incidents_reportedfor context only. They are geocoded to town centres and follow media attention, so they are not a crime rate. - Street-level crime where police publish it (see coverage): the location is ranked against the rest of the same city or police force area. Serious violent crime ≥ 95th percentile +0.5, ≥ 85th +0.25; a quiet area (serious ≤ 25th and all violent ≤ 40th) −0.25; theft ≥ 95th +0.1.
- Hospital access: +0.25 when the nearest hospital is more than 10 km away, +0.5 beyond 30 km.
The response also gives the nearest hospital and police station and the number of embassies and consulates within 10 km.
curl -H "X-API-Key: $KEY" "https://api.travelriskapi.com/api/v1/areas/risk?lat=37.784&lon=-122.414&radius_km=1"
{
"location": {"lat": 37.784, "lon": -122.414, "radius_km": 1, "country_iso": "USA"},
"country": {"iso_code": "USA", "name": "United States", "advisory_level": 1, "risk_score": 1.39},
"risk_score": 2.38,
"risk_level": "Moderate",
"factors": [
{"factor": "country", "impact": 1.39, "detail": "United States: advisory level 1, country risk 1.39"},
{"factor": "alerts_nearby", "impact": 0.39, "detail": "2 active alert(s) covering or near the location"},
{"factor": "street_crime", "impact": 0.6,
"detail": "Serious violent crime in the 99th percentile, all violent crime 99th, theft/property 99th percentile for San Francisco"}
],
"alerts": {
"count": 2,
"items": [
{"id": 81903, "type": "flood", "severity": "High", "location": "Solano, CA", "distance_km": 47.6,
"covers_point": false, "starts_at": null, "ends_at": null,
"summary": "* WHAT...Coastal Flooding from abnormally high tides. ..."}
]
},
"incidents_reported": {"days": 7, "within_km": 10, "critical": 0, "high": 20,
"note": "News-reported incidents, geocoded to the town centre; context, not a crime rate."},
"street_crime": {
"area": "San Francisco",
"compared_with": "city",
"period_end": "2026-11",
"months": 12,
"serious_violent": {"per_year": 809, "percentile": 99.8,
"includes": "homicide, shootings, aggravated assault, robbery, rape, kidnapping, weapons (UK: robbery and weapons)"},
"violent": {"per_year": 2745, "percentile": 99.8},
"property": {"per_year": 4970, "percentile": 99.6},
"all": {"per_year": 23146, "percentile": 99.8},
"radius_note": "Crimes recorded within roughly 800 m (a 1.6 km square around the point), per year."
},
"help_nearby": {
"hospital": {"name": "Stanford Childrens Health", "lat": 37.7857, "lon": -122.4206, "distance_km": 0.61},
"police": {"name": "SFPD Tenderloin Station", "lat": 37.7838, "lon": -122.4129, "distance_km": 0.09},
"diplomatic_missions_within_10km": 60
},
"method": "area v1: ..."
}
Street crime coverage
| Country | Coverage | Compared with |
|---|---|---|
| United Kingdom | England, Wales and Northern Ireland, every police force except Greater Manchester (which has published no street-level data since 2019) | the police force area (central London is compared with the rest of London) |
| United States | New York City, Chicago, San Francisco, Seattle, Los Angeles, Philadelphia, Boston, Washington DC | the city |
| Canada | Toronto (major crime indicators: assault, robbery, break-ins, vehicle theft, theft over $5,000) | the city |
Data covers the last 12 months of police-recorded crime and is refreshed monthly. Outside these areas
street_crime is null and the score is built from the other components.
Read percentiles as exposure, not as a per-resident crime rate. Counts follow people: a busy shopping street ranks high on theft because that is where visitors are. That is why serious violence drives the score and theft only nudges it.
Hotel risk
POST /hotels/risk
Area risk within 1 km of the property, adjusted for what is known about the hotel.
| Field | Description |
|---|---|
lat, lon |
Hotel coordinates. Or send name with city and/or country and we find the hotel |
name, city, country |
Country as ISO alpha-3, alpha-2 or name |
stars |
0–7 |
brand |
Chain brand, when you know it (found automatically when we match the hotel) |
amenities |
Any of 24h_front_desk, security, in_room_safe |
check_in, check_out |
ISO 8601. Alerts outside the stay are ignored |
Property adjustment: chain brand −0.1, 4+ stars −0.1, 24-hour front desk −0.05, on-site security −0.05. These are small on purpose. A hotel's location matters far more than its amenities.
curl -X POST -H "X-API-Key: $KEY" -H "Content-Type: application/json" \
https://api.travelriskapi.com/api/v1/hotels/risk \
-d '{"name": "Hotel Amigo", "city": "Brussels", "stars": 5, "amenities": ["24h_front_desk"],
"check_in": "2026-12-01T15:00:00Z", "check_out": "2026-12-03T11:00:00Z"}'
{
"hotel": {"name": "Hotel Amigo, a Rocco Forte Hotel", "lat": 50.8461, "lon": 4.3515, "matched": true,
"city": "Brussels", "other_matches": [], "brand": "The Leading Hotels of the World"},
"risk_score": 2.0,
"risk_level": "Moderate",
"property_adjustment": -0.25,
"property_notes": ["Chain property (The Leading Hotels of the World): brand safety standards apply",
"5-star property", "24-hour front desk"],
"stay": {"check_in": "2026-12-01T15:00:00", "check_out": "2026-12-03T11:00:00"},
"area": {"risk_score": 2.25, "risk_level": "Moderate", "factors": ["..."], "...": "same shape as /areas/risk"},
"method": "hotel v1: ..."
}
A hotel that cannot be found returns 404 with a hint to send coordinates.
GET /hotels/search
Find a hotel by name. About one million hotels worldwide.
| Parameter | Description |
|---|---|
name |
Words of the hotel name (required) |
city, country |
Narrow the search |
lat, lon |
Search within 25 km of a point, nearest first |
{"data": [{"name": "Hotel Amigo, a Rocco Forte Hotel", "brand": "The Leading Hotels of the World",
"lat": 50.8461, "lon": 4.3515, "country_iso2": "BE", "city": "Brussels", "distance_km": null}]}
Lodging limits and rate benchmark
GET /hotels/benchmark
Official government lodging limits for a destination and, when you send a nightly rate, how far above or below each limit it is. Use it to flag out-of-policy bookings, or to set your own policy from a recognised reference.
| Parameter | Description |
|---|---|
country |
ISO alpha-3, alpha-2 or name (required) |
city |
City-level limit where the authority publishes one; otherwise the country-wide limit (match: "country") |
date |
Stay date, YYYY-MM-DD; limits change over time. Default today |
nightly_rate, currency |
Your rate. Limits are converted at the day's euro reference rates |
Authorities, by destination:
| Destination | Limits returned |
|---|---|
| Outside the US | US government (foreign per diem, monthly), UK HMRC benchmark room rate, German BMF overnight allowance |
| United States | US government (domestic, by city and season; territories), UK HMRC, German BMF |
verdict compares your rate with the US government limit, the most granular table. Every limit is in limits with
its own difference_pct.
curl -H "X-API-Key: $KEY" \
"https://api.travelriskapi.com/api/v1/hotels/benchmark?country=FR&city=Paris&date=2026-12-10&nightly_rate=260¤cy=EUR"
{
"country_iso": "FRA",
"city": "Paris",
"date": "2026-12-10",
"limits": [
{"authority": "US_STATE_DEPT", "label": "US government lodging limit (foreign)", "match": "city", "area": "Paris",
"lodging_limit": 511.0, "currency": "USD", "effective_from": "2025-08-01", "effective_to": null,
"lodging_limit_converted": 467.31, "difference_pct": -44.4, "within_limit": true},
{"authority": "HMRC", "label": "UK HMRC benchmark room rate", "match": "city", "area": "Paris, France",
"lodging_limit": 199.5, "currency": "EUR", "effective_from": "2020-03-26", "effective_to": null,
"lodging_limit_converted": 199.5, "difference_pct": 30.3, "within_limit": false},
{"authority": "DE_BMF", "label": "German tax-free overnight allowance", "match": "city",
"area": "Paris and Departments 77,78,91-95", "lodging_limit": 159.0, "currency": "EUR",
"effective_from": "2026-01-01", "effective_to": "2026-12-31",
"lodging_limit_converted": 159.0, "difference_pct": 63.5, "within_limit": false}
],
"nightly_rate": {"amount": 260, "currency": "EUR"},
"verdict": {"reference": "US_STATE_DEPT", "difference_pct": -44.4, "within_limit": true,
"message": "44.4% below the US government lodging limit (foreign) for Paris"},
"exchange_rates_date": "2026-11-25",
"note": "Official government lodging limits, not market prices. Limits are per night, room only, before taxes where the authority says so."
}
These are official limits, not market prices. The three authorities set very different levels for the same city (Paris: 467 € vs 200 € vs 159 €), so pick the one your travel policy follows.
Good to know
- Location endpoints count as one request each, like every other endpoint.
- Places (hospitals, police stations, embassies and consulates, hotels) are refreshed monthly. Occasionally a place's coordinates are off. If a match looks wrong, send the hotel's own coordinates.
- Strike and flight-disruption alerts appear in
alertswithtypestrikeoraviation_*. See Alerts. - Data credits: Terms, third-party data.