alterlab-datacommons

Installation
SKILL.md

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.

Verified against datacommons-client 2.1.6 (current as of 2026-09; Python ≥ 3.10). This is the V2 client (package datacommons_client), not the legacy datacommons (V1) package — the two have different APIs; do not mix them. Keyword names matter: the place-hierarchy helpers take place_dcids, fetch_entity_names takes entity_dcids, and fetch_property_values takes properties — passing node_dcids to them raises TypeError.

When to Use This Skill

  • Pulling population, economic, health, education, or environmental statistics for places (countries, states, counties, cities)
  • Building cross-place or time-series comparisons from harmonized public sources (census, BLS, WHO, World Bank, EPA, …)
  • Resolving place names, coordinates, or Wikidata IDs to Data Commons DCIDs
  • Exploring the Data Commons knowledge graph (place hierarchies, properties, statistical-variable definitions)

Does NOT Trigger

Installs
66
GitHub Stars
75
First Seen
Apr 12, 2026