# US Federal Contract Awards & GovCon B2B Leads PPE API (`yan0lovesha/us-federal-contracts-awards-leads`) Actor

Extract newly awarded DoD, HHS, VA, and civilian federal prime contracts from official USAspending Treasury APIs with award amounts, NAICS codes, and subcontracting hooks.

- **URL**: https://apify.com/yan0lovesha/us-federal-contracts-awards-leads.md
- **Developed by:** [Ling Yan](https://apify.com/yan0lovesha) (community)
- **Categories:** Lead generation, Automation, Agents
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.80 / 1,000 verified federal contract award lead ($0.004)s

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## US Federal Contract Awards & GovCon Prime Contractor Leads PPE API

Extract newly obligated **US Federal Prime Contract Awards** (DoD, Air Force, Navy, Army, VA, HHS, DHS, NASA, GSA) directly from the official **US Treasury USAspending REST API** (`api.usaspending.gov`) with **zero API key required** and **< 1.5s execution** — complete with **Prime Contractor Recipient Names, Obligated Dollar Amounts ($), Awarding Agencies, NAICS Codes, Place of Performance, and Subcontracting / CMMC / GovCon Outreach Hooks**.

***

### High-Ticket B2B Buyers Served

- **CMMC 2.0, NIST 800-171, FedRAMP & GovCloud Cybersecurity Consultancies**
- **Cleared Defense / IT Technical Recruiting & Staff Augmentation Firms**
- **Small-Business Subcontractors, MEP Construction Firms & Miller Act Surety Bond Brokers**
- **DCAA-Compliant GovCon Accounting, Proposal AI & Contract Factoring Providers**

# Actor input Schema

## `maxTotalAwards` (type: `integer`):

Maximum prime contract award leads to return.

## `lookbackDays` (type: `integer`):

Search contracts starting within the past N days.

## `minAwardAmountUsd` (type: `integer`):

Minimum obligated prime contract value in USD.

## `maxAwardAmountUsd` (type: `integer`):

Optional ceiling (e.g. 25000000 to target mid-sized primes instead of mega-defense primes).

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

Optional NAICS codes (e.g. '541511', '541512' for IT/Software, '236220' for Commercial Construction).

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

Optional 2-letter US state filters (e.g. 'VA', 'MD', 'TX', 'CA', 'FL').

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

Optional keywords (e.g. 'cybersecurity', 'cloud', 'solar', 'HVAC', 'medical').

## `onlyDefenseOrTech` (type: `boolean`):

Filter exclusively for DoD/DHS and IT/Cloud/AI awards.

## `minLeadScore` (type: `integer`):

Filter out awards scoring below this B2B Lead Score.

## `generateMarketSummary` (type: `boolean`):

Generates an agency-by-agency rollup of obligated spend and top prime recipients under MARKET_SUMMARIES.

## Actor input object example

```json
{
  "maxTotalAwards": 40,
  "lookbackDays": 180,
  "minAwardAmountUsd": 100000,
  "maxAwardAmountUsd": 0,
  "naicsCodes": [],
  "performanceStates": [],
  "keywords": [],
  "onlyDefenseOrTech": false,
  "minLeadScore": 0,
  "generateMarketSummary": true
}
```

# Actor output Schema

## `awardsDataset` (type: `string`):

Normalized prime contract awards with recipient, dollar value, agency, NAICS, and outreach hooks.

## `marketSummaries` (type: `string`):

Agency-level rollup of obligated contract dollars and top prime recipients.

## `runSummary` (type: `string`):

Execution metrics and transparent PPE event counts.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("yan0lovesha/us-federal-contracts-awards-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("yan0lovesha/us-federal-contracts-awards-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 '{}' |
apify call yan0lovesha/us-federal-contracts-awards-leads --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,yan0lovesha/us-federal-contracts-awards-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/NdGVInbQaJP2Aghct/builds/OOi9yZSHaB0RIxe9a/openapi.json
