# usaspending.awards

US federal contracts, grants and other awards from USAspending.gov by words, recipient, agency, NAICS code, state and date: amount, recipient, agency, dates, codes and description.

US federal awards search, one of the USAspending scrapers.

| | |
| --- | --- |
| Id | `usaspending.awards` |
| Version | 1 |
| Billed per | request — 1 unit for a charged run |
| Runs | within one request |

Start it with `POST /v1/scrapers/usaspending.awards/runs`. How runs work is in [Running a scraper](https://docs.enrichednow.com/running-a-scraper.md); what a run costs is in [Usage and units](https://docs.enrichednow.com/usage-and-units.md).

## Inputs

The fields of `input`. A field that is not listed here is refused.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `award_type` | "contracts" \| "idvs" \| "grants" \| "direct_payments" \| "other" | no | The kind of award: `contracts`, `idvs` (indefinite-delivery vehicles), `grants`, `direct_payments` or `other`. Default: `"contracts"`. |
| `query` | string | no | Words the award's description, recipient or agency holds. Limit: at least 3 characters, at most 200 characters. |
| `recipient` | string | no | Only awards to a recipient whose name holds this text. Limit: at least 2 characters, at most 200 characters. |
| `agency` | string | no | Only awards made by this department, by its full name, e.g. `Department of Defense`. Limit: at most 120 characters. |
| `naics` | string | no | Only contracts in this NAICS code, 2 to 6 digits, e.g. `541512`. |
| `state` | string | no | Only work done in this US state, as two letters. |
| `date_from` | string | no | Only awards active on or after this day, `YYYY-MM-DD`. USAspending holds them from 2007-10-01. Default: a year back. |
| `date_to` | string | no | Only awards active on or before this day, `YYYY-MM-DD`. Default: today. |
| `sort` | "amount" \| "newest" | no | `amount` (largest first) or `newest` (latest start first). Default: `"amount"`. |
| `max_results` | integer | no | Awards a page, at most 100. Limit: 1 to 100. Default: `25`. |
| `page` | integer | no | The page of results, from 1. Limit: 1 to 1000. Default: `1`. |

## Record fields

Every record of a run has these fields. A value that is not known is `null` — never an empty string and never `0`.

| Field | Type | Notes |
| --- | --- | --- |
| `award_id` | string | The award's number (PIID or FAIN), e.g. `FA862118F6251`. |
| `internal_id` | string | USAspending's id of the award, which `usaspending.award` takes, e.g. `CONT_AWD_FA862118F6251_9700_FA862115D6276_9700`. |
| `url` | string | The award's page on usaspending.gov. |
| `award_type` | string | What was searched: `contracts`, `idvs`, `grants`, `direct_payments` or `other`. |
| `recipient_name` | string or null | Who received the award. |
| `recipient_id` | string or null | USAspending's id of the recipient, which `usaspending.recipient` takes. |
| `amount` | number or null | The amount of the award, in US dollars. |
| `awarding_agency` | string or null | The department that made the award. |
| `awarding_sub_agency` | string or null | The agency within it. |
| `start_date` | string or null | The start of the period of performance, `YYYY-MM-DD`. |
| `end_date` | string or null | Its end, `YYYY-MM-DD`; for an indefinite-delivery vehicle the last day to order. |
| `description` | string or null | The award's description. |
| `naics_code` | string or null | The NAICS industry code of a contract. |
| `naics_description` | string or null | What that code means. |
| `psc_code` | string or null | The product or service code of a contract. |
| `psc_description` | string or null | What that code means. |
| `assistance_listing` | string or null | The assistance listing number (CFDA) of a grant. |
| `fetched_at` | string (date-time) | When USAspending was asked, in UTC. |

## Example request

It starts a run with this scraper's example input and waits up to 60 seconds for it. The key is read from `ENRICHEDNOW_API_KEY`.

```bash
curl -X POST "https://api.enrichednow.com/v1/scrapers/usaspending.awards/runs?wait=60" \
  -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"query":"cybersecurity","state":"TX","naics":"541512","date_from":"2026-01-01","date_to":"2026-11-20","max_results":3}}'
```

## Example response

The run, once it has ended. A run that has not ended within `wait` comes back with `202` and the status `queued` or `running`.

```json
{
  "id": "run_841742f37553189ff9c27ba1",
  "scraper_id": "usaspending.awards",
  "scraper_version": 1,
  "status": "ok",
  "reason": null,
  "input": {
    "query": "cybersecurity",
    "state": "TX",
    "naics": "541512",
    "date_from": "2026-01-01",
    "date_to": "2026-11-20",
    "max_results": 3
  },
  "record_count": 1,
  "units": 1,
  "units_per_request": 1,
  "units_per_record": null,
  "units_per_page": null,
  "diagnostics": {
    "requests": 1,
    "bytes": 259214,
    "wall_ms": 885,
    "facts": {}
  },
  "created_at": "2026-11-16T22:37:50.170950Z",
  "started_at": "2026-11-16T22:37:50.178331Z",
  "finished_at": "2026-11-16T22:37:51.066313Z"
}
```

Its records, from `GET /v1/runs/{id}/records`. The record is a real one: this scraper's own parser read it from a page recorded from the site.

```json
{
  "records": [
    {
      "award_id": "W9124J23F0073",
      "internal_id": "CONT_AWD_W9124J23F0073_9700_47QTCB21D0337_4732",
      "url": "https://www.usaspending.gov/award/CONT_AWD_W9124J23F0073_9700_47QTCB21D0337_4732",
      "award_type": "contracts",
      "recipient_name": "DIGITAL CONSULTANTS, LLC",
      "recipient_id": "8dd9fc1c-e2fd-ad71-022d-944130f90dd7-C",
      "amount": 11869315.85,
      "awarding_agency": "Department of Defense",
      "awarding_sub_agency": "Department of the Army",
      "start_date": "2023-05-09",
      "end_date": "2026-11-14",
      "description": "HELP DESK, IT OPERATIONS, AND CYBERSECURITY SERVICES",
      "naics_code": "541512",
      "naics_description": "COMPUTER SYSTEMS DESIGN SERVICES",
      "psc_code": "DG01",
      "psc_description": "IT AND TELECOM - NETWORK SUPPORT SERVICES (LABOR)",
      "assistance_listing": null,
      "fetched_at": "2026-11-23T23:15:36.517838Z"
    }
  ],
  "next_cursor": null
}
```

A run does not always end `ok`. [Results and statuses](https://docs.enrichednow.com/results-and-statuses.md#reason-codes) lists every status and the reasons every scraper shares; [the reasons of the USAspending scrapers](https://docs.enrichednow.com/results-and-statuses.md#usaspending) are in their own section there.
