# USASpending Scraper - New Federal Contract Awards (`goldstandardweb/usaspending-contract-awards`) Actor

See who won new federal contracts in your trade and state. Only awards first signed in your date range, not old contracts that only got a change. Winner address and small-business status included. Monitor mode skips awards you've already seen. $3 per 1,000.

- **URL**: https://apify.com/goldstandardweb/usaspending-contract-awards.md
- **Developed by:** [Josh Zoerner](https://apify.com/goldstandardweb) (community)
- **Categories:** Lead generation, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

**See who won new federal contract awards in your trade and state, from USAspending.gov. Get each winner's address and small-business status, so you can reach them while the job is new.**

**$3 per 1,000 awards. Try it now:** click Start. The sample run gets 50 new commercial building contracts (NAICS 236220) from the last 30 days, in under a minute, for about 15 cents.

You get each winner's company name, mailing address and business type. You do not get a phone number or email, because USAspending doesn't publish them. Look the company up by name to find who to call.

### Who it's for

- **Subcontractors and suppliers** who want to reach prime contractors right after they win a job that needs their trade.
- **Business development teams** tracking which competitors and partners are winning in their NAICS codes.
- **Equipment rental, staffing and supply companies** who want to find new federal jobs near them.
- **Analysts and consultants** who need a clean, filterable feed of federal awards and grants without learning the USAspending API.

### What you get

One row per award, straight from USAspending.gov, the official US government spending database. A real sample of new contracts signed in the last 30 days for NAICS 236220 (commercial building):

| Winner | Amount | What it's for | Work state | Business type |
|---|---|---|---|---|
| RICHARD GROUP LLC | $64,910,819 | EHRM PITTSBURG UD | PA | Small business, Service-disabled veteran-owned |
| SERVIAM CONSTRUCTION LLC | $26,009,451 | UD CHILLER CAPACITY AND CONTROLS UPGRADE | PA | Small business, Service-disabled veteran-owned, Woman-owned, Small disadvantaged business |
| LC FLUHARTY CONSTRUCTION LLC | $14,851,013 | PROJECT 541-19-101 RENOVATE OPERATING ROOM - VAMC CLEVELAND EO 14398 | OH | Small business, Service-disabled veteran-owned |

Every row also has the award ID, the winner's UEI, street address and parent company, and the NAICS and PSC codes. You also get the signed date, the agency, start and end dates, and links to the award and the winner's profile on USAspending.gov. Full field list below.

**What makes this one different**

- **Only brand-new awards by default.** A plain USAspending search returns every award with any activity in your dates. In our test, an October search returned a $2.6 billion order signed in June. This one returns awards first signed in your range. Those are the real new winners. Switch to Any activity if you want changes too.
- **Winner address and business type built in.** Each winner's mailing address, parent company and business types (small business, 8(a), woman-owned, veteran-owned and more) are added for you. No second lookup.
- **Monitor mode.** Schedule it weekly and it returns only awards you haven't seen before.
- **Defense awards too, with a longer look-back.** The Defense Department posts its contracts about 90 days after they are signed. Set *Days back* to 120 with monitor mode on. Each run checks the whole window again and returns only awards you have not seen, so it picks up new Defense awards as they come out. Keep your filters under 10,000 matching awards so every one gets checked.

### How to use it

1. **Pick your filters.** Choose contracts, IDVs or grants. Add NAICS codes and the states where the work is done. Set a minimum dollar amount to skip small orders.
   *Subcontractors:* add the codes for the jobs you work on, not only your own trade. An electrician who wants general contractors to call should add 236220 (commercial building) and 236210 (industrial building). Your own code, like 238210, finds other electricians who won work.
2. **Click Start.** The example in the form (50 awards) takes under a minute and costs about $0.15.
3. **Download or connect.** Export to Excel, CSV or JSON, or send the results to Google Sheets, your CRM, Make or Zapier.

### Pricing

You pay only for the awards you get: **$3 per 1,000 awards** ($0.003 each). Apify also adds its standard charge for starting a run, shown on the Pricing tab.

- 50 awards (the example in the form) = $0.15
- 200 awards = $0.60
- 1,000 awards = $3.00
- A weekly monitor that finds 50 new awards = about $0.15 a week

Set **Maximum results** or a maximum cost per run, and the Actor stops there. You never pay for more than you asked for.

### Scheduling and integrations

- **Weekly lead list in 4 steps:**

  1. Fill in your filters, turn on *Only awards I haven't seen*, and set *Days back* to 120.
  2. Save the input as a task.
  3. Add a schedule to the task for every Monday.
  4. Add the Google Sheets or email integration so the list comes to you.

  Each Monday you get only awards you haven't seen yet, including Defense awards as they come out. The first run returns everything in the window, so set *Maximum results* to cap it.
- **Several monitors:** give each one its own *Monitor name* (for example `tx-electrical` and `va-it`) so they keep separate memories.
- **Google Sheets:** use Apify's Google Sheets integration to append new rows after each run.
- **Make, Zapier, n8n:** trigger a scenario on "run succeeded" and push the rows into your CRM or email tool.
- **API:** start runs and read results with the Apify API or the JavaScript and Python clients.

### Tested to the Gold Standard

Gold Standard Web built this Actor and tests it with [Gold Standard QA](https://goldstandardweb.com/qa), our three-layer quality process.

- Every change must pass the full test suite before it is saved.
- We plant bugs in the code on purpose, and the tests must catch at least 90% of them.
- A reviewer who did not write the code tries to break it before each release.

[See every check we run](https://goldstandardweb.com/qa).

### FAQ

**Is this data legal to use?**
Yes. USAspending.gov is run by the US Treasury and publishes federal award data as public information under the DATA Act. There are no logins, no paywalls and no terms that forbid reuse. This Actor uses the official public API. Normal rules for business outreach (like CAN-SPAM for email) still apply to what you do with the leads.

**Does it include the winner's email or phone number?**
No. USAspending publishes the company name, UEI, mailing address and business types, but not contact people. Look up the company by name or UEI on SAM.gov or in the lead tool you already use.

**Why didn't an award I know about show up?**
Most agencies report contracts within a few days of signing. Grants can take up to a month. Defense Department contracts show up about 90 days after signing, so set *Days back* to 120 or more for Army Corps, Navy and Air Force awards. Many small credit card buys and some classified awards are never reported one by one. You can also switch *Which awards count as recent* to *Any activity*.

**What is a NAICS code, and how do I find mine?**
It's the 6-digit industry code agencies put on every contract. Search "NAICS" plus your trade, or check your SAM.gov registration. A shorter code matches everything under it: `2382` covers all building equipment contractors (electrical, plumbing, HVAC).

**What's the difference between contracts and IDVs?**
Contracts (including task and delivery orders) carry real money for a specific job. IDVs are umbrella vehicles like IDIQs and GWACs; the money flows later through task orders, which show up under contracts. For subcontracting leads, start with contracts.

**Does it cover subcontracts?**
It shows prime awards, the companies most likely to need subcontractors. It does not list existing subawards.

**What does "Amount" mean?**
The money the government has committed to the award so far, as reported to USAspending. Task orders and IDVs often start small and grow, so keep *Minimum award amount* at 0 when searching IDVs.

### Limitations

- Data is only as fresh and complete as agency reporting to USAspending.gov. Most contract data lags a few days. Defense Department contracts show up about 90 days after signing. Grant data can lag several weeks.
- Search covers awards from October 1, 2007 onward.
- Up to 10,000 awards per run. USAspending lets one search read only its first 10,000 matches. For more, split by state, NAICS code or date range. For the same reason, a monitor checks only the first 10,000 matches, so keep its filters under that.
- Speed: about 6 minutes per 1,000 awards with winner details on, and about 1.5 minutes per 1,000 with them off. You pay per award, not per minute.
- Keywords need at least 3 characters each.
- NAICS and PSC codes apply to contracts and IDVs only. Grants come with an assistance listing (CFDA) number instead.
- Winner addresses come from the recipient's USAspending profile. A few recipients have no address on file; those fields are left empty.
- No contact names, emails or phone numbers (USAspending doesn't publish them).

### Input reference

| Field | What it does | Default |
|---|---|---|
| `awardType` | `contracts`, `idvs` or `grants` | `contracts` |
| `daysBack` | How many days back from today to search | `30` |
| `dateMode` | `new` = first signed in range; `any_activity` = includes modifications | `new` |
| `naicsCodes` | List of 2 to 6 digit NAICS codes | none |
| `states` | List of 2-letter place-of-performance state codes | none (whole US) |
| `keywords` | List of words to match in award text (3+ characters each) | none |
| `minAmount` | Minimum award amount in dollars | `0` |
| `maxAmount` | Maximum award amount in dollars | none |
| `maxResults` | Stop after this many awards | `200` |
| `sortBy` | `amount` (biggest first) or `newest` (most recently signed first). Monitor mode always reads most recently updated first. | `amount` |
| `includeRecipientDetails` | Add winner address, parent company and business types | `true` |
| `newOnly` | Monitor mode: skip awards that earlier monitor runs returned | `false` |
| `monitorKey` | Name for a separate monitor memory | `default` |

Example API input:

```json
{
    "awardType": "contracts",
    "daysBack": 120,
    "naicsCodes": ["236220", "236210"],
    "states": ["TX", "OK"],
    "minAmount": 250000,
    "newOnly": true,
    "monitorKey": "tx-ok-gc"
}
```

### Output fields

| Field | Description |
|---|---|
| `awardId` | Award ID (contract number / PIID or grant number) |
| `awardKind` | Contract, IDV or Grant |
| `awardSubtype` | Delivery order, definitive contract, IDIQ, project grant and so on |
| `recipientName` | Company or organization that won |
| `recipientUei` | Winner's SAM.gov Unique Entity ID |
| `amount` | Award amount in US dollars committed so far |
| `description` | What the award is for |
| `dateSigned` | Date the award was first signed |
| `startDate`, `endDate` | Period of performance |
| `lastModified` | When USAspending last updated the award |
| `awardingAgency`, `awardingSubAgency` | Department and office that made the award |
| `placeOfPerformanceState`, `placeOfPerformanceZip` | Where the work is done |
| `naicsCode`, `naicsDescription` | Industry code and name (contracts and IDVs) |
| `pscCode`, `pscDescription` | Product or service code and name (contracts and IDVs) |
| `cfdaNumber`, `cfdaProgramTitle` | Assistance listing (grants) |
| `recipientAddress`, `recipientCity`, `recipientState`, `recipientZip`, `recipientCountry` | Winner's mailing address on file |
| `recipientCongressionalDistrict` | Winner's congressional district |
| `parentCompanyName`, `parentCompanyUei` | Winner's parent company |
| `businessTypes` | Business type codes on file, for example `small_business`, `8a_program_participant`, `woman_owned_business` |
| `businessTypesText` | The same in plain English, for example "Small business, Service-disabled veteran-owned" |
| `isSmallBusiness` | True if the winner is listed as a small business |
| `awardUrl` | Award page on USAspending.gov |
| `recipientUrl` | Winner's profile on USAspending.gov |
| `recipientId`, `internalId` | USAspending IDs (used for links and monitor mode) |
| `scrapedAt` | When the record was collected |

The dataset has two ready-made views: **Overview** (who won, how much, where) and **Lead contact list** (who won, what they won, and their mailing address).

### Data source

All data comes from the official USAspending.gov API, run by the US Treasury's Bureau of the Fiscal Service. The Actor uses its award search, award count and recipient profile endpoints. No login, API key or web page scraping. Requests are spaced out and retried if the API is busy.

### Related Actors

More lead lists from the same developer, priced per result:

- [SEC Form D Scraper](https://apify.com/goldstandardweb/sec-form-d-leads): companies that recently raised money.
- [UK Companies House Scraper](https://apify.com/goldstandardweb/uk-companies-house-monitor): new UK companies each day.
- [Outdated Website Finder](https://apify.com/goldstandardweb/outdated-website-finder): local businesses that need a new website.
- [Data Breach Notification Scraper](https://apify.com/goldstandardweb/data-breach-notices): organizations that recently reported a data breach.

# Changelog

This Actor's version history is a separate document: https://apify.com/goldstandardweb/usaspending-contract-awards/changelog.md

# Actor input Schema

## `awardType` (type: `string`):

Contracts: money for a specific job, the best pick for sub leads. IDVs: umbrella deals like IDIQs and GWACs. Their money comes later as task orders, which show up under Contracts. Grants: federal grants and cooperative agreements.

## `daysBack` (type: `integer`):

How many days back from today to search. Most contracts show up within a few days of signing and grants within a month. Defense Department contracts show up about 90 days after signing, so use 120 to include them. For a weekly lead list, use 120 with monitor mode on.

## `dateMode` (type: `string`):

"New awards only" returns awards first signed in the date range, which is what you want for new-winner leads. "Any activity" also includes older awards that got a modification or extra money in the range.

## `naicsCodes` (type: `array`):

Industry codes, 2 to 6 digits. A shorter code matches everything under it: 2362 matches 236210 and 236220. Looking for general contractors to work for? Use their codes, like 236220 commercial building or 237310 highway and street. Your own trade code (238210 electrical) finds your competitors. Not used for grants.

## `states` (type: `array`):

2-letter state codes where the work is done, for example TX, CA, VA. Leave empty for the whole country.

## `keywords` (type: `array`):

Words to look for in the award description, winner name and other award text. Each keyword needs at least 3 characters. Awards matching any keyword are returned.

## `minAmount` (type: `integer`):

Only return awards worth at least this many dollars. Use it to skip small purchase orders. For IDVs the amount is only what has been committed so far, which is often small at first, so keep this at 0 for IDVs. 0 means no minimum.

## `maxAmount` (type: `integer`):

Only return awards worth at most this many dollars. Leave empty or 0 for no maximum.

## `maxResults` (type: `integer`):

Stop after this many awards, up to 10,000. You pay per award returned, so this also caps the cost of a run.

## `sortBy` (type: `string`):

Biggest awards first, or most recently signed first. When Maximum results cuts the list short, this decides which awards you get. Monitor mode always reads the most recently updated first.

## `includeRecipientDetails` (type: `boolean`):

Look up each winning company's mailing address, parent company and business types (small business, 8(a), woman-owned, veteran-owned and more). Adds a few seconds per 100 awards.

## `newOnly` (type: `boolean`):

Turn this on for any scheduled run. It remembers the awards earlier monitor runs returned (under the same Monitor name) and skips them, so each run has only new winners. The first run returns every match, so set Maximum results to cap it. Leave it off for a one-time search.

## `monitorKey` (type: `string`):

Used with monitor mode. Each name keeps its own memory of seen awards, so you can run separate monitors (for example "tx-electrical" and "va-it") without them blocking each other. Letters, numbers and dashes.

## Actor input object example

```json
{
  "awardType": "contracts",
  "daysBack": 30,
  "dateMode": "new",
  "naicsCodes": [
    "236220"
  ],
  "minAmount": 0,
  "maxResults": 50,
  "sortBy": "amount",
  "includeRecipientDetails": true,
  "newOnly": false,
  "monitorKey": "default"
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `leads` (type: `string`):

No description

## `allFields` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "awardType": "contracts",
    "daysBack": 30,
    "naicsCodes": [
        "236220"
    ],
    "maxResults": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("goldstandardweb/usaspending-contract-awards").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "awardType": "contracts",
    "daysBack": 30,
    "naicsCodes": ["236220"],
    "maxResults": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("goldstandardweb/usaspending-contract-awards").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "awardType": "contracts",
  "daysBack": 30,
  "naicsCodes": [
    "236220"
  ],
  "maxResults": 50
}' |
apify call goldstandardweb/usaspending-contract-awards --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,goldstandardweb/usaspending-contract-awards"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/8tBq1KYrUmyV2UfZx/builds/9S6zAqg0JrzWbka8t/openapi.json
