# US Treasury Fiscal Data · Datasets

Get market and financial data with US Treasury Fiscal Data · Datasets from Alexandria through one Spiral API key. Start here to find the `endpoint` for `data` or the `dataset_id` for `release_calendar` and `published_reports`. 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/datasets`
- Page: https://spiral.ai/tools/alexandria/fiscaldata-treasury-gov/fiscal-data/datasets

## 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 |
| --- | --- | --- | --- | --- |
| `query` | text |  | — | Keywords; every word must match (case-insensitive) somewhere in the dataset id, title, descriptions, table names or column names. Omit to list every dataset. |
| `cursor` | text |  | — | next_cursor from the previous page of the same query. |
| `page_size` | number | 1 to 100 | 10 | Datasets per page. |
| `dataset_id` | text |  | — | Exact Fiscal Data dataset id such as 015-BFS-2014Q3-065; not_found when the catalog has no such dataset. Pattern: ^015-BFS-[0-9]{4}Q[1-4]-[0-9A-Za-z]{2,4}$. |

## 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/datasets",
    "input": {
      "query": "<query>"
    }
  }'
```

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

## Common questions

### US Treasury Fiscal Data · Datasets

**How much does US Treasury Fiscal Data · Datasets 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 · Datasets through an API?**

Send `POST /v1/runs` with `"provider": "alexandria"`, `"model": "fiscaldata-treasury-gov/fiscal-data/datasets"` 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 · Datasets?**

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

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

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

