← All datasets

US States

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 1 file last pulled 2026-10-23
Where would you start?
Pick a question, or ask your own and answer it; publish what you find as an insight. The same question can carry many insights from different angles.
  • Which states punch above their size in economic output?
  • How do statehood dates cluster across the map?
  • Which state nicknames and symbols repeat across states?
US States 57 rows × 18 columns
StateState_IDAbbreviationISO_3166_2FIPSTypeCapitalPopulationArea_km2Area_sqmiPopulation_Density_sqmiEstablished_DateHighest_PointBordering_StatesWebsiteLatitudeLongitudeState_URL

Questions and answers

What is the US States dataset?

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.

How big is the US States dataset?

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.

Where does the data come from?

It is built by programmatically scraping wikidata.org, last pulled on 2026-10-23. Datasets are versioned; older versions stay downloadable.

Is the dataset free to download?

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.

Can I see the code that built this dataset?

Yes. The exact Python scraper that built it is viewable on the dataset page by any signed-in member, so every number is reproducible.

Can the data contain errors?

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.

Browse every free dataset on CodeSights