Un Energy

liveMarketsEnergyGeography

UN energy statistics: the United Nations Statistics Division energy balances and the Energy Statistics Database, by country, product (commodity) and flow (transaction) and year.

3tools
0msauth
free tier50 calls/day

Tools

un_energy_balance

Country energy balance from the UN Statistics Division, always in terajoules (TJ): one product group (coal and peat, oil products, natural gas, electricity, total energy, ...) against one flow (primar

No parameters required.

▶Try it
un_energy_statistics

Energy Statistics Database of the UN Statistics Division: one named fuel or product (aviation gasoline, hard coal, lignite, kerosene-type jet fuel, natural gas, fuelwood, hydro electricity, ...) again

No parameters required.

▶Try it
un_energy_codes

Browse the valid countries, products and flows for the UN energy tools, with codes. kind picks the list: country, balance_commodity, balance_flow, commodity, flow. query filters by words. Example: un_

No parameters required.

▶Try it

Test with curl

The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.

List available tools
bash
curl -X POST https://gateway.pipeworx.io/un-energy/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
Call a tool
bash
curl -X POST https://gateway.pipeworx.io/un-energy/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"un_energy_balance","arguments":{}}}'

Use with the SDK

Install @pipeworx/sdk to call tools from any TypeScript/Node project.

TypeScript
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("un_energy_balance", {});
ask_pipeworx
// Or ask in plain English:
const answer = await px.ask("un energy statistics: the united nations statistics division energy balances and the energy statistics database, by country, product (commodity) and flow (transaction) and year");