API reference¶
Exploration Tools¶
These are functions that assist in understanding the census bureau products.
|
Returns available identifiers for Census Data APIs. |
|
Explains datasets currently available via the census API |
|
Pulls a table of FIPS codes for reference |
Configuration Tools¶
These are functions that allow users to register their US Census Bureau API Key with cenpy
.
|
Save the sitekey so that users can access it via cenpy.SITEKEY. |
Product: American Community Survey¶
A product that integrates the data & geographic APIs for the 5-year 2013-2017 ACSs.
The American Community Survey (5-year vintages) from the Census Bueau |
|
All variables, including columns and search predictates, available from the API |
|
All of the main table codes in the Census API for this product. |
|
All of the crosstab table codes in the Census API for this product. |
|
Grabs columns that match a particular search pattern. |
|
Filter tables by a given pattern. |
|
A helper function to verify the match used by the product API. |
|
Query the Census for the given place. |
|
Query the Census for the given MSA. |
|
Query the Census for the given CSA. |
|
Query the Census for the given county. |
|
Query the Census for the given state. |
Product: Decennial 2010 Census¶
A product that integrates the data & geographic APIs for the 2010 Census.
The 2010 Decennial Census from the Census Bueau |
|
All variables, including columns and search predictates, available from the API |
|
All of the main table codes in the Census API for this product. |
|
All of the crosstab table codes in the Census API for this product. |
|
Grabs columns that match a particular search pattern. |
|
Filter tables by a given pattern. |
|
A helper function to verify the match used by the product API. |
|
Query the Census for the given place. |
|
Query the Census for the given MSA. |
|
Query the Census for the given CSA. |
|
Query the Census for the given county. |
|
Query the Census for the given state. |
Architectural Component: APIConnection¶
The fundamental building block that manages connections to the raw data API, a REST-ful plaintext API.
The fundamental building block for US Census Bureau data API Endpoints |
|
Explain a column or list of columns. |
|
Conduct a query over the USCB api connection |
|
Grabs columns that match a particular search pattern. |
|
Assign a mapservice to the connection instance |
Architectural Component: TigerConnection¶
The fundamental building block that manages connections to the geographic API, the US Census’s ESRI MapService.
The fundamental building block for US Census Bureau’s Geographic, an ESRI MapService |
|
method to query the ESRI API. |
Architectural Component: ESRILayer¶
The fundamental building block that manages connections to individual ESRI Layers within the ESRI MapService
The fundamental building block to access a single Geography/Layer in an ESRI MapService |
|
A query function to extract data out of MapServer layers. |
Architectural Component: APIConnection¶
The fundamental building block that provides an absract base class for subclasses, which are Census Data Products that unite raw data & geographical APIs.
The fundamental building block to make pre-configured Census Products, like ACS or Decennial2010. |
|
All variables, including columns and search predictates, available from the API |
|
All of the main table codes in the Census API for this product. |
|
Grabs columns that match a particular search pattern. |
|
Filter tables by a given pattern. |
|
Query the Census for the given place. |
|
This is an internal method to handle querying the Census API and the GeoAPI using bounding boxes. |
|
A helper function, internal to the product, which pieces together the construction of a bounding box (from environment_from_layer) and the querying of the GeoAPI using that bounding box in (from_bbox) |
|
A helper function to verify the match used by the product API. |