# Federal Contract Awards Scraper (USAspending, No Key) (`guiltless_beanstalk/federal-contract-awards`) Actor

Scrape U.S. federal contract, IDV & grant awards from the official USAspending.gov API. Filter by keyword, NAICS, PSC, agency, state, set-aside, recipient UEI & dollar amount. No login, no API key. Export JSON/CSV/Excel for GovCon BD and recompetes.

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

## Pricing

from $2.00 / 1,000 results

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

## Federal Contract Awards Scraper (USAspending.gov)

Extract U.S. federal contracts, IDVs (indefinite-delivery vehicles / BPAs / GWACs), and federal grants directly from **USAspending.gov**. Filter by keyword, NAICS code, PSC code, awarding agency, place-of-performance state, recipient name or UEI, set-aside code, date range, and dollar amount. Export clean JSON, CSV, or Excel with direct links to every award and recipient profile on USAspending.gov.

**Official public U.S. Treasury data. No login, no API key, no HTML scraping.** The Actor calls the documented [USAspending.gov API v2](https://api.usaspending.gov/docs/endpoints) (`/api/v2/search/spending_by_award/`).

> Looking for **open/upcoming RFPs and solicitations**? Use our companion Actor: [SAM.gov Contract Opportunities Scraper (No Key Required)](https://apify.com/guiltless_beanstalk/sam-gov-opportunities).

### Who uses this

- **GovCon BD & capture teams:** see which competitors are winning in your NAICS code and state, obligated amounts, and contract end dates for your **recompete pipeline**.
- **Teaming & subcontracting:** find prime contractors holding large contracts or IDVs in your niche by UEI and agency.
- **B2B sales to federal contractors:** build targeted lists of companies that recently won funded awards.
- **Grant writers, journalists & policy researchers:** track federal grant and contract obligations by keyword, state, or agency.

### Inputs (all optional)

| Field | Example | Notes |
|---|---|---|
| `keywords` | `["cybersecurity"]` | Matched in award descriptions (3+ characters each) |
| `naicsCodes` | `["561720"]` | Contracts and IDVs |
| `pscCodes` | `["S201"]` | Product/Service codes (contracts and IDVs) |
| `awardingAgencies` | `["Department of Defense"]` | Exact top-tier agency names |
| `placeOfPerformanceStates` | `["FL", "TX"]` | Two-letter state codes |
| `recipientSearch` | `["Booz Allen"]` | Company name or UEI |
| `setAsideTypes` | `["SBA", "8A"]` | Set-aside codes (`SBA`, `8A`, `HZC`, `SDVOSBC`, `WOSB`) |
| `awardGroups` | `["contracts", "idvs", "grants"]` | Default `["contracts"]` |
| `dateFrom` / `dateTo` | `2025-10-01` / `2026-09-30` | Earliest supported: `2007-10-01` |
| `dateType` | `action_date` | `action_date`, `date_signed`, or `last_modified_date` |
| `minAmount` / `maxAmount` | `100000` | Obligated award amount in USD |
| `sortBy` / `sortOrder` | `amount` / `desc` | `amount`, `startDate`, or `lastModified` |
| `maxResults` | `100` | Cap results saved to control spend |

### Example inputs

**1. Cybersecurity contracts in FY2026 sorted by largest amount:**

```json
{
  "keywords": ["cybersecurity"],
  "awardGroups": ["contracts"],
  "dateFrom": "2025-10-01",
  "dateTo": "2026-09-30",
  "sortBy": "amount",
  "sortOrder": "desc",
  "maxResults": 50
}
```

**2. Florida janitorial contracts (NAICS 561720) to spot upcoming recompetes:**

```json
{
  "naicsCodes": ["561720"],
  "placeOfPerformanceStates": ["FL"],
  "awardGroups": ["contracts"],
  "dateFrom": "2023-10-01",
  "dateTo": "2026-09-30",
  "minAmount": 100000,
  "maxResults": 100
}
```

**3. Federal grants by keyword and state:**

```json
{
  "keywords": ["hurricane"],
  "awardGroups": ["grants"],
  "placeOfPerformanceStates": ["FL"],
  "maxResults": 50
}
```

### Output fields & sample record

Returns one record per award: `awardId`, `awardGroup`, `awardType`, `recipientName`, `recipientUei`, `amountObligated`, `totalOutlays`, `awardingAgency`, `awardingSubAgency`, `fundingAgency`, `startDate`, `endDate`, `description`, `naicsCode`, `naicsDescription`, `pscCode`, `pscDescription`, `cfdaNumber`, `popState`, `popZip5`, `lastModified`, `awardUrl`, `recipientUrl`, `source`.

```json
{
  "awardId": "FA282322C0001",
  "awardGroup": "contracts",
  "awardType": "DEFINITIVE CONTRACT",
  "recipientName": "GLOBAL CONNECTIONS TO EMPLOYMENT, INC.",
  "recipientUei": "C43DLCSKXGM8",
  "amountObligated": 23708604.68,
  "awardingAgency": "Department of Defense",
  "awardingSubAgency": "Department of the Air Force",
  "startDate": "2021-10-01",
  "endDate": "2026-09-30",
  "description": "BASE CUSTODIAL SERVICES",
  "naicsCode": "561720",
  "pscCode": "S201",
  "popState": "FL",
  "awardUrl": "https://www.usaspending.gov/award/CONT_AWD_FA282322C0001_9700_-NONE-_-NONE-",
  "recipientUrl": "https://www.usaspending.gov/recipient/C43DLCSKXGM8"
}
```

### Integrations & scheduling

Schedule weekly or daily runs and pipe new awards directly into **Google Sheets, Slack, HubSpot, Airtable, Zapier, Make, n8n**, or your own app via the Apify API.

### Pricing

Pay per event: **$2.00 per 1,000 award records saved** ($0.002 per result + $0.00005 Actor start). Set `maxResults` to cap the maximum number of records returned in any run.

### Notes and limits

- `maxResults` is shared across `awardGroups` in the order listed.
- IDVs (vehicles) often show `amountObligated: 0.0` because funds are obligated on task/delivery orders placed under the vehicle, and place of performance is often blank on parent IDVs.
- Award amounts reflect cumulative obligations reported by agencies; always verify critical figures directly on USAspending.gov.
- Business and institutional data only — no personal emails or phone numbers are collected.
- Polite by default: sequential pages with a 0.5 s delay and automatic exponential backoff on 429/5xx responses.
- Not affiliated with or endorsed by the U.S. Treasury or USAspending.gov.

# Actor input Schema

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

Words to match in award descriptions (3+ characters each).

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

e.g. 541511 (custom programming), 561720 (janitorial).

## `pscCodes` (type: `array`):

Product/Service codes, e.g. DA01.

## `awardingAgencies` (type: `array`):

Exact names, e.g. 'Department of Defense', 'Department of Veterans Affairs'.

## `placeOfPerformanceStates` (type: `array`):

Two-letter codes, e.g. FL, TX.

## `recipientSearch` (type: `array`):

Find awards won by specific companies.

## `setAsideTypes` (type: `array`):

e.g. SBA (small business), 8A, HZC (HUBZone), SDVOSBC (service-disabled veteran).

## `awardGroups` (type: `array`):

Which award families to search.

## `dateFrom` (type: `string`):

YYYY-MM-DD. Default 2025-10-01 (start of FY2026).

## `dateTo` (type: `string`):

YYYY-MM-DD.

## `dateType` (type: `string`):

Which date the range applies to.

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

Minimum obligated award amount in US dollars.

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

Maximum obligated award amount in US dollars.

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

Sort field.

## `sortOrder` (type: `string`):

Descending or ascending.

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

Stop after this many records (you pay per record).

## `requestDelaySecs` (type: `number`):

Politeness delay between API pages.

## Actor input object example

```json
{
  "keywords": [
    "cybersecurity"
  ],
  "awardGroups": [
    "contracts"
  ],
  "dateFrom": "2025-10-01",
  "dateTo": "2026-09-30",
  "dateType": "action_date",
  "sortBy": "amount",
  "sortOrder": "desc",
  "maxResults": 100,
  "requestDelaySecs": 0.5
}
```

# Actor output Schema

## `awards` (type: `string`):

Contract award records found.

# 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 = {
    "keywords": [
        "cybersecurity"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("guiltless_beanstalk/federal-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 = { "keywords": ["cybersecurity"] }

# Run the Actor and wait for it to finish
run = client.actor("guiltless_beanstalk/federal-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 '{
  "keywords": [
    "cybersecurity"
  ]
}' |
apify call guiltless_beanstalk/federal-contract-awards --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,guiltless_beanstalk/federal-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/msqdSVsqkfPyvFWrt/builds/b71AWs4ue59VhiY4E/openapi.json
