# US Government Contracts Search — Awards Data API (`nexgendata/government-contracts-search`) Actor

Search US federal government contract awards. Clean JSON for suppliers, bid teams and AI agents.

- **URL**: https://apify.com/nexgendata/government-contracts-search.md
- **Developed by:** [NexGenData](https://apify.com/nexgendata) (community)
- **Categories:** AI, Automation
- **Stats:** 2 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $25.00 / 1,000 contract records

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 web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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 Contracts Search — GovTribe, GovWin IQ, Bloomberg Government & SAM.gov Alternative

Search US federal procurement data — contract awards, contract opportunities, vendor profiles, NAICS / PSC classifications, set-asides, agency / sub-agency, place of performance, contract value, period of performance, and modifications. Built as a pay-per-result **alternative to** GovTribe ($$$$), GovWin IQ ($$$$), Bloomberg Government, FedBizOpps replacement (SAM.gov direct), and Bidsync for government contractors, BD teams, market analysts, and journalists.

### Why Gov Contracts Search Beats GovTribe, GovWin IQ, Bloomberg Gov & SAM.gov Direct

| Feature | NexGenData Gov Contracts | GovTribe | GovWin IQ | Bloomberg Government | SAM.gov direct |
|---|---|---|---|---|---|
| Cost | $0.01 / record, pay-per-result | $1.5K-15K+ / yr | $$$$ enterprise | $5K-15K+ / user / yr | Free (no bulk, slow) |
| Contract awards + opportunities | Yes — both | Yes | Yes | Yes | Yes |
| NAICS / PSC / set-aside filters | Yes — full | Yes | Yes | Yes | Yes |
| Agency + sub-agency mapping | Yes | Yes | Yes | Yes | Yes |
| Vendor profile + history | Yes | Yes | Yes | Yes | Limited |
| Modifications + obligations | Yes | Yes | Yes | Yes | Yes |
| Bulk export | JSON / CSV / Excel | Plan-gated | Plan-gated | Plan-gated | Limited download |
| API access | Apify REST + SDKs | Plan-gated | Plan-gated | Plan-gated | USAspending / SAM APIs (rate-limited, complex) |
| Auth required | Apify token | Account + plan | Enterprise contract | Account + plan | None |
| Monthly minimum | None | $$ | $$$$ | $$$ | None |

Most government contractors + BD teams pick this actor **instead of** GovTribe / GovWin because per-seat license fees scale poorly across BD pods, and this actor charges per record with no annual contract. **Cheaper than** Bloomberg Government for the procurement-only slice and a **drop-in alternative to** running raw SAM.gov + USAspending API calls (rate-limited, multi-endpoint, schema-mismatch headaches). Public federal-procurement data, structured, schedulable.

### What You Get Per Contract

Each dataset item is a flat JSON record:

**Award:**

- `contract_id`, `award_id`, `award_type` (definitive contract / BPA / IDV / etc.)
- `awarding_agency`, `awarding_sub_agency`, `funding_agency`
- `vendor_name`, `vendor_duns`, `vendor_uei`, `vendor_address`
- `naics_code`, `naics_description`, `psc_code`, `psc_description`
- `set_aside_type` — 8(a) / WOSB / SDVOSB / HUBZone / etc.
- `award_amount`, `obligated_amount`, `base_and_all_options_amount`
- `period_of_performance_start`, `period_of_performance_end`
- `place_of_performance` — country / state / county / city / zip
- `description`, `competition_type`, `contract_type` (FFP / CPFF / T\&M / etc.)
- `modifications` — array of `{date, amount, action}`

**Opportunity (active solicitations):**

- `notice_id`, `posted_date`, `response_deadline`
- `solicitation_number`, `title`, `synopsis`
- `agency`, `sub_agency`, `office`, `point_of_contact`
- `set_aside`, `naics`, `psc`, `attachments`

### Use Cases

- **Federal contractors** — find new opportunities matched to your capabilities (NAICS / PSC filters)
- **BD + capture teams** — track competitor wins + recompete dates across a portfolio
- **GovCon analysts** — build vendor-share + agency-spend models from cleaned award data
- **Market intelligence** — measure agency budgets, vendor concentration, set-aside utilization
- **Journalists + watchdogs** — investigate single-bid awards, no-compete contracts, modification growth
- **Subcontractors** — find primes winning IDV awards in your geo / NAICS for teaming pitches
- **Investors** — track public-company federal revenue exposure (Lockheed, Booz Allen, etc.)
- **Academic + policy** — public-procurement studies on competition, small-biz participation, costs

### Quick Start (Python)

```python
from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("nexgendata/government-contracts-search").call(run_input={
    "mode": "awards",
    "naics_codes": ["541330"],
    "set_asides": ["WOSB", "8(a)"],
    "since_date": "2025-01-01"
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["vendor_name"], item["award_amount"], item["awarding_agency"])
```

### Pricing — Pay Per Contract Record

- **Actor start:** $0.01
- **Contract / opportunity record:** $0.01

A 1K-record weekly BD scan = $10.01. A 50K-record agency-spend dataset = $500.01. **No monthly minimum, no seats.**

### Related NexGenData Gov + Regulatory Actors

| Use case | Actor |
|----------|-------|
| USAspending federal-awards scraper | [usaspending-federal-awards-scraper](https://apify.com/nexgendata/usaspending-federal-awards-scraper?fpr=2ayu9b) |
| Federal Register rules + notices | [federal-register-rules-scraper](https://apify.com/nexgendata/federal-register-rules-scraper?fpr=2ayu9b) |
| FEC independent expenditures | [fec-independent-expenditures-scraper](https://apify.com/nexgendata/fec-independent-expenditures-scraper?fpr=2ayu9b) |
| LDA lobbying disclosure scraper | [lda-lobbying-disclosure-scraper](https://apify.com/nexgendata/lda-lobbying-disclosure-scraper?fpr=2ayu9b) |
| H1B visa salary search | [h1b-visa-salary-search](https://apify.com/nexgendata/h1b-visa-salary-search?fpr=2ayu9b) |
| Court records search (federal dockets) | [courtlistener-federal-docket-scraper](https://apify.com/nexgendata/courtlistener-federal-docket-scraper?fpr=2ayu9b) |
| SEC EDGAR filings scraper | [sec-edgar-filings-scraper](https://apify.com/nexgendata/sec-edgar-filings-scraper?fpr=2ayu9b) |
| NIH RePORTER grants database | [nih-reporter-grants-scraper](https://apify.com/nexgendata/nih-reporter-grants-scraper?fpr=2ayu9b) |

### FAQ

**Q: Coverage?**
A: All US federal contracts + opportunities from SAM.gov + USAspending — back to 2008 for awards, current for opportunities.

**Q: How fresh is the data?**
A: SAM.gov posts opportunities continuously; USAspending publishes award updates daily. Each run pulls the latest snapshot.

**Q: State / local procurement?**
A: This actor covers US federal procurement. Singapore GeBIZ government tenders are covered by [singapore-gebiz-tenders](https://apify.com/nexgendata/singapore-gebiz-tenders?fpr=2ayu9b).

**Q: Output formats?**
A: JSON, CSV, Excel via Apify dataset export. Webhooks supported on dataset write.

**Q: Schema stability?**
A: Versioned schema; breaking changes are announced via the actor changelog.

**Q: Legal status?**
A: SAM.gov + USAspending are public-domain US-government data. You are the data controller for downstream use — follow your jurisdiction's data-use rules.

***

### How NexGenData Pricing Works

Every NexGenData actor uses **pay-per-event** pricing — you only pay for results that actually land in your dataset. No monthly minimum, no seat fees, no surprise overage bills.

- **Actor Start:** a single-event charge each time you spin the actor up (scaled to memory size)
- **Result / item:** charged per item written to the default dataset
- **No charge** for retries, internal proxy rotation, or failed sub-requests — those are absorbed by the platform

### Apify Platform Bonus

New to Apify? Sign up with the NexGenData [referral link](https://www.apify.com/?fpr=2ayu9b) — you get free platform credits on signup (enough for several thousand free results) and you help fund the maintenance of this actor fleet.

### Integration Surface

Every actor in the NexGenData catalog can be triggered from:

- **Apify console** — point-and-click run
- **Apify API** — REST + webhooks
- **Apify Python / JS SDKs** — programmatic batch
- **Zapier, Make.com, n8n** — official integrations
- **MCP** — many actors are exposed as MCP tools for Claude / ChatGPT / Cursor agents
- **Schedules** — built-in cron for daily / weekly / monthly runs
- **Webhooks** — POST results to any HTTPS endpoint on dataset write

### Support

NexGenData maintains 260+ Apify actors and ships updates regularly. Bug reports via the Apify console issues tab get a response within 24 hours. Roadmap requests are welcome — high-demand features ship in the next version.

Home: [thenextgennexus.com](https://thenextgennexus.com)
Full catalog: [apify.com/nexgendata](https://apify.com/nexgendata?fpr=2ayu9b)

# Actor input Schema

## `keyword` (type: `string`):

Search keyword for award descriptions/recipients. Leave blank for all matching the other filters.

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

Awarding agency name filter (e.g. "Department of Defense"). Leave blank for all.

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

Type of federal award.

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

Only return awards at or above this dollar amount.

## `dateRangeMonths` (type: `integer`):

How many months back to search.

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

Maximum award records to return. Defaults to 25 as an evaluation-sized sample; raise it for full runs (each result is billed).

## Actor input object example

```json
{
  "keyword": "",
  "agency": "",
  "awardType": "contracts",
  "minAmount": 0,
  "dateRangeMonths": 12,
  "maxResults": 25
}
```

# 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 = {
    "keyword": "",
    "agency": "",
    "awardType": "contracts",
    "minAmount": 0,
    "dateRangeMonths": 12,
    "maxResults": 25
};

// Run the Actor and wait for it to finish
const run = await client.actor("nexgendata/government-contracts-search").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 = {
    "keyword": "",
    "agency": "",
    "awardType": "contracts",
    "minAmount": 0,
    "dateRangeMonths": 12,
    "maxResults": 25,
}

# Run the Actor and wait for it to finish
run = client.actor("nexgendata/government-contracts-search").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 '{
  "keyword": "",
  "agency": "",
  "awardType": "contracts",
  "minAmount": 0,
  "dateRangeMonths": 12,
  "maxResults": 25
}' |
apify call nexgendata/government-contracts-search --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/iaPWmdmlZOMIB20r2/builds/FD8KqufcmddiTkSl6/openapi.json
