Datacommons Client
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
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, andMedian_Income_Householdas example variables, plus hierarchy queries such as all counties within a state - Requires a
DC_API_KEYfor 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 -yInstalls 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- HTML Injection Testing223
- Brenda Database222
- Heygen Best Practices222
- Hmdb Database222
- Umap Learn222
- AWS Penetration Testing220
- Cellxgene Census220
- Clerk Auth220
- Kaizen220
- Lamindb219
- Nosql Expert219
- Pyopenms219
- Capa Officer218
- Ena Database218
- Cosmic Database217
- Histolab217
- Neuropixels Analysis217
- Pydeseq2217
- Benchling Integration216
- Hypogenic216
- Notion Template Business216
- Pennylane215
- Zinc Database215
- Cirq214
Similar to Datacommons Client
More Data Science & Analyticskosis-statsSkillnomadamas/k-skill11.4K installsQuery Korean official statistics tables from KOSIS Open API for population, household, price, and employment figures.
Cdc Health Mcp ServerMCP servercyanheads5 starsQuery and aggregate CDC public health datasets and national WONDER mortality statistics, with schema lookup.
cn-statsSkillaahl/skills1.8K installsQuery China's National Bureau of Statistics open data for CPI, GDP, population, and housing price indices.
api-data-fetcherSkillmeleantonio/awesome-econ-ai-stuff209 installsFetch economic data from FRED, World Bank, IMF, BLS, and OECD with documented, error-handled Python code.