Examples
Variables, Tables, and Keywords
Single table
getcensus S2701
Single variable
getcensus B19013_001
Multiple variables from a single table
getcensus DP02_0053 DP02_0054 DP02_0055 DP02_0056 DP02_0057
Multiple variables from more than one table
getcensus S1701_C03_001 S2701_C05_001
Keyword
getcensus medinc
Years and Samples
Single year (default is most recent available)
year(2010) getcensus B19013,
Multiple years
getcensus B19013, years(2018/2019) getcensus B19013, years(2010 2015 2019)
Samples (default is 1)
sample(5)
getcensus B19013, sample(3) year(2013) getcensus B19013,
Geographies
Types (default is state)
getcensus B19013, geography(us)
getcensus B19013, geography(county)sample(5) geography(sldu) statefips(26) getcensus B19013,
Within a state or set of states
getcensus B19013, statefips(11)
getcensus B19013, geography(county) statefips(04)
getcensus B19013, geography(congressional district) statefips(24 51)sample(5) geography(metro) statefips(06) getcensus B19013,
With specific GEOIDs
getcensus B19013, geography(metro) geoids(47900)
getcensus B19013, geography(county) statefips(24) geoids(005 510)sample(5) geography(tract) statefips(01) countyfips(001) geoids(020100) getcensus B19013,
Geographic components
getcensus B19013, geocomponents(H0)
getcensus B19013, geocomponents(01 43) statefips(13)sample(5) geography(us) geocomponents(92) getcensus B19013,
Catalog
All variables in tables of a given product type
getcensus catalog, product(DP)
Variables from a single table
table(S0901) getcensus catalog,
Variables matching a search term
search(children) product(ST)
getcensus catalog, search(educational attainment) table(S1701) getcensus catalog,