US Treasury Fiscal Data · Data
fiscaldata-treasury-gov/fiscal-data/dataGet 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.
Pricing
$0.00873 per call.
Limits
- Runs
- In the background
- Returns
- json
- 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 | Default | Description |
|---|---|---|---|
endpoint required | text | — | Table path under /services/api/fiscal_service/, e.g. v2/accounting/od/debt_to_penny (the |
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 |
Same request in code
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>"
}
}'Frequently asked questions
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.