# wetland_subtype

> Raw NWI Cowardin code (ATTRIBUTE, e.g.

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

|  |  |
| --- | --- |
| Name | `wetland_subtype` |
| Layer | terrain |
| Type, unit | string, none |
| Sources (in order) | `USFWS_NWI` |
| Cache | 30 days (`ttl_seconds` 2592000) |

## What it is

Raw NWI Cowardin code (ATTRIBUTE, e.g. PFO1A) of the same selected wetland as wetland\_type.

## Nulls

status "absent": no NWI wetland within 500 m. "failed": the NWI service did not answer, returned an incomplete result, or a polygon had no usable geometry, or several polygons are equally near.

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

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).
