User:Straughn/2020 Census

I've created this subpage for my reference, and hopefully yours as well. Many pages for populated places in the United States have not been updated with relevant information from the 2020 Census. Here's an example from Leonore, Illinois, which hasn't been updated since 2000:

"As of the census of 2000, there were 110 people, 52 households, and 30 families residing in the village. The population density was 1,279.8 people per square mile (471.9/km2). There were 54 housing units at an average density of 628.3 per square mile (231.7/km2). The racial makeup of the village was 99.09% White, and 0.91% from two or more races. Hispanic or Latino of any race were 1.82% of the population.

There were 52 households, out of which 17.3% had children under the age of 18 living with them, 55.8% were married couples living together, 3.8% had a female householder with no husband present, and 40.4% were non-families. 34.6% of all households were made up of individuals, and 17.3% had someone living alone who was 65 years of age or older. The average household size was 2.12 and the average family size was 2.71.

In the village, the population was spread out, with 14.5% under the age of 18, 8.2% from 18 to 24, 30.0% from 25 to 44, 21.8% from 45 to 64, and 25.5% who were 65 years of age or older. The median age was 43 years. For every 100 females, there were 96.4 males. For every 100 females age 18 and over, there were 100.0 males.

The median income for a household in the village was $36,250, and the median income for a family was $53,750. Males had a median income of $30,750 versus $26,250 for females. The per capita income for the village was $19,465. There were no families and 1.8% of the population living below the poverty line, including no under eighteens and 6.5% of those over 64."

Most pages include language that is very much like this. However, it is often not easy to find this information in Census tables. Here's how to find it:

Finding 2020 Census data
Start by going to the Census's data page: https://data.census.gov/cedsci/

From there, enter the name of the place you want information on. You'll see something like the screenshot to the right. Click on the bolded entry, as that will give you a good data snapshot. In other cases, you will need to get information from tables. To do that, you'll run a search, then select the Tables tab. Here's where each piece of information above can be found.

API Queries
I've used the Census API to pull data to make things easier. This has to be pulled from a variety of APIs; see the above table for some examples and data points. Here are some examples for townships in Illinois. Refer to the Census API documentation for details on how to adjust this for municipalites, counties, etc.

Race, Total Population
https://api.census.gov/data/2020/dec/pl?get=NAME,P1_001N,P1_003N,P1_004N,P1_005N,P1_006N,P1_007N,P1_008N,P1_009N,P2_002N,H1_001N&for=county%20subdivision:*&in=state:17

This queries the 2020 Census: total population, population by race and ethnicity, total number of housing units.

Total Families and Households, Family and Household Size
https://api.census.gov/data/2020/acs/acs5/subject?get=NAME,S1101_C01_001E,S1101_C01_002E,S1101_C01_003E,S1101_C01_004E&for=county%20subdivision:*&in=state:17

Some notes

 * Census data is collected in various ways at various times. Not all of the data we want is from the 2020 Census, some of it comes from the 2020 American Community Survey, which collects different data in different ways. This means that data may conflict or vary.
 * Don't forget to edit the data in other places.
 * Total population is usually mentioned in the opening paragraph.
 * Other information is usually found in the Infobox
 * There are often tables showing historical populations