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.

    Looking for the full catalog?Browse the embed directory →Machine-readable list (embeds.xml)

    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="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.

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

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

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

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

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

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

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

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

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

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

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