Discover/census.gov API
live

census.gov APIwww.census.gov

Access US Census Bureau ACS housing data — home values, rents, occupancy rates, and housing units by state, county, ZIP, tract, and more.

Endpoints
3
Updated
1mo ago
Try it
ACS data year (e.g. 2022, 2021, 2020).
ACS dataset: acs/acs5 (5-year estimates, all geographies) or acs/acs1 (1-year estimates, larger areas only).
FIPS code for the geography, or * for all entities at the specified geo_level.
Geography level. Accepted values: state, county, place, zip, tract.
2-digit state FIPS code. Required for place and tract queries; optional for county queries to filter within a state.
3-digit county FIPS code. Required for tract queries.
api.parse.bot/scraper/a7a77a76-6329-44e5-b61f-fd84d5965dfb/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Use it in your codegrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/a7a77a76-6329-44e5-b61f-fd84d5965dfb/get_property_data?year=2022&dataset=acs%2Facs5&geo_code=%3Czip_code%3E&geo_level=zip' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 3 totalclick to expand

Get property and housing statistics for a specified geography. Returns median home value, median rent, owner/renter occupancy, housing unit counts, median year built, median rooms, household income, and monthly housing costs from ACS data.

Input
ParamTypeDescription
yearstringACS data year (e.g. 2022, 2021, 2020).
datasetstringACS dataset: acs/acs5 (5-year estimates, all geographies) or acs/acs1 (1-year estimates, larger areas only).
geo_codestringFIPS code for the geography, or * for all entities at the specified geo_level.
geo_levelstringGeography level. Accepted values: state, county, place, zip, tract.
state_codestring2-digit state FIPS code. Required for place and tract queries; optional for county queries to filter within a state.
county_codestring3-digit county FIPS code. Required for tract queries.
Response
{
  "type": "object",
  "fields": {
    "year": "string, the data year queried",
    "dataset": "string, the ACS dataset used",
    "results": "array of objects with name, median_home_value, median_gross_rent, total_occupied_units, owner_occupied_units, renter_occupied_units, total_housing_units, occupied_units, vacant_units, median_year_built, median_rooms, median_household_income, median_monthly_housing_costs, and applicable FIPS codes",
    "geo_level": "string, geography level queried",
    "total_results": "integer, number of geographic areas returned"
  },
  "sample": {
    "data": {
      "year": "2022",
      "dataset": "acs/acs5",
      "results": [
        {
          "name": "ZCTA5 90210",
          "zip_code": "90210",
          "total_units": 9690,
          "median_rooms": 6.9,
          "vacant_units": 1797,
          "occupied_units": 7893,
          "median_gross_rent": 3034,
          "median_home_value": 2000001,
          "median_year_built": 1965,
          "total_housing_units": 9690,
          "owner_occupied_units": 5853,
          "total_occupied_units": 7893,
          "renter_occupied_units": 2040,
          "median_household_income": 172285,
          "median_monthly_housing_costs": 4001,
          "total_owner_occupied_units_value": 5853
        }
      ],
      "geo_level": "zip",
      "total_results": 1
    },
    "status": "success"
  }
}

About the census.gov API

This API exposes 3 endpoints for querying American Community Survey (ACS) housing and property statistics from the US Census Bureau. Use get_property_data to retrieve median home values, median gross rent, owner/renter occupancy counts, total housing units, median year built, and household income across five geography levels — state, county, place, ZIP code, or census tract — for any available ACS data year.

What the API returns

The get_property_data endpoint returns an array of geographic areas, each with fields including median_home_value, median_gross_rent, total_occupied_units, owner_occupied_units, renter_occupied_units, and additional housing cost and structure metrics. You can target any ACS-supported geography using geo_level (state, county, place, zip, or tract), supply a specific FIPS code via geo_code, or pass * to retrieve all entities at that level. The state_code and county_code params are required for narrower geographies like tracts.

Choosing the right dataset

The dataset param selects between acs/acs5 (5-year estimates, covering all geographies including small census tracts and ZIP codes) and acs/acs1 (1-year estimates, restricted to areas with populations of 65,000 or more). The year param controls which ACS release is queried — for example, 2022 returns the most recently published 2022 estimates. 5-year estimates are generally preferred for tract- and ZIP-level analysis due to their larger sample sizes.

Discovering tables and variables

The search_property_tables endpoint accepts a query keyword and returns matching ACS table IDs, descriptions, and a variables_url for each. Once you have a table ID — for example, B25077 for median home value or B25001 for total housing units — pass it to get_table_variables to inspect every variable code, label, concept, and data type in that table. This discovery workflow lets you identify the exact variable codes available before constructing a data query.

Common use cases
  • Map median home values and gross rents by county or ZIP code for a real estate market analysis tool.
  • Compare owner-occupied vs. renter-occupied unit ratios across states for housing policy research.
  • Build a neighborhood demographic dashboard pulling tract-level household income and housing cost data.
  • Filter ACS tables by keyword to discover relevant census variables for a custom housing affordability index.
  • Aggregate total housing unit counts by state to model regional housing supply trends over multiple ACS years.
  • Pull median year built by census tract to identify older housing stock for renovation or infrastructure planning.
  • Query place-level housing data to enrich a city comparison tool with census-sourced rental and ownership metrics.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does the US Census Bureau provide an official developer API?+
Yes. The Census Bureau operates the Census Data API at api.census.gov, which provides programmatic access to ACS and other datasets. This Parse API surfaces a structured subset of that data focused on housing and property variables.
What geography levels does get_property_data support, and are there any requirements for narrower geographies?+
The geo_level param accepts state, county, place, zip, and tract. For place and tract queries, state_code (2-digit FIPS) is required. For tract queries, county_code (3-digit FIPS) is also required. County queries optionally accept state_code to restrict results to a single state.
Does the acs/acs1 dataset cover all geographies?+
No. The 1-year ACS (acs/acs1) only covers geographic areas with populations of 65,000 or more. Smaller counties, most census tracts, and many ZIP Code Tabulation Areas are only available in the 5-year estimates (acs/acs5). Use acs/acs5 when querying tract- or ZIP-level data.
Can I retrieve individual household-level records or microdata through this API?+
No. The API returns aggregated ACS estimates at the geographic summary level — median values, counts, and rates — not individual survey responses or Public Use Microdata Sample (PUMS) records. You can fork this API on Parse and revise it to add an endpoint that queries ACS PUMS data if household-level records are needed.
Does the API expose non-housing Census variables like population, education, or commute data?+
The default fields in get_property_data focus on housing metrics. However, search_property_tables and get_table_variables let you browse ACS table groups beyond housing. Non-housing demographic variables are not surfaced in the current response schema. You can fork the API on Parse and revise it to add endpoints targeting other ACS subject tables.
Page content last updated . Spec covers 3 endpoints from www.census.gov.
Related APIs in Government PublicSee all →
api.developer.attomdata.com API
Look up comprehensive property details including ownership information, neighborhood data, and historical transaction trends for any address. Search for points of interest and analyze sales trends to make informed real estate decisions.
zillow.com API
Search for homes for sale, rent, or recently sold listings on Zillow while accessing detailed property information, Zestimates, agent profiles, and current mortgage rates all in one place. Streamline your real estate research by gathering comprehensive property details, agent information, and financing options without navigating multiple pages.
realtor.com API
Search millions of real estate listings on Realtor.com, view detailed property information, find qualified agents in your area, and access market analytics to understand pricing trends. Get location suggestions and property insights all in one place to help you make informed decisions about buying, selling, or investing in real estate.
housing.com API
Search and retrieve real estate listings on Housing.com. Browse properties for sale, rent, plots, and commercial spaces across major Indian cities with filtering by locality and property type.
hudexchange.info API
Search and browse over 5,288 HUD resources including FAQs, training materials, reports, and general documents across 95+ housing and urban development programs. Filter results by program, topic, and content type to quickly find the information you need.
qPublic Property Records API
Search for properties on qPublic and access comprehensive details including owner information, valuations, building and land characteristics, sales history, tax exemptions, and fees. Retrieve complete property records to research real estate, verify ownership, or analyze property values.
rentregistry.cityofberkeley.info API
Search Berkeley rental properties and access detailed rent information, registration statistics, and FAQs from the City of Berkeley's official Rent Registry. Look up unit-level rental data and property details to research housing costs and landlord registration records in Berkeley.
rent.com API
Browse and extract rental property data from Rent.com. Search listings by location and filter by beds, baths, price, and pet policy. Retrieve full property details, floor plans, unit availability, amenities, nearby schools, points of interest, and active specials.