# US Treasury Fiscal Data · Data

Get market and financial data with US Treasury Fiscal Data · Data from Alexandria through one Spiral API key. Any question that needs the actual numbers from a Fiscal Data table. Use `datasets` first when the endpoint path is unknown; use `latest` for the newest rows of a headline table. It runs in the background and returns structured JSON. Pay as you go, with no subscription.

- Provider: Alexandria
- Category: Finance
- Runs: In the background
- Returns: json
- Tool id: `alexandria` / `fiscaldata-treasury-gov/fiscal-data/data`
- Page: https://spiral.ai/tools/alexandria/fiscaldata-treasury-gov/fiscal-data/data

## Pricing

$0.00873 per call.

## Limits

- Longest queue wait: 1 hour
- Run deadline: 5 minutes
- Longest run, end to end: 225 minutes
- Largest inline input: 1 MB
- Largest input file: 2 GB
- Largest output: 5 GB

## Input

| Field | Kind | Allowed | Default | Description |
| --- | --- | --- | --- | --- |
| `endpoint` (required) | text |  | — | Table path under /services/api/fiscal_service/, e.g. v2/accounting/od/debt_to_penny (the `endpoint` of a table in `datasets`). Pattern: ^/?v[12](/[a-z0-9_]+){2,5}/?$. |
| `sort` | JSON |  | — | Sort keys in priority order. Omitted or null sorts by record_date descending (newest first). |
| `cursor` | text |  | — | next_cursor from the previous page of the same query. |
| `fields` | list |  | — | Columns to return (record_date is always included). Omitted or null returns every column. Notes: Fiscal Data aggregates rows that become identical when columns are dropped, and sort keys must be among the returned columns (sorting on a dropped column is rejected upstream). |
| `filter` | JSON |  | — | Clauses are ANDed. |
| `page_size` | number | 1 to 10000 | 100 | page_size |

## Example

```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": "fiscaldata-treasury-gov/fiscal-data/data",
    "input": {
      "endpoint": "<endpoint>"
    }
  }'
```

Try it in the Playground: https://spiral.ai/start?provider=alexandria&model=fiscaldata-treasury-gov%2Ffiscal-data%2Fdata

## Common questions

### US Treasury Fiscal Data · Data

**How much does US Treasury Fiscal Data · Data cost?**

$0.00873 per call. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.

**How do I use US Treasury Fiscal Data · Data through an API?**

Send `POST /v1/runs` with `"provider": "alexandria"`, `"model": "fiscaldata-treasury-gov/fiscal-data/data"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.

**Do I need an account with Alexandria to use US Treasury Fiscal Data · Data?**

No. Spiral runs it on its own Alexandria account and charges your Spiral balance.

**Can my AI agent use US Treasury Fiscal Data · Data?**

Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.

