# US Federal Contracts & SAM.gov Procurement B2G Radar (`b2b-quant-apis/us-sam-gov-federal-procurement-auditor`) Actor

Extracts and audits official U.S. Federal Government contract awards via USAspending.gov v2 and SAM.gov APIs (Zero-Key required). Scores B2G vendor competitiveness (0-100), tracks DoD/HHS/VA awards, and generates Markdown procurement briefs.

- **URL**: https://apify.com/b2b-quant-apis/us-sam-gov-federal-procurement-auditor.md
- **Developed by:** [Jesley Tassili de Oliveira Aguileira](https://apify.com/b2b-quant-apis) (community)
- **Categories:** AI, Lead generation, Business
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$35.00 / 1,000 u.s. federal contract award & b2g auditeds

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

## US Federal Contracts & SAM.gov Procurement B2G Radar (`MCP Server` + `n8n Ready` + `REST API`)

[![MCP Server Enabled](https://img.shields.io/badge/MCP_Server-Streamable_HTTP_%26_SSE-6366F1?style=for-the-badge)](https://mcp.apify.com/?actors=b2b-quant-apis/us-sam-gov-federal-procurement-auditor)
[![n8n Workflow Template](https://img.shields.io/badge/n8n-Download_Ready_Workflow-FF6D5A?style=for-the-badge\&logo=n8n)](https://raw.githubusercontent.com/jesleytassili-glitch/b2b-quant-mcp-n8n-suite/main/n8n_creator_hub_templates/us-sam-gov-federal-procurement-auditor.n8n.json)
[![OpenAPI 3.1](https://img.shields.io/badge/OpenAPI_3.1-Stateless_JSON_API-00C853?style=for-the-badge)](https://github.com/jesleytassili-glitch/b2b-quant-mcp-n8n-suite)

**Extracts and audits official U.S. Federal Government contract awards via USAspending.gov v2 and SAM.gov APIs (Zero-Key required). Scores B2G vendor competitiveness (0-100), tracks DoD/HHS/VA awards, and generates Markdown procurement briefs.**

Engineered by **[@b2b-quant-apis](https://apify.com/b2b-quant-apis)** for **scheduled Machine-to-Machine (`n8n` / `Make.com`) pipelines**, **Autonomous AI Agents (`Claude Desktop`, `Cursor IDE`, `LangChain`, `CrewAI`)**, and **Enterprise Compliance & RevOps stacks**.

***

### Why Choose `b2b-quant-apis/us-sam-gov-federal-procurement-auditor`?

1. **Zero-Proxy & Zero-External-Key Architecture**: Connects directly to official primary registries and public regulatory endpoints with deterministic input sanitization and automatic retry/backoff.
2. **Quantitative Risk & Opportunity Scoring (`0–100`)**: Every output record includes a normalized quantitative score and an executive **Markdown Dossier** ready for RAG vector databases, Slack/Teams alerts, or CRM enrichment.
3. **Native Model Context Protocol (MCP) Server**: Connect directly to **Claude Desktop**, **Cursor**, **Windsurf**, or any MCP client in 1 click without deploying local infrastructure.
4. **Predictable Pay-Per-Event Pricing**: You only pay **`$0.035 USD`** per successfully processed record (`federal-contract-audited`). Zero monthly subscription fees.

***

### Transparent Pay-Per-Event (PPE) Pricing

| Billing Event Name | Event Title | Price per Event (USD) | Categories |
| :--- | :--- | :---: | :--- |
| **`federal-contract-audited`** | U.S. Federal Contract Award & B2G Audited | **`$0.035 USD`** | `AI, LEAD_GENERATION, BUSINESS` |

> **Negative Profit Protection**: Failed queries, empty responses, or invalid inputs return cleanly without triggering event charges.

***

### Input Parameters

| Parameter | Type | Required | Default | Description |
| :--- | :---: | :---: | :--- | :--- |
| `keyword` | `string` | **Yes** | `"cybersecurity"` | Keyword searched in federal contract award descriptions (e.g., 'cybersecurity', 'cloud software', 'medical supplies', 'autonomous'). |
| `awardingAgency` | `string` | **Optional** | `""` | Optional filter by top-tier U.S. Federal Agency name (e.g., 'Department of Defense', 'Department of Veterans Affairs'). |
| `minAwardAmount` | `integer` | **Optional** | `50000` | Minimum contract obligation amount in USD (0 to 1,000,000,000). |
| `maxResults` | `integer` | **Optional** | `15` | Maximum number of federal contract awards to extract and score (1 to 100). |

#### Example Input JSON

```json
{
  "keyword": "cybersecurity",
  "awardingAgency": "",
  "minAwardAmount": 50000,
  "maxResults": 5
}
```

***

### Output Dataset Schema

Each run pushes structured JSON items to the default Apify Dataset with the following fields:

| Field Name | Type | Description |
| :--- | :---: | :--- |
| `awardId` | `string` | **Federal Award ID (PIID)** — Official Procurement Instrument Identifier (PIID). |
| `recipientName` | `string` | **Contractor / Recipient Name** — Legal entity awarded the federal contract. |
| `awardingAgency` | `string` | **Awarding Agency** — Top-tier U.S. Federal Department or Agency. |
| `awardingSubAgency` | `string` | **Awarding Sub-Agency** — Specific bureau, command, or sub-agency. |
| `awardAmountUsd` | `number` | **Award Amount (USD)** — Total federal contract award amount in USD. |
| `startDate` | `string` | **Start Date** — Contract period of performance start date (YYYY-MM-DD). |
| `endDate` | `string` | **End Date** — Contract period of performance end/renewal date (YYYY-MM-DD). |
| `contractAwardType` | `string` | **Contract Award Type** — Federal procurement instrument type (Definitive Contract, Delivery Order, BPA Call, Purchase Order). |
| `b2gOpportunityScore` | `integer` | **B2G Opportunity Score (0-100)** — Quantitative score evaluating contract value, recompete window, and B2G subcontracting potential (0-100). |
| `description` | `string` | **Contract Scope Description** — Official summary of goods or services procured. |
| `markdownProcurementBrief` | `string` | **Markdown B2G Procurement Intelligence Brief** — Executive Markdown dossier for GovCon capture teams, B2B sales, and AI RAG agents. |

#### Example Output JSON

```json
[
  {
    "awardId": "Sample Federal Award ID (PIID)",
    "recipientName": "Sample Contractor / Recipient Name",
    "awardingAgency": "Sample Awarding Agency",
    "awardingSubAgency": "Sample Awarding Sub-Agency",
    "awardAmountUsd": 1500.5,
    "startDate": "Sample Start Date",
    "endDate": "Sample End Date",
    "contractAwardType": "Sample Contract Award Type",
    "b2gOpportunityScore": 92,
    "description": "Sample Contract Scope Description",
    "markdownProcurementBrief": "Sample Markdown B2G Procurement Intelligence Brief"
  }
]
```

***

### 1-Click MCP Server Integration (Claude Desktop & Cursor IDE)

Add `b2b-quant-apis/us-sam-gov-federal-procurement-auditor` as an AI Agent tool in **Claude Desktop** (`claude_desktop_config.json`) or **Cursor IDE** (`.cursor/mcp.json`):

```json
{
  "mcpServers": {
    "us-sam-gov-federal-procurement-auditor": {
      "command": "npx",
      "args": [
        "-y",
        "@apify/actors-mcp-server",
        "--actors",
        "b2b-quant-apis/us-sam-gov-federal-procurement-auditor"
      ],
      "env": {
        "APIFY_TOKEN": "<YOUR_APIFY_API_TOKEN>"
      }
    }
  }
}
```

- **Hosted Streamable HTTP MCP URL:** `https://mcp.apify.com/?actors=b2b-quant-apis/us-sam-gov-federal-procurement-auditor`

***

### Automated Daily `n8n` Workflow Template

Download the pre-built, sanitized **n8n workflow template** with a daily `Schedule Trigger` (`07:00 AM`), `HTTP Request` node, and `CRM/Slack Webhook Router`:

- **Direct Download (`.n8n.json`):** [us-sam-gov-federal-procurement-auditor.n8n.json](https://raw.githubusercontent.com/jesleytassili-glitch/b2b-quant-mcp-n8n-suite/main/n8n_creator_hub_templates/us-sam-gov-federal-procurement-auditor.n8n.json)
- **Enterprise Multi-Actor Super-Pipelines:** [GitHub Repository `jesleytassili-glitch/b2b-quant-mcp-n8n-suite`](https://github.com/jesleytassili-glitch/b2b-quant-mcp-n8n-suite)

***

### Direct Stateless REST API Call (`cURL` Synchronous JSON)

Call this Actor synchronously as a standard HTTP POST micro-API and receive the JSON dataset array directly in the HTTP response:

```bash
curl -X POST "https://api.apify.com/v2/acts/b2b-quant-apis~us-sam-gov-federal-procurement-auditor/run-sync-get-dataset-items" \
  -H "Authorization: Bearer <YOUR_APIFY_API_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"keyword": "cybersecurity", "awardingAgency": "", "minAwardAmount": 50000, "maxResults": 5}'
```

***

### Frequently Asked Questions (FAQ)

#### 1. Do I need to configure residential proxies or third-party API keys?

No. `b2b-quant-apis/us-sam-gov-federal-procurement-auditor` runs out-of-the-box with zero external API keys and zero paid proxy requirements.

#### 2. Can I chain this Actor with other B2B compliance and lead enrichment tools?

Yes. Explore the full **25-Actor B2B Quant & Regulatory Suite** at **[apify.com/b2b-quant-apis](https://apify.com/b2b-quant-apis/us-sam-gov-federal-procurement-auditor)** or import our **5 Multi-Actor Waterfall Pipelines** from **[GitHub (`jesleytassili-glitch/b2b-quant-mcp-n8n-suite`)](https://github.com/jesleytassili-glitch/b2b-quant-mcp-n8n-suite)**.

# Actor input Schema

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

Keyword searched in federal contract award descriptions (e.g., 'cybersecurity', 'cloud software', 'medical supplies', 'autonomous').

## `awardingAgency` (type: `string`):

Optional filter by top-tier U.S. Federal Agency name (e.g., 'Department of Defense', 'Department of Veterans Affairs').

## `minAwardAmount` (type: `integer`):

Minimum contract obligation amount in USD (0 to 1,000,000,000).

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

Maximum number of federal contract awards to extract and score (1 to 100).

## Actor input object example

```json
{
  "keyword": "cybersecurity",
  "awardingAgency": "",
  "minAwardAmount": 50000,
  "maxResults": 15
}
```

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

// Run the Actor and wait for it to finish
const run = await client.actor("b2b-quant-apis/us-sam-gov-federal-procurement-auditor").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("b2b-quant-apis/us-sam-gov-federal-procurement-auditor").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 b2b-quant-apis/us-sam-gov-federal-procurement-auditor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,b2b-quant-apis/us-sam-gov-federal-procurement-auditor"
        }
    }
}
```

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/xx0984FuAUDlSwsAM/builds/UZj1GgTrgAYtFjfuU/openapi.json
