# GovProcurement-Bidwatch - Government Procurement Monitor (`mibedk/govprocurement-bidwatch`) Actor

Monitor government procurement portals for contract opportunities and bid notices.

- **URL**: https://apify.com/mibedk/govprocurement-bidwatch.md
- **Developed by:** [Mikkel Bech-Hansen](https://apify.com/mibedk) (community)
- **Categories:** Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.36 / 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/docs.md):

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

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python/docs.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/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

## GovProcurement-Bidwatch — Government Procurement Monitor

Monitor federal procurement portals (USAspending.gov) for contract opportunities, awards, and bid notices. Get structured JSON records filtered by keyword, minimum contract value, and state — ready for CRM ingestion, alerting pipelines, or spreadsheet analysis.

Built for B2B sales teams, government-contract consultants, and market-intelligence analysts who need a machine-readable feed of public-sector spending without manual portal browsing.

### What it does

- Queries the **USAspending.gov API** for verified federal award and contract data
- Filters by **keywords**, **minimum contract value**, and **state**
- Scores every record by value + keyword relevance (0–100) so you can prioritize the biggest opportunities
- Returns clean, deduplicated JSON with direct URLs back to the official award page
- Handles API errors gracefully — never crashes the run because of a single bad response

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `start_urls` | string | — | Comma-separated procurement portal URLs (reserved for future multi-source crawls) |
| `max_pages` | number | `100` | Maximum result pages to fetch (each page = up to 10 records) |
| `keywords` | string | — | Comma-separated keywords to filter contracts, e.g. `medical equipment,hospital,healthcare` |
| `state_filter` | array | — | Filter by US state (array of state codes, e.g. `["CA","TX"]`) |
| `min_contract_value` | number | `0` | Minimum contract value in USD |
| `email_alerts` | boolean | `false` | Send email alerts when new records are found |
| `webhook_url` | string | — | Webhook URL for real-time alerts |

### Output

One JSON record per contract/award, e.g.:

```json
{
  "id": "CONT_AWD_123456789_1234",
  "source": "USAspending.gov",
  "title": "Medical imaging equipment and maintenance services for VA hospitals",
  "url": "https://www.usaspending.gov/award/CONT_AWD_123456789_1234",
  "agency": "Department of Veterans Affairs",
  "category": "medical equipment",
  "contract_value": 450000,
  "posted_date": "2026-01-15",
  "deadline": "2026-06-30",
  "status": "awarded",
  "keywords_matched": ["medical equipment", "hospital"],
  "score": 85
}
````

Export as JSON, CSV, or Excel from the Apify dataset, or consume via API.

### Real-world examples

#### Example 1 — Healthcare contracts over $100K

A medical-device sales rep wants a weekly list of federal healthcare awards to identify agency buyers.

```json
{
  "keywords": "medical equipment,hospital,healthcare,imaging",
  "min_contract_value": 100000,
  "max_pages": 50
}
```

#### Example 2 — High-value construction bids in California and Texas

A construction contractor monitors large awards in target states.

```json
{
  "keywords": "construction,building,infrastructure",
  "state_filter": ["CA", "TX"],
  "min_contract_value": 500000,
  "max_pages": 100
}
```

#### Example 3 — Daily alert feed with webhook

A SaaS platform ingests procurement data into its own dashboard via webhook.

```json
{
  "keywords": "software,cloud,SaaS,cybersecurity",
  "min_contract_value": 25000,
  "max_pages": 30,
  "webhook_url": "https://api.yourplatform.com/webhooks/procurement"
}
```

### Use cases

- **B2B sales teams** — identify agencies and prime contractors already buying in your category
- **Government-contract consultants** — track award trends and spot re-compete opportunities early
- **Market-intelligence platforms** — feed structured federal spending data into internal analytics tools
- **Competitive analysis** — monitor which competitors are winning awards and at what value points
- **Supplier-diversity programs** — filter awards by small-business or minority-owned set-asides

### Scheduling & integrations

Run on a schedule (daily or weekly) directly in Apify, or trigger via API, Zapier, Make, or webhooks. Combine with `min_contract_value` and `keywords` to create an incremental alert pipeline that only notifies you when relevant high-value awards appear.

### Cost & reliability

- **Flat pricing:** $0.00036 per result + $0.001 run start fee — 1,000 records costs $0.36
- **Deterministic:** direct REST API calls to USAspending.gov — no browser rendering, no LLM
- **Cheap:** single POST request per run, typically <10 seconds of compute
- **Data license:** public federal spending data, free to reuse
- **Source stability:** USAspending.gov is the official U.S. Treasury API; schema changes are rare and versioned

# Actor input Schema

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

Keywords to search for, e.g. \["medical equipment", "hospital"]. Up to 5 are queried. Leave empty for defaults (medical/healthcare).

## `state_filter` (type: `array`):

Filter by US state codes of the place of performance, e.g. \["CA", "TX"]. Leave empty for all states.

## `min_contract_value` (type: `number`):

Only return awards at or above this value in USD. Default: 0 (no minimum).

## `days_back` (type: `number`):

How many days back to search (by award start date). Default: 120.

## `max_pages` (type: `number`):

Maximum result pages to fetch (each page = up to 10 records, hard cap 100 records total). Default: 10.

## `webhook_url` (type: `string`):

Optional HTTP(S) URL that receives a POST with a JSON summary and the top 25 records when the run finishes.

## Actor input object example

```json
{
  "keywords": [
    "medical equipment",
    "hospital"
  ],
  "state_filter": [],
  "min_contract_value": 0,
  "days_back": 120,
  "max_pages": 10
}
```

# 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": [
        "medical equipment",
        "hospital"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("mibedk/govprocurement-bidwatch").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": [
        "medical equipment",
        "hospital",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("mibedk/govprocurement-bidwatch").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": [
    "medical equipment",
    "hospital"
  ]
}' |
apify call mibedk/govprocurement-bidwatch --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "GovProcurement-Bidwatch - Government Procurement Monitor",
        "description": "Monitor government procurement portals for contract opportunities and bid notices.",
        "version": "1.2",
        "x-build-id": "fage8LX41U7CtbaHs"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/mibedk~govprocurement-bidwatch/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-mibedk-govprocurement-bidwatch",
                "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/mibedk~govprocurement-bidwatch/runs": {
            "post": {
                "operationId": "runs-sync-mibedk-govprocurement-bidwatch",
                "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/mibedk~govprocurement-bidwatch/run-sync": {
            "post": {
                "operationId": "run-sync-mibedk-govprocurement-bidwatch",
                "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": "array",
                        "description": "Keywords to search for, e.g. [\"medical equipment\", \"hospital\"]. Up to 5 are queried. Leave empty for defaults (medical/healthcare).",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "state_filter": {
                        "title": "State Filter",
                        "type": "array",
                        "description": "Filter by US state codes of the place of performance, e.g. [\"CA\", \"TX\"]. Leave empty for all states.",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "min_contract_value": {
                        "title": "Minimum Contract Value (USD)",
                        "type": "number",
                        "description": "Only return awards at or above this value in USD. Default: 0 (no minimum).",
                        "default": 0
                    },
                    "days_back": {
                        "title": "Days Back",
                        "type": "number",
                        "description": "How many days back to search (by award start date). Default: 120.",
                        "default": 120
                    },
                    "max_pages": {
                        "title": "Maximum Pages",
                        "type": "number",
                        "description": "Maximum result pages to fetch (each page = up to 10 records, hard cap 100 records total). Default: 10.",
                        "default": 10
                    },
                    "webhook_url": {
                        "title": "Webhook URL",
                        "type": "string",
                        "description": "Optional HTTP(S) URL that receives a POST with a JSON summary and the top 25 records when the run finishes."
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
