
Datacommons Client
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-codeInstalls 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- Brenda Database222
- Heygen Best Practices222
- Hmdb Database222
- Umap Learn222
- Arboreto221
- Clerk Auth220
- Cellxgene Census219
- Kaizen219
- Lamindb219
- Nosql Expert219
- Opentargets Database219
- Pyopenms219
- Capa Officer218
- Deeptools218
- Ena Database218
- Naming Analyzer218
- Popup Cro218
- Cosmic Database217
- Histolab217
- Neuropixels Analysis217
- Pydeseq2217
- Benchling Integration216
- Hypogenic216
- Notion Template Business216