# Screen a site

> Power, flood, wetlands, habitat, hazards and the parcel for one coordinate, in one request, with a source behind every answer.

Source: https://docs.invariant-ai.com/screen-a-site

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`](https://docs.invariant-ai.com/api/fetch).

## 1. Pick the fields

Choose up to 50 names from the [Field catalog](https://docs.invariant-ai.com/api/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

```bash
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`**: `ok` means a value, `absent` means the source authoritatively has nothing here (no wetland is a real answer), `failed` means we could not find out.
- **`source_url`**: open it to check the value against the agency record.
- **`confidence`** and **`dataset_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](https://docs.invariant-ai.com/responses).

## 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`](https://docs.invariant-ai.com/api/enrich) with the same coordinate.

## Next

- [Field catalog](https://docs.invariant-ai.com/api/field-catalog): every field, grouped by layer.
- [Limits and caching](https://docs.invariant-ai.com/limits): request sizes, rate limits and cache life.
- [Use with AI agents](https://docs.invariant-ai.com/agents): give an agent this workflow as a tool.
