Central government debt (% of GDP)
Quarterly central-government debt expressed as a percentage of GDP for a country, with the year-over-year change in the ratio.
Authorizations
Your HayInsights API key (prefixed apk_). Create and manage keys in the
HayInsights dashboard (Account → API keys).
Send it in the X-API-Key header on every request to /openapi/v1/*.
Which data domains you may access and your request quota are both governed by
the subscription plan attached to the key — see the Plans & features and
Rate limits guides.
Query Parameters
ISO country code.
"US"
Look-back window.
5Y, 10Y, 20Y Response
Central-government-debt series.
Standard success envelope shared by every endpoint. Each operation's response
wrapper extends this (via allOf) and adds a typed data property.