---
title: "Find the county of a street address, from the US Census geocoder. The address goes in the body, never the URL; the unit is not passed on, and nothing is stored. When the county cannot be found (no match, a match in another state or in more than one county, or the geocoder failing or taking over 5 seconds) the answer is `{ \"county\": null }`, never an error. At most 60 an hour per organization (429 `rate_limited`)"
method: POST
path: "/v1/geo/county"
---

# Find the county of a street address, from the US Census geocoder. The address goes in the body, never the URL; the unit is not passed on, and nothing is stored. When the county cannot be found (no match, a match in another state or in more than one county, or the geocoder failing or taking over 5 seconds) the answer is \`{ "county": null }\`, never an error. At most 60 an hour per organization (429 \`rate_limited\`)

`POST /v1/geo/county`

## Request

- Base URL: `https://api.evictionsapi.com`
- URL: `https://api.evictionsapi.com/v1/geo/county`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

## Request body

- object
  - `line1` string, required
  - `unit` string
  - `city` string
  - `state` string, required
  - `zip` string

## Response `200`

The address as sent, with `city` and `zip` filled in from the geocoder where they were missing, and the county as a case stores it: its short name in the US Census Bureau's county list, without the word "County" or "Parish" (an independent city keeps "City", for example "Baltimore City"); or `{ "county": null }`, also when the geocoder names a county the list does not have.

- union
  - object
    - `line1` string, required
    - `city` string, required
    - `state` string, required
    - `zip` string, required: Empty when neither the request nor the geocoder had one.
    - `county` string, required
  - object
    - `county` unknown, required

## Other responses

- `400`: The request is invalid.
- `401`: The credential is missing or invalid.
- `403`: The credential is not allowed to do this (`forbidden`). For a signed-in session: `permission_denied`, the person's role in the organization lacks the permission this needs (ask an owner); `no_organization`, the person belongs to no organization yet (start one with `POST /v1/me/organizations` or accept an invitation).
- `404`: Not found.
- `409`: The request conflicts with the current state: for a case, it is not in a state that allows this, or its details were erased (`erased`); for an API key, a limit or the key in use.
- `422`: The case did not pass a check.

---

[API](https://skmtc.dev/evictionsapi/apis/evictions-api.md) · [All operations](https://skmtc.dev/evictionsapi/apis/evictions-api/llms.txt) · [OpenAPI document](https://skmtc.dev/evictionsapi/apis/evictions-api/revisions/28459213a1a3?raw)
