rural_urban_continuum_codes
Get ERS Rural-Urban Continuum Codes - a county-level lookup classifying U.S. counties by metro/nonmetro status and degree of urbanization, published in vintages from 1974 to 2023.
Examples
from openbb import obb
obb.usda.rural_urban_continuum_codes(provider='usda')
# Get the 2023 Rural-Urban Continuum Codes for Wyoming.
obb.usda.rural_urban_continuum_codes(vintage='2023', state='WY', provider='usda')
# Get the code-only 1974 Rural-Urban Continuum Codes for Alabama.
obb.usda.rural_urban_continuum_codes(vintage='1974', state='AL', provider='usda')
Parameters
- standard
- usda
vintage: str | None
Default: 2023
Description
Classification vintage to retrieve. Each vintage is a separate county lookup published in that year, carrying the RUCC code, its vintage-specific description, and the county population; codes and descriptions are vintage-specific because the urbanization thresholds changed over time. Valid vintages are:
2023, 2013, 2003
state: str | None
Two-letter state or territory code to scope the county rows to a single state. If None, returns every county of the vintage. The available states vary by vintage: the 2023 and 2013 vintages include the AS, GU, MP, VI, PR, and DC territories, and the 2003 vintage adds PR to the fifty states and DC.
Returns
results: RuralUrbanContinuumCodes
Serializable results.
provider: str | None
Provider name.
warnings: Optional[list[Warning_]]
List of warnings.
chart: Optional[Chart]
Chart object.
extra: dict[str, Any]
Extra info.
Data
- standard
- usda
fips: str
Five-digit county FIPS code, with leading zeros preserved.
state: str | None
Two-letter state or territory postal code.
county_name: str | None
County or county-equivalent area name, as published.
rucc_code: str | None
Rural-Urban Continuum Code for the vintage: 1 to 3 for metro counties and 4 to 9 for nonmetro counties.
description: str | None
Vintage-specific description of the RUCC code, carried per row from the source.
population: int | None
Published county population for the vintage's reference census, as a full count.