Skip to main content
U.S. flag

An official website of the United States government

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Secure .gov websites use HTTPS
A lock ( ) or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.

Skip to content

Try the next-generation Data Catalog at catalog-beta.data.gov and help shape it with your feedback.

Python code used to download U.S. Census Bureau data for public-supply water service areas

Metadata Updated: January 21, 2026

This child item describes Python code used to query census data from the TigerWeb Representational State Transfer (REST) services and the U.S. Census Bureau Application Programming Interface (API). These data were needed as input feature variables for a machine learning model to predict public supply water use for the conterminous United States. Census data were retrieved for public-supply water service areas, but the census data collector could be used to retrieve data for other areas of interest. This dataset is part of a larger data release using machine learning to predict public supply water use for 12-digit hydrologic units from 2000-2020. Data retrieved by the census data collector code were used as input features in the public supply delivery and water use machine learning models. This page includes the following file: census_data_collector.zip - a zip file containing the census data collector Python code used to retrieve data from the U.S. Census Bureau and a README file.

Access & Use Information

Public: This dataset is intended for public access and use. License: No license information was provided. If this work was prepared by an officer or employee of the United States government as part of that person's official duties it is considered a U.S. Government Work.

Downloads & Resources

Dates

Metadata Created Date January 11, 2026
Metadata Updated Date January 21, 2026

Metadata Source

Harvested from DOI USGS DCAT-US

Additional Metadata

Resource Type Dataset
Metadata Created Date January 11, 2026
Metadata Updated Date January 21, 2026
Publisher U.S. Geological Survey
Maintainer
Identifier http://datainventory.doi.gov/id/dataset/USGS_63c6f220d34e92aad3d120bd
Data Last Modified 2023-11-01T00:00:00Z
Category geospatial
Public Access Level public
Bureau Code 010:12
Metadata Context https://project-open-data.cio.gov/v1.1/schema/catalog.jsonld
Metadata Catalog ID https://ddi.doi.gov/usgs-data.json
Schema Version https://project-open-data.cio.gov/v1.1/schema
Catalog Describedby https://project-open-data.cio.gov/v1.1/schema/catalog.json
Datagov Dedupe Retained 20260121130127
Harvest Object Id 7bdbaf19-e63e-4f45-a690-e5ee843e3ff4
Harvest Source Id 2b80d118-ab3a-48ba-bd93-996bbacefac2
Harvest Source Title DOI USGS DCAT-US
Metadata Type geospatial
Old Spatial {"type": "Polygon", "coordinates": -126.2000, 24.2000, -126.2000, 50.2000, -64.3000, 50.2000, -64.3000, 24.2000, -126.2000, 24.2000}
Source Datajson Identifier True
Source Hash 7ea6f12eb3e0622b41428eb2b6221f7288d9e130f1511671a4e826ff7bbee948
Source Schema Version 1.1
Spatial {"type": "Polygon", "coordinates": -126.2000, 24.2000, -126.2000, 50.2000, -64.3000, 50.2000, -64.3000, 24.2000, -126.2000, 24.2000}

Didn't find what you're looking for? Suggest a dataset here.