E
EnvRisk

Environmental Hazards API v3

REST API aggregating 8 free US government data sources for environmental risk assessment. All endpoints return JSON.

Base URL

https://environmental-hazards-api-425658670453.europe-west1.run.app

Authentication

Pass one of these headers with authenticated requests:

X-API-Key: your-api-keyX-RapidAPI-Proxy-Secret: your-rapidapi-key

Endpoints

MethodEndpointDescriptionAuth
GET/API info and available endpointsNone
GET/healthHealth check, NRI status, versionNone
GET/sourcesList all 8 data sourcesRequired
GET/hazards?lat=X&lon=XComplete hazard report (all 8 sources)Required
GET/score?lat=X&lon=XWeighted 0-100 composite risk scoreRequired
GET/flood?lat=X&lon=XFlood risk score + water gaugesRequired
GET/earthquake?lat=X&lon=XRecent earthquakes from USGSRequired
GET/air-quality?lat=X&lon=XAir quality facilities + AQIRequired
GET/hazardous-waste?lat=X&lon=XRCRA hazardous waste facilitiesRequired
GET/water-discharge?lat=X&lon=XClean Water Act discharge pointsRequired
GET/weather-alerts?lat=X&lon=XActive NWS weather alertsRequired
GET/water-gauges?lat=X&lon=XUSGS river/stream gauge dataRequired

Example Response (GET /hazards?lat=34.05&lon=-118.24)

{
  "overall_score": 44.0,
  "flood_risk": 100.0,
  "seismic_risk": 100.0,
  "wildfire_risk": 99.94,
  "hurricane_risk": 0.0,
  "air_quality_index": 22,
  "air_quality_category": "Good",
  "active_weather_alerts": 0,
  "hazardous_facilities_nearby": 40,
  "water_gauges_nearby": 5,
  "recent_earthquakes": [...],
  "weather_alerts": [],
  "hazardous_facilities": [...],
  "water_gauges": [...]
}