# POST /v1/enrich

> Fields read off the one parcel that contains a US coordinate.

Source: https://docs.invariant-ai.com/api/enrich

`POST https://api.invariant-ai.com/v1/enrich`

Enrich finds the one parcel that contains your coordinate and returns the fields you ask for, read from that parcel's record. The first field is `gisacre`, the county's acreage. More fields will be added under the same endpoint.

Enrich is open to every key and is not billed. Each parcel lookup is stored for 30 days, so asking for the same point again is fast.

```bash
curl --request POST \
  --url https://api.invariant-ai.com/v1/enrich \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "lat": 39.0438,
  "lng": -77.4874,
  "fields": ["gisacre"]
}'
```

```python
import requests

url = "https://api.invariant-ai.com/v1/enrich"
payload = {"lat": 39.0438, "lng": -77.4874, "fields": ["gisacre"]}
headers = {"X-API-Key": "<api-key>", "Content-Type": "application/json"}

print(requests.post(url, json=payload, headers=headers, timeout=30).json())
```

```javascript
fetch('https://api.invariant-ai.com/v1/enrich', {
  method: 'POST',
  headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
  body: JSON.stringify({lat: 39.0438, lng: -77.4874, fields: ['gisacre']})
}).then(r => r.json()).then(console.log);
```

Response 200:

```json
{
  "lat": 39.0438,
  "lng": -77.4874,
  "fetched_at": "2026-11-22T23:16:45.874776Z",
  "resolved_location": {
    "lat": 39.0438,
    "lng": -77.4874,
    "source": "coordinate"
  },
  "parcel_match": {
    "status": "matched",
    "reason": null,
    "parcel": {
      "parcel_id": "5518d7e4-f3b4-4447-a750-923d3cc2e4d5",
      "apn": "085165792000",
      "address": "20702 ASHBURN RD",
      "match_type": "exact_intersect",
      "match_distance_m": 0.0
    },
    "candidates": [],
    "source": "REGRID",
    "source_url": "https://app.regrid.com/api/v2/parcels/point",
    "dataset_vintage": "Regrid nationwide parcels (paid API)",
    "cached": false
  },
  "fields": {
    "gisacre": {
      "value": 0.37,
      "unit": "acres",
      "source": "REGRID",
      "source_url": "https://app.regrid.com/api/v2/parcels/point",
      "confidence": "medium",
      "fetched_at": "2026-11-22T23:16:45.272382Z",
      "dataset_vintage": "Regrid nationwide parcels (paid API)",
      "notes": "as supplied by the county in the parcel record (gisacre); not recomputed from the boundary"
    }
  },
  "field_omissions": {}
}
```

Response 400:

```json
{
  "detail": {
    "error": "fields_unknown",
    "message": "Unknown enrich fields: owner_name. See GET /v1/enrich/fields.",
    "unknown": ["owner_name"]
  }
}
```

## Request body

| Key | Type | Meaning |
| --- | --- | --- |
| `lat`, `lng` | number | WGS84 decimal degrees, inside the US envelope. Required. |
| `fields` | string[] | Enrich field names from [`GET /v1/enrich/fields`](https://docs.invariant-ai.com/api/enrich-fields). Optional. |
| `preset` | string[] | Named bundles: `parcel`, `zoning`, `buildings`, `valuation`, `legal`, `power`, `access`, `water`, `terrain`, `environment`, `climate`, `hazards`, `market`, `constraints`. Optional. |

Presets expand first, then `fields` are added, and duplicates are dropped. Send neither to get every enrich field. Other keys are rejected. A preset with no fields built yet makes no parcel lookup, and `parcel_match.status` comes back as `not_attempted`.

## Response

| Key | Meaning |
| --- | --- |
| `parcel_match.status` | `matched`: a parcel contains the point. `no_match`: no parcel contains it. `unavailable`: the parcel source was not asked or did not answer, which is not proof that there is no parcel. `not_attempted`: nothing selected is built yet. |
| `parcel_match.parcel` | The matched parcel: `parcel_id`, `apn`, `address`, `match_type`, `match_distance_m`. |
| `parcel_match.candidates` | A nearby parcel that does not contain the point. It is listed so you can check it, but its attributes are never returned for your point. |
| `parcel_match.cached` | `true` when the parcel came from this service's cache. Parcels are cached for 30 days. |
| `fields` | Only fields that have a value. Each one carries `value`, `unit`, `source`, `source_url`, `confidence`, `fetched_at`, `dataset_vintage` and `notes`. |
| `field_omissions` | Every requested field without a value, with `state`, `reason` and `retryable`. |

Omission states:

| State | Meaning |
| --- | --- |
| `source_reported_absence` | The parcel matched, but its record has no value for this field. |
| `no_parcel` | No parcel contains the point. |
| `source_failure` | The parcel source failed. Retry when `retryable` is `true`. |

A field is never returned as a silent `null`. It is either in `fields` or in `field_omissions`. The `Server-Timing` header reports the parcel lookup time (`parcel`, with `REGRID cache` when cached) and the handler total.
