### Census API Call Example
Source: https://www.census.gov/data/developers/data-sets/census-microdata-api/cps/basic/1980s
This is an example of a GET request to the Census Bureau's API to retrieve data for the Current Population Survey (CPS) Basic Monthly dataset for January 1989. It demonstrates how to specify tabulation variables, row and column dimensions, geographic filters, and includes a placeholder for the API key.
```HTTP
GET api.census.gov/data/1989/cps/basic/jan?tabulate=weight(A_FNLWGT)&col+A_LFSR&row+A_MARITL&for=state:01&A_HGA=12&key=YOUR_KEY_GOES_HERE
```
--------------------------------
### Census API Call Example (February)
Source: https://www.census.gov/data/developers/data-sets/census-microdata-api/cps/basic/1980s
This is an example of a GET request to the Census Bureau's API to retrieve data for the Current Population Survey (CPS) Basic Monthly dataset for February 1989. It demonstrates how to specify tabulation variables, row and column dimensions, geographic filters, and includes a placeholder for the API key.
```HTTP
GET api.census.gov/data/1989/cps/basic/feb?tabulate=weight(A_FNLWGT)&col+A_LFSR&row+A_MARITL&for=state:01&A_HGA=12&key=YOUR_KEY_GOES_HERE
```
--------------------------------
### Census API Call Example (March)
Source: https://www.census.gov/data/developers/data-sets/census-microdata-api/cps/basic/1980s
This is an example of a GET request to the Census Bureau's API to retrieve data for the Current Population Survey (CPS) Basic Monthly dataset for March 1989. It demonstrates how to specify tabulation variables, row and column dimensions, geographic filters, and includes a placeholder for the API key.
```HTTP
GET api.census.gov/data/1989/cps/basic/mar?tabulate=weight(A_FNLWGT)&col+A_LFSR&row+A_MARITL&for=state:01&A_HGA=12&key=YOUR_KEY_GOES_HERE
```
--------------------------------
### Access Census Microdata API User Guide
Source: https://www.census.gov/data/developers/guidance
This guide provides an overview of the U.S. Census Bureau’s microdata application programming interface (API) and walks through how to make queries. It explains what the microdata API is, when to use it, and how to use it to get raw data and custom statistics.
```HTML
View the Census Microdata API User Guide __
```
--------------------------------
### QWI API Query with Indicators
Source: https://www.census.gov/data/developers/data-sets/qwi
This example shows how to select specific indicators using the 'get' statement in a QWI API call, along with other parameters like geography and time.
```URL
api.census.gov/data/timeseries/qwi/sa?get=Emp&for=county:198&in=state:02&year=2012&quarter=1&sex=1&sex=2&agegrp=A02&agegrp=A07&ownercode=A05&firmsize=1&seasonadj=U&industry=11&key=[userkey]
```
--------------------------------
### Census API Call Example (July)
Source: https://www.census.gov/data/developers/data-sets/census-microdata-api/cps/basic/1980s
This is an example of a GET request to the Census Bureau's API to retrieve data for the Current Population Survey (CPS) Basic Monthly dataset for July 1989. It demonstrates how to specify tabulation variables, row and column dimensions, geographic filters, and includes a placeholder for the API key.
```HTTP
GET api.census.gov/data/1989/cps/basic/jul?tabulate=weight(A_FNLWGT)&col+A_LFSR&row+A_MARITL&for=state:01&A_HGA=12&key=YOUR_KEY_GOES_HERE
```
--------------------------------
### Census API Call Example (April)
Source: https://www.census.gov/data/developers/data-sets/census-microdata-api/cps/basic/1980s
This is an example of a GET request to the Census Bureau's API to retrieve data for the Current Population Survey (CPS) Basic Monthly dataset for April 1989. It demonstrates how to specify tabulation variables, row and column dimensions, geographic filters, and includes a placeholder for the API key.
```HTTP
GET api.census.gov/data/1989/cps/basic/apr?tabulate=weight(A_FNLWGT)&col+A_LFSR&row+A_MARITL&for=state:01&A_HGA=12&key=YOUR_KEY_GOES_HERE
```
--------------------------------
### Census API Call Example (May)
Source: https://www.census.gov/data/developers/data-sets/census-microdata-api/cps/basic/1980s
This is an example of a GET request to the Census Bureau's API to retrieve data for the Current Population Survey (CPS) Basic Monthly dataset for May 1989. It demonstrates how to specify tabulation variables, row and column dimensions, geographic filters, and includes a placeholder for the API key.
```HTTP
GET api.census.gov/data/1989/cps/basic/may?tabulate=weight(A_FNLWGT)&col+A_LFSR&row+A_MARITL&for=state:01&A_HGA=12&key=YOUR_KEY_GOES_HERE
```
--------------------------------
### Census API Call Example (June)
Source: https://www.census.gov/data/developers/data-sets/census-microdata-api/cps/basic/1980s
This is an example of a GET request to the Census Bureau's API to retrieve data for the Current Population Survey (CPS) Basic Monthly dataset for June 1989. It demonstrates how to specify tabulation variables, row and column dimensions, geographic filters, and includes a placeholder for the API key.
```HTTP
GET api.census.gov/data/1989/cps/basic/jun?tabulate=weight(A_FNLWGT)&col+A_LFSR&row+A_MARITL&for=state:01&A_HGA=12&key=YOUR_KEY_GOES_HERE
```
--------------------------------
### Census API: Querying All ZCTAs within New Hampshire
Source: https://www.census.gov/data/developers/guidance/api-user-guide
This example demonstrates how to use the 'ucgid' predicate to get data for all ZIP Code Tabulation Areas (ZCTAs) within New Hampshire. It includes the GEO ID for New Hampshire as the parent and the GEO ID for all ZCTAs as the child.
```URL
&ucgid=pseudo(0400000US33$8600000)
```
--------------------------------
### Census API: Querying All Counties within Arkansas
Source: https://www.census.gov/data/developers/guidance/api-user-guide
This example shows how to use the 'ucgid' predicate to fetch data for all counties in Arkansas. It includes the GEO ID for Arkansas as the parent and the GEO ID for all counties as the child.
```URL
&ucgid=pseudo(0400000US05$0500000)
```
--------------------------------
### Get Housing Vacancies for 2004 Q4
Source: https://www.census.gov/data/developers/data-sets/economic-indicators
This example shows how to fetch housing vacancy data for the fourth quarter of 2004. It includes additional fields like 'error_data' and specifies the quarter in the time parameter.
```api
api.census.gov/data/timeseries/eits/hv?get=cell_value,data_type_code,time_slot_id,error_data,category_code,seasonally_adj&time=2004-04
```
--------------------------------
### Get New Residential Construction Since August 2010
Source: https://www.census.gov/data/developers/data-sets/economic-indicators
This example demonstrates how to retrieve new residential construction data starting from August 2010. The '+' character is used as a URL escape for the space in 'from 2010'.
```api
api.census.gov/data/timeseries/eits/resconst?get=cell_value,data_type_code,time_slot_id,error_data,category_code,seasonally_adj&time=from+2010
```
--------------------------------
### Download Census Data API User Guide
Source: https://www.census.gov/data/developers/guidance/api-user-guide
Developers can download the comprehensive user guide for the Census Data API in PDF format. This guide provides detailed instructions for using the API.
```text
Download Census Data API User Guide [PDF - 1.1 MD]
```
--------------------------------
### Construct a Basic QWI API Query
Source: https://www.census.gov/data/developers/data-sets/qwi
This example demonstrates the minimum requirements for a fully-formed basic query to the QWI API, specifying endpoint, indicator, geography, and time parameters.
```URL
api.census.gov/data/timeseries/qwi/sa?get=Emp&for=state:02&year=2012&quarter=1&key=[userkey]
```
--------------------------------
### Microdata API User Guide
Source: https://www.census.gov/data/developers/guidance/microdata-api-user-guide
This guide provides an overview of the U.S. Census Bureau’s microdata application programming interface (API). It explains what the microdata API is, when to use it, and how to make queries to retrieve raw data and custom statistics.
```Documentation
The purpose of this guide is to provide an overview of the U.S. Census Bureau’s microdata application programming interface (API) and walk through how to make queries. Through this guide, you will learn what the microdata API is, when to use it, and how to use it to get raw data and custom statistics.
```
--------------------------------
### Census API: Querying All Blocks within Census Tract 9653.02, Maine
Source: https://www.census.gov/data/developers/guidance/api-user-guide
This example demonstrates how to use the 'ucgid' predicate to get data for all blocks within Census Tract 9653.02, Somerset County, Maine. It specifies the GEO ID for the census tract as the parent and the GEO ID for all blocks as the child.
```URL
&ucgid=pseudo(1400000US23025965302$1000000)
```
--------------------------------
### Query QWI API for All Counties in a State
Source: https://www.census.gov/data/developers/data-sets/qwi
This example demonstrates how to retrieve employment data for all counties within a specified state. It uses a wildcard '*' for the county parameter to fetch data across all counties in state '02'.
```JSON
api.census.gov/data/timeseries/qwi/sa?get=Emp&for=county:*&in=state:02&year=2012&quarter=1&sex=1&sex=2&agegrp=A02&agegrp=A07&ownercode=A00&seasonadj=U&industry=11&key=[userkey]
```
--------------------------------
### Census API Call Examples
Source: https://www.census.gov/data/developers/data-sets/ACS-supplemental-data
Examples of API calls to retrieve American Community Survey (ACS) data. The calls vary based on the year of data release, dataset, table ID, and geography level. These examples are intended to guide developers in constructing their own API requests.
```API
https://api.census.gov/data/{year}/{dataset}?{table_id}&for={geography}
```
--------------------------------
### Ucgid Example: Mohave County, Arizona
Source: https://www.census.gov/data/developers/guidance/api-user-guide
This example provides the Ucgid predicate for Mohave County, Arizona, illustrating the breakdown of its fully qualified GEO ID.
```URL
&ucgid=0500000US04015
```
--------------------------------
### Query QWI API for a Time Range
Source: https://www.census.gov/data/developers/data-sets/qwi
This example demonstrates how to retrieve employment data for a specified range of time, from '2010-Q1' to '2010-Q3', for a particular county and state.
```JSON
api.census.gov/data/timeseries/qwi/sa?get=Emp&for=county:*&in=state:02&time=from 2010-Q1 to 2010-Q3&sex=1&sex=2&agegrp=A02&agegrp=A07&ownercode=A00&seasonadj=U&industry=11&key=[userkey]
```
--------------------------------
### Ucgid Example: Congressional District 3, Indiana
Source: https://www.census.gov/data/developers/guidance/api-user-guide
This example provides the Ucgid predicate for Congressional District 3, Indiana, showing the GEO ID format for congressional districts.
```URL
&ucgid=5001800US1803
```
--------------------------------
### Ucgid Example: Houston Metro Area
Source: https://www.census.gov/data/developers/guidance/api-user-guide
This example provides the Ucgid predicate for the Houston-Pasadena-The Woodlands, Texas Metro Area, showing the GEO ID format for metro areas.
```URL
&ucgid=310M600US26420
```
--------------------------------
### Get Product Shipment Values (2002-2016)
Source: https://www.census.gov/data/developers/data-sets/asm-timeseries
Retrieves the value of shipments for product classes from 2002-2016. The example shows how to get product shipment values for a specific PSCODE (product service code) in 2016 for the US.
```api
api.census.gov/data/timeseries/asm/product?get=PSCODE_TTL,GEO_TTL,PRODVAL&for=us:*&PSCODE=311111&time=2016&key=YOUR_KEY_GOES_HERE
```
--------------------------------
### Ucgid Example: Census Tract 206, Georgia
Source: https://www.census.gov/data/developers/guidance/api-user-guide
This example provides the Ucgid predicate for Census Tract 206 in DeKalb County, Georgia, detailing the GEO ID structure for census tracts.
```URL
&ucgid=1400000US13089020600
```
--------------------------------
### Access Census Data API Documentation
Source: https://www.census.gov/data/developers/guidance/api-user-guide
This section provides links to various resources for developers using the Census Data API, including user guides, discovery tools, and tutorials.
```text
Guidance for Developers
```
```text
Census Data API User Guide
```
```text
Census Microdata API User Guide
```
```text
Census Data API Discovery Tool
```
```text
Workshop: Basics of Using the Census API
```
```text
View All Video Tutorials
```
--------------------------------
### Ucgid Example: Fern Forest CDP, Hawaii
Source: https://www.census.gov/data/developers/guidance/api-user-guide
This example provides the Ucgid predicate for Fern Forest CDP, Hawaii, demonstrating the GEO ID structure for Census Designated Places (CDPs).
```URL
&ucgid=1600000US1507675
```
--------------------------------
### Ucgid Example: ZIP Code Tabulation Area (ZCTA) 15007
Source: https://www.census.gov/data/developers/guidance/api-user-guide
This example provides the Ucgid predicate for ZIP Code Tabulation Area (ZCTA) 15007, illustrating the GEO ID format for ZCTAs.
```URL
&ucgid=860Z200US15007
```
--------------------------------
### Query QWI API by Ownership Code
Source: https://www.census.gov/data/developers/data-sets/qwi
This example shows how to query the QWI API for employment data, filtering by specific ownership codes. It includes parameters for county, state, year, quarter, sex, age group, firm size, seasonality adjustment, and industry.
```JSON
api.census.gov/data/timeseries/qwi/sa?get=Emp&for=county:198&in=state:02&year=2012&quarter=1&sex=1&sex=2&agegrp=A02&agegrp=A07&ownercode=A05&firmsize=1&seasonadj=U&industry=11&key=[userkey]
```
--------------------------------
### Query QWI API for Disparate Years and Quarters
Source: https://www.census.gov/data/developers/data-sets/qwi
This example shows how to retrieve employment data for a specific set of years (2008, 2010, 2012) and quarters (1, 3) for a given county and state.
```JSON
api.census.gov/data/timeseries/qwi/sa?get=Emp&for=county:*&in=state:02&year=2008,2010,2012&quarter=1,3&sex=1&sex=2&agegrp=A02&agegrp=A07&ownercode=A00&seasonadj=U&industry=11&key=[userkey]
```
--------------------------------
### Ucgid Example: Block 1004, Oregon
Source: https://www.census.gov/data/developers/guidance/api-user-guide
This example provides the Ucgid predicate for Block 1004, Block Group 1, Census Tract 6 in Benton County, Oregon, showing the GEO ID format for individual blocks.
```URL
&ucgid=1000000US410030006001004
```
--------------------------------
### Ucgid Example: Block Group 2, Illinois
Source: https://www.census.gov/data/developers/guidance/api-user-guide
This example provides the Ucgid predicate for Block Group 2 within Census Tract 104.01 in Jersey County, Illinois, illustrating the GEO ID format for block groups.
```URL
&ucgid=1500000US170830104012
```
--------------------------------
### Access 2004 SIPP Topical Wave 3 Data with Tabulation
Source: https://www.census.gov/data/developers/data-sets/census-microdata-api
This example demonstrates accessing the 2004 SIPP Topical Modules Wave 3 data with tabulation. It uses WPFINWGT as the weight, tabulates by ERACE (row) and EREMOBLHO (column), filters by state 01, and applies the condition EHMORT=1. An API key is required.
```HTTP
GET api.census.gov/data/2004/sipp/topical/2004panel/wave3?tabulate=weight(WPFINWGT)&col+EREMOBHO&row+ERACE&for=state:01&EHMORT=1&key=YOUR_KEY_GOES_HERE
```
--------------------------------
### Access 2004 SIPP Topical Wave 6 Data with Tabulation
Source: https://www.census.gov/data/developers/data-sets/census-microdata-api
This example retrieves data from the 2004 SIPP Topical Modules Wave 6 using tabulation. It specifies WPFINWGT as the weight, tabulates by ERACE (row) and EREMOBLHO (column), filters by state 01, and includes the condition EHMORT=1. An API key is required.
```HTTP
GET https://api.census.gov/data/2004/sipp/topical/2004panel/wave6?tabulate=weight(WPFINWGT)&col+EREMOBHO&row+ERACE&for=state:01&EHMORT=1&key=YOUR_KEY_GOES_HERE
```
--------------------------------
### Query QWI API for NAICS Sectors
Source: https://www.census.gov/data/developers/data-sets/qwi
This example demonstrates how to retrieve employment data and industry information for a specific state and year/quarter. It shows how to use the 'ind_level' parameter to specify the level of NAICS sector detail, such as 'S' for all NAICS Sectors, '3' for NAICS Subsectors, or '4' for NAICS Industry Groups.
```JSON
api.census.gov/data/timeseries/qwi/sa?get=Emp,industry&for=state:01&year=2022&quarter=1&ind_level=S&key=[userkey]
```
--------------------------------
### Query QWI API by Year and Quarter
Source: https://www.census.gov/data/developers/data-sets/qwi
This example demonstrates how to retrieve Quarterly Workforce Indicators (QWI) data, specifically the 'Emp' (employment) metric, for a specific county and state, filtered by year and quarter. It also shows how to include multiple values for parameters like 'sex' and 'agegrp'.
```JSON
api.census.gov/data/timeseries/qwi/sa?get=Emp&for=county:198&in=state:02&year=2012&quarter=1&sex=1&sex=2&agegrp=A02&agegrp=A07&ownercode=A05&firmsize=1&seasonadj=U&industry=11&key=[userkey]
```
--------------------------------
### Census API Example Call - CPS ASEC 2008
Source: https://www.census.gov/data/developers/data-sets/census-microdata-api/cps-asec/2000s
This example demonstrates how to make an API call to retrieve specific variables (A_MARITL, MARSUPWT, HEA) for a given state (ID: 1) and household income group (A_HGA: 39) from the 2008 CPS ASEC March supplement. Replace 'YOUR_KEY_GOES_HERE' with your actual API key.
```bash
api.census.gov/data/2008/cps/asec/mar?get=A_MARITL,MARSUPWT,HEA&for=state:1&A_HGA=39&key=YOUR_KEY_GOES_HERE
```
--------------------------------
### Census API Example Call - CPS ASEC 2007
Source: https://www.census.gov/data/developers/data-sets/census-microdata-api/cps-asec/2000s
This example demonstrates how to make an API call to retrieve specific variables (A_MARITL, MARSUPWT, HEA) for a given state (ID: 1) and household income group (A_HGA: 39) from the 2007 CPS ASEC March supplement. Replace 'YOUR_KEY_GOES_HERE' with your actual API key.
```bash
api.census.gov/data/2007/cps/asec/mar?get=A_MARITL,MARSUPWT,HEA&for=state:1&A_HGA=39&key=YOUR_KEY_GOES_HERE
```
--------------------------------
### Get County-to-County Flows (Delaware)
Source: https://www.census.gov/data/developers/data-sets/acs-migration-flows/-examples-acs-flows-2014
Retrieves County-to-County flows for Delaware, not filtered by any specific characteristics. This query targets all counties within the state.
```url
https://api.census.gov/data/2014/acs/flows?get=GEOID1,GEOID2,STATE1,STATE2,COUNTY1,COUNTY2,FULL1_NAME,FULL2_NAME,STATE1_NAME,STATE2_NAME,COUNTY1_NAME,COUNTY2_NAME,MOVEDIN,MOVEDIN_M,MOVEDOUT,MOVEDOUT_M,MOVEDNET,MOVEDNET_M&for=county:*&in=state:10&REL=00&HHT=00&TEN=00&SUMLEV2=50
```
--------------------------------
### Census API Call Example - CPS ASEC 1995
Source: https://www.census.gov/data/developers/data-sets/census-microdata-api/cps-asec/1990s
This code snippet demonstrates an example API call to retrieve data from the 1995 Current Population Survey Annual Social and Economic (March) Supplement. It specifies the data to get (PERLIS, A_MARITL, MARSUPWT), the geography (state:11), a filter (A_HGA=39), and requires an API key.
```text
api.census.gov/data/1995/cps/asec/mar?get=PERLIS,A_MARITL,MARSUPWT&for=state:11&A_HGA=39&key=YOUR_KEY_GOES_HERE
```
--------------------------------
### Query QWI API for Multiple Indicators and States
Source: https://www.census.gov/data/developers/data-sets/qwi
This example shows how to retrieve multiple employment-related indicators (Emp, EmpS, HirA, EarnS, Sep) for a specific time period and multiple states. It demonstrates how to specify a comma-separated list of states.
```JSON
api.census.gov/data/timeseries/qwi/sa?get=Emp,EmpS,HirA,EarnS,Sep&time=2012-Q1&for=state:02,24,01&sex=1&sex=2&agegrp=A02&agegrp=A07&ownercode=A00&seasonadj=U&industry=11&key=[userkey]
```
--------------------------------
### Census API Call Example - CPS ASEC 1996
Source: https://www.census.gov/data/developers/data-sets/census-microdata-api/cps-asec/1990s
This code snippet demonstrates an example API call to retrieve data from the 1996 Current Population Survey Annual Social and Economic (March) Supplement. It specifies the data to get (A_MARITL, MARSUPWT, HEA), the geography (state:11), a filter (A_HGA=39), and requires an API key.
```text
https://api.census.gov/data/1996/cps/asec/mar?get=A_MARITL,MARSUPWT,HEA&for=state:11&A_HGA=39&key=YOUR_KEY_GOES_HERE
```
--------------------------------
### Access 2004 SIPP Topical Wave 7 Data with Tabulation
Source: https://www.census.gov/data/developers/data-sets/census-microdata-api
This example demonstrates accessing the 2004 SIPP Topical Modules Wave 7 data with tabulation. It uses WPFINWGT as the weight, tabulates by ESEX (row) and EPENSNYN (column), filters by state 01, and applies the condition RMNJBBS=1. An API key is required.
```HTTP
GET api.census.gov/data/2004/sipp/topical/2004panel/wave7?tabulate=weight(WPFINWGT)&col+EPENSNYN&row+ESEX&for=state:01&RMNJBBS=1&key=YOUR_KEY_GOES_HERE
```
--------------------------------
### Census API Call Example - CPS ASEC 1997
Source: https://www.census.gov/data/developers/data-sets/census-microdata-api/cps-asec/1990s
This code snippet demonstrates an example API call to retrieve data from the 1997 Current Population Survey Annual Social and Economic (March) Supplement. It specifies the data to get (A_MARITL, MARSUPWT, HEA), the geography (state:11), a filter (A_HGA=39), and requires an API key.
```text
api.census.gov/data/1997/cps/asec/mar?get=A_MARITL,MARSUPWT,HEA&for=state:11&A_HGA=39&key=YOUR_KEY_GOES_HERE
```
--------------------------------
### Census API Example Call - CPS ASEC 2006
Source: https://www.census.gov/data/developers/data-sets/census-microdata-api/cps-asec/2000s
This example demonstrates how to make an API call to retrieve specific variables (A_MARITL, MARSUPWT, HEA) for a given state (ID: 1) and household income group (A_HGA: 39) from the 2006 CPS ASEC March supplement. Replace 'YOUR_KEY_GOES_HERE' with your actual API key.
```bash
api.census.gov/data/2006/cps/asec/mar?get=A_MARITL,MARSUPWT,HEA&for=state:1&A_HGA=39&key=YOUR_KEY_GOES_HERE
```
--------------------------------
### Access Census API Documentation
Source: https://www.census.gov/data/developers/data-sets/ase
Guidance for developers on how to use the Census API, including user guides for specific APIs like the Census Data API and Census Microdata API. This section also points to discovery tools and video tutorials.
```General
Guidance for Developers
Census Data API User Guide
Census Microdata API User Guide
Census Data API Discovery Tool
Workshop: Basics of Using the Census API
View All Video Tutorials
```
--------------------------------
### Census API Call Example - CPS ASEC 1998
Source: https://www.census.gov/data/developers/data-sets/census-microdata-api/cps-asec/1990s
This code snippet demonstrates an example API call to retrieve data from the 1998 Current Population Survey Annual Social and Economic (March) Supplement. It specifies the data to get (A_MARITL, MARSUPWT, HEA), the geography (state:11), a filter (A_HGA=39), and requires an API key.
```text
api.census.gov/data/1998/cps/asec/mar?get=A_MARITL,MARSUPWT,HEA&for=state:11&A_HGA=39&key=YOUR_KEY_GOES_HERE
```
--------------------------------
### QWI Data Resources
Source: https://www.census.gov/data/developers/data-sets/qwi
Provides links to resources for understanding the Quarterly Workforce Indicators (QWI) dataset, including introductory materials and data loading status.
```Resource Links
* QWI 101 [<1.0 MB]
* QWI Data Loading Status
```
--------------------------------
### Census API Call Example - CPS ASEC 1999
Source: https://www.census.gov/data/developers/data-sets/census-microdata-api/cps-asec/1990s
This code snippet demonstrates an example API call to retrieve data from the 1999 Current Population Survey Annual Social and Economic (March) Supplement. It specifies the data to get (A_MARITL, MARSUPWT, HEA), the geography (state:11), a filter (A_HGA=39), and requires an API key.
```text
api.census.gov/data/1999/cps/asec/mar?get=A_MARITL,MARSUPWT,HEA&for=state:11&A_HGA=39&key=YOUR_KEY_GOES_HERE
```
--------------------------------
### Get New Residential Construction Before May 2004
Source: https://www.census.gov/data/developers/data-sets/economic-indicators
This example fetches new residential construction data for all periods before May 2004. It uses the 'to' parameter to specify the end date.
```api
api.census.gov/data/timeseries/eits/resconst?get=cell_value,data_type_code,time_slot_id,error_data,category_code,seasonally_adj&time=to+2004-05
```
--------------------------------
### Access 2004 SIPP Topical Wave 4 Data with Tabulation
Source: https://www.census.gov/data/developers/data-sets/census-microdata-api
This example retrieves data from the 2004 SIPP Topical Modules Wave 4, using tabulation. It specifies WPFINWGT as the weight, tabulates by ERACE (row) and EWSHRS2 (column), filters by state 01, and includes the condition EWSEMPCT=2. An API key is needed.
```HTTP
GET api.census.gov/data/2004/sipp/topical/2004panel/wave4?tabulate=weight(WPFINWGT)&col+EWSHRS2&row+ERACE&for=state:01&EWSEMPCT=2&key=YOUR_KEY_GOES_HERE
```
--------------------------------
### Access 2004 SIPP Topical Wave 5 Data with Tabulation
Source: https://www.census.gov/data/developers/data-sets/census-microdata-api
This example shows how to access the 2004 SIPP Topical Modules Wave 5 data with tabulation. It uses WPFINWGT as the weight, tabulates by ERACE (row) and ELASTCOV (column), filters by state 01, and applies the condition EFORMEMP=1. An API key is required.
```HTTP
GET api.census.gov/data/2004/sipp/topical/2004panel/wave5?tabulate=weight(WPFINWGT)&col+ELASTCOV&row+ERACE&for=state:01&EFORMEMP=1&key=YOUR_KEY_GOES_HERE
```
--------------------------------
### Get New Residential Construction for May 2004
Source: https://www.census.gov/data/developers/data-sets/economic-indicators
This example retrieves new residential construction data for May 2004. It specifies the dataset, desired fields, and the exact month and year.
```api
api.census.gov/data/timeseries/eits/resconst?get=cell_value,data_type_code,time_slot_id,error_data,category_code,seasonally_adj&time=2004-05
```
--------------------------------
### Access 2004 SIPP Topical Wave 1 Data
Source: https://www.census.gov/data/developers/data-sets/census-microdata-api
This example shows how to fetch data for the 2004 SIPP Topical Modules Wave 1. It retrieves variables ERECVSSI, ESEX, and WPFINWGT, filters by state 01, and applies a specific condition (EAPLSSI=1). An API key is necessary for the request.
```HTTP
GET api.census.gov/data/2004/sipp/topical/2004panel/wave1?get=ERECVSSI,ESEX,WPFINWGT&for=state:01&EAPLSSI=1&key=YOUR_KEY_GOES_HERE
```
--------------------------------
### Get Housing Vacancies for 2004
Source: https://www.census.gov/data/developers/data-sets/economic-indicators
This example demonstrates how to retrieve housing vacancy data for the year 2004 using the Census EITS API. It specifies the desired data fields and the time frame.
```api
api.census.gov/data/timeseries/eits/hv?get=cell_value,data_type_code,time_slot_id,category_code,seasonally_adj&time=2004
```
--------------------------------
### Access Census Data API User Guide
Source: https://www.census.gov/data/developers/guidance
This user guide instructs developers and researchers on how to use the Census Data Application Programming Interface (API) to request data from U.S. Census Bureau datasets.
```HTML
View the Census Data API User Guide __
```
--------------------------------
### Get County-to-County Flows by Relationship (Wyoming)
Source: https://www.census.gov/data/developers/data-sets/acs-migration-flows/-examples-acs-flows-2014
Retrieves County-to-County flows for Wyoming, filtered by relationship to householder (householder, spouse, child, other relative, nonrelative). This query focuses on specific relationship categories.
```url
https://api.census.gov/data/2014/acs/flows?get=GEOID1,GEOID2,STATE1,STATE2,COUNTY1,COUNTY2,FULL1_NAME,FULL2_NAME,STATE1_NAME,STATE2_NAME,COUNTY1_NAME,COUNTY2_NAME,MOVEDIN,MOVEDIN_M,MOVEDOUT,MOVEDOUT_M,MOVEDNET,MOVEDNET_M&for=county:*&in=state:56&REL=01,02,03,04,05&SUMLEV2=50
```
--------------------------------
### Access 2004 SIPP Topical Wave 8 Data with Tabulation
Source: https://www.census.gov/data/developers/data-sets/census-microdata-api
This example retrieves data from the 2004 SIPP Topical Modules Wave 8 using tabulation. It specifies WPFINWGT as the weight, tabulates by TAGE (row) and EHRSCARE (column), filters by state 01, and includes the condition EDAYCARE=1. An API key is required.
```HTTP
GET api.census.gov/data/2004/sipp/topical/2004panel/wave8?tabulate=weight(WPFINWGT)&col+EHRSCARE&row+TAGE&for=state:01&EDAYCARE=1&key=YOUR_KEY_GOES_HERE
```
--------------------------------
### Get Manufacturing Statistics by Area (2013-2016)
Source: https://www.census.gov/data/developers/data-sets/asm-timeseries
Provides statistics for all manufacturing for specific areas (e.g., states) for the years 2013 through 2016. The example retrieves employee count, NAICS labels, and year for Alabama in 2016.
```api
api.census.gov/data/timeseries/asm/area2012?get=GEO_ID,NAICS2012_LABEL,NAICS2012,YEAR,EMP&for=state:01&key=YOUR_KEY_GOES_HERE
```
--------------------------------
### Census API Example Call - CPS ASEC 2009
Source: https://www.census.gov/data/developers/data-sets/census-microdata-api/cps-asec/2000s
This example demonstrates how to make an API call to retrieve specific variables (A_MARITL, MARSUPWT, HEA) for a given state (ID: 01) and household income group (A_HGA: 39) from the 2009 CPS ASEC March supplement. Replace 'YOUR_KEY_GOES_HERE' with your actual API key.
```bash
api.census.gov/data/2009/cps/asec/mar?get=A_MARITL,MARSUPWT,HEA&for=state:01&A_HGA=39&key=YOUR_KEY_GOES_HERE
```
--------------------------------
### Access 2002 CPS Basic Monthly Data (February)
Source: https://www.census.gov/data/developers/data-sets/census-microdata-api/cps/basic/2000s
This snippet shows an example API call to retrieve specific variables (PWSSWGT, PEMLR, PEMARITL) for a given state and educational level from the 2002 February CPS Basic Monthly dataset. It requires a unique API key.
```bash
api.census.gov/data/2002/cps/basic/feb?get=PWSSWGT,PEMLR,PEMARITL&for=state:01&PEEDUCA=39&key=YOUR_KEY_GOES_HERE
```
--------------------------------
### Get Industry Group and Industry Statistics (2002-2016)
Source: https://www.census.gov/data/developers/data-sets/asm-timeseries
Fetches statistics for industry groups and industries for the years 2002-2016. The example demonstrates retrieving employee counts for a specific NAICS code in 2016 for the entire US.
```api
api.census.gov/data/timeseries/asm/industry?get=NAICS_TTL,EMP,GEO_TTL&for=us:*&time=2016&NAICS=31-33&key=YOUR_KEY_GOES_HERE
```
--------------------------------
### PSEO Earnings Endpoint Example
Source: https://www.census.gov/data/developers/data-sets/pseo
This example demonstrates a detailed API call to the PSEO Earnings endpoint, specifying various parameters like earnings indicator, institution, degree level, CIP code, and graduation cohort.
```API
api.census.gov/data/timeseries/pseo/earnings?get=Y1_P50_EARNINGS&for=us:1&INSTITUTION=00365800&INST_STATE=48&INST_LEVEL=I&DEGREE_LEVEL=05&CIP_LEVEL=2&CIPCODE=11&GRAD_COHORT=2001&GRAD_COHORT_YEARS=3&key=YOUR_KEY_GOES_HERE
```
--------------------------------
### Call Census API for 2021 CPS Disability Data
Source: https://www.census.gov/data/developers/data-sets/census-microdata-api/cps
This example shows how to query the Census API for the 2021 CPS Disability Supplement. It includes parameters for variables to get, geographic scope, and an API key.
```bash
api.census.gov/data/2021/cps/disability/jul?get=PWSUPWGT,PESD1,PEMARITL&for=state:01&PEEDUCA=39&key=YOUR_KEY_GOES_HERE
```
--------------------------------
### Get New Residential Construction Between Dates
Source: https://www.census.gov/data/developers/data-sets/economic-indicators
This example shows how to retrieve new residential construction data within a specific date range, from May 2004 to December 2012. It utilizes both 'from' and 'to' parameters.
```api
api.census.gov/data/timeseries/eits/resconst?get=cell_value,data_type_code,time_slot_id,error_data,category_code,seasonally_adj&time=from+2004-05+to+2012-12
```
--------------------------------
### Get MCD-to-County Flows by All Characteristics (Wisconsin)
Source: https://www.census.gov/data/developers/data-sets/acs-migration-flows/-examples-acs-flows-2014
Retrieves County/MCD-to-County/MCD flows for Ashland city, Wisconsin, including all available characteristics (REL, HHT, TEN). This query provides a comprehensive dataset for a specific location.
```url
https://api.census.gov/data/2014/acs/flows?get=REL,HHT,TEN,GEOID1,GEOID2,STATE1,STATE2,COUNTY1,COUNTY2,MCD1,MCD2,FULL1_NAME,FULL2_NAME,STATE1_NAME,STATE2_NAME,COUNTY1_NAME,COUNTY2_NAME,MCD1_NAME,MCD2_NAME,MOVEDIN,MOVEDIN_M,MOVEDOUT,MOVEDOUT_M,MOVEDNET,MOVEDNET_M&for=county+subdivision:03250&in=state:55+county:003
```
--------------------------------
### Querying Population for a Single State
Source: https://www.census.gov/data/developers/geography
This example demonstrates how to query the Census Bureau API to retrieve the total population for a specific state using its FIPS code. It requires the API key, the desired dataset (e.g., 2010 sf1), the metric (P001001 for total population), and the 'for' argument specifying the state and its FIPS code.
```HTTP
/api.census.gov/data/2010/sf1?&key=...&get=P001001&for=state:06
```
--------------------------------
### Access 2001 SIPP Core Wave 5 Data with Tabulation
Source: https://www.census.gov/data/developers/data-sets/census-microdata-api
This example demonstrates accessing the 2001 SIPP Core Wave 5 data with tabulation. It uses WHFNWGT as the weight, tabulates by ERACE (row) and EPDJBTHN (column), filters by state 01, and applies the condition ERRP=1. An API key is required.
```HTTP
GET api.census.gov/data/2001/sipp/core/2001panel/wave5?tabulate=weight(WHFNWGT)&col+EPDJBTHN&row+ERACE&for=state:01&ERRP=1&key=YOUR_KEY_GOES_HERE
```
--------------------------------
### Call Census API for 2012 CPS Disability Data
Source: https://www.census.gov/data/developers/data-sets/census-microdata-api/cps
This example demonstrates how to call the Census API to retrieve data from the 2012 CPS Disability Supplement. It specifies variables to get, geography, and requires an API key.
```bash
api.census.gov/data/2012/cps/disability/may?get=PWSUPWGT,PESD1,PEMARITL&for=state:01&PEEDUCA=39&key=YOUR_KEY_GOES_HERE
```
--------------------------------
### QWI API Query with Firm Age/Size
Source: https://www.census.gov/data/developers/data-sets/qwi
This example shows how to filter QWI data by firm age or firm size characteristics using predicate parameters. Note that firm age and size cannot be selected simultaneously.
```URL
api.census.gov/data/timeseries/qwi/sa?get=Emp&for=county:198&in=state:02&year=2012&quarter=1&sex=1&sex=2&agegrp=A02&agegrp=A07&ownercode=A05&firmsize=1&seasonadj=U&industry=11&key=[userkey]
```
--------------------------------
### Get County Supplemental Statistics (Maryland)
Source: https://www.census.gov/data/developers/data-sets/acs-migration-flows/-examples-acs-flows-2014
Retrieves supplemental statistics for people living in Maryland counties one year ago, not filtered by any characteristics. This query provides historical population movement data for the state.
```url
https://api.census.gov/data/2014/acs/flows?get=GEOID1,STATE1,COUNTY1,FULL1_NAME,STATE1_NAME,COUNTY1_NAME,POP1YRAGO,POP1YRAGO_M,NONMOVERS,NONMOVERS_M,SAMECOUNTY,SAMECOUNTY_M,TODIFFCTY,TODIFFCTY_M,TODIFFSTATE,TODIFFSTATE_M,TOPUERTORICO,TOPUERTORICO_M&for=county:*&in=state:24&REL=00&HHT=00&TEN=00
```
--------------------------------
### Get County Supplemental Statistics by Relationship (Tennessee)
Source: https://www.census.gov/data/developers/data-sets/acs-migration-flows/-examples-acs-flows-2014
Retrieves supplemental statistics for people 1 year and over in Tennessee counties, filtered by relationship to householder. This query analyzes population movement based on household roles.
```url
https://api.census.gov/data/2014/acs/flows?get=GEOID1,STATE1,COUNTY1,FULL1_NAME,STATE1_NAME,COUNTY1_NAME,POP1YR,POP1YR_M,NONMOVERS,NONMOVERS_M,SAMECOUNTY,SAMECOUNTY_M,FROMDIFFCTY,FROMDIFFCTY_M,FROMDIFFSTATE,FROMDIFFSTATE_M,FROMABROAD,FROMABROAD_M&for=county:*&in=state:47&REL=01,02,03,04,05
```
--------------------------------
### PSEO Flows Endpoint Example
Source: https://www.census.gov/data/developers/data-sets/pseo
This example shows a detailed API call to the PSEO Flows endpoint, including employment indicators, geography, institution, and graduation cohort parameters.
```API
api.census.gov/data/timeseries/pseo/flows?get=Y1_GRADS_EMP&for=division:9&INSTITUTION=00365800&INST_STATE=48&INST_LEVEL=I&DEGREE_LEVEL=05&CIP_LEVEL=2&CIPCODE=11&NAICS=54&GRAD_COHORT=2001&GRAD_COHORT_YEARS=3&key=YOUR_KEY_GOES_HERE
```
--------------------------------
### Get County Supplemental Statistics (Oregon)
Source: https://www.census.gov/data/developers/data-sets/acs-migration-flows/-examples-acs-flows-2014
Retrieves supplemental statistics for people 1 year and over living in Oregon counties, not filtered by any characteristics. This query provides general population movement data within the state.
```url
https://api.census.gov/data/2014/acs/flows?get=GEOID1,STATE1,COUNTY1,FULL1_NAME,STATE1_NAME,COUNTY1_NAME,POP1YR,POP1YR_M,NONMOVERS,NONMOVERS_M,SAMECOUNTY,SAMECOUNTY_M,FROMDIFFCTY,FROMDIFFCTY_M,FROMDIFFSTATE,FROMDIFFSTATE_M,FROMABROAD,FROMABROAD_M&for=county:*&in=state:41&REL=00&HHT=00&TEN=00
```
--------------------------------
### Access 2001 SIPP Core Wave 1 Data with Tabulation
Source: https://www.census.gov/data/developers/data-sets/census-microdata-api
This example demonstrates accessing the 2001 SIPP Core Wave 1 data with tabulation. It uses WHFNWGT as the weight, tabulates by ERACE (row) and EPDJBTHN (column), filters by state 01, and applies the condition ERRP=1. An API key is required.
```HTTP
GET api.census.gov/data/2001/sipp/core/2001panel/wave1?tabulate=weight(WHFNWGT)&col+EPDJBTHN&row+ERACE&for=state:01&ERRP=1&key=YOUR_KEY_GOES_HERE
```
--------------------------------
### Get County-to-County Flows by Housing Tenure (South Dakota)
Source: https://www.census.gov/data/developers/data-sets/acs-migration-flows/-examples-acs-flows-2014
Retrieves County-to-County flows for South Dakota, filtered by housing tenure (owner-occupied, renter-occupied). This query segments data based on housing ownership status.
```url
https://api.census.gov/data/2014/acs/flows?get=GEOID1,GEOID2,STATE1,STATE2,COUNTY1,COUNTY2,FULL1_NAME,FULL2_NAME,STATE1_NAME,STATE2_NAME,COUNTY1_NAME,COUNTY2_NAME,MOVEDIN,MOVEDIN_M,MOVEDOUT,MOVEDOUT_M,MOVEDNET,MOVEDNET_M&for=county:*&in=state:46&TEN=01,02&SUMLEV2=50
```
--------------------------------
### Census API Example Call - CPS ASEC 2005
Source: https://www.census.gov/data/developers/data-sets/census-microdata-api/cps-asec/2000s
This example demonstrates how to make an API call to retrieve specific variables (A_MARITL, MARSUPWT, HEA) for all states (state:*) and household income group (A_HGA: 39) from the 2005 CPS ASEC March supplement. Replace 'YOUR_KEY_GOES_HERE' with your actual API key.
```bash
api.census.gov/data/2005/cps/asec/mar?get=A_MARITL,MARSUPWT,HEA&for=state:*&A_HGA=39&key=YOUR_KEY_GOES_HERE
```