> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# USAspending

> US federal spending: contracts, grants, loans and other awards, who received them, and agency budgets, from the Treasury's free USAspending.gov API.

![](https://mintcdn.com/webrouter/Wx0iBZkUGX_VAFTN/logo/data-apis/_default.svg?fit=max\&auto=format\&n=Wx0iBZkUGX_VAFTN\&q=85\&s=951f11a0968af0d8747e234a1ec1f32c)

[Web Catalog · Government](https://docs.webrouter.net/data-apis.md?category=government)

No key needed

Endpoints

7

Auth

None

[Vendor docs](https://api.usaspending.gov/docs/endpoints)

## Notes

* Keyless and free; no account.
* Most searches are reads over POST with a JSON body; every path ends in a trailing slash, as documented.
* Award searches require filters.award\_type\_codes (contract types A, B, C, D; assistance types 02-11; IDV types IDV\_A to IDV\_D) and take filters such as keywords, time\_period \[\{start\_date, end\_date}] in YYYY-MM-DD, agencies, recipient\_search\_text, place\_of\_performance\_locations, naics\_codes and psc\_codes.
* Amounts are US dollars. Paging is limit plus page, with page\_metadata.hasNext in the response.

## Endpoints

POST

Search awards

Contracts, grants, loans and other awards matching advanced-search filters, with the fields you ask for.

[Open](#usaspending-awards-search)

GET

Get an award

Full profile of one award: amounts, dates, recipient, agencies, parent award and latest transaction data.

[Open](#usaspending-awards-get)

POST

Rank recipients by spending

Top recipients by amount for a set of filters, e.g. one agency's or one NAICS code's spending in a period.

[Open](#usaspending-spending-by-recipient)

POST

List recipients

Recipients with their level, UEI, DUNS and total amount, filtered by keyword and award type.

[Open](#usaspending-recipients-list)

GET

Get a recipient profile

Overview of one recipient: names, UEI, DUNS, parent, location, business types and totals for a fiscal year.

[Open](#usaspending-recipients-get)

POST

Autocomplete a recipient

Recipient names, UEIs and DUNS matching a search text.

[Open](#usaspending-recipients-autocomplete)

GET

List top-tier agencies

Every top-tier agency with its budget authority, obligations, outlays and share of the total budget.

[Open](#usaspending-agencies-list)

### Search awards

POST

`/api/v2/search/spending_by_award/`

`usaspending.awards.search`

Contracts, grants, loans and other awards matching advanced-search filters, with the fields you ask for.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`filters` required</td><td>object</td><td>body</td><td>Advanced filter object; award\_type\_codes is required. Example `{"award_type_codes": ["A", "B", "C", "D"], "keywords": ["cybersecurity"], "time_period": [{"start_date": "2025-10-01", "end_date": "2026-09-30"}]}`</td></tr>
    <tr><td>`fields` required</td><td>array</td><td>body</td><td>Column names to return, e.g. Award ID, Recipient Name, Start Date, End Date, Award Amount, Awarding Agency, Awarding Sub Agency, Award Type. Example `["Award ID", "Recipient Name", "Award Amount", "Awarding Agency", "Start Date"]`</td></tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        body
      </td>

      <td>
        Results per page; 10 when unset.
      </td>
    </tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        body
      </td>

      <td>
        Page number.
      </td>
    </tr>

    <tr>
      <td>
        `sort`
      </td>

      <td>
        string
      </td>

      <td>
        body
      </td>

      <td>
        One of the requested fields to sort by; the first field when unset.
      </td>
    </tr>

    <tr><td>`order`</td><td>string</td><td>body</td><td>Sort direction; desc by default. One of `desc`, `asc`</td></tr>
    <tr><td>`spending_level`</td><td>string</td><td>body</td><td>Search prime awards (default) or subawards. One of `awards`, `subawards`</td></tr>
  </tbody>
</table>

[Vendor docs](https://github.com/fedspendingtransparency/usaspending-api/blob/master/usaspending_api/api_contracts/contracts/v2/search/spending_by_award.md) · Same job: [PNCP (Portal Nacional de Contratações Públicas)](https://docs.webrouter.net/data-apis/pncp.md#pncp-contracts-list)

```python Python theme={null}
router.call_data_api("usaspending.awards.search", {'filters': {'award_type_codes': ['A', 'B', 'C', 'D'], 'keywords': ['cybersecurity'], 'time_period': [{'start_date': '2025-10-01', 'end_date': '2026-09-30'}]}, 'fields': ['Award ID', 'Recipient Name', 'Award Amount', 'Awarding Agency', 'Start Date']})
```

```text MCP theme={null}
call_data_api(endpoint="usaspending.awards.search", params={"filters": {"award_type_codes": ["A", "B", "C", "D"], "keywords": ["cybersecurity"], "time_period": [{"start_date": "2025-10-01", "end_date": "2026-09-30"}]}, "fields": ["Award ID", "Recipient Name", "Award Amount", "Awarding Agency", "Start Date"]})
```

> [!NOTE]
>
> * A read over POST. The generated\_internal\_id in each result is the award\_id for awards.get.

### Get an award

GET

`/api/v2/awards/{award_id}/`

`usaspending.awards.get`

Full profile of one award: amounts, dates, recipient, agencies, parent award and latest transaction data.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`award_id` required</td><td>string</td><td>path</td><td>The generated unique award id, or the internal database id. Example `CONT_AWD_H907_9700_SPE2DX16D1500_9700`</td></tr>
  </tbody>
</table>

[Vendor docs](https://github.com/fedspendingtransparency/usaspending-api/blob/master/usaspending_api/api_contracts/contracts/v2/awards/award_id.md)

```python Python theme={null}
router.call_data_api("usaspending.awards.get", {'award_id': 'CONT_AWD_H907_9700_SPE2DX16D1500_9700'})
```

```text MCP theme={null}
call_data_api(endpoint="usaspending.awards.get", params={"award_id": "CONT_AWD_H907_9700_SPE2DX16D1500_9700"})
```

### Rank recipients by spending

POST

`/api/v2/search/spending_by_category/recipient/`

`usaspending.spending.by_recipient`

Top recipients by amount for a set of filters, e.g. one agency's or one NAICS code's spending in a period.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`filters` required</td><td>object</td><td>body</td><td>Filter object (same filters as the advanced search). Example `{"time_period": [{"start_date": "2025-10-01", "end_date": "2026-09-30"}]}`</td></tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        body
      </td>

      <td>
        Results per page.
      </td>
    </tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        body
      </td>

      <td>
        Page number.
      </td>
    </tr>

    <tr><td>`spending_level`</td><td>string</td><td>body</td><td>What the totals are summed from; transactions by default. One of `transactions`, `awards`, `subawards`</td></tr>
  </tbody>
</table>

[Vendor docs](https://github.com/fedspendingtransparency/usaspending-api/blob/master/usaspending_api/api_contracts/contracts/v2/search/spending_by_category/recipient.md)

```python Python theme={null}
router.call_data_api("usaspending.spending.by_recipient", {'filters': {'time_period': [{'start_date': '2025-10-01', 'end_date': '2026-09-30'}]}})
```

```text MCP theme={null}
call_data_api(endpoint="usaspending.spending.by_recipient", params={"filters": {"time_period": [{"start_date": "2025-10-01", "end_date": "2026-09-30"}]}})
```

> [!NOTE]
>
> * A read over POST.

### List recipients

POST

`/api/v2/recipient/`

`usaspending.recipients.list`

Recipients with their level, UEI, DUNS and total amount, filtered by keyword and award type.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`keyword`</td><td>string</td><td>body</td><td>Matched against name, UEI or DUNS. Example `Lockheed`</td></tr>
    <tr><td>`award_type`</td><td>string</td><td>body</td><td>Award type; all by default. One of `all`, `contracts`, `grants`, `loans`, `direct_payments`, `other_financial_assistance`</td></tr>
    <tr><td>`sort`</td><td>string</td><td>body</td><td>Sort field; amount by default. One of `name`, `duns`, `amount`</td></tr>
    <tr><td>`order`</td><td>string</td><td>body</td><td>Sort direction; desc by default. One of `asc`, `desc`</td></tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        body
      </td>

      <td>
        Results per page, at most 1000; 50 by default.
      </td>
    </tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        body
      </td>

      <td>
        Page number, from 1.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://github.com/fedspendingtransparency/usaspending-api/blob/master/usaspending_api/api_contracts/contracts/v2/recipient.md) · Same job: [Adzuna](https://docs.webrouter.net/data-apis/adzuna.md#adzuna-companies-top), [AI Ark](https://docs.webrouter.net/data-apis/aiark.md#aiark-company-search), [Airscale](https://docs.webrouter.net/data-apis/airscale.md#airscale-companies-search), [akta.pro](https://docs.webrouter.net/data-apis/akta.md#akta-company-search), [Alpha Vantage](https://docs.webrouter.net/data-apis/alphavantage.md#alphavantage-symbol-search), [Apollo.io](https://docs.webrouter.net/data-apis/apollo.md#apollo-organizations-search)

```python Python theme={null}
router.call_data_api("usaspending.recipients.list", {'keyword': 'Lockheed'})
```

```text MCP theme={null}
call_data_api(endpoint="usaspending.recipients.list", params={"keyword": "Lockheed"})
```

> [!NOTE]
>
> * A read over POST. Each result's id (suffixed -P parent, -C child, -R neither) is the recipient\_id for recipients.get.

### Get a recipient profile

GET

`/api/v2/recipient/{recipient_id}/`

`usaspending.recipients.get`

Overview of one recipient: names, UEI, DUNS, parent, location, business types and totals for a fiscal year.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`recipient_id` required</td><td>string</td><td>path</td><td>Recipient id at a level (parent -P, child -C or neither -R). Example `45700e3c-05bc-6426-ddc6-5e0ce1664716-C`</td></tr>

    <tr>
      <td>
        `year`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Fiscal year, or all for all time, or latest for the last 12 months.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://github.com/fedspendingtransparency/usaspending-api/blob/master/usaspending_api/api_contracts/contracts/v2/recipient/recipient_id.md) · Same job: [Airscale](https://docs.webrouter.net/data-apis/airscale.md#airscale-company-get), [akta.pro](https://docs.webrouter.net/data-apis/akta.md#akta-company-enrich), [Albacross](https://docs.webrouter.net/data-apis/albacross.md#albacross-enrich-company), [AnyAPI](https://docs.webrouter.net/data-apis/anyapi.md#anyapi-linkedin-company), [Apollo.io](https://docs.webrouter.net/data-apis/apollo.md#apollo-organizations-enrich), [Aviato](https://docs.webrouter.net/data-apis/aviato.md#aviato-company-enrich)

```python Python theme={null}
router.call_data_api("usaspending.recipients.get", {'recipient_id': '45700e3c-05bc-6426-ddc6-5e0ce1664716-C'})
```

```text MCP theme={null}
call_data_api(endpoint="usaspending.recipients.get", params={"recipient_id": "45700e3c-05bc-6426-ddc6-5e0ce1664716-C"})
```

### Autocomplete a recipient

POST

`/api/v2/autocomplete/recipient/`

`usaspending.recipients.autocomplete`

Recipient names, UEIs and DUNS matching a search text.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`search_text` required</td><td>string</td><td>body</td><td>Text matched against recipient name, UEI and DUNS. Example `Holdings`</td></tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        body
      </td>

      <td>
        Results to return, 1-500; 10 by default.
      </td>
    </tr>

    <tr>
      <td>
        `recipient_levels`
      </td>

      <td>
        array
      </td>

      <td>
        body
      </td>

      <td>
        Recipient levels to keep: C, P or R.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://github.com/fedspendingtransparency/usaspending-api/blob/master/usaspending_api/api_contracts/contracts/v2/autocomplete/recipient.md) · Same job: [Adzuna](https://docs.webrouter.net/data-apis/adzuna.md#adzuna-companies-top), [AI Ark](https://docs.webrouter.net/data-apis/aiark.md#aiark-company-search), [Airscale](https://docs.webrouter.net/data-apis/airscale.md#airscale-companies-search), [akta.pro](https://docs.webrouter.net/data-apis/akta.md#akta-company-search), [Alpha Vantage](https://docs.webrouter.net/data-apis/alphavantage.md#alphavantage-symbol-search), [Apollo.io](https://docs.webrouter.net/data-apis/apollo.md#apollo-organizations-search)

```python Python theme={null}
router.call_data_api("usaspending.recipients.autocomplete", {'search_text': 'Holdings'})
```

```text MCP theme={null}
call_data_api(endpoint="usaspending.recipients.autocomplete", params={"search_text": "Holdings"})
```

> [!NOTE]
>
> * A read over POST.

### List top-tier agencies

GET

`/api/v2/references/toptier_agencies/`

`usaspending.agencies.list`

Every top-tier agency with its budget authority, obligations, outlays and share of the total budget.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `sort`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        A field of the response to sort by, e.g. percentage\_of\_total\_budget\_authority.
      </td>
    </tr>

    <tr><td>`order`</td><td>string</td><td>query</td><td>Sort direction. One of `asc`, `desc`</td></tr>
  </tbody>
</table>

[Vendor docs](https://github.com/fedspendingtransparency/usaspending-api/blob/master/usaspending_api/api_contracts/contracts/v2/references/toptier_agencies.md)

```python Python theme={null}
router.call_data_api("usaspending.agencies.list")
```

```text MCP theme={null}
call_data_api(endpoint="usaspending.agencies.list")
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.