# US Government Contract Winners - Fresh B2B Leads (`powersdigital/us-government-contract-winners-fresh-b2b-leads`) Actor

aCompanies that just won U.S. federal contracts, from official USAspending.gov data. Filter by state, NAICS, keyword, amount and small business. Leads for subcontractors, suppliers, B2B sales, recruiters and lenders. Public-domain data, no scraping.

- **URL**: https://apify.com/powersdigital/us-government-contract-winners-fresh-b2b-leads.md
- **Developed by:** [Jason Powers](https://apify.com/powersdigital) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 contract awards

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/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

## US Government Contract Winners - Fresh B2B Leads

Find companies that **just won U.S. federal contracts** — and are about to spend money on staff, subcontractors, equipment, software and services.

Data comes straight from the official **USAspending.gov API** (U.S. Government work, public domain). No scraping, no login, no proxies.

### Who uses this

- **Subcontractors & suppliers**: find primes who just won work in your trade and state.
- **B2B sales teams & agencies**: reach companies with fresh revenue and new projects.
- **Recruiters & staffing firms**: companies that just won contracts need to hire.
- **Lenders, insurers & bonding agents**: new awards mean new financing and bonding needs.
- **Market researchers**: track who wins what, where, in your NAICS codes.

### Filters

- Days back (last 1–365 days), award type (contracts, IDVs, grants)
- New awards only (default) or every funding action, including changes to older contracts
- Recipient state and/or place-of-performance state
- NAICS codes and keywords
- Award amount range, small businesses only

### Output (one row per award)

Recipient name, UEI, award amount, start/end dates, awarding agency & sub-agency, description, NAICS & PSC codes, recipient city/state/ZIP/address, place of performance, and a link to the award on USAspending.gov.

### Pricing

Pay per result: **$3 per 1,000 awards**. No monthly fee.

### Example

Tennessee companies that won contracts in the last 30 days in commercial construction:

```json
{ "daysBack": 30, "recipientStates": ["TN"], "naicsCodes": ["236220"] }
```

### Notes

USAspending updates daily; very recent awards can take a few days to appear. Awards are sorted largest first.

# Actor input Schema

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

Only awards with an action date in the last N days (1-365).

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

Contracts, indefinite-delivery vehicles (IDVs) or grants.

## `newAwardsOnly` (type: `boolean`):

Only awards whose start date falls inside the window (skips funding changes to older contracts).

## `recipientStates` (type: `array`):

Two-letter state codes where the winning company is located, e.g. TN, TX. Leave empty for all states.

## `performanceStates` (type: `array`):

Two-letter state codes where the work is performed. Leave empty for all.

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

Industry codes (2-6 digits), e.g. 236220 commercial construction, 541512 IT services.

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

Words that must appear in the award, e.g. fencing, software, janitorial.

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

Skip awards smaller than this.

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

Skip awards larger than this.

## `smallBusinessOnly` (type: `boolean`):

Only awards to recipients flagged as small businesses.

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

Stop after this many awards (largest first).

## Actor input object example

```json
{
  "daysBack": 14,
  "awardType": "contracts",
  "newAwardsOnly": true,
  "recipientStates": [
    "TN"
  ],
  "smallBusinessOnly": false,
  "maxResults": 500
}
```

# Actor output Schema

## `results` (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 = {
    "recipientStates": [
        "TN"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("powersdigital/us-government-contract-winners-fresh-b2b-leads").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 = { "recipientStates": ["TN"] }

# Run the Actor and wait for it to finish
run = client.actor("powersdigital/us-government-contract-winners-fresh-b2b-leads").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 '{
  "recipientStates": [
    "TN"
  ]
}' |
apify call powersdigital/us-government-contract-winners-fresh-b2b-leads --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,powersdigital/us-government-contract-winners-fresh-b2b-leads"
        }
    }
}
```

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/QkoMQWGu9G3K84kHa/builds/N5mjskTV2OOl6k06t/openapi.json
