# Federal Awards (USAspending) (`usaspending.awards`)

New federal contracts, IDVs, grants and loans awarded to a company or in a NAICS code, agency or state, with amount, agency, dates and description, newest award first.

Docs: https://primaryapi.com/docs/api-reference/usaspending/awards

- Endpoint: `POST https://api.primaryapi.com/v1/run/usaspending.awards`
- Category: Web Intelligence · Platform: `usaspending` · Kind: list · Status: live
- Price: 1 credit per call. Every call costs the same, including calls that were retried automatically.
- Billing unit: per successful call
- Reliability: routed to a healthy upstream and retried automatically when an attempt fails; live 30-day status: `GET https://api.primaryapi.com/v1/status/apis?sku=usaspending.awards`
- Execution: synchronous (answers 202 only if it outlives the wait window)

## Input

| Field | Type | Required | Default | Constraints | Description |
|---|---|---|---|---|---|
| `recipient` | string | no |  | max 150 chars | Recipient company name, UEI or DUNS, e.g. "Lockheed Martin" or "ZFN2JJXBLZT3" (matched across recipient and parent names). |
| `naics` | string[] | no |  | min 1 items; max 10 items; items pattern: ^\d{2,6}$ | Only awards under these NAICS codes (2-6 digits; a prefix covers its sub-codes), e.g. ["541511"]. |
| `awardingAgency` | string | no |  | max 150 chars | Awarding top-tier agency by its full name, e.g. "Department of Defense". |
| `state` | string | no |  | pattern: ^[A-Za-z]{2}$ | Two-letter US state of the place of performance, e.g. "VA". |
| `awardType` | enum | no | "contracts" | one of: contracts, idvs, grants, loans | contracts (definitive contracts, purchase and delivery orders, BPA calls), idvs (indefinite-delivery vehicles), grants (incl. cooperative agreements) or loans. Default contracts. |
| `minAmount` | number | no |  | 0–1000000000000 | Only awards of at least this many US dollars (award amount; face value for loans). |
| `newAwardsOnly` | boolean | no | true |  | true (default): awards whose base transaction is in the window (new awards). false: any award with a transaction in the window (includes modifications). |
| `dateFrom` | string | no |  | pattern: ^\d{4}-(0[1-9]\|1[0-2])-(0[1-9]\|[12]\d\|3[01])$ | Only items awarded on or after this date (YYYY-MM-DD). Default: 30 days before dateTo. The window may span at most 366 days. |
| `dateTo` | string | no |  | pattern: ^\d{4}-(0[1-9]\|1[0-2])-(0[1-9]\|[12]\d\|3[01])$ | Only items awarded on or before this date (YYYY-MM-DD). Default: today (UTC). |
| `limit` | integer | no | 25 | 1–100 | Maximum number of results to return (1-100, default 25). |
| `cursor` | string | no |  |  | Opaque pagination cursor: pass the previous response's nextCursor. |

Unknown fields are rejected with `400 invalid_input`. The routing controls `preferLatencyUnderMs` and `maxCredits` may be sent in the same JSON body.

## Output

When `output.found` is `true`, `output.data` has this shape:

| Field | Type | Description |
|---|---|---|
| `awards` | object[] | Newest award date first, then award id (descending) |
| `awards[].awardId` | string | PIID / FAIN / URI |
| `awards[].awardType` | string \| null | e.g. "DELIVERY ORDER", "DEFINITIVE CONTRACT", "Project Grant" |
| `awards[].recipientName` | string \| null |  |
| `awards[].recipientUei` | string \| null |  |
| `awards[].awardingAgency` | string \| null |  |
| `awards[].awardingSubAgency` | string \| null |  |
| `awards[].fundingAgency` | string \| null |  |
| `awards[].description` | string \| null |  |
| `awards[].baseObligationDate` | string \| null | Date of the base transaction (the award date), YYYY-MM-DD |
| `awards[].startDate` | string \| null | YYYY-MM-DD |
| `awards[].endDate` | string \| null | Period of performance end (contracts, grants) or last date to order (IDVs) |
| `awards[].amount` | number \| null | Award amount in US dollars (loans: face value) |
| `awards[].naicsCode` | string \| null |  |
| `awards[].naicsDescription` | string \| null |  |
| `awards[].pscCode` | string \| null | Product/service code (contracts and IDVs) |
| `awards[].pscDescription` | string \| null |  |
| `awards[].assistanceListing` | string \| null | Assistance listing (CFDA) number (grants and loans) |
| `awards[].placeOfPerformanceState` | string \| null |  |
| `awards[].placeOfPerformanceCountry` | string \| null |  |
| `awards[].url` | string \| null | Award page on usaspending.gov |
| `nextCursor` | string \| null |  |

When the thing you asked about does not exist (or a search matches nothing) the call still succeeds: `output.found` is `false`, `output.data` is `null` and `output.reason` says why (`not_found`, `private`, `no_results`, …). Misses are free unless the notes below say misses are billed.

Pagination: pass the previous response’s `nextCursor` as `cursor` to get the next page; `nextCursor: null` means there are no more results.

## Example request

```bash
curl -sS -X POST "https://api.primaryapi.com/v1/run/usaspending.awards" \
  -H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"recipient":"Lockheed Martin","dateFrom":"2026-10-16","dateTo":"2026-11-15","limit":1}'
```

## Example response

_Values are placeholders that follow the output schema; `credits` is what this call would cost at the usual price._

```json
{
  "output": {
    "found": true,
    "data": {
      "awards": [
        {
          "awardId": "70Z03827FJ0000017",
          "awardType": "DELIVERY ORDER",
          "recipientName": "SIKORSKY AIRCRAFT CORPORATION",
          "recipientUei": "UTJWTSLMFNG4",
          "awardingAgency": "Department of Homeland Security",
          "awardingSubAgency": "U.S. Coast Guard",
          "fundingAgency": "Department of Homeland Security",
          "description": "PURCHASE OF THE BRACKET TO BE UTILIZED ON USCG MH-60T HELICOPTERS.",
          "baseObligationDate": "2026-11-13",
          "startDate": "2026-11-13",
          "endDate": "2028-04-11",
          "amount": 3525.6,
          "naicsCode": "336413",
          "naicsDescription": "OTHER AIRCRAFT PARTS AND AUXILIARY EQUIPMENT MANUFACTURING",
          "pscCode": "5340",
          "pscDescription": "HARDWARE, COMMERCIAL",
          "assistanceListing": null,
          "placeOfPerformanceState": "CT",
          "placeOfPerformanceCountry": "USA",
          "url": "https://www.usaspending.gov/award/CONT_AWD_70Z03827FJ0000017_7008_SPE4A122G0005_9700"
        }
      ],
      "nextCursor": "eyJwIjoyfQ"
    }
  },
  "provider": "PrimaryAPI",
  "credits": 1,
  "items": 1,
  "requestId": "req_01JBXK6Y2N9V8T4R3Q2P1M0A7Z",
  "nextCursor": null
}
```

## Pricing and reliability

- Usual price: 1 credit per call
- Price ceiling: the usual price, even when a call is retried. A quote’s `maxCredits` is the most a given call can cost; the `maxCredits` routing control caps it per call
- Live 30-day status, success rate, uptime and latency: `GET https://api.primaryapi.com/v1/status/apis?sku=usaspending.awards`

## Errors to handle

`invalid_input`, `unauthorized`, `insufficient_balance`, `key_limit_reached`, `trial_cap_reached`, `forbidden`, `not_found`, `idempotency_conflict`, `rate_limited`, `all_sources_failed`, `service_unavailable`, `timeout`. See https://primaryapi.com/docs/errors.

## Notes

Default window: awards dated in the 30 days up to today (UTC), at most 366 days, never before 2007-10-01. Award data reaches the source after agency reporting (contracts within days; assistance awards can take weeks), so a recent window can still grow. A recipient search also matches subsidiaries filed under the parent name. Paging stops at 10,000 results. An empty window is a free miss.

## Legal

US government public records, returned as published by the agency; check the official source before relying on a record. Not legal advice. Award amounts are obligations as reported by agencies and can be revised by later modifications.

