Skip to content
Eden Engine

UN Energy Statistics by Country, Commodity and Transaction (UNdata SDMX)

undatasdmx/get-energy-statistics

Annual energy statistics from the UN Statistics Division (UNdata) for one country: the last N observations per series, for a chosen energy commodity (such as 0100 hard coal) and transaction (such as 01 production), or all of them when left empty, with the commodity, transaction, unit and multiplier labels needed to read each number. The country is a required UN M49 numeric code (840 United States, 276 Germany, 392 Japan). Commodity and transaction are required inputs but may be an empty string for all; an all-commodity call for one country is about 100 KB. A country or selection with no data is refused as a validation error. Codes are listed in the result's structure block. UNdata data served by Eden Engine; not an official United Nations 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

United Nations Statistics Division (UNdata)

Source: UNdata, United Nations Statistics Division (data.un.org). Served by Eden Engine; not an official United Nations 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: "undatasdmx/get-energy-statistics" })

// 3. learn: read the usage guide at runtime
omnial_learn({ tool: "undatasdmx/get-energy-statistics" })

// 4. run: price the exact call first, then run it
omnial_execute({ tool: "undatasdmx/get-energy-statistics", input: { /* see input_schema */ }, dry_run: true })
omnial_execute({ tool: "undatasdmx/get-energy-statistics", 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 20, 2026

Input and output schemas

Input schema
input_schema.json
{
  "type": "object",
  "required": [
    "refArea",
    "commodity",
    "transaction",
    "lastNObservations"
  ],
  "properties": {
    "refArea": {
      "type": "string",
      "pattern": "^[0-9]{1,4}$",
      "description": "The country as a UN M49 numeric code, for example 840 (United States), 276 (Germany) or 392 (Japan)."
    },
    "commodity": {
      "type": "string",
      "pattern": "^[0-9A-Za-z+]{0,40}$",
      "description": "The energy commodity code, for example 0100 (hard coal), or an empty string for all commodities. + joins alternatives. Codes are listed in the result's structure.dimensions.series."
    },
    "endPeriod": {
      "type": "string",
      "pattern": "^[0-9]{4}$",
      "description": "Optional last year, YYYY."
    },
    "startPeriod": {
      "type": "string",
      "pattern": "^[0-9]{4}$",
      "description": "Optional first year, YYYY."
    },
    "transaction": {
      "type": "string",
      "pattern": "^[0-9A-Za-z+]{0,40}$",
      "description": "The transaction code, for example 01 (production) or 03 (imports), or an empty string for all transactions. + joins alternatives."
    },
    "lastNObservations": {
      "type": "integer",
      "maximum": 10,
      "minimum": 1,
      "description": "How many of the most recent annual observations to return per series."
    }
  },
  "additionalProperties": false
}
Output schema
output_schema.json
{
  "type": "object",
  "required": [
    "dataSets",
    "structure"
  ],
  "properties": {
    "header": {
      "type": "object",
      "description": "Message id, prepared time and sender.",
      "additionalProperties": true
    },
    "dataSets": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      },
      "description": "One data set. series is keyed by colon-joined indexes into structure.dimensions.series (FREQ, REF_AREA, COMMODITY, TRANSACTION); each observation maps a period index to [value, attribute indexes...]."
    },
    "structure": {
      "type": "object",
      "description": "Names and the dimension and attribute value lists the indexes refer to: dimensions.series, dimensions.observation (the periods, newest first) and attributes (unit of measure, unit multiplier, status).",
      "additionalProperties": true
    }
  },
  "additionalProperties": true
}