datacommons-client

Work with Data Commons, a platform providing programmatic access to public statistical data from global sources. Use this skill when working with demographic data, economic indicators, health statistics, environmental data, or any public datasets available through Data Commons. Applicable for querying population statistics, GDP figures, unemployment rates, disease prevalence, geographic entity resolution, and exploring relationships between statistical entities.

Install

Hot:18

Download and extract to your skills directory

Copy command and send to OpenClaw for auto-install:

Download and install this skill https://openskills.cc/api/download?slug=k-dense-ai-scientific-skills-datacommons-client&locale=en&source=copy

Data Commons Client - Public Statistical Data Python API Client

Overview of Capabilities


Access Data Commons' global public statistical data through a unified Python interface, including authoritative sources for population, economy, health, environment, and more.

Use Cases


  • Data science research and economic analysis: Obtain demographic data, GDP, unemployment rate, median income, and other economic indicators for countries and regions to support trend analysis and comparative studies

  • Health and environmental data queries: Access public health and environmental statistics such as disease prevalence, mortality rates, and environmental indicators

  • Geographic entity resolution and hierarchical exploration: Convert place names, coordinates, Wikidata IDs, etc. into Data Commons identifiers, and explore geographic hierarchical relationships (e.g., state-county-city)
  • Core Features


  • Statistical observation data queries: Query time series statistics through the Observation endpoint, supporting single-point queries (latest value), full time series queries, batch queries across hierarchies, and filtering by data source to ensure consistency

  • Knowledge graph exploration: Use the Node endpoint to explore entity relationships, get lists of available properties, navigate geographic hierarchies, and retrieve entity names and metadata

  • Entity identifier resolution: Use the Resolve endpoint to convert human-understandable identifiers such as place names, latitude/longitude coordinates, and Wikidata IDs into Data Commons DCIDs (identifiers required for API queries)
  • Frequently Asked Questions

    Is the Data Commons API free?


    Yes, the Data Commons API is open and free for public data queries, but you need to register to obtain an API key. You can apply at apikeys.datacommons.org. For custom Data Commons instances, an API key is not required.

    How do I get started with statistical data?


    A typical workflow is: first use the Resolve endpoint to convert place names into DCID identifiers, then query statistical variable data through the Observation endpoint. If you're not sure which statistical variables are available, you can use the fetch_available_statistical_variables() method to view the list of available variables.

    What types of statistical data are supported?


    Data Commons aggregates data from authoritative sources such as census bureaus, the World Bank, health organizations, and environmental agencies. It supports a wide range of statistical variables including demographics (Count_Person, Median_Age_Person), economic indicators (GDP, unemployment rate, median income), health data (mortality rates, disease incidence), and environmental metrics.