Screen a site
Power, flood, wetlands, habitat, hazards and the parcel for one coordinate, in one request, with a source behind every answer.
A first-pass site screen asks the same questions every time: is there power nearby, is the land buildable, and who owns it. This workflow answers them with one call to POST /v1/fetch.
1. Pick the fields
Choose up to 50 names from the Field catalog. A typical screen:
| Question | Fields |
|---|---|
| Power | nearest_substation_distance_m, nearest_substation_max_voltage_kv, nearest_transmission_line_distance_m, nearest_transmission_line_voltage_kv, electric_utility_service_territory |
| Water and flood | within_floodplain_polygon, intersects_wetland, nearest_wetland_distance_m |
| Constraints | intersects_critical_habitat, intersects_protected_area, intersects_conservation_easement |
| Hazards | seismic_design_category, in_air_quality_nonattainment, nearest_superfund_distance_m |
| Land | elevation, slope_degrees, parcel_owner, parcel_zoning, parcel_area_m2 |
2. Send one request
curl -s https://api.invariant-ai.com/v1/fetch \
-H "X-API-Key: $INVARIANT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"lat": 39.0438,
"lng": -77.4874,
"fields": [
"nearest_substation_distance_m",
"nearest_substation_max_voltage_kv",
"nearest_transmission_line_distance_m",
"nearest_transmission_line_voltage_kv",
"electric_utility_service_territory",
"within_floodplain_polygon",
"intersects_wetland",
"intersects_critical_habitat",
"seismic_design_category",
"in_air_quality_nonattainment",
"elevation",
"slope_degrees",
"parcel_owner",
"parcel_zoning"
]
}'
Allow 30 seconds or more on the client. The first read of a point goes live to each agency; repeat reads come from cache for each field's TTL.
3. Read the answers
Every field comes back as an object with the same keys. Read three of them before you use the value:
status:okmeans a value,absentmeans the source authoritatively has nothing here (no wetland is a real answer),failedmeans we could not find out.source_url: open it to check the value against the agency record.confidenceanddataset_vintage: how precise the value is and which release it came from.
Fields that failed also appear in partial_failures with retryable. Retry those later; the rest of the response is still good. See Responses and provenance.
4. Add the parcel record
Parcel fields in /v1/fetch come from the parcel layer. For fields read straight off the county's parcel record, such as county acreage, call POST /v1/enrich with the same coordinate.
Next
- Field catalog: every field, grouped by layer.
- Limits and caching: request sizes, rate limits and cache life.
- Use with AI agents: give an agent this workflow as a tool.