# EU Government Gross Debt (Maastricht) % of GDP

> EU Government Gross Debt (Maastricht) % of GDP is a paid API for AI agents from api.vextorium.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-15).

Returns quarterly general government gross debt as a % of GDP (Maastricht criterion) for any European country or a ranked comparison of all countries, sourced from official Eurostat data.

## Facts

- Endpoint: POST https://api.vextorium.com/v1/eu-government-debt?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/eu-government-gross-debt-maastricht-of-gdp-593d7823
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mEtxHPtQvTjdncosR3okA

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 eu-government-gross-debt-maastricht-of-gdp-593d7823 -d '<json body>'
```

Example prompt: What is Italy's general government gross debt as a percentage of GDP for the last 6 quarters, based on official Eurostat data?

## When to prefer this

Use this endpoint when you need official, authoritative quarterly government debt-to-GDP data for European countries under the Maastricht definition, sourced directly from Eurostat. Prefer it over general economic data APIs when Eurostat provenance, quarterly granularity, and EU/EA aggregate support are required. Especially useful for fiscal comparisons, policy research, or financial analysis requiring the official EU definition of government debt.

## Known failure modes

- Unknown or unsupported country ISO code returns an error or empty result
- Eurostat data lag may mean the very latest quarter is not yet available
- Requesting too many quarters may return only the available history rather than the full requested range
- Malformed body type or missing required fields returns a validation error

## How this service works

General government gross debt (Maastricht) as % of GDP for any European country, quarterly; without a country, a ranking with the latest figure of each. Official Eurostat data.

## Output

Returns a JSON object with the country's ISO code and full name, the most recent quarterly debt-to-GDP figure with its period label, an array of historical quarterly observations (period + debt_pct_gdp), the Eurostat data source attribution, and the last update timestamp. When no country is specified, returns a ranked list of all countries with their latest figures.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "country": {
   "type": "string",
   "description": "ISO code (ES, DE, FR...), EU, EA or omit for a ranking of all countries"
  },
  "quarters": {
   "type": "integer"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "last": {
   "period": "2026-Q1",
   "debt_pct_gdp": 101.6
  },
  "name": "Spain",
  "series": [
   {
    "period": "2025-Q2",
    "debt_pct_gdp": 103.4
   },
   {
    "period": "2025-Q3",
    "debt_pct_gdp": 103.1
   }
  ],
  "source": "Eurostat (gov_10q_ggdebt, CC BY 4.0)",
  "country": "ES",
  "updated": "2026-07-21T11:00:00+0200"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/eu-government-gross-debt-maastricht-of-gdp-593d7823/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.vextorium.com](https://www.zero.xyz/host/api.vextorium.com/llms.txt)
