Skip to content
Eden Engine

GUS BDL Data by Variable: Polish Regional Statistics by Year (Statistics Poland)

gusbdl/data-by-variable

Returns the values of one Statistics Poland Local Data Bank (BDL) variable for many Polish territorial units at once: voivodeships, counties or municipalities, for one year or for every year. Takes a variable id from GUS BDL Variable Search, can be narrowed to one territorial level or to the units under a parent unit, and is paged by unit. Statistics Poland data under CC BY 4.0, served by Eden Engine; not an official Statistics Poland product.

activeper callv1

Price

$0.0026 per call

You pay the price shown. If a call turns out to cost more than its quote, you pay the actual price, capped at twice the quote. No monthly minimum. Top-ups start at $5.

Data source

Statistics Poland (GUS)

Source: Statistics Poland (GUS), CC BY 4.0. Served by Eden Engine; not an official Statistics Poland (GUS) product.

Use it

Five steps: search, inspect, learn, run, settle. No per-tool setup; your agent reaches this tool through the meta-tools it already has.

Connect once and your AI can find and run this tool, and any other it needs.

agent
// 1. search: find the tool
omnial_search({ query: "what you need" })

// 2. inspect: price and input schema
omnial_inspect({ tool: "gusbdl/data-by-variable" })

// 3. learn: read the usage guide at runtime
omnial_learn({ tool: "gusbdl/data-by-variable" })

// 4. run: price the exact call first, then run it
omnial_execute({ tool: "gusbdl/data-by-variable", input: { /* see input_schema */ }, dry_run: true })
omnial_execute({ tool: "gusbdl/data-by-variable", input: { /* ... */ } })

// 5. settle: the call is charged when it finishes, nothing to do

Not connected yet? Point your MCP client at https://mcp.eden-engine.com/mcp, then copy a config for your client.

Pricing

Every charge this tool can incur.

ChargePrice
Per call
$0.0026
Updated
Oct 21, 2026

Input and output schemas

Input schema
input_schema.json
{
  "type": "object",
  "required": [
    "variable_id"
  ],
  "properties": {
    "page": {
      "type": "integer",
      "minimum": 0,
      "description": "Zero-based page index over units. Leave out for the first page."
    },
    "year": {
      "type": "integer",
      "maximum": 2100,
      "minimum": 1995,
      "description": "One year, for example 2020. Leave out for every year the variable has. Statistics Poland's first data are from 1995."
    },
    "page_size": {
      "type": "integer",
      "default": 10,
      "maximum": 100,
      "minimum": 1,
      "description": "Units per page, 1 to 100. Defaults to 10."
    },
    "unit_level": {
      "type": "integer",
      "maximum": 6,
      "minimum": 0,
      "description": "Territorial level: 0 Poland, 1 macroregions, 2 voivodeships, 3 regions, 4 subregions, 5 counties, 6 municipalities. Leave out for every level the variable has."
    },
    "variable_id": {
      "type": "integer",
      "minimum": 1,
      "description": "BDL variable id, from GUS BDL Variable Search (for example 3643)."
    },
    "unit_parent_id": {
      "type": "string",
      "pattern": "^[0-9]{12}$",
      "description": "Only units under this parent, a 12 digit unit id from GUS BDL Territorial Units, for example 010000000000."
    }
  },
  "additionalProperties": false
}
Output schema
output_schema.json
{
  "type": "object",
  "required": [
    "totalRecords",
    "variableId",
    "results"
  ],
  "properties": {
    "links": {
      "type": "object",
      "description": "first, self, last and (when there is one) next page URLs.",
      "additionalProperties": true
    },
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "name"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "12 digit territorial unit id."
          },
          "name": {
            "type": "string",
            "description": "Unit name, as published (often upper case)."
          },
          "values": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "val": {
                  "type": "number"
                },
                "year": {
                  "type": "string"
                },
                "attrId": {
                  "type": "integer",
                  "description": "Id in the service's attribute list."
                }
              },
              "additionalProperties": true
            }
          }
        },
        "additionalProperties": true
      }
    },
    "lastUpdate": {
      "type": [
        "string",
        "null"
      ]
    },
    "variableId": {
      "type": "integer"
    },
    "aggregateId": {
      "type": "integer"
    },
    "totalRecords": {
      "type": "integer",
      "description": "Territorial units across all pages."
    },
    "measureUnitId": {
      "type": "integer",
      "description": "Id of the variable's measure unit."
    }
  },
  "description": "The BDL envelope: `totalRecords` units in all, `links` to other pages, the variable's ids, and `results`, one entry per unit.",
  "additionalProperties": true
}