Get an API key
Workflows

Check a FEMA flood zone by address

Check FEMA’s mapped flood zone at a U.S. street address and calculate the share of its tax parcel inside the Special Flood Hazard Area.

To check a FEMA flood zone by street address, confirm the address point with Geocode and request within_floodplain_polygon at that coordinate with Fetch. Read the boolean, the flood zone in the field notes and the source URL together. Use Enrich with the same coordinate to find the parcel and calculate its floodplain overlap.

The Special Flood Hazard Area (SFHA) is FEMA’s mapped area for the flood with a 1% annual chance of occurrence. A point, a parcel boundary and a building footprint cover different areas. A point outside the SFHA can sit on a parcel that overlaps it.

Run the address and parcel checks

Set INVARIANT_API_KEY to your API key. Save the example as check-flood-zone.py and run it with Python 3. It shows the matched address, then prints the point result and the parcel result with their source information. Parcel fields depend on the coverage and access available to your key.

import json
import os
import sys
from urllib.request import Request, urlopen


def post(path, payload, timeout):
    request = Request(
        "https://api.invariant-ai.com" + path,
        data=json.dumps(payload).encode("utf-8"),
        headers={
            "X-API-Key": os.environ["INVARIANT_API_KEY"],
            "Content-Type": "application/json",
        },
        method="POST",
    )
    with urlopen(request, timeout=timeout) as response:
        return json.load(response)


if len(sys.argv) != 2:
    raise SystemExit('Usage: python3 check-flood-zone.py "full street address"')

match = post("/v1/geocode", {"address": sys.argv[1]}, timeout=20)
print("Matched address:", match["normalized_address"])
print("Address source:", match["source"], f"({match['match_type']})")
if match["accuracy_type"] != "rooftop":
    raise SystemExit("Use a verified address coordinate before checking the flood zone.")
if input("Does this match the address you intended? [y/N] ").strip().lower() != "y":
    raise SystemExit("Check the address and rerun the lookup.")

coordinate = {"lat": match["lat"], "lng": match["lng"]}
point = post(
    "/v1/fetch",
    {**coordinate, "fields": ["within_floodplain_polygon", "fema_base_flood_elevation"]},
    timeout=60,
)
print(json.dumps({"address_match": match, "point": point}, indent=2))

parcel = post(
    "/v1/enrich",
    {**coordinate, "fields": ["fema_flood_zone", "parcel_flood_sfha_fraction"]},
    timeout=60,
)
print(json.dumps({"parcel": parcel}, indent=2))
python3 check-flood-zone.py "214 3rd Street, Brooklyn, NY 11215"

Read the map and field results

Result How to use it
fields.within_floodplain_polygon from Fetch For status: ok, true means the point lies in the mapped SFHA. false means the point lies in a mapped zone outside the SFHA. Keep the zone and panel in notes where returned.
fields.fema_base_flood_elevation from Fetch FEMA’s published static elevation in feet relative to NAVD88 when available. To estimate depth above a specific surface, establish the surface elevation in the same datum.
parcel_match and fields.fema_flood_zone from Enrich Confirm the matched parcel, then read the most severe mapped zone found on that parcel. The address and building may lie in a different zone.
fields.parcel_flood_sfha_fraction from Enrich The share of the parcel inside the SFHA. A returned value of 0.25 means 25% of the parcel. For building exposure, compare the building footprint with the effective flood polygons.

Fetch can return absent for unmapped coverage or failed for an unresolved source or geometry result. Enrich uses field_omissions for results it could not return, including an unavailable calculation. Preserve the missing value and its reason. Save the address source, parcel ID, field source_url, retrieval time and dataset vintage for each screening decision. See responses and provenance.

A Brooklyn address with three different answers

At 214 3rd Street, Brooklyn, the published city address point falls in FEMA Zone X. Our November 23, 2026 intersection of FEMA and city records found Zone AE on 52.7% of the tax lot and 24.7% of the mapped building footprint. The case uses NYC tax lot 3009780016 and building 3397192. The percentages come from that dated overlay using city boundaries. If your API result uses a different parcel boundary or map vintage, compare those inputs before comparing percentages.

Read the source comparison or download the dated GeoJSON with the address, lot, building and flood zones.

For a formal map review, check the building against the effective Flood Insurance Rate Map and any applicable Letters of Map Change in the FEMA Flood Map Service Center. Review local mapping and field evidence when the decision needs to account for hazards beyond the effective FEMA map.

Next