datacommons-client

Resolves entity names to Data Commons DCIDs and fetches observations and time-series data.

1|Updated Mar 19, 2026
One-click install
npx skills add https://github.com/JosephWoodall/noosphere --skill datacommons-client-josephwoodall
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: datacommons-client
Source: https://github.com/JosephWoodall/noosphere/tree/main/.agent/skills/datacommons-client
Command: npx skills add https://github.com/JosephWoodall/noosphere --skill datacommons-client-josephwoodall

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Data analysts and developers need reliable access to public statistical data from Data Commons. The skill provides a Python client library to query observations, resolve DCIDs, explore the knowledge graph, and process results (including Pandas dataframes) for analysis.

Core Features & Use Cases

  • Observation queries and time-series retrieval for variables across entities
  • Resolve place names, coordinates, or Wikidata IDs to DCIDs
  • Node endpoint exploration for property relationships and hierarchies
  • Pandas integration for data processing and analysis
  • End-to-end guidance and references via the provided reference docs

Quick Start

Install the datacommons-client package, create a DataCommonsClient instance, resolve a place name to a DCID, and fetch the latest population data.

Frequently Asked Questions about datacommons-client

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I query Data Commons observations for demographic and economic data in Python?

To query Data Commons observations, use a Python client to resolve entity DCIDs and fetch time-series data across demographic and economic variables. The client supports observation, node, and resolve endpoints, returning results directly for analysis.

Can I resolve place names or coordinates to Data Commons DCIDs programmatically?

Yes, you can resolve place names, coordinates, or Wikidata IDs to Data Commons DCIDs programmatically. The resolve endpoint handles this mapping, enabling subsequent observation queries and knowledge graph exploration for the identified entities.

Does the Data Commons Python client support Pandas dataframes for data processing?

Yes, the Data Commons Python client supports optional Pandas integration for data processing. It converts observation queries and time-series retrieval results into Pandas dataframes, allowing you to process and analyze demographic, economic, health, and environmental data directly.

What is the best way to explore the Data Commons knowledge graph for hierarchical relationships?

The best way to explore the Data Commons knowledge graph is using the node endpoint to query property relationships and hierarchies. This allows you to traverse entities and fetch observations across multiple entities and time ranges within the graph structure.

Do I need an API key to fetch statistics from datacommons.org?

Yes, you need an API key to fetch statistics from datacommons.org. The Python client includes API key handling to authenticate requests when resolving DCIDs and retrieving observation data across various statistical domains.

Why does resolving a DCID fail when fetching time-series data from Data Commons?

Resolving a DCID fails when the entity name, coordinate, or Wikidata ID does not match a valid entry in the Data Commons knowledge graph. Ensure the input matches recognized place names or identifiers before attempting to fetch observations.