Embeddable Widgets
Drop any of these widgets into your own site, newsletter, or blog post with a single iframe. Data refreshes at the same cadence as the rest of GOVSPENDING.ORG. No account, no API key, no attribution beyond the small "via GOVSPENDING.ORG" link already on the widget.
How to embed
- Pick a widget below and copy its snippet.
- Paste into your HTML. The widget is a standard iframe — no JS required on your side.
- Want auto-resize? The widget posts its content height to the parent window via
postMessage({ type: 'govspending:embed-height', height }). Listen and setiframe.style.height.
US National Debt — Live Counter
Total US public debt outstanding with an estimated per-second growth ticker.
<iframe src="https://govspending.org/embed/debt-counter/" width="100%" height="180" frameborder="0" title="US National Debt — Live Counter — via govspending.org"></iframe>
CPI Inflation (Year-over-Year)
Current US CPI inflation rate with a 3-year sparkline.
<iframe src="https://govspending.org/embed/inflation/" width="100%" height="280" frameborder="0" title="CPI Inflation (Year-over-Year) — via govspending.org"></iframe>
Yield Curve (10y − 2y Spread)
The 10y–2y Treasury spread — the classic recession indicator when negative.
<iframe src="https://govspending.org/embed/yield-curve/" width="100%" height="280" frameborder="0" title="Yield Curve (10y − 2y Spread) — via govspending.org"></iframe>
Federal Funds Rate
Effective federal funds rate with a 10-year history chart.
<iframe src="https://govspending.org/embed/fed-funds/" width="100%" height="280" frameborder="0" title="Federal Funds Rate — via govspending.org"></iframe>
Terms
GOVSPENDING.ORG embeds are free for any non-commercial and commercial use, including news publications and research sites. The data comes from U.S. federal sources (public domain); the widget chrome is released under CC0. Please keep the "via GOVSPENDING.ORG" link intact — it's how we know the site is earning its keep.