datacommons-client

Query Data Commons endpoints to retrieve statistical observations and resolve DCIDs.

48|6|Updated Mar 9, 2026
One-click install
npx skills add https://github.com/qinyan-ai/qinyan-academic-skills --skill datacommons-client-qinyan-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: datacommons-client
Source: https://github.com/qinyan-ai/qinyan-academic-skills/tree/main/skills/12-%E7%A7%91%E5%AD%A6%E6%95%B0%E6%8D%AE%E5%BA%93/datacommons-client
Command: npx skills add https://github.com/qinyan-ai/qinyan-academic-skills --skill datacommons-client-qinyan-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Retrieve statistical observations and explore the Data Commons knowledge graph via a Python client, enabling programmatic access to global demographic, economic, health, and environmental data without manual scraping.

Core Features & Use Cases

  • Access the Observation endpoint to fetch time-series data for variables across entities, with support for latest, all, or specific dates.
  • Explore entity relationships and properties using the Node endpoint and resolve DCIDs via the Resolve endpoint for end-to-end workflows.
  • Benefit from Pandas integration to convert responses into DataFrames for analysis and visualization, plus quick-start examples and reference documentation.

Quick Start

Install the datacommons-client package, then resolve a place name to a DCID and fetch a simple population observation.

Frequently Asked Questions about datacommons-client

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

FAQPage Schema
How do I query public statistics and time-series data using Python?

To query public statistics and time-series data using Python, you can use the datacommons-client to access the Data Commons Observation endpoint, filtering by specific dates or retrieving the latest data.

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

Yes, you can resolve place names or coordinates to Data Commons entity IDs programmatically by utilizing the Resolve endpoint provided by the datacommons-client.

How do I navigate the Data Commons knowledge graph to explore entity relationships?

You navigate the Data Commons knowledge graph to explore entity relationships by querying the Node endpoint, which allows you to retrieve properties and relationships across various domains.

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

Yes, the Data Commons Python client supports Pandas integration, allowing you to convert retrieved statistical observations and knowledge graph responses directly into DataFrames for analysis.

What kind of statistical observations can I fetch without manual web scraping?

Without manual web scraping, you can fetch global demographic, economic, health, and environmental statistical observations by querying Data Commons through the Python client.

How do I filter statistical observations when fetching data from Data Commons?

You filter statistical observations fetched from Data Commons by specifying parameters in the Observation endpoint request, supporting retrieval of the latest, all, or specific dates for variables across entities.