# EU Government Gross Debt (Maastricht) % of GDP — Eurostat

> EU Government Gross Debt (Maastricht) % of GDP — Eurostat 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-13).

Returns quarterly general government gross debt as % of GDP for a European country, or a ranking of all EU countries with their latest figure, sourced from official Eurostat data.

## Facts

- Endpoint: POST https://api.vextorium.com/deuda-publica-ue-pago?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/eu-government-gross-debt-maastricht-of-gdp-eurostat-8f4f56d1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6xpZQA2Rjxc8cD2O7ChDB

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-eurostat-8f4f56d1 -d '<json body>'
```

Example prompt: Can you pull the latest quarterly Eurostat data on Spain's general government gross debt as a percentage of GDP, going back 8 quarters?

## When to prefer this

Use this endpoint when you need official EU government gross debt figures sourced directly from Eurostat (the authoritative EU statistical office), especially for the Maastricht-definition debt metric at quarterly frequency. Prefer it over general financial data APIs when official EU compliance-grade data is required, or when you want a cross-country EU debt ranking without building your own aggregation.

## Known failure modes

- Invalid or unrecognised country ISO code returns an error or empty result
- Requesting a country not covered by Eurostat (non-EU) may return no data
- Data lag: Eurostat publishes quarterly data with a delay, so the most recent quarter may not yet be available
- Specifying a very large number of quarters may exceed available historical data

## 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 ISO code, full name, a quarterly time series of debt-to-GDP values (period label + percentage), the most recent period and its figure, the Eurostat data source attribution, and the last update timestamp. When no country is specified, returns a ranking list of all EU/EA countries with their latest figure.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [],
     "properties": {
      "pais": {
       "type": "string",
       "description": "ISO code (ES, DE, FR...), EU, EA or omit for a ranking of all countries"
      },
      "trimestres": {
       "type": "integer"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": [
      "object",
      "null"
     ],
     "properties": {
      "pais": {
       "type": [
        "string",
        "null"
       ]
      },
      "serie": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": [
         "null",
         "object"
        ],
        "properties": {
         "periodo": {
          "type": [
           "null",
           "string"
          ]
         },
         "deuda_pct_pib": {
          "type": [
           "null",
           "number"
          ]
         }
        }
       }
      },
      "fuente": {
       "type": [
        "string",
        "null"
       ]
      },
      "nombre": {
       "type": [
        "string",
        "null"
       ]
      },
      "ultimo": {
       "type": [
        "object",
        "null"
       ],
       "properties": {
        "periodo": {
         "type": [
          "string",
          "null"
         ]
        },
        "deuda_pct_pib": {
         "type": [
          "number",
          "null"
         ]
        }
       }
      },
      "actualizado": {
       "type": [
        "string",
        "null"
       ]
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "pais": "ES",
  "serie": [
   {
    "periodo": "2025-Q2",
    "deuda_pct_pib": 103.4
   },
   {
    "periodo": "2025-Q3",
    "deuda_pct_pib": 103.1
   },
   {
    "periodo": "2025-Q4",
    "deuda_pct_pib": 100.7
   },
   {
    "periodo": "2026-Q1",
    "deuda_pct_pib": 101.6
   }
  ],
  "fuente": "Eurostat (gov_10q_ggdebt, CC BY 4.0)",
  "nombre": "Spain",
  "ultimo": {
   "periodo": "2026-Q1",
   "deuda_pct_pib": 101.6
  },
  "actualizado": "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-eurostat-8f4f56d1/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)
