Need census data, economic indicators, or public health statistics? This wraps the Data Commons Python API, giving you programmatic access to aggregated public datasets from government agencies and international organizations. The three endpoint pattern is clean: resolve entity names to IDs, explore the knowledge graph for available variables, then query the actual statistical observations. Works well with Pandas for analysis. The entity expression syntax for hierarchical queries (like all counties in a state at once) is genuinely useful. You'll need an API key for the public instance, but the statistical variable naming is intuitive enough once you see a few examples.

skills.sh installs
225
GitHub stars
33.2K
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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

Sponsors

Details

Repository
github.com/davila7/claude-code-templates
Category
Data Science & ML
First seen
Jun 3, 2026

More from davila7/claude-code-templates

All 618
1davila7 avatarumap-learndavila7/claude-code-templatesUMAP dimensionality reduction. Fast nonlinear manifold learning for 2D/3D visualization, clustering preprocessing (HDBSCAN), supervised/parametric UMAP, for hig222skills.sh installs
2scientiacapital avatardata-analysisscientiacapital/skillsExecutive-grade data analysis with pandas/polars and McKinsey-quality visualizations. Use when analyzing data, building dashboards, creating investor presentati221skills.sh installs
3guia-matthieu avatarpersona-generatorguia-matthieu/clawfu-skillsCreate research-backed buyer personas that drive real marketing and product decisions. Combine Buyer Personas methodology with Jobs-to-be-Done to build profiles220skills.sh installs
4davila7 avatarcellxgene-censusdavila7/claude-code-templatesQuery CZ CELLxGENE Census (61M+ cells). Filter by cell type/tissue/disease, retrieve expression data, integrate with scanpy/PyTorch, for population-scale single219skills.sh installs
5davila7 avatarlamindbdavila7/claude-code-templatesThis skill should be used when working with LaminDB, an open-source data framework for biology that makes data queryable, traceable, reproducible, and FAIR. Use219skills.sh installs
6davila7 avatargenimldavila7/claude-code-templatesThis skill should be used when working with genomic interval data (BED files) for machine learning tasks. Use for training region embeddings (Region2Vec, BEDspa214skills.sh installs