Census Data API for Openclaw

A comprehensive interface for querying US Census Bureau datasets including ACS estimates, decennial counts, and economic indicators.

aiwithabidi
v1.0.0
Feb 21, 2026
0
525
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install census

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install census using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Census Data API?

The Census skill provides a robust, zero-dependency Python bridge to the US Census Bureau's massive data repositories. As a core component of the Openclaw Skills library, it allows developers and AI agents to programmatically access population statistics, demographic shifts, and detailed economic patterns across various geographic levels.

By leveraging this tool, agents can perform sophisticated data retrieval tasks—from fetching median household income to analyzing county-level business patterns—directly within their automated workflows. The integration is designed for speed and reliability, utilizing the official Census API to provide structured JSON responses that are ready for immediate analysis.

Census Data API Use Cases

  • Generating demographic profiles for specific US states or counties for market research.
  • Analyzing poverty and income trends to inform social impact or real estate strategies.
  • Querying the 2020 Decennial Census for highly accurate population counts.
  • Monitoring economic health through County Business Patterns (CBP) and establishment counts.
  • Identifying housing vacancy rates and total housing units for urban planning simulations.

How Census Data API Works

  1. The AI agent or user triggers the census.py script with a specific dataset command such as acs-5yr or population.
  2. The script processes the request parameters, including the specific variables (e.g., NAME, B01003_001E) and geographic filters.
  3. A secure request is sent to the US Census Bureau API, optionally authenticated via the CENSUS_API_KEY environment variable.
  4. The raw API response is parsed and transformed into a clean, structured JSON format.
  5. The final data is returned to the agent, enabling seamless integration with other Openclaw Skills in the pipeline.

Census Data API Setup

To get started with these Openclaw Skills, ensure you have Python 3.10 or higher installed. No external packages are required as the skill uses the Python standard library.

# (Optional) Set your Census API key for higher rate limits
export CENSUS_API_KEY='your_api_key_here'

# Fetch population data for all states
python3 scripts/census.py population --get "NAME,POP_2022" --for "state:*"

Census Data API Data Schema & Taxonomy

The skill returns structured JSON data. Users can query specific variables identified in the Census Bureau's documentation or use the built-in list commands to discover available fields.

Feature Description
Dataset Support ACS (1-yr/5-yr), Decennial, Population Estimates, Poverty, Housing
Geographic Filtering State, County, and other Census-recognized boundaries
Output Format Standardized JSON arrays for easy parsing
Variable Discovery Integrated list-variables and list-datasets commands

Census Data API Advanced Features

  • Support for NAICS code filtering in County Business Patterns to target specific industry sectors.
  • Built-in dataset discovery tools to explore available years and metadata without leaving the CLI.
  • Comprehensive access to both American Community Survey (ACS) and Decennial Census data within the same toolset.
  • Efficient, dependency-free implementation that minimizes the footprint of your Openclaw Skills deployment.
  • Support for complex geographic queries across the entire United States.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Requires
Github Stars: 0
forks: 0

Featured*