# Government Contract Intelligence — USASpending.gov (`sleek_waveform/government-procurement-tracker`) Actor

Search $700B+ in awarded U.S. federal contracts from USASpending.gov. Filter by keyword, NAICS code, agency, date range, and contract amount. No API key required.

- **URL**: https://apify.com/sleek\_waveform/government-procurement-tracker.md
- **Developed by:** [Daniel Dimitrov](https://apify.com/sleek_waveform) (community)
- **Categories:** Automation
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Government Contract Intelligence — USASpending.gov

Search and extract awarded U.S. federal contracts from [USASpending.gov](https://www.usaspending.gov) — the official database of all U.S. government spending. Covering **$700B+ in annual contract awards**, this Actor returns structured contract data with zero setup: no API key, no registration, no browser.

### What does Government Contract Intelligence do?

Government Contract Intelligence queries the official **USASpending.gov Awards API** and returns clean, structured data on awarded federal contracts. Filter by keyword, NAICS code, agency, date range, and contract value.

It extracts:

- Recipient company name and unique identifier (UEI)
- Contract award amount (total obligated dollars)
- Awarding agency and sub-agency
- Contract type (definitive contract, delivery order, purchase order, IDIQ)
- Period of performance (start and end dates)
- NAICS code and industry description
- Contract description
- Place of performance (city, state)
- Direct link to the full contract on USASpending.gov

### Why scrape USASpending.gov?

USASpending.gov tracks every dollar the U.S. federal government spends on contracts, grants, and loans — over **$700 billion in procurement per year**. This data is public, updated daily, and searchable by any keyword or industry.

Here's how you can use it:

- **Competitive intelligence** — see exactly which companies win contracts in your space, how much, and with which agencies
- **BD targeting** — identify prime contractors to subcontract with or partner with for future bids
- **Market sizing** — understand how much the government spends on your NAICS code annually
- **Agency research** — find which agencies are the biggest buyers in your industry
- **Win/loss analysis** — track competitor contract activity over time
- **Procurement trends** — identify growing or shrinking categories of federal spending

If you would like more inspiration, check out our [industry pages](https://apify.com/industries).

### How to use Government Contract Intelligence

1. **Set your filters** — keywords, NAICS code, agency, date range, minimum contract value.
2. **Click Run** — results appear in the Dataset tab in seconds.
3. **Export** — download as JSON, CSV, or push to Google Sheets, Airtable, or your CRM.

No API key. No signup. No browser automation required.

### Input parameters

| Field | Type | Required | Default | Description |
|-------|------|----------|---------|-------------|
| `keywords` | string | — | — | Search terms (e.g., "cybersecurity", "cloud migration", "IT services") |
| `naicsCode` | string | — | — | NAICS industry code (e.g., "541512" for Computer Systems Design) |
| `agency` | string | — | — | Awarding agency name (e.g., "Department of Defense") |
| `startDate` | string | — | — | Award date from — YYYY-MM-DD (e.g., "2024-01-01") |
| `endDate` | string | — | — | Award date to — YYYY-MM-DD (e.g., "2024-12-31") |
| `minAmount` | integer | — | 0 | Minimum contract value in USD (e.g., 100000 for $100K+) |
| `maxResults` | integer | — | 100 | Max contracts to return (1–10,000) |
| `includeIdvs` | boolean | — | false | Also include IDIQ, BPA, and GWAC vehicles |
| `sortBy` | string | — | Award Amount | Sort by: Award Amount, Start Date, End Date, or Recipient Name |

### Output / Results

Each awarded federal contract is returned as a JSON object:

```json
{
  "awardId": "W911QY24C0042",
  "recipient": "LEIDOS INC.",
  "recipientUei": "KUQJL77URLN5",
  "amount": 47500000,
  "startDate": "2024-03-01",
  "endDate": "2027-02-28",
  "awardingAgency": "DEPT OF DEFENSE",
  "awardingSubAgency": "DEFENSE INFORMATION SYSTEMS AGENCY",
  "contractType": "Definitive Contract",
  "naicsCode": "541512",
  "naicsDescription": "Computer Systems Design Services",
  "description": "CYBERSECURITY OPERATIONS AND SUPPORT SERVICES",
  "placeOfPerformance": "Fort Meade, MD, USA",
  "usaspendingUrl": "https://www.usaspending.gov/award/W911QY24C0042",
  "scrapedAt": "2025-04-11T10:30:00.000Z"
}
````

### How much will it cost?

Apify gives you **$5 free credits every month** on the [Apify Free plan](https://apify.com/pricing). Since Government Contract Intelligence uses lightweight API calls with no browser overhead, you can extract approximately **5,000 contracts per month for free**.

For ongoing monitoring and larger datasets, the [$49/month Personal plan](https://apify.com/pricing) gets you up to **50,000 contracts/month**. Power users can get **500,000+ results/month** on the [$499 Team plan](https://apify.com/pricing).

### Tips for best results

- **Narrow by NAICS code** to get the most relevant results for your industry. Find your code at [census.gov/naics](https://www.census.gov/naics/).
- **Use a date range** — set `startDate` to 1 year ago to focus on recent awards.
- **Set a minimum amount** — use `minAmount: 100000` to filter out micro-purchases and focus on meaningful contracts.
- **Sort by Award Amount** (default) to see the biggest contracts first.
- **Schedule monthly runs** to track new awards in your target agencies and NAICS codes.
- **Export to Google Sheets** via Apify integrations to build a BD intelligence dashboard.

### Is it legal to scrape USASpending.gov?

Yes. USASpending.gov is a U.S. government public website and all its spending data is **public domain under federal law** (31 U.S.C. § 6101). This Actor uses the [official USASpending.gov API](https://api.usaspending.gov/) — the documented, intended method for programmatic access. No scraping, no login, no terms violations. We also recommend reading: [is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/)

### Webhook Integration

Pass an optional `webhookUrl` in the input to receive a POST notification when the run finishes:

```json
{
  "webhookUrl": "https://your-server.com/webhook"
}
```

**Payload sent by Apify:**

```json
{
  "eventType": "ACTOR.RUN.SUCCEEDED",
  "eventData": { "actorId": "...", "actorRunId": "..." },
  "resource": { "id": "...", "status": "SUCCEEDED", "defaultDatasetId": "..." }
}
```

The webhook fires on `SUCCEEDED`, `FAILED`, `TIMED_OUT`, and `ABORTED` events.
Use it to trigger downstream pipelines, Zapier, Make.com, or any HTTP endpoint.

# Actor input Schema

## `keywords` (type: `string`):

Keywords to search in contract descriptions and titles (e.g., 'cybersecurity', 'cloud migration', 'IT services').

## `naicsCode` (type: `string`):

Filter by 6-digit NAICS industry code (e.g., '541512' for Computer Systems Design Services).

## `agency` (type: `string`):

Filter by federal agency name (e.g., 'Department of Defense', 'Department of Health and Human Services').

## `startDate` (type: `string`):

Filter contracts awarded on or after this date (YYYY-MM-DD format, e.g., '2024-01-01').

## `endDate` (type: `string`):

Filter contracts awarded on or before this date (YYYY-MM-DD format, e.g., '2024-12-31').

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

Only return contracts above this dollar value (e.g., 100000 for $100K+).

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

Maximum number of contracts to return.

## `includeIdvs` (type: `boolean`):

Also include Indefinite Delivery Vehicles (IDIQ, BPA, GWAC) in addition to standard contracts.

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

Field to sort results by.

## `webhookUrl` (type: `string`):

Optional URL to receive a POST notification when the run completes. The payload includes actorRunId, datasetId, status, and a direct link to results.

## Actor input object example

```json
{
  "keywords": "cybersecurity",
  "naicsCode": "541512",
  "agency": "Department of Defense",
  "startDate": "2024-01-01",
  "endDate": "2024-12-31",
  "minAmount": 0,
  "maxResults": 100,
  "includeIdvs": false,
  "sortBy": "Award Amount"
}
```

# 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 = {
    "keywords": "cybersecurity",
    "naicsCode": "541512",
    "agency": "Department of Defense",
    "startDate": "2024-01-01",
    "endDate": "2024-12-31"
};

// Run the Actor and wait for it to finish
const run = await client.actor("sleek_waveform/government-procurement-tracker").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",
    "naicsCode": "541512",
    "agency": "Department of Defense",
    "startDate": "2024-01-01",
    "endDate": "2024-12-31",
}

# Run the Actor and wait for it to finish
run = client.actor("sleek_waveform/government-procurement-tracker").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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",
  "naicsCode": "541512",
  "agency": "Department of Defense",
  "startDate": "2024-01-01",
  "endDate": "2024-12-31"
}' |
apify call sleek_waveform/government-procurement-tracker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=sleek_waveform/government-procurement-tracker",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Government Contract Intelligence — USASpending.gov",
        "description": "Search $700B+ in awarded U.S. federal contracts from USASpending.gov. Filter by keyword, NAICS code, agency, date range, and contract amount. No API key required.",
        "version": "1.0",
        "x-build-id": "Fjr2EfoKchgoDepxn"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/sleek_waveform~government-procurement-tracker/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-sleek_waveform-government-procurement-tracker",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/sleek_waveform~government-procurement-tracker/runs": {
            "post": {
                "operationId": "runs-sync-sleek_waveform-government-procurement-tracker",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/sleek_waveform~government-procurement-tracker/run-sync": {
            "post": {
                "operationId": "run-sync-sleek_waveform-government-procurement-tracker",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "keywords": {
                        "title": "Search Keywords",
                        "type": "string",
                        "description": "Keywords to search in contract descriptions and titles (e.g., 'cybersecurity', 'cloud migration', 'IT services')."
                    },
                    "naicsCode": {
                        "title": "NAICS Code",
                        "type": "string",
                        "description": "Filter by 6-digit NAICS industry code (e.g., '541512' for Computer Systems Design Services)."
                    },
                    "agency": {
                        "title": "Awarding Agency",
                        "type": "string",
                        "description": "Filter by federal agency name (e.g., 'Department of Defense', 'Department of Health and Human Services')."
                    },
                    "startDate": {
                        "title": "Start Date",
                        "type": "string",
                        "description": "Filter contracts awarded on or after this date (YYYY-MM-DD format, e.g., '2024-01-01')."
                    },
                    "endDate": {
                        "title": "End Date",
                        "type": "string",
                        "description": "Filter contracts awarded on or before this date (YYYY-MM-DD format, e.g., '2024-12-31')."
                    },
                    "minAmount": {
                        "title": "Minimum Contract Amount ($)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Only return contracts above this dollar value (e.g., 100000 for $100K+).",
                        "default": 0
                    },
                    "maxResults": {
                        "title": "Maximum Results",
                        "minimum": 1,
                        "maximum": 10000,
                        "type": "integer",
                        "description": "Maximum number of contracts to return.",
                        "default": 100
                    },
                    "includeIdvs": {
                        "title": "Include IDVs (IDIQ / BPA)",
                        "type": "boolean",
                        "description": "Also include Indefinite Delivery Vehicles (IDIQ, BPA, GWAC) in addition to standard contracts.",
                        "default": false
                    },
                    "sortBy": {
                        "title": "Sort By",
                        "enum": [
                            "Award Amount",
                            "Start Date",
                            "End Date",
                            "Recipient Name"
                        ],
                        "type": "string",
                        "description": "Field to sort results by.",
                        "default": "Award Amount"
                    },
                    "webhookUrl": {
                        "title": "Webhook URL",
                        "type": "string",
                        "description": "Optional URL to receive a POST notification when the run completes. The payload includes actorRunId, datasetId, status, and a direct link to results."
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
