# DataNexusAI Eurostat Energy Latest

> DataNexusAI Eurostat Energy Latest is a paid API for AI agents from api.datanexusai.org, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-11).

Fetches the latest observations from Eurostat energy datasets (e.g. energy intensity indicators, ETS) filtered by country, frequency, and unit via USDC micropayment.

## Facts

- Endpoint: GET https://api.datanexusai.org/api/v1/energy/latest?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/datanexusai-eurostat-energy-latest-a99274be
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_faIkN3Pg3rOLlnTz9skHe

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 datanexusai-eurostat-energy-latest-a99274be
```

Example prompt: Can you pull the latest Eurostat energy intensity data (dataset nrg_ind_ei) for Bulgaria, annual frequency, and give me up to 50 rows?

## When to prefer this

Choose this endpoint when you need structured, machine-readable Eurostat energy statistics (energy intensity, ETS, or related datasets) for EU member states, especially when you need to filter by country, frequency, or unit and can pay $0.01 USDC per call via x402. Prefer it over scraping Eurostat directly when you want a clean JSON API response without parsing HTML or Eurostat's bulk download formats.

## Known failure modes

- Invalid or unrecognised dataset_id returns an error or empty observations array
- Unsupported ISO2 geo code may return no observations rather than an error
- Exceeding rate limits or providing invalid USDC payment triggers HTTP 402 payment required
- Missing required dataset_id query parameter causes a 400 bad request
- Eurostat upstream data unavailability may result in stale or empty responses

## How this service works

Public data API for SEBRA payments, PTP road accidents, EU agri-food prices, Eurostat energy (+ ETS), and trade/market analytics. Paid data endpoints use x402 (USDC micropayments). HTML docs at `/api/` are free and are intentionally omitted from this OpenAPI document so discovery scanners do not probe them as paid resources.

Machine-readable discovery: `https://api.datanexusai.org/openapi.json`, `https://api.datanexusai.org/llms.txt`, `https://api.datanexusai.org/.well-known/x402`.

Human docs: `/docs` and `/api/`.

## Output

Returns a JSON object containing the reporting period, dataset ID, endpoint name, and an array of observations — each with a geographic code (ISO2) and the corresponding numeric observation value (e.g. energy intensity score).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "dataset_id"
     ],
     "properties": {
      "geo": {
       "type": "string",
       "example": "BG",
       "description": "Optional ISO2 filter"
      },
      "freq": {
       "type": "string",
       "example": "A",
       "description": "Frequency filter"
      },
      "unit": {
       "type": "string",
       "description": "Unit filter"
      },
      "limit": {
       "type": "integer",
       "example": 50,
       "description": "Max rows (default 100)."
      },
      "dataset_id": {
       "type": "string",
       "example": "nrg_ind_ei",
       "description": "Eurostat dataset id"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "period": "2023",
  "endpoint": "energy_latest",
  "dataset_id": "nrg_ind_ei",
  "observations": [
   {
    "geo": "BG",
    "obs_value": 170.2
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/datanexusai-eurostat-energy-latest-a99274be/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.datanexusai.org](https://www.zero.xyz/host/api.datanexusai.org/llms.txt)
