> For the complete documentation index, see [llms.txt](https://doc.duaer.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.duaer.com/getting-started/usaspending.md).

# US federal agency budgets in Duaer

In Duaer: Budget authority, obligations, and outlays of US federal agencies for the current fiscal year, from USAspending. One successful search uses 1 credit.
## What you get

Duaer US federal agency budgets lists US federal agencies with their current fiscal year budget authority, obligations, and outlays from USAspending, largest first.

Pick Duaer Data → US federal agency budgets in the node creator, or open the [data market](/getting-started/data-market.md). Related: [US Federal Register](/getting-started/federal-register.md), [IMF indicators](/getting-started/imf.md).

## When to use it

- Rank US agencies by budget.
- Get one agency’s share of federal spending.

## When not to use it

- Regulations and notices. Use [US Federal Register](/getting-started/federal-register.md).
- Company finances. Use [SEC filings](/getting-started/sec-filings.md).

## Search on the canvas

1. Open the node creator and pick Duaer Data → US federal agency budgets.
2. Fill Sort (budget, obligated, or outlays). Optional: Words (such as NASA).
3. Limit defaults to 10, max 20. Execute.

A search uses 1 credit only when it returns rows. No rows, wrong input, or an upstream failure uses 0.

## Call the API

- GET https://api.duaer.com/v1/data/usaspending?sort=budget&limit=5
- Authorization: Bearer <Duaer key>

The call skill below matches Copy skill in the Duaer data market, with parameters, examples, and result fields.

## Call skill

Same text as Copy skill.

```
---
name: duaer-usaspending
description: >-
  Duaer US federal agency budgets. Budget authority, obligations, and outlays of US federal agencies for the current fiscal year, from USAspending.
  One successful search uses 1 Duaer credit.
---

# Duaer US federal agency budgets

Duaer US federal agency budgets lists US federal agencies with their current fiscal year budget authority, obligations, and outlays from USAspending, largest first.

## When to use

- Rank US agencies by budget.
- Get one agency’s share of federal spending.

## When not to use

- Regulations and notices. Use https://skills.duaer.com/federal-register.md.
- Company finances. Use https://skills.duaer.com/sec-filings.md.

## Call

`GET https://api.duaer.com/v1/data/usaspending?sort=budget&limit=5`

Header: `Authorization: Bearer <Duaer key>`

Use an account key or a model API key.

Get a Duaer key: https://skills.duaer.com/keys.md

## Parameters

Provide `sort` or `words`.

- `sort` — `budget`, `obligated`, or `outlays`. Largest first.
- `words` — Optional. Agency name or abbreviation, such as defense or NASA.
- `limit` — Optional. Rows to return, from 1 to 20. Default 10.

## Examples

- `GET https://api.duaer.com/v1/data/usaspending?sort=budget&limit=5` — the five largest agencies by budget authority.
- `GET https://api.duaer.com/v1/data/usaspending?words=NASA` — NASA’s budget and outlays.

## Result

The response is `{ "items": [...] }`. Each item has `source`, `title`, `url`, and `summary`, plus:

- `agency`, `abbreviation`, `toptierCode` — agency and its codes.
- `fiscalYear`, `fiscalQuarter` — reporting period.
- `budgetAuthorityUsd`, `obligatedUsd`, `outlaysUsd` — US dollars.
- `shareOfTotalPct` — share of all federal budget authority.

Fields without a value are left out.

## Credits

A search that returns at least one row uses 1 credit.
An empty search, a search that finds nothing, or a failed search uses 0.
Wrong input returns 400 with a message and uses 0.
No remaining credits returns 402 and does not search.
A missing key returns 401.

## Related

- https://skills.duaer.com/federal-register.md — Duaer US Federal Register
- https://skills.duaer.com/imf.md — Duaer IMF indicators

```
## Questions

### How many credits does a US federal agency budgets search use in Duaer?

One credit when Duaer returns rows. A search with no rows or an error uses 0.

### Which fiscal year does Duaer US federal agency budgets return?

Duaer US federal agency budgets returns the current fiscal year and latest quarter from USAspending; each row has fiscalYear and fiscalQuarter.

## Related

- [US Federal Register in Duaer](https://doc.duaer.com/getting-started/federal-register.md)
- [IMF indicators in Duaer](https://doc.duaer.com/getting-started/imf.md)

