Embed

    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

    1. Pick a widget below and copy its snippet.
    2. Paste into your HTML. The widget is a standard iframe — no JS required on your side.
    3. Want auto-resize? The widget posts its content height to the parent window via postMessage({ type: 'govspending:embed-height', height }). Listen and set iframe.style.height.

    US National Debt — Live Counter

    Total US public debt outstanding with an estimated per-second growth ticker.

    Open standalone
    <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.

    Open standalone
    <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.

    Open standalone
    <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.

    Open standalone
    <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.