{
  "apiVersion": "v1",
  "generatedAt": "2026-03-04T21:11:31.636Z",
  "basePath": "/api/v1",
  "endpoints": [
    {
      "path": "/api/v1/debt.json",
      "source": "Banco de España",
      "description": "Deuda pública PDE y series históricas"
    },
    {
      "path": "/api/v1/pensions.json",
      "source": "Seguridad Social",
      "description": "Nómina, pensiones y métricas derivadas"
    },
    {
      "path": "/api/v1/demographics.json",
      "source": "INE",
      "description": "Población, EPA, PIB, salario e IPC"
    },
    {
      "path": "/api/v1/budget.json",
      "source": "IGAE",
      "description": "Gasto COFOG por año y categoría"
    },
    {
      "path": "/api/v1/revenue.json",
      "source": "Eurostat",
      "description": "Ingresos y gastos públicos de España"
    },
    {
      "path": "/api/v1/eurostat.json",
      "source": "Eurostat",
      "description": "Comparativa UE por indicadores fiscales"
    },
    {
      "path": "/api/v1/ccaa-debt.json",
      "source": "Banco de España",
      "description": "Deuda de CCAA por comunidad"
    },
    {
      "path": "/api/v1/tax-revenue.json",
      "source": "AEAT",
      "description": "Recaudación tributaria por impuesto y CCAA"
    },
    {
      "path": "/api/v1/ccaa-fiscal-balance.json",
      "source": "Ministerio de Hacienda",
      "description": "Impuestos cedidos vs transferencias por CCAA (régimen común)"
    },
    {
      "path": "/api/v1/ccaa-spending.json",
      "source": "IGAE",
      "description": "Gasto funcional COFOG por CCAA (administración regional)"
    },
    {
      "path": "/api/v1/ccaa-foral-flows.json",
      "source": "Gobierno de Navarra + Gobierno Vasco",
      "description": "Flujos forales de Navarra y País Vasco (aportación/cupo)"
    },
    {
      "path": "/api/v1/regional-accounts.json",
      "source": "Eurostat",
      "description": "PIB regional y cotizaciones sociales por CCAA"
    },
    {
      "path": "/api/v1/pensions-regional.json",
      "source": "Seguridad Social (EST24)",
      "description": "Gasto anual en pensiones desglosado por CCAA"
    },
    {
      "path": "/api/v1/unemployment-regional.json",
      "source": "Eurostat (lfst_r_lfu3pers + gov_10a_exp)",
      "description": "Gasto en prestaciones por desempleo por CCAA (distribución proporcional)"
    },
    {
      "path": "/api/v1/ss-sustainability.json",
      "source": "Eurostat + Ageing Report",
      "description": "Sostenibilidad de la Seguridad Social: cotizaciones, gasto contributivo, Fondo de Reserva y proyecciones"
    },
    {
      "path": "/api/v1/social-economy.json",
      "source": "INE",
      "description": "Cuenta Satélite de la Economía Social: VAB, empleo y PIB"
    },
    {
      "path": "/api/v1/living-conditions.json",
      "source": "INE",
      "description": "Encuesta de Condiciones de Vida: Tasa AROPE, Gini y renta media"
    },
    {
      "path": "/api/v1/meta.json",
      "source": "Pipeline",
      "description": "Estado de actualización y frescura de fuentes"
    }
  ],
  "freshness": {
    "debt": {
      "success": true,
      "fallbackDetected": false,
      "fallbackKeys": [],
      "lastUpdated": "2026-03-04T21:11:09.525Z",
      "lastFetchAt": "2026-03-04T21:11:31.636Z",
      "lastRealDataDate": "2025-11-30",
      "dataPoints": 373
    },
    "demographics": {
      "success": true,
      "fallbackDetected": false,
      "fallbackKeys": [],
      "lastUpdated": "2026-03-04T21:11:09.664Z",
      "lastFetchAt": "2026-03-04T21:11:31.636Z",
      "lastRealDataDate": "2025-12-31"
    },
    "pensions": {
      "success": true,
      "fallbackDetected": false,
      "fallbackKeys": [],
      "lastUpdated": "2026-03-04T21:11:10.276Z",
      "lastFetchAt": "2026-03-04T21:11:31.636Z",
      "criticalFallback": false,
      "criticalFallbackReason": null,
      "lastRealDataDate": "2026-02-01",
      "dataPoints": 12
    },
    "budget": {
      "success": true,
      "fallbackDetected": false,
      "fallbackKeys": [],
      "lastUpdated": "2026-03-04T21:11:10.227Z",
      "lastFetchAt": "2026-03-04T21:11:31.636Z",
      "lastRealDataDate": "2024-12-31",
      "years": 30
    },
    "eurostat": {
      "success": true,
      "fallbackDetected": false,
      "fallbackKeys": [],
      "lastUpdated": "2026-03-04T21:11:09.642Z",
      "lastFetchAt": "2026-03-04T21:11:31.636Z",
      "lastRealDataDate": "2024-12-31",
      "year": 2024
    },
    "ccaaDebt": {
      "success": true,
      "fallbackDetected": false,
      "fallbackKeys": [],
      "lastUpdated": "2026-03-04T21:11:09.508Z",
      "lastFetchAt": "2026-03-04T21:11:31.636Z",
      "lastRealDataDate": "2025-09-30",
      "quarter": "2025-Q3"
    },
    "revenue": {
      "success": true,
      "fallbackDetected": false,
      "fallbackKeys": [],
      "lastUpdated": "2026-03-04T21:11:09.634Z",
      "lastFetchAt": "2026-03-04T21:11:31.636Z",
      "lastRealDataDate": "2024-12-31",
      "latestYear": 2024
    },
    "taxRevenue": {
      "success": true,
      "fallbackDetected": false,
      "fallbackKeys": [],
      "lastUpdated": "2026-03-04T21:11:14.073Z",
      "lastFetchAt": "2026-03-04T21:11:31.636Z",
      "lastRealDataDate": "2025-12-31",
      "latestYear": 2025,
      "years": 31
    },
    "ccaaFiscalBalance": {
      "success": true,
      "fallbackDetected": false,
      "fallbackKeys": [],
      "lastUpdated": "2026-03-04T21:11:14.170Z",
      "lastFetchAt": "2026-03-04T21:11:31.636Z",
      "lastRealDataDate": "2023-12-31",
      "latestYear": 2023,
      "years": 5
    },
    "ccaaSpending": {
      "success": true,
      "fallbackDetected": false,
      "fallbackKeys": [],
      "lastUpdated": "2026-03-04T21:11:31.608Z",
      "lastFetchAt": "2026-03-04T21:11:31.636Z",
      "lastRealDataDate": "2024-12-31",
      "latestYear": 2024,
      "years": 13
    },
    "ccaaDeficit": {
      "success": true,
      "fallbackDetected": false,
      "fallbackKeys": [],
      "lastUpdated": "2026-03-04T21:11:15.067Z",
      "lastFetchAt": "2026-03-04T21:11:31.636Z",
      "lastRealDataDate": "2025-12-31",
      "latestYear": 2025
    },
    "ccaaForalFlows": {
      "success": true,
      "fallbackDetected": false,
      "fallbackKeys": [],
      "lastUpdated": "2026-03-04T21:11:10.228Z",
      "lastFetchAt": "2026-03-04T21:11:31.636Z",
      "lastRealDataDate": "2024-12-31",
      "latestYear": 2024,
      "communities": 2
    },
    "regionalAccounts": {
      "success": true,
      "fallbackDetected": false,
      "fallbackKeys": [],
      "lastUpdated": "2026-03-04T21:11:09.650Z",
      "lastFetchAt": "2026-03-04T21:11:31.636Z",
      "lastRealDataDate": "2024-12-31",
      "latestYear": 2024,
      "communities": 17
    },
    "pensionsRegional": {
      "success": true,
      "fallbackDetected": false,
      "fallbackKeys": [],
      "lastUpdated": "2026-03-04T21:11:10.466Z",
      "lastFetchAt": "2026-03-04T21:11:31.636Z",
      "lastRealDataDate": "2026-12-31",
      "latestYear": 2026,
      "communities": 17
    },
    "unemploymentRegional": {
      "success": true,
      "fallbackDetected": false,
      "fallbackKeys": [],
      "lastUpdated": "2026-03-04T21:11:09.655Z",
      "lastFetchAt": "2026-03-04T21:11:31.636Z",
      "lastRealDataDate": "2023-12-31",
      "latestYear": 2023,
      "communities": 19
    },
    "flowsSankey": {
      "success": true,
      "fallbackDetected": false,
      "fallbackKeys": [],
      "lastUpdated": "2026-03-04T21:11:09.439Z",
      "lastFetchAt": "2026-03-04T21:11:31.636Z",
      "lastRealDataDate": "2024-12-31",
      "latestYear": 2024,
      "nodes": 0,
      "links": 0
    },
    "socialEconomy": {
      "success": true,
      "fallbackDetected": false,
      "fallbackKeys": [],
      "lastUpdated": "2026-03-04T21:11:10.237Z",
      "lastFetchAt": "2026-03-04T21:11:31.636Z",
      "lastRealDataDate": "2023-12-31",
      "referenceYear": 2023
    },
    "livingConditions": {
      "success": true,
      "fallbackDetected": false,
      "fallbackKeys": [],
      "lastUpdated": "2026-03-04T21:11:09.646Z",
      "lastFetchAt": "2026-03-04T21:11:31.636Z",
      "lastRealDataDate": "2025-12-31",
      "referenceYear": 2025
    },
    "ssSustainability": {
      "success": true,
      "fallbackDetected": false,
      "fallbackKeys": [],
      "lastUpdated": "2026-03-04T21:11:09.642Z",
      "lastFetchAt": "2026-03-04T21:11:31.636Z",
      "lastRealDataDate": "2024-12-31",
      "latestYear": 2024,
      "years": 30
    }
  }
}