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="200" 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="300" 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="300" 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="300" frameborder="0" title="Federal Funds Rate — via govspending.org"></iframe>
US Unemployment Rate
Headline US unemployment rate (U-3) with a 10-year trend.
<iframe src="https://govspending.org/embed/unemployment-rate/" width="100%" height="300" frameborder="0" title="US Unemployment Rate — via govspending.org"></iframe>
US 10-Year Treasury Yield
The benchmark 10-year US Treasury yield with daily history.
<iframe src="https://govspending.org/embed/ten-year-treasury/" width="100%" height="300" frameborder="0" title="US 10-Year Treasury Yield — via govspending.org"></iframe>
US 30-Year Mortgage Rate
Average 30-year fixed US mortgage rate with history.
<iframe src="https://govspending.org/embed/mortgage-rate/" width="100%" height="300" frameborder="0" title="US 30-Year Mortgage Rate — via govspending.org"></iframe>
US Money Supply (M2)
M2 money stock with its long-run trend.
<iframe src="https://govspending.org/embed/money-supply/" width="100%" height="300" frameborder="0" title="US Money Supply (M2) — via govspending.org"></iframe>
US GDP (Nominal)
US nominal gross domestic product at an annualized rate, with trend.
<iframe src="https://govspending.org/embed/gdp/" width="100%" height="300" frameborder="0" title="US GDP (Nominal) — via govspending.org"></iframe>
Core CPI Inflation (Year-over-Year)
Year-over-year core CPI inflation (excludes food and energy), with a 3-year sparkline.
<iframe src="https://govspending.org/embed/core-cpi/" width="100%" height="300" frameborder="0" title="Core CPI Inflation (Year-over-Year) — via govspending.org"></iframe>
US Nonfarm Payrolls
Total US nonfarm payroll employment, with trend.
<iframe src="https://govspending.org/embed/nonfarm-payrolls/" width="100%" height="300" frameborder="0" title="US Nonfarm Payrolls — via govspending.org"></iframe>
US Federal Surplus / Deficit (Annual)
Annual US federal budget surplus (+) or deficit (−), with history.
<iframe src="https://govspending.org/embed/federal-deficit/" width="100%" height="300" frameborder="0" title="US Federal Surplus / Deficit (Annual) — 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.