← Agent Data Hub · Search endpoints · /llms.txt

Public Pension Spending of 41 Countries — Old-Age Cash Benefits, % of GDP, Yearly since 1990 (OECD SOCX)

Public spending on old-age cash benefits (pensions, early retirement and similar payments) as a percentage of GDP, yearly since 1990, for 41 countries as published in the OECD Social Expenditure Database. Cash benefits only, without health and care services for older people. Options for country: AU (Australia, public old-age cash benefits spending (OECD)), AT (Austria, public old-age cash benefits spending (OECD)), BE (Belgium, public old-age cash benefits spending (OECD)), BG (Bulgaria, public old-age cash benefits spending (OECD)), CA (Canada, public old-age cash benefits spending (OECD)), CH (Switzerland, public old-age cash benefits spending (OECD)), CL (Chile, public old-age cash benefits spending (OECD)), CO (Colombia, public old-age cash benefits spending (OECD)), CR (Costa Rica, public old-age cash benefits spending (OECD)), CZ (Czechia, public old-age cash benefits spending (OECD)), DE (Germany, public old-age cash benefits spending (OECD)), DK (Denmark, public old-age cash benefits spending (OECD)), ES (Spain, public old-age cash benefits spending (OECD)), FI (Finland, public old-age cash benefits spending (OECD)), FR (France, public old-age cash benefits spending (OECD)), GB (United Kingdom, public old-age cash benefits spending (OECD)), GR (Greece, public old-age cash benefits spending (OECD)), HR (Croatia, public old-age cash benefits spending (OECD)), HU (Hungary, public old-age cash benefits spending (OECD)), IE (Ireland, public old-age cash benefits spending (OECD)), IS (Iceland, public old-age cash benefits spending (OECD)), IL (Israel, public old-age cash benefits spending (OECD)), IT (Italy, public old-age cash benefits spending (OECD)), JP (Japan, public old-age cash benefits spending (OECD)), KR (South Korea, public old-age cash benefits spending (OECD)), LT (Lithuania, public old-age cash benefits spending (OECD)), LU (Luxembourg, public old-age cash benefits spending (OECD)), LV (Latvia, public old-age cash benefits spending (OECD)), MX (Mexico, public old-age cash benefits spending (OECD)), NL (Netherlands, public old-age cash benefits spending (OECD)), NO (Norway, public old-age cash benefits spending (OECD)), NZ (New Zealand, public old-age cash benefits spending (OECD)), PE (Peru, public old-age cash benefits spending (OECD)), PL (Poland, public old-age cash benefits spending (OECD)), PT (Portugal, public old-age cash benefits spending (OECD)), RO (Romania, public old-age cash benefits spending (OECD)), SK (Slovakia, public old-age cash benefits spending (OECD)), SI (Slovenia, public old-age cash benefits spending (OECD)), SE (Sweden, public old-age cash benefits spending (OECD)), TR (Türkiye, public old-age cash benefits spending (OECD)), US (United States, public old-age cash benefits spending (OECD)).

Call it (no API key)

GET https://api.agentdatahub.de/api/v1/call/old-age-pension-spending-by-country?country=AU&compact=1

Full metadata: verbose=1 · Markdown: format=llm · Only some fields: add &fields=a,b.c · MCP: tool call_api with {"apiId":"old-age-pension-spending-by-country"}

How to fetch it

curl:

curl -s 'https://api.agentdatahub.de/api/v1/call/old-age-pension-spending-by-country?country=AU&compact=1'

Python (standard library only):

import json, urllib.request

url = "https://api.agentdatahub.de/api/v1/call/old-age-pension-spending-by-country?country=AU&compact=1"
with urllib.request.urlopen(url, timeout=30) as r:
    data = json.load(r)
print(json.dumps(data, indent=2)[:2000])

Google Sheets:

This endpoint answers in JSON. Any recorded series loads as a table with =IMPORTDATA("https://api.agentdatahub.de/api/v1/series/<id>?format=csv") (Excel: Data → From Web); find ids with /api/v1/series?q=….

Parameters

countryCountry (ISO-2 code or name), e.g. DE, JP, US (required; several comma-separated to compare, up to 10): AU, AT, BE, BG, CA, CH, CL, CO, CR, CZ, DE, DK, ES, FI, FR, GB, GR, HR, HU, IE, IS, IL, IT, JP, KR, LT, LU, LV, MX, NL, NO, NZ, PE, PL, PT, RO, SK, SI, SE, TR, US
fromOptional start YYYY, YYYY-MM or YYYY-MM-DD
toOptional end YYYY, YYYY-MM or YYYY-MM-DD
lastNumber of most recent periods when no from/to is given, 1-500 (default: 13)
groupOptional country group instead of country (EU27, EA, OECD, G7, G20, a continent): one row per member, newest value each
periodOnly with group: latest (default) or common (one period across members)

Example response (live, compact)

{
  "apiId": "old-age-pension-spending-by-country",
  "trust": "checked",
  "data_freshness": "live",
  "data": {
    "country": "AU",
    "series": "Australia, public old-age cash benefits spending (OECD)",
    "unit": "% of GDP",
    "frequency": "A",
    "latest": {
      "period": "2022",
      "value": 3.409
    },
    "history": [
      {
        "period": "2010",
        "value": 3.755
      },
      {
        "period": "2011",
        "value": 3.859
      },
      {
        "period": "2012",
        "value": 3.916
      },
      {
        "period": "2013",
        "value": 4.091
      },
      {
        "period": "2014",
        "value": 4.241
      },
      {
        "period": "2015",
        "value": 4.328
      },
      {
        "period": "2016",
        "value": 4.191
      },
      {
        "period": "2017",
        "value": 4.004
      },
      {
        "period": "2018",
        "value": 3.954
      },
      {
        "period": "2019",
        "value": 4.28
      },
      {
        "period": "2020",
        "value": 4.16
      },
      {
        "period": "2021",
        "value": 3.552
      },
      {
        "period": "2022",
        "value": 3.409
      }
    ],
    "available": {
      "from": "1990",
      "to": "2022",
      "points": 33
    },
    "verification": {
      "checked_at": "2026-12-01T20:51:39.418Z",
      "checks": []
    },
    "source": {
      "publisher": "OECD",
      "licence": "OECD Terms and Conditions, section 3: Data may be used \"for any purpose, even for commercial use\", with credit to the OECD",
      "licence_url": "https://www.oecd.org/en/about/terms-conditions.html",
      "source_url": "https://data-explorer.oecd.org/vis?df[ds]=dsDisseminateFinalDMZ&df[id]=DSD_SOCX_AGG@DF_PUB_OLD&df[ag]=OECD.ELS.SPD",
      "source_url_level": "dataset",
      "series_title": "AUS SOCX"
    },
    "attribution": "Source: OECD, Social Expenditure Database (SOCX), public expenditure on old-age cash benefits (DF_PUB_OLD), % of GDP"
  },
  "source": "OECD",
  "source_url": "https://data-explorer.oecd.org/vis?df[ds]=dsDisseminateFinalDMZ&df[id]=DSD_SOCX_AGG@DF_PUB_OLD&df[ag]=OECD.ELS.SPD",
  "license": "OECD Terms and Conditions, section 3: Data may be used \"for any purpose, even for commercial use\", with credit to the OECD",
  "licence_status": "green",
  "as_of": "2022",
  "checked": "2026-12-01"
}

Source & license

SourceOECD
LicenseOECD Terms and Conditions, section 3: Data may be used "for any purpose, even for commercial use", with credit to the OECD
Source URLhttps://data-explorer.oecd.org/vis?df[ds]=dsDisseminateFinalDMZ&df[id]=DSD_SOCX_AGG@DF_PUB_OLD&df[ag]=OECD.ELS.SPD
Termshttps://www.oecd.org/en/about/terms-conditions.html
CategorySociety & Demographics › Pensions · more: pension-replacement-rate-by-country · retirement-age-by-country · social-spending-by-country