Skip to main content
Version: v5

urban_influence_codes

Get ERS Urban Influence Codes - a county-level classification of every U.S. county by metropolitan status, size, and adjacency to metro and micro areas, published in the 1993, 2003, 2013, and 2024 vintages as a FIPS lookup table.

Examples​

from openbb import obb
obb.usda.urban_influence_codes(provider='usda')
# Get the 2024 Urban Influence Codes for Alabama counties.
obb.usda.urban_influence_codes(vintage='2024', state='AL', provider='usda')
# Get the 2003 codes with population density for Wyoming.
obb.usda.urban_influence_codes(vintage='2003', state='WY', provider='usda')
# Get the 1993 vintage codes for the whole United States.
obb.usda.urban_influence_codes(vintage='1993', provider='usda')

Parameters​


Returns​

results: UrbanInfluenceCodes

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​