datacommons_child_places
Pack: datacommons · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)
No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/datacommons_child_places for the schema, then POST the same URL with its arguments for the data.
Compare one Google Data Commons statistical variable across every child place of a parent — e.g. population of all US states, median income of every county in Texas (geoId/48, County), GDP of every country in Europe. Returns rows sorted by value with names and the publisher of each value.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
_apiKey | string | yes | |
variable | string | yes | Statistical variable dcid, e.g. Count_Person |
parent_place | string | yes | Parent place dcid, e.g. country/USA, geoId/48, europe, Earth |
child_type | string | yes | Child place type, e.g. State, County, City, Country |
date | string | no | LATEST (default) or a date: 2020, 2020-06 |
sort | string | no | Sort by value (default desc) |
limit | number | no | Max rows (default 50, max 300) |
Example call
Arguments
{
"variable": "Count_Person",
"parent_place": "country/USA",
"child_type": "State",
"limit": 5
}
curl
curl -X POST https://gateway.pipeworx.io/datacommons/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"datacommons_child_places","arguments":{"variable":"Count_Person","parent_place":"country/USA","child_type":"State","limit":5}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('datacommons_child_places', {
"variable": "Count_Person",
"parent_place": "country/USA",
"child_type": "State",
"limit": 5
});
Connect
Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:
{
"mcpServers": {
"pipeworx": {
"url": "https://pipeworx.io/mcp"
}
}
}
Connect to just the datacommons pack
{
"mcpServers": {
"datacommons": {
"url": "https://gateway.pipeworx.io/datacommons/mcp"
}
}
}
See Getting Started for client-specific install steps.