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

Health Spending of 58 Countries — Total Health Expenditure, % of GDP, Yearly since 1970 (OECD)

Total health expenditure (public and private, all financing schemes) as a percentage of GDP, yearly, for the 38 OECD members and about 20 other countries as published in the OECD System of Health Accounts. The newest years are OECD estimates or provisional. Options for country: AL (Albania, total health expenditure, % of GDP (OECD)), AR (Argentina, total health expenditure, % of GDP (OECD)), AU (Australia, total health expenditure, % of GDP (OECD)), AT (Austria, total health expenditure, % of GDP (OECD)), BE (Belgium, total health expenditure, % of GDP (OECD)), BG (Bulgaria, total health expenditure, % of GDP (OECD)), BA (Bosnia & Herzegovina, total health expenditure, % of GDP (OECD)), BR (Brazil, total health expenditure, % of GDP (OECD)), CA (Canada, total health expenditure, % of GDP (OECD)), CH (Switzerland, total health expenditure, % of GDP (OECD)), CL (Chile, total health expenditure, % of GDP (OECD)), CN (China, total health expenditure, % of GDP (OECD)), CO (Colombia, total health expenditure, % of GDP (OECD)), CR (Costa Rica, total health expenditure, % of GDP (OECD)), CY (Cyprus, total health expenditure, % of GDP (OECD)), CZ (Czechia, total health expenditure, % of GDP (OECD)), DE (Germany, total health expenditure, % of GDP (OECD)), DK (Denmark, total health expenditure, % of GDP (OECD)), ES (Spain, total health expenditure, % of GDP (OECD)), EE (Estonia, total health expenditure, % of GDP (OECD)), FI (Finland, total health expenditure, % of GDP (OECD)), FR (France, total health expenditure, % of GDP (OECD)), GB (United Kingdom, total health expenditure, % of GDP (OECD)), GE (Georgia, total health expenditure, % of GDP (OECD)), GR (Greece, total health expenditure, % of GDP (OECD)), HR (Croatia, total health expenditure, % of GDP (OECD)), HU (Hungary, total health expenditure, % of GDP (OECD)), ID (Indonesia, total health expenditure, % of GDP (OECD)), IN (India, total health expenditure, % of GDP (OECD)), IE (Ireland, total health expenditure, % of GDP (OECD)), IS (Iceland, total health expenditure, % of GDP (OECD)), IL (Israel, total health expenditure, % of GDP (OECD)), IT (Italy, total health expenditure, % of GDP (OECD)), JP (Japan, total health expenditure, % of GDP (OECD)), KR (South Korea, total health expenditure, % of GDP (OECD)), LT (Lithuania, total health expenditure, % of GDP (OECD)), LU (Luxembourg, total health expenditure, % of GDP (OECD)), LV (Latvia, total health expenditure, % of GDP (OECD)), MD (Moldova, total health expenditure, % of GDP (OECD)), MX (Mexico, total health expenditure, % of GDP (OECD)), MK (North Macedonia, total health expenditure, % of GDP (OECD)), MT (Malta, total health expenditure, % of GDP (OECD)), ME (Montenegro, total health expenditure, % of GDP (OECD)), NL (Netherlands, total health expenditure, % of GDP (OECD)), NO (Norway, total health expenditure, % of GDP (OECD)), NZ (New Zealand, total health expenditure, % of GDP (OECD)), PE (Peru, total health expenditure, % of GDP (OECD)), PL (Poland, total health expenditure, % of GDP (OECD)), PT (Portugal, total health expenditure, % of GDP (OECD)), RO (Romania, total health expenditure, % of GDP (OECD)), RS (Serbia, total health expenditure, % of GDP (OECD)), SK (Slovakia, total health expenditure, % of GDP (OECD)), SI (Slovenia, total health expenditure, % of GDP (OECD)), SE (Sweden, total health expenditure, % of GDP (OECD)), TH (Thailand, total health expenditure, % of GDP (OECD)), TR (Türkiye, total health expenditure, % of GDP (OECD)), US (United States, total health expenditure, % of GDP (OECD)), ZA (South Africa, total health expenditure, % of GDP (OECD)).

Call it (no API key)

GET https://api.agentdatahub.de/api/v1/call/health-spending-gdp-by-country?country=AL&compact=1

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

How to fetch it

curl:

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

Python (standard library only):

import json, urllib.request

url = "https://api.agentdatahub.de/api/v1/call/health-spending-gdp-by-country?country=AL&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): AL, AR, AU, AT, BE, BG, BA, BR, CA, CH, CL, CN, CO, CR, CY, CZ, DE, DK, ES, EE, FI, FR, GB, GE, GR, HR, HU, ID, IN, IE, IS, IL, IT, JP, KR, LT, LU, LV, MD, MX, MK, MT, ME, NL, NO, NZ, PE, PL, PT, RO, RS, SK, SI, SE, TH, TR, US, ZA
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": "health-spending-gdp-by-country",
  "trust": "checked",
  "data_freshness": "unavailable",
  "data": {
    "error": "The request could not be answered for these parameters: Albania, total health expenditure, % of GDP (OECD) is currently not served: stale: last 2023. We only serve data that passes our freshness and verification checks."
  },
  "report": "Does a value disagree with its source? `report_issue` reports it (no account, no reply).",
  "source": "OECD",
  "source_url": "https://data-explorer.oecd.org/vis?df[ds]=dsDisseminateFinalDMZ&df[id]=DSD_SHA@DF_SHA&df[ag]=OECD.ELS.HD",
  "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"
}

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_SHA@DF_SHA&df[ag]=OECD.ELS.HD
Termshttps://www.oecd.org/en/about/terms-conditions.html
CategorySociety & Demographics › Health · more: health-spending-per-capita-by-country · old-age-pension-spending-by-country · pension-replacement-rate-by-country