[Integrations](https://spiral.ai/integrations) › [n8n](https://spiral.ai/integrations/n8n) › [U.S. Treasury interest expense](https://spiral.ai/integrations/n8n/u-s-treasury-interest-expense)

# How to Use U.S. Treasury interest expense in n8n

Returns monthly and fiscal year-to-date interest expense on federal debt, organized by expense category. Use it to examine borrowing costs in dollars; average interest rates reports percentages.

|  |  |
| --- | --- |
| Model | U.S. Treasury interest expense |
| Available through | Alexandria |
| Category | Finance |
| Price | $0.001746 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, with a Spiral API key |

## Prompts to try with U.S. Treasury interest expense in n8n

- Each month, use U.S. Treasury interest expense to check for new data. Report current-month expense and compare fiscal year-to-date expense with the matching period a year earlier.
- Every Monday at 9am: use U.S. Treasury interest expense to look this up and give me the result as a table.
- Pull the latest numbers from U.S. Treasury interest expense and tell me what changed since last week.
- Check U.S. Treasury interest expense and summarize what you find in three bullet points.
- Pull the newest data from U.S. Treasury interest expense and give me the result as a table.

## How to set up U.S. Treasury interest expense in n8n

Pick the way that suits you. Each takes about two minutes.

### Use the Spiral skill

1. **Send n8n this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use Spiral's MCP server

1. **Create a key**: Create a key under API keys in the console.

2. **Add an MCP Client node**: In a workflow, add an MCP Client node (or, under an AI Agent node, an MCP Client Tool) and set:

```text
https://api.spiral.ai/mcp
```

3. **Pick a tool**: The node lists Spiral's tools. In an MCP Client node pick one, such as `run`, and give it its arguments:

```json
{
  "provider": "fal",
  "model": "fal-ai/flux/schnell",
  "input": { "prompt": "a lighthouse at dawn" },
  "wait": true
}
```

4. **Run U.S. Treasury interest expense in a workflow step**: Give the step an instruction like the ones below and run it on your trigger or schedule. Spiral finds U.S. Treasury interest expense, prices it and runs it each time the step fires.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run U.S. Treasury interest expense**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "treasury-fiscal-data/debt/interest-expense",
    "input": {
      "sort": "<sort>"
    }
  }'
```

Then paste one of the prompts above: n8n finds U.S. Treasury interest expense on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/n8n

## U.S. Treasury interest expense tools and prices

- [Treasury Fiscal Data · Interest expense](https://spiral.ai/tools/alexandria/treasury-fiscal-data/debt/interest-expense) (Alexandria): $0.001746 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| sort |  | — | Sort column, prefixed with `-` for descending: `-record_date` puts the latest first. Comma-separated for several. Unsorted results come back oldest first. |
| fields |  | — | Columns to return, comma-separated, in place of all of them. Rows come back distinct over the chosen columns, so `fields=security_type` on auction results answers three rows, not eleven thousand; keep every column that identifies a row in the list before counting or summing (for buybacks, `operation_date` and `operation_start_time_est`, plus `cusip_nbr` on securities). A column not in the declared list answers HTTP 400 naming it. |
| filter |  | — | Filter, as `column:operator:value`, several joined by commas: `record_date:gte:2026-01-01`, `security_type:eq:Bill,auction_date:gte:2026-08-01`. Operators: eq, lt, lte, gt, gte, and in with a parenthesised list `security_type:in:(Bill,Note)`. An unknown column answers HTTP 400. |
| page[size] | … to 10000 | 100 | Rows per page, 1 to 10,000. The default of 100 is fine for a summary series and far too small for a full auction history. |
| page[number] |  | 1 | Page number, 1-indexed. `meta.total-pages` in the response says how many there are. |

## What can you do with U.S. Treasury interest expense in n8n?

Maintain a recurring briefing that reports newly available Treasury observations and changes from the previous comparable period. Keep daily debt, monthly borrowing measures, and annual history on their own reporting intervals.

### Fiscal year briefing

Explain a completed fiscal year with annual debt, the daily debt split near year-end, monthly average rates, and reported interest expense.

### Compare 2020 with 2024

Compare debt levels, public and intragovernmental holdings, average rates, and interest expense across the two years. Present the measures separately before discussing their relationship.

### Check a national debt article

Check claims about debt growth, borrowing rates, and interest costs against Treasury observations. Match each claim to a daily, monthly, or annual reporting period.

### Teach debt and borrowing costs

Build a lesson using actual Treasury figures to distinguish outstanding debt, average interest rates, and interest expense. Include the difference between total debt and debt held by the public.

### Monthly borrowing cost review

Compare changes in reported average rates with changes in monthly interest expense. Keep percentages and dollar amounts on separate charts.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All n8n guides](https://spiral.ai/integrations/n8n)

## U.S. Treasury interest expense in other agents

- [Amp](https://spiral.ai/integrations/amp/u-s-treasury-interest-expense)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/u-s-treasury-interest-expense)
- [Claude](https://spiral.ai/integrations/claude-desktop/u-s-treasury-interest-expense)
- [Claude Code](https://spiral.ai/integrations/claude-code/u-s-treasury-interest-expense)
- [Cline](https://spiral.ai/integrations/cline/u-s-treasury-interest-expense)
- [Codex](https://spiral.ai/integrations/codex/u-s-treasury-interest-expense)
- [Cursor](https://spiral.ai/integrations/cursor/u-s-treasury-interest-expense)
- [Devin](https://spiral.ai/integrations/devin/u-s-treasury-interest-expense)
- [dots](https://spiral.ai/integrations/dots/u-s-treasury-interest-expense)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/u-s-treasury-interest-expense)
- [Gemini](https://spiral.ai/integrations/gemini/u-s-treasury-interest-expense)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/u-s-treasury-interest-expense)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/u-s-treasury-interest-expense)
- [goose](https://spiral.ai/integrations/goose/u-s-treasury-interest-expense)
- [Grok](https://spiral.ai/integrations/grok/u-s-treasury-interest-expense)
- [Grok Build](https://spiral.ai/integrations/grok-build/u-s-treasury-interest-expense)
- [Hermes](https://spiral.ai/integrations/hermes/u-s-treasury-interest-expense)
- [Instinct](https://spiral.ai/integrations/instinct/u-s-treasury-interest-expense)
- [Manus](https://spiral.ai/integrations/manus/u-s-treasury-interest-expense)
- [Muse](https://spiral.ai/integrations/muse/u-s-treasury-interest-expense)
- [Muse Code](https://spiral.ai/integrations/muse-code/u-s-treasury-interest-expense)
- [Notion](https://spiral.ai/integrations/notion/u-s-treasury-interest-expense)
- [OpenClaw](https://spiral.ai/integrations/openclaw/u-s-treasury-interest-expense)
- [opencode](https://spiral.ai/integrations/opencode/u-s-treasury-interest-expense)
- [Perplexity](https://spiral.ai/integrations/perplexity/u-s-treasury-interest-expense)
- [Raycast](https://spiral.ai/integrations/raycast/u-s-treasury-interest-expense)
- [VS Code](https://spiral.ai/integrations/vscode/u-s-treasury-interest-expense)
- [Windsurf](https://spiral.ai/integrations/windsurf/u-s-treasury-interest-expense)
- [Zapier](https://spiral.ai/integrations/zapier/u-s-treasury-interest-expense)

## More n8n guides

- [U.S. Treasury historical debt outstanding](https://spiral.ai/integrations/n8n/u-s-treasury-historical-debt-outstanding)
- [U.S. Treasury upcoming auctions](https://spiral.ai/integrations/n8n/u-s-treasury-upcoming-auctions)
- [U.S. Treasury gold reserves](https://spiral.ai/integrations/n8n/u-s-treasury-gold-reserves)
- [UN Comtrade data availability](https://spiral.ai/integrations/n8n/un-comtrade-data-availability)
- [U.S. Treasury debt to the penny](https://spiral.ai/integrations/n8n/u-s-treasury-debt-to-the-penny)
- [UN Comtrade dataset metadata](https://spiral.ai/integrations/n8n/un-comtrade-dataset-metadata)

## Questions about U.S. Treasury interest expense in n8n

**Can n8n use U.S. Treasury interest expense?**

Yes. Add Spiral to n8n as an MCP server, and n8n can find and run U.S. Treasury interest expense like any built-in tool.

**How much does U.S. Treasury interest expense cost in n8n?**

$0.001746 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your n8n plan is separate.

**Do I need an Alexandria account to use U.S. Treasury interest expense in n8n?**

You need no Alexandria account. n8n uses one Spiral API key for every tool, and Spiral runs U.S. Treasury interest expense on its own Alexandria account.

**How long does it take to set up U.S. Treasury interest expense in n8n?**

About two minutes: create a key, then add an MCP Client node, then pick a tool.

**Does n8n wait while U.S. Treasury interest expense runs?**

U.S. Treasury interest expense runs in the background. n8n starts the run, checks on it and gives you the json when it's ready.

**Where does Treasury's debt data come from?**

Fiscal Data draws from government operational systems, including debt management and summary debt accounting systems. Its coverage is public government finances; it does not provide personal financial records.

**What reporting intervals do these Treasury datasets cover?**

Debt to the Penny provides daily observations, historical debt outstanding summarizes fiscal years, and average interest rates provides monthly figures. Interest expense supplies both monthly and fiscal year-to-date amounts.

**How far back can I compare federal debt?**

Historical debt outstanding covers fiscal years from 1789 onward. It supplies total debt without the public-versus-intragovernmental breakdown available in Debt to the Penny.

**Do Treasury's combined average rates include every security type?**

The combined rates for total marketable, total nonmarketable, and total interest-bearing debt exclude TIPS and Floating Rate Notes. Keep that coverage boundary visible when discussing the government's average borrowing rate.

**Does reported interest expense mean cash paid during the month?**

Treasury describes its interest information for outstanding interest-bearing securities as calculated using modified accrual accounting. Avoid labeling every reported expense amount as a cash payment.

