Check the Setup
- Python 3.10 or newer
- An internet connection
- The requests Python package
FEMA tract and county natural-hazard risk and annualized-loss layers for comparing residential hazard context and screening locations with consistent geographic units.
Report a ProblemFrom Source to Product Signal
FEMA publishes separate tract and county National Risk Index layers. Start with five tract records from the official ArcGIS service and keep the NRI version. The composite building-loss rate is modeled, not a prediction for an individual home.
Install the packages, then run the notebook cell.
python -m pip install requests
import requests
url = (
"https://services.arcgis.com/XG15cJAlne2vxtgt/arcgis/rest/services/"
"National_Risk_Index_Census_Tracts/FeatureServer/0/query"
)
response = requests.get(
url,
params={
"where": "1=1",
"outFields": "TRACTFIPS,ALR_VALB,NRI_VER",
"returnGeometry": "false",
"resultRecordCount": 5,
"f": "json",
},
timeout=30,
)
response.raise_for_status()
result = response.json()
if "error" in result:
raise RuntimeError(result["error"])
for feature in result["features"]:
print(feature["attributes"])Test a Useful Signal
Test whether a bounded tract sample supports a location-screening prototype.
Federal Emergency Management Agency is a government source. Last verified 2026-09-28. Temporal coverage: periodically revised FEMA risk-model releases.