Build travel risk intelligence into your product. RESTful API with real-time data for 195 countries.
Get started in 30 seconds. No signup required for testing.
curl -H "Authorization: Bearer YOUR_API_KEY" \
https://riskvector.app/api/risk/DEAll API requests require a Bearer token in the Authorization header.
Authorization: Bearer YOUR_API_KEYGet your API key from the Dashboard. Free tier includes 100 requests/day.
/api/risk/{country}Get country risk profile with 6-dimension scores
Parameters: country (ISO 3166-1 alpha-2 code, e.g., DE, US, JP)
{
"country": { "code": "DE", "name": "Germany", "flag": "🇩🇪" },
"riskScore": {
"overall": 72, "level": "low",
"dimensions": [
{ "name": "Political Stability", "score": 85 },
{ "name": "Crime", "score": 78 },
...
]
},
"emergencyNumbers": { "police": "110", "ambulance": "112" }
}/api/alertsGet real-time global alerts (earthquakes, volcanoes, conflicts)
Parameters: None (returns all active alerts)
{
"alerts": [
{
"id": "eq-123",
"severity": "high",
"title": "M6.2 Earthquake - Turkey",
"country": "Turkey",
"source": "USGS"
}
],
"count": 50,
"sources": ["USGS", "GDACS", "NOAA"]
}/api/news/{country}Get country-specific news and events
Parameters: country (ISO code)
{
"articles": [
{ "title": "...", "source": "...", "date": "..." }
]
}/api/stripe/checkoutCreate a Stripe checkout session for subscription
Parameters: tier: "pro" | "enterprise"
{
"url": "https://checkout.stripe.com/..."
}Rate limit info is included in response headers: X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset
npm install @riskvector/sdkpip install riskvectorNo install needed