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

Public Social Spending of 33 Countries — % of GDP, Yearly since 1990 (OECD SOCX)

Public social expenditure (pensions, health, family, unemployment, incapacity, housing and other social programmes) as a percentage of GDP, yearly since 1990, for 33 countries as published in the OECD Social Expenditure Database. The newest years are OECD estimates. Options for country: AT (Austria, public social expenditure (OECD)), BE (Belgium, public social expenditure (OECD)), CH (Switzerland, public social expenditure (OECD)), CL (Chile, public social expenditure (OECD)), CO (Colombia, public social expenditure (OECD)), CZ (Czechia, public social expenditure (OECD)), DE (Germany, public social expenditure (OECD)), DK (Denmark, public social expenditure (OECD)), ES (Spain, public social expenditure (OECD)), FI (Finland, public social expenditure (OECD)), FR (France, public social expenditure (OECD)), GB (United Kingdom, public social expenditure (OECD)), GR (Greece, public social expenditure (OECD)), HU (Hungary, public social expenditure (OECD)), IE (Ireland, public social expenditure (OECD)), IS (Iceland, public social expenditure (OECD)), IL (Israel, public social expenditure (OECD)), IT (Italy, public social expenditure (OECD)), KR (South Korea, public social expenditure (OECD)), LT (Lithuania, public social expenditure (OECD)), LU (Luxembourg, public social expenditure (OECD)), LV (Latvia, public social expenditure (OECD)), MX (Mexico, public social expenditure (OECD)), NL (Netherlands, public social expenditure (OECD)), NO (Norway, public social expenditure (OECD)), PE (Peru, public social expenditure (OECD)), PL (Poland, public social expenditure (OECD)), PT (Portugal, public social expenditure (OECD)), SK (Slovakia, public social expenditure (OECD)), SI (Slovenia, public social expenditure (OECD)), SE (Sweden, public social expenditure (OECD)), TR (Türkiye, public social expenditure (OECD)), US (United States, public social expenditure (OECD)).

Call it (no API key)

GET https://api.agentdatahub.de/api/v1/call/social-spending-by-country?country=AT&compact=1

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

How to fetch it

curl:

curl -s 'https://api.agentdatahub.de/api/v1/call/social-spending-by-country?country=AT&compact=1'

Python (standard library only):

import json, urllib.request

url = "https://api.agentdatahub.de/api/v1/call/social-spending-by-country?country=AT&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): AT, BE, CH, CL, CO, CZ, DE, DK, ES, FI, FR, GB, GR, HU, IE, IS, IL, IT, KR, LT, LU, LV, MX, NL, NO, PE, PL, PT, 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": "social-spending-by-country",
  "trust": "checked",
  "data_freshness": "live",
  "data": {
    "country": "AT",
    "series": "Austria, public social expenditure (OECD)",
    "unit": "% of GDP",
    "frequency": "A",
    "latest": {
      "period": "2024",
      "value": 31.554
    },
    "history": [
      {
        "period": "2012",
        "value": 27.791
      },
      {
        "period": "2013",
        "value": 28.267
      },
      {
        "period": "2014",
        "value": 28.514
      },
      {
        "period": "2015",
        "value": 28.441
      },
      {
        "period": "2016",
        "value": 28.351
      },
      {
        "period": "2017",
        "value": 27.981
      },
      {
        "period": "2018",
        "value": 27.72
      },
      {
        "period": "2019",
        "value": 27.837
      },
      {
        "period": "2020",
        "value": 32.691
      },
      {
        "period": "2021",
        "value": 31.991
      },
      {
        "period": "2022",
        "value": 30.015
      },
      {
        "period": "2023",
        "value": 30.312
      },
      {
        "period": "2024",
        "value": 31.554
      }
    ],
    "available": {
      "from": "1990",
      "to": "2024",
      "points": 35
    },
    "verification": {
      "checked_at": "2026-12-01T01:27:49.600Z",
      "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_SOCX_AGG&df[ag]=OECD.ELS.SPD",
      "source_url_level": "dataset",
      "series_title": "AUT SOCX"
    },
    "attribution": "Source: OECD, Social Expenditure Database (SOCX), public social expenditure, all programmes"
  },
  "source": "OECD",
  "source_url": "https://data-explorer.oecd.org/vis?df[ds]=dsDisseminateFinalDMZ&df[id]=DSD_SOCX_AGG@DF_SOCX_AGG&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": "2024",
  "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_SOCX_AGG&df[ag]=OECD.ELS.SPD
Termshttps://www.oecd.org/en/about/terms-conditions.html
CategorySociety & Demographics › Public Finance · more: un-population-estimates · un-population-projections · effective-retirement-age-by-country