census
A wrapper for the US Census Bureau's API
Decision gist · record as of 2026-08-14
Yes. Census is a stable, actively maintained wrapper with low install friction (one dependency), no known vulnerabilities, and permissive licensing. Install it if you need programmatic access to US Census data; it eliminates manual API construction and provides geographic convenience methods. The only prerequisite is obtaining a free Census API key.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a Census API key obtained from https://api.census.gov/data/key_signup.html before making any data requests.
- Low friction: pure Python wheel with only requests as a runtime dependency.
- Active maintenance with recent release (91 days ago) and 681 repository stars indicate ongoing support.
License · maintenance · safety
BSD (permissive) — BSD permissive license allows commercial and private use with minimal restrictions; suitable for most projects.
last release 2026-05-15 (91 days) · last repo commit 2026-05-15 · 681 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 198,687 downloads/mo, #9,722 on PyPI
Alternatives
Verify before relying
pip install census
from census import Census
c = Census("YOUR_API_KEY")
data = c.acs5.state(('NAME', 'B25034_010E'), '24')- Whether the package supports Python 3.x versions or has any minimum Python version requirement (not specified in metadata).
- Performance characteristics when querying large geographic areas or multiple years of historical data.
What it is and what it does
Census is a lightweight client library that abstracts the Census Bureau's HTTP API into Python method calls. It handles the low-level details of constructing API requests, managing geographic specifications (FIPS codes, state/county/tract hierarchies), and parsing responses for multiple Census datasets including ACS 5-year, 3-year, and 1-year estimates, as well as Summary File 1 and redistricting data.
The library provides convenience methods for common geographic queries (state, county, tract, congressional district, etc.) and supports year-based queries across historical datasets. It depends only on requests for HTTP communication, making it lightweight to integrate into data pipelines, demographic analysis scripts, or research tools that need programmatic Census access.
Use it for
- Retrieve demographic statistics for a specific state or county to build population reports or dashboards.
- Query historical Census data across multiple years to analyze demographic trends in a geographic area.
- Automate bulk extraction of housing, income, or education metrics for research or policy analysis.
- Build geographic lookup tools that map FIPS codes to Census data for civic tech applications.
- Integrate Census data into data warehouses or ETL pipelines for downstream analysis.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
Census is a stable, actively maintained wrapper with low install friction (one dependency), no known vulnerabilities, and permissive licensing. Install it if you need programmatic access to US Census data; it eliminates manual API construction and provides geographic convenience methods. The only prerequisite is obtaining a free Census API key.
Install
census on PyPI
Before you install
Low friction: pure Python wheel with only requests as a runtime dependency. Active maintenance with recent release (91 days ago) and 681 repository stars indicate ongoing support.
Requires a Census API key obtained from https://api.census.gov/data/key_signup.html before making any data requests.
License in practice
BSD permissive license allows commercial and private use with minimal restrictions; suitable for most projects.
Quickstart
pip install census
from census import Census
c = Census("YOUR_API_KEY")
data = c.acs5.state(('NAME', 'B25034_010E'), '24')
Verify before relying
- Whether the package supports Python 3.x versions or has any minimum Python version requirement (not specified in metadata).
- Performance characteristics when querying large geographic areas or multiple years of historical data.
Package facts
| License | BSD permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagerequests |
| Maintenance | Actively maintained 91 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 198,687 / month, #9,722 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: Python |
Evidence: census-0.8.27-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “census bureau api wrapper”
- censusProvides a Python wrapper for the United States Census Bureau's API,…
- usProvides structured access to US state and territory metadata…
- censusgeocodeWraps the US Census Geocoder API to convert addresses to coordinates…
Give your agent the search over MCP, or paste the wish link into any chat.
More WWW/HTTP packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.
HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.
Install it if you are building new projects or modernizing existing ones that rely on HTTP.
A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.
aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.
Install it if you need async HTTP client or server capabilities in asyncio-based applications.
See also censusgeocode · spm-calculator · us · geonamescache · uszipcode · pyzipcode · openbb-bls · cellxgene-census · SurveyGizmo · prisma-sase