Skip to content
Eden Engine

Latvian Official Statistics Table Values (Statistics Latvia PxWeb)

statlvpxweb/table-data

Returns the statistical values of one table in the Central Statistical Bureau of Latvia's official statistics database (PxWeb) for the cells you select, as a JSON-stat 2 object: dimension labels plus a flat list of values in dimension order, with null where data is missing. Give the table's path ids and a query naming each variable by its code with the value codes to keep, or the latest few periods with the top filter. Find the table with statlvpxweb/search-statistics-tables and its variable and value codes with statlvpxweb/table-metadata. Select only the cells you need: a selection too large for the service is refused. Unknown codes are refused as a bad request. Central Statistical Bureau of Latvia data, passed through unmodified and served by Eden Engine; not an official Central Statistical Bureau of Latvia 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.00.

Data source

Central Statistical Bureau of Latvia

Data from the Official Statistics Portal of Latvia, Central Statistical Bureau of Latvia (CSB), passed through unmodified. Served by Eden Engine; not an official Central Statistical Bureau of Latvia product.

Use it

Your AI assistant does the work: it finds this tool, shows you the price first, runs it, and you are charged when the run finishes. There is nothing to set up for this tool in particular.

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

For developers: the calls your assistant makes
agent
// 1. search: find the tool
omnial_search({ query: "what you need" })

// 2. inspect: price and input schema
omnial_inspect({ tool: "statlvpxweb/table-data" })

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

// 4. run: price the exact call first, then run it
omnial_execute({ tool: "statlvpxweb/table-data", input: { /* see input_schema */ }, dry_run: true })
omnial_execute({ tool: "statlvpxweb/table-data", 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 27, 2026

Input and output schemas

Input schema
input_schema.json
{
  "type": "object",
  "required": [
    "language",
    "theme",
    "subject",
    "group",
    "table",
    "query"
  ],
  "properties": {
    "group": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_]{1,20}$",
      "description": "The group id, the third segment of the path, for example IRS. It is a segment of the table's path, as search-statistics-tables returns it."
    },
    "query": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "code",
          "selection"
        ],
        "properties": {
          "code": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_]{1,40}$",
            "description": "The variable code, from statlvpxweb/table-metadata, for example TIME."
          },
          "selection": {
            "type": "object",
            "required": [
              "filter",
              "values"
            ],
            "properties": {
              "filter": {
                "enum": [
                  "item",
                  "top"
                ],
                "type": "string",
                "description": "item keeps the listed value codes; top keeps the latest N values of the variable (use with a time variable)."
              },
              "values": {
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 60,
                  "minLength": 1
                },
                "maxItems": 100,
                "minItems": 1,
                "description": "The value codes to keep (item), or one number as text such as 3 (top)."
              }
            },
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      },
      "maxItems": 12,
      "minItems": 1,
      "description": "The cells to return, one entry per variable you want to restrict: its code and the values to keep. For example [{code: INDICATOR, selection: {filter: item, values: [POP_SY]}}, {code: TIME, selection: {filter: top, values: [3]}}]."
    },
    "table": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_]{1,20}$",
      "description": "The table id, for example IRS010. It is a segment of the table's path, as search-statistics-tables returns it."
    },
    "theme": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_]{1,20}$",
      "description": "The theme id, the first segment of the table's path, for example POP. It is a segment of the table's path, as search-statistics-tables returns it."
    },
    "subject": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_]{1,20}$",
      "description": "The subject id, the second segment of the path, for example IR. It is a segment of the table's path, as search-statistics-tables returns it."
    },
    "language": {
      "enum": [
        "en",
        "lv"
      ],
      "type": "string",
      "description": "The language of the names and labels: en (English) or lv (Latvian)."
    }
  },
  "additionalProperties": false
}
Output schema
output_schema.json
{
  "type": "object",
  "required": [
    "value",
    "dimension"
  ],
  "properties": {
    "id": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The dimension codes, in the order the flat value list follows."
    },
    "size": {
      "type": "array",
      "items": {
        "type": "integer"
      },
      "description": "How many values each dimension holds, in the order of id."
    },
    "label": {
      "type": "string",
      "description": "The table title with its variables."
    },
    "value": {
      "type": "array",
      "items": {
        "type": [
          "number",
          "string",
          "null"
        ]
      },
      "description": "The cell values, flat, in dimension order; null where data is missing."
    },
    "source": {
      "type": "string",
      "description": "The publishing body."
    },
    "status": {
      "type": "object",
      "description": "Explains missing cells by position, for example X for not available.",
      "additionalProperties": true
    },
    "updated": {
      "type": "string",
      "description": "When the table was last updated."
    },
    "dimension": {
      "type": "object",
      "description": "Per variable code: its label and the category index and labels.",
      "additionalProperties": true
    }
  },
  "description": "A JSON-stat 2 dataset.",
  "additionalProperties": true
}