The 50 US states plus the District of Columbia and six US territories, 57 rows with the two-letter postal abbreviation, ISO 3166-2 code, FIPS code, type, capital, population, area in square kilometres and square miles, population density, date established, highest point, number of bordering states, official website and coordinates, built from Wikidata. Area is normalized from Wikidata's per-statement units to square kilometres, then derived to square miles, so the two always agree. A Type column separates the 50 states from DC and the territories, and the US Virgin Islands code is repaired to US-VI where Wikidata stores a bare VI. Bordering states counts only neighbours that are themselves US states, so Colorado lands at seven and the two most-bordering states at eight, while Hawaii, Alaska and the island territories sit at zero. A clean lookup table for state abbreviations, capitals, FIPS and ISO 3166-2 codes, free as a CSV download. Ten acceptance tests, one enforcing the 25 percent fill rule on every column.
57 rows in one CSV file, with 18 columns in total: State, State_ID, Abbreviation, ISO_3166_2, FIPS, Type, Capital, Population, Area_km2, Area_sqmi, Population_Density_sqmi, Established_Date, Highest_Point, Bordering_States, Website, Latitude, Longitude, State_URL.
It is built by programmatically scraping wikidata.org, last pulled on 2026-10-23. Datasets are versioned; older versions stay downloadable.
Yes. Every CodeSights dataset is completely free as a CSV download; a free account is all it takes. Anyone can preview the data without signing in.
Yes. The exact Python scraper that built it is viewable on the dataset page by any signed-in member, so every number is reproducible.
Automated scraping leaves room for error and the underlying sources change over time, so no version is guaranteed accurate or complete. If a number matters, verify it against the original source.