Embeds

    Embed Directory

    Every chart and counter you can drop into your own site, newsletter, or blog post with a single iframe — no account, no API key, no build step. Each widget refreshes on the same cadence as the rest of GOVSPENDING.ORG and carries a small "via GOVSPENDING.ORG" link.

    For AI assistants & scripts

    A no-theme, machine-readable mirror of this catalog lives at https://govspending.org/embeds.xml. It lists every widget with its slug, iframe URL, recommended dimensions, data source, update cadence, and a ready-to-paste snippet — quick to parse, nothing to render.

    How to embed

    1. Pick a widget below and copy its snippet.
    2. Paste it into your HTML. It's a standard iframe — no JavaScript 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 for it and set iframe.style.height.

    Debt

    US National Debt — Live Counter

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

    Open standalone
    Data source
    U.S. Treasury — Debt to the Penny
    Updates
    Daily
    Default size
    100% × 200px
    Slug
    debt-counter
    <iframe src="https://govspending.org/embed/debt-counter/"
      width="100%" height="200" frameborder="0"
      title="US National Debt — Live Counter — via govspending.org"></iframe>

    US Federal Surplus / Deficit (Annual)

    Annual US federal budget surplus (+) or deficit (−), with history.

    Open standalone
    Data source
    FRED — FYFSD (Office of Management and Budget)
    Updates
    Annual
    Default size
    100% × 300px
    Slug
    federal-deficit
    <iframe src="https://govspending.org/embed/federal-deficit/"
      width="100%" height="300" frameborder="0"
      title="US Federal Surplus / Deficit (Annual) — via govspending.org"></iframe>

    Inflation

    CPI Inflation (Year-over-Year)

    Current US CPI inflation rate with a 3-year sparkline.

    Open standalone
    Data source
    FRED — CPIAUCSL (U.S. Bureau of Labor Statistics)
    Updates
    Monthly
    Default size
    100% × 300px
    Slug
    inflation
    <iframe src="https://govspending.org/embed/inflation/"
      width="100%" height="300" frameborder="0"
      title="CPI Inflation (Year-over-Year) — 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
    Data source
    FRED — CPILFESL (U.S. Bureau of Labor Statistics)
    Updates
    Monthly
    Default size
    100% × 300px
    Slug
    core-cpi
    <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>

    Rates

    Yield Curve (10y − 2y Spread)

    The 10y–2y Treasury spread — the classic recession indicator when negative.

    Open standalone
    Data source
    FRED — T10Y2Y (Federal Reserve)
    Updates
    Daily
    Default size
    100% × 300px
    Slug
    yield-curve
    <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
    Data source
    FRED — FEDFUNDS (Federal Reserve)
    Updates
    Monthly
    Default size
    100% × 300px
    Slug
    fed-funds
    <iframe src="https://govspending.org/embed/fed-funds/"
      width="100%" height="300" frameborder="0"
      title="Federal Funds Rate — via govspending.org"></iframe>

    US 10-Year Treasury Yield

    The benchmark 10-year US Treasury yield with daily history.

    Open standalone
    Data source
    FRED — DGS10 (Federal Reserve)
    Updates
    Daily
    Default size
    100% × 300px
    Slug
    ten-year-treasury
    <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
    Data source
    FRED — MORTGAGE30US (Freddie Mac via FRED)
    Updates
    Weekly
    Default size
    100% × 300px
    Slug
    mortgage-rate
    <iframe src="https://govspending.org/embed/mortgage-rate/"
      width="100%" height="300" frameborder="0"
      title="US 30-Year Mortgage Rate — via govspending.org"></iframe>

    Labor

    US Unemployment Rate

    Headline US unemployment rate (U-3) with a 10-year trend.

    Open standalone
    Data source
    FRED — UNRATE (U.S. Bureau of Labor Statistics)
    Updates
    Monthly
    Default size
    100% × 300px
    Slug
    unemployment-rate
    <iframe src="https://govspending.org/embed/unemployment-rate/"
      width="100%" height="300" frameborder="0"
      title="US Unemployment Rate — via govspending.org"></iframe>

    US Nonfarm Payrolls

    Total US nonfarm payroll employment, with trend.

    Open standalone
    Data source
    FRED — PAYEMS (U.S. Bureau of Labor Statistics)
    Updates
    Monthly
    Default size
    100% × 300px
    Slug
    nonfarm-payrolls
    <iframe src="https://govspending.org/embed/nonfarm-payrolls/"
      width="100%" height="300" frameborder="0"
      title="US Nonfarm Payrolls — via govspending.org"></iframe>

    Economy

    US Money Supply (M2)

    M2 money stock with its long-run trend.

    Open standalone
    Data source
    FRED — M2SL (Federal Reserve)
    Updates
    Monthly
    Default size
    100% × 300px
    Slug
    money-supply
    <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
    Data source
    FRED — GDP (U.S. Bureau of Economic Analysis)
    Updates
    Quarterly
    Default size
    100% × 300px
    Slug
    gdp
    <iframe src="https://govspending.org/embed/gdp/"
      width="100%" height="300" frameborder="0"
      title="US GDP (Nominal) — 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.