# Energy Import Dependency Rate by Country

> Energy Import Dependency Rate by Country is a paid API for AI agents from stat.halowerk.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-13).

Returns the energy import dependency rate (net imports / gross available energy) for one or more countries, split by solid fossil fuels, oil and petroleum products, and natural gas, with trend data across available years.

## Facts

- Endpoint: POST https://stat.halowerk.com/v1/energy-import
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/energy-import-dependency-rate-by-country-472e7688
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lUDo0HCxRTiFrdU8z9mac

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability energy-import-dependency-rate-by-country-472e7688 -d '<json body>'
```

Example prompt: What's the energy import dependency rate for Germany, France, and Norway — broken down by solid fossil fuels, oil, and natural gas — and how has it trended over the available years?

## When to prefer this

Choose this endpoint when you need country-level energy import dependency data split by fuel type (solid fossil fuels, oil, natural gas) with trend history, and when correct handling of negative values for net exporters is important. Prefer over generic energy databases when you need a clean, pre-computed dependency ratio (net imports / gross available energy) ready for direct use.

## Known failure modes

- Invalid or unrecognized country code returns an error
- Requesting a country with no available data may return empty or partial results
- Misinterpreting negative values as errors — net exporters like Norway legitimately produce negative dependency rates
- Rate limit or payment failure if x402 payment is not correctly handled

## How this service works

Returns the energy import dependency rate for one or more countries, overall and split by solid fossil fuels, oil and petroleum products, and natural gas, together with the trend across the available years. The measure is defined as net imports over gross available energy, which means a net exporter produces a negative value — Norway sits well below zero — and treating that as an error or clamping it to zero turns the largest energy exporter in Europe into an average country.

## Output

A structured response per country containing: overall energy import dependency rate (net imports / gross available energy, can be negative for net exporters), sub-rates for solid fossil fuels, oil and petroleum products, and natural gas, plus a time-series trend across all available years.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "years": {
   "type": "integer",
   "default": 8,
   "maximum": 20,
   "minimum": 2
  },
  "countries": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 2,
    "minLength": 2
   },
   "maxItems": 12,
   "minItems": 1
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/energy-import-dependency-rate-by-country-472e7688/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from stat.halowerk.com](https://www.zero.xyz/host/stat.halowerk.com/llms.txt)
