---
id: "us_cbsa"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["geo", "government"]
country: ["US"]
langs: ["en"]
quality: 75
url: "https://registry.apicrafter.io/datatype/us_cbsa"
---

# US core-based statistical area (CBSA) code (`us_cbsa`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Five-digit code of a metropolitan or micropolitan statistical area of the United States, as delineated by the Office of Management and Budget (OMB). Codes run from 10000 to 49999, are assigned in alphabetical order of the area title and do not end in 4; codes ending in 4 belong to metropolitan divisions. Combined statistical areas have separate 3-digit codes.

- Personal data (PII): no
- Categories: Geographic identifiers (geo), Government related (government)
- Countries: United States (US)
- Languages: English (en)
- Classification: categorical

## Detection

Regular expression (Python `re`):

```
^[1-4]\d{3}[0-35-9]$
```

## Examples

- `35620` — New York-Newark-Jersey City, NY-NJ
- `31080` — Los Angeles-Long Beach-Anaheim, CA
- `16980` — Chicago-Naperville-Elgin, IL-IN
- `35624` (invalid example) — ends in 4, the form of a metropolitan division code

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/Core-based_statistical_area>
- wikidata: <https://www.wikidata.org/wiki/Q5170155>
- doc: <https://www.census.gov/programs-surveys/geography/about/glossary.html>
- other: <https://www2.census.gov/programs-surveys/popest/datasets/2020-2023/metro/totals/cbsa-est2023-alldata.csv>

## Quality

Score 75/100. Missing: mapping (Wikidata, Schema.org, ...), translation, detector coverage.

JSON: <https://registry.apicrafter.io/api/v1/datatypes/us_cbsa.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/US/geo/us_cbsa.yaml>
