RiskVector API
Build travel risk intelligence into your product. RESTful API with real-time data for 195 countries.
Quick Start
Get started in 30 seconds. No signup required for testing.
curl -H "Authorization: Bearer YOUR_API_KEY" \
https://riskvector.app/api/risk/DEAuthentication
All 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.
Endpoints
/api/risk/{country}Get country risk profile with 6-dimension scores
Parameters: country (ISO 3166-1 alpha-2 code, e.g., DE, US, JP)
Response Example
{
"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)
Response Example
{
"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)
Response Example
{
"articles": [
{ "title": "...", "source": "...", "date": "..." }
]
}/api/stripe/checkoutCreate Stripe Checkout Session for subscription upgrade
Parameters: { tier: "pro" | "business", email?: string }
Response Example
{
"url": "https://checkout.stripe.com/..."
}Rate Limits
Rate limit info is included in response headers: X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset
API Access
- ✓All endpoints
- ✓Real-time alerts
- ✓Historical data
- ✓Webhooks
SDKs & Libraries
JavaScript
npm install @riskvector/sdkPython
pip install riskvectorcURL
No install needed