# USAspending.gov API reference

> The USAspending API gives access to U.S. federal spending data: awards (contracts, grants, loans and other assistance), recipients, agencies and accounts. An investigator uses it to see which government bodies paid a company, what for, and how much. The docs index is at…

Source: https://osinttools.io/apis/usaspending/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

Compiled by OSINTtools.io editors from the vendor's docs, updated Nov 29, 2026. Listing: https://osinttools.io/tools/usaspending/

- Base URL: https://api.usaspending.gov/api/v2
- Authentication: No key needed.
- Rate limits: Not stated in the docs
- Vendor docs: https://api.usaspending.gov/docs/

## Overview

The USAspending API gives access to U.S. federal spending data: awards (contracts, grants, loans and other assistance), recipients, agencies and accounts. An investigator uses it to see which government bodies paid a company, what for, and how much.

The docs index is at `https://api.usaspending.gov/docs/`; the endpoints live under `/api/v2/`. V1 endpoints are deprecated. The docs pages read for this reference do not mention an API key.

This reference covers recipient autocomplete, the recipient list, award search and award detail. The [endpoint list](https://api.usaspending.gov/docs/endpoints) has many more, such as agency and account autocomplete, state breakdowns and transaction search.

## Recipients

### Find recipients by name, UEI or DUNS text.

`POST /autocomplete/recipient/`

- Takes: Name
- Footprint: passive (the target is not contacted)

Matches the search text against recipient names, UEI and DUNS. `recipient_level` is deprecated.

Response fields:

- `results[].recipient_name` (string): Set when the text matches the name, otherwise for UEI or DUNS matches
- `results[].recipient_level` (string): Deprecated
- `results[].uei` (string): Set only when the text matches a UEI
- `results[].duns` (string): Set only when the text matches a DUNS
- `messages[]` (string): Warnings or instructions for developers

```bash
curl -X POST 'https://api.usaspending.gov/api/v2/autocomplete/recipient/' \
  -H 'Content-Type: application/json' \
  -d '{"search_text":"Example Corp","limit":10}'
```

Example response (200):

```json
{
  "results": [
    {
      "recipient_name": "EXAMPLE CORP",
      "recipient_level": "R",
      "uei": "EXAMPLEUEI12",
      "duns": null
    }
  ],
  "messages": []
}
```

### List recipients with trailing 12-month award amounts.

`POST /recipient/`

- Takes: Name
- Footprint: passive (the target is not contacted)

All body fields are optional. `keyword` filters on name, UEI or DUNS.

Response fields:

- `page_metadata.page` (integer): Current page
- `page_metadata.limit` (integer): Page size
- `page_metadata.total` (integer): Total results
- `results[].id` (string): Identifier at this recipient level
- `results[].name` (string): Recipient name; null if none
- `results[].duns` (string): DUNS; null if none
- `results[].uei` (string): UEI; null if none
- `results[].amount` (number): Trailing 12-month aggregate
- `results[].recipient_level` (string): R, P (parent) or C (child)

```bash
curl -X POST 'https://api.usaspending.gov/api/v2/recipient/' \
  -H 'Content-Type: application/json' \
  -d '{"keyword":"Example","sort":"amount","order":"desc","limit":10,"page":1}'
```

Example response (200):

```json
{
  "page_metadata": {
    "page": 1,
    "limit": 10,
    "total": 1
  },
  "results": [
    {
      "id": "00000000-0000-0000-0000-000000000000-R",
      "name": "EXAMPLE CORP",
      "duns": null,
      "uei": "EXAMPLEUEI12",
      "amount": 1000000,
      "recipient_level": "R"
    }
  ]
}
```

## Awards

### Search awards with filters and choose the fields returned.

`POST /search/spending_by_award/`

- Takes: Name
- Footprint: passive (the target is not contacted)

`filters.award_type_codes` is required; other filters include keywords, time_period, agencies, recipient_search_text, award_ids, naics_codes and psc_codes (see the contract for each filter's shape). `fields` names the columns to return; `sort` must be one of them.

Response fields:

- `spending_level` (string): awards or subawards
- `limit` (integer): Page size
- `results[].internal_id` (integer): Internal award id
- `results[].generated_internal_id` (string): Generated award id, usable with the award detail endpoint
- `results[].Award ID` (string): Award identifier
- `results[].Recipient Name` (string): Recipient name
- `results[].Award Amount` (number): Award amount
- `results[].Awarding Agency` (string): Awarding agency
- `page_metadata.page` (integer): Current page
- `page_metadata.hasNext` (boolean): Whether another page exists
- `messages[]` (string): Warnings or instructions

```bash
curl -X POST 'https://api.usaspending.gov/api/v2/search/spending_by_award/' \
  -H 'Content-Type: application/json' \
  -d '{"filters":{"award_type_codes":["A","B","C","D"]},"fields":["Award ID","Recipient Name","Award Amount"],"limit":10,"page":1,"sort":"Award Amount","order":"desc"}'
```

Example response (200):

```json
{
  "spending_level": "awards",
  "limit": 10,
  "results": [
    {
      "internal_id": 1,
      "generated_internal_id": "CONT_AWD_EXAMPLE_0000_0000_0000",
      "Award ID": "EX0000",
      "Recipient Name": "EXAMPLE CORP",
      "Award Amount": 100000
    }
  ],
  "page_metadata": {
    "page": 1,
    "hasNext": false
  },
  "messages": []
}
```

### Details of one award (contract, IDV or financial assistance).

`GET /awards/{award_id}/`

- Footprint: passive (the target is not contacted)

The response shape depends on `category`: contract and IDV awards carry fields such as `piid` and `naics_hierarchy`; financial assistance awards carry `fain`, `uri` and `cfda_info`. The docs note the example response on the contract page has a syntax error, so check field names against the live API.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `award_id` | path | string | yes | The generated award id or the internal database id Example: CONT_AWD_EXAMPLE_0000_0000_0000 |

Response fields:

- `id` (integer): Internal id
- `generated_unique_award_id` (string): Generated award id
- `category` (string): contract, idv, loans, other, direct payment or grant
- `description` (string): Award description
- `total_obligation` (number): Total obligation
- `date_signed` (string): Date signed
- `awarding_agency` (object): Awarding agency
- `funding_agency` (object): Funding agency
- `recipient` (object): Recipient
- `period_of_performance` (object): Period of performance
- `place_of_performance` (object): Place of performance

```bash
curl 'https://api.usaspending.gov/api/v2/awards/CONT_AWD_EXAMPLE_0000_0000_0000/'
```

Example response (200):

```json
{
  "id": 1,
  "generated_unique_award_id": "CONT_AWD_EXAMPLE_0000_0000_0000",
  "category": "contract",
  "description": "Example services",
  "total_obligation": 100000,
  "date_signed": "2024-01-01",
  "awarding_agency": {},
  "funding_agency": {},
  "recipient": {},
  "period_of_performance": {},
  "place_of_performance": {}
}
```

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
