Skip to content

Python client for querying public statistical data from Data Commons across three endpoints: observation, node, and resolve.

CCM score
71 of 100
skills.sh installs
225
GitHub stars
34.3K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the typical workflow: resolve place names to DCIDs, discover statistical variables, fetch observations, then convert results to dicts or Pandas DataFrames
  • Includes Count_Person, UnemploymentRate_Person, and Median_Income_Household as example variables, plus hierarchy queries such as all counties within a state
  • Requires a DC_API_KEY for datacommons.org, while custom Data Commons instances need only a URL
  • Designed for analysts working with demographic, economic, health, or environmental statistics drawn from census and health agency sources

Install

$ npx -y skills add davila7/claude-code-templates --skill datacommons-client -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Data Commons Client

Overview

Provides comprehensive access to the Data Commons Python API v2 for querying statistical observations, exploring the knowledge graph, and resolving entity identifiers. Data Commons aggregates data from census bureaus, health organizations, environmental agencies, and other authoritative sources into a unified knowledge graph.

Installation

Install the Data Commons Python client with Pandas support:

uv pip install "datacommons-client[Pandas]"

For basic usage without Pandas:

uv pip install datacommons-client

Core Capabilities

The Data Commons API consists of three main endpoints, each detailed in dedicated reference files:

1. Observation Endpoint - Statistical Data Queries

Query time-series statistical data for entities. See references/observation.md for comprehensive documentation.

Primary use cases:

  • Retrieve population, economic, health, or environmental statistics
  • Access historical time-series data for trend analysis
  • Query data for hierarchies (all counties in a state, all countries in a region)
  • Compare statistics across multiple entities
  • Filter by data source for consistency

Details

Repository
github.com/davila7/claude-code-templates
Categories
Data Science & Analytics, Python
First seen
Jun 3, 2026

Questions

What does the datacommons-client skill do?

The datacommons-client skill gives an agent programmatic access to the Data Commons Python API v2 for querying statistical observations, exploring the knowledge graph and resolving entity identifiers. Data Commons aggregates public data from census bureaus, health organizations and environmental agencies into one knowledge graph.

How do I install the datacommons-client skill?

Run this command in a project: npx -y skills add davila7/claude-code-templates --skill datacommons-client -y. Once installed, datacommons-client lets the agent query population, GDP, unemployment and disease data for places it resolves by name.

What does datacommons-client need to run?

datacommons-client needs a Data Commons API key for the default datacommons.org service, set through the DC_API_KEY environment variable or passed when creating the client. Keys are requested at apikeys.datacommons.org, and a custom Data Commons instance needs no key.

Where does datacommons-client sit in its category?

datacommons-client is listed in the Data Science & Analytics category on Claude Marketplaces, next to azure-kusto, analyze-project, run-train, explore-run and add-analytics-instrumentation. Its focus is public statistical data such as demographics, economic indicators and health statistics from Data Commons.

More from davila7/claude-code-templates

All 398

Similar to Datacommons Client

More Data Science & Analytics