Debt-to-GDP by Sector API
How indebted each economy's government, households and companies are relative to the size of the economy, read live from the Bank for International Settlements' open statistics — no key, nothing stored. Debt-to-GDP is the headline gauge of debt sustainability: how big a borrower's debts are versus the income that has to service them. The BIS publishes total credit as a share of GDP for the general government, for households, for non-financial corporations and for the private non-financial sector as a whole, on a consistent cross-country basis. The latest endpoint returns every covered country's most recent government, household, corporate and total-private debt-to-GDP; the country endpoint returns one country's four sector ratios with the reference quarter; the history endpoint returns a chosen sector's quarterly series. This is the debt-level / leverage macro cut — distinct from the credit-to-GDP gap (how stretched credit is versus its trend), the debt service ratio (the cost of carrying that debt), the credit-growth (lending volumes), bank-rate and FX APIs in the catalogue. A country is a BIS reference area (US, GB, DE, JP …) given as an ISO-2 code or a common name; data is quarterly with the usual statistical lag.
api.oanor.com/debttogdp-api