# housing_units_density_per_km2

> Housing units per km2 of land (water excluded) across the same 2020 Census blocks intersecting 1 km around the point.

Source: https://docs.invariant-ai.com/fields/housing_units_density_per_km2

|  |  |
| --- | --- |
| Name | `housing_units_density_per_km2` |
| Layer | hazards |
| Type, unit | float, per km2 |
| Sources (in order) | `CENSUS_TIGERWEB` |
| Cache | 90 days (`ttl_seconds` 7776000) |

## What it is

Housing units per km2 of land (water excluded) across the same 2020 Census blocks intersecting 1 km around the point. Reference: the Census urban criterion is about 164 units per km2.

## Nulls

"failed": as for housing\_units\_within\_1km, or the blocks have no land area (density undefined).

## Example

```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": ["housing_units_density_per_km2"]}'
```

Field object keys are described in [Responses](https://docs.invariant-ai.com/responses). Live definition: [`GET /v1/meta/fields`](https://docs.invariant-ai.com/api/meta-fields).
