# Public Procurement, Tender & RFP Monitor (`vanheelsing/public-procurement-monitor`) Actor

Monitor public procurement, tender, and RFP pages for new business opportunities. Keyword matching, dataset exports, webhooks, and scheduled runs help buyers capture recurring B2B leads without manual checking.

- **URL**: https://apify.com/vanheelsing/public-procurement-monitor.md
- **Developed by:** [Rodolfo Martins](https://apify.com/vanheelsing) (community)
- **Categories:** Business, Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-usage

## 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

## Public procurement / tender monitor

Monitor procurement, tender, and RFP pages for fresh opportunities that match your keyword list. This Actor is designed for buyers who want a simple, recurring way to discover commercial opportunities without manually checking dozens of government and procurement pages.

### What does this Actor do?
- Fetches one or more procurement or tender sources.
- Extracts matching records from HTML or JSON pages.
- Saves each match to the dataset.
- Writes the full result bundle to the `OUTPUT` key-value record.

The Actor is meant to be sold as a practical B2B monitoring tool: buyers supply their own sources, keywords, and lookback window, then run it on a schedule or via API.

### Why use it?
- Save time versus manual procurement checks.
- Catch new opportunities faster.
- Reuse the same Actor across countries, industries, and source lists.
- Integrate with Apify scheduling, webhooks, and downstream automation.

### How to use it
1. Open the Actor on Apify.
2. Add one or more `source_urls`.
3. Set your `keywords`.
4. Choose `lookback_days` and `max_items`.
5. Run it once to confirm the sources work.
6. Put it on a schedule if you want recurring monitoring.

### Input
Main inputs:
- `source_urls` — procurement pages, search result pages, RSS feeds, or JSON endpoints.
- `country` — reporting hint.
- `language` — reporting hint.
- `lookback_days` — how far back to consider results.
- `keywords` — words or phrases that mark a relevant opportunity.
- `max_items` — maximum results per run.

Suggested starting values are already prefilled in the schema.

### Output
The Actor returns:
- `items[]` with `title`, `url`, `source`, `source_url`, `published_at`, `snippet`, and `matched_keyword`
- `summary` with counts and runtime
- `warnings[]` for fetch or parsing issues

Example output:
```json
{
  "items": [
    {
      "title": "Tender for office supplies",
      "url": "https://example.com/tender/123",
      "source": "example.com",
      "source_url": "https://example.com/search",
      "published_at": "2026-07-01T10:00:00Z",
      "snippet": "... procurement ...",
      "matched_keyword": "procurement"
    }
  ],
  "summary": {
    "count": 1,
    "source_count": 1,
    "keyword_count": 5,
    "lookback_days": 30,
    "country": "UK",
    "language": "en",
    "run_time_ms": 1234,
    "warnings_count": 0
  },
  "warnings": []
}
````

You can download the dataset in JSON, CSV, Excel, HTML, RSS, and other standard Apify formats.

### Data table

The main dataset fields are:

- `title`
- `url`
- `source`
- `source_url`
- `published_at`
- `snippet`
- `matched_keyword`

### Pricing / cost estimation

This Actor is intended for pay-per-event monetization.

Recommended setup:

- charge per dataset item processed
- keep the first-run max cost low
- expose a clear max charge per run so customers can control spend

For buyers, the cost stays predictable because the main event is tied to output volume.

### Tips

- Start with a small list of source URLs.
- Use narrow keywords first, then broaden them.
- Prefer stable HTML or JSON endpoints over highly dynamic pages.
- Keep the run schedule aligned with how often the target sources update.

### FAQ / support

**Does it work on every site?**
No. Some sources need selector tuning or proxy support.

**Is it legal to scrape procurement pages?**
Use it only where you have the right to access and process the data, and follow each site’s terms.

**Need a custom version?**
This Actor is designed to be adapted for a specific source or market.

### Deploy

From this directory:

```bash
npx -y apify-cli login --token "$APIFY_TOKEN"
npx -y apify-cli actors push --dir . --json --wait-for-finish 0
```

### Managed by Hermes

The portfolio automation is designed to:

- deploy this Actor when the scanner selects it
- retire it if monthly review flags it as unprofitable
- keep future Actors public-ready and sales-oriented

# Actor input Schema

## `source_urls` (type: `array`):

Procurement pages, search result pages, RSS feeds, or JSON endpoints to monitor.

## `country` (type: `string`):

Optional country code or country name for filtering and reporting.

## `language` (type: `string`):

Optional language hint for the monitored pages.

## `lookback_days` (type: `integer`):

How far back to consider items as relevant.

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

Words or phrases that signal a relevant opportunity.

## `max_items` (type: `integer`):

Maximum number of matching records to emit per run.

## Actor input object example

```json
{
  "source_urls": [
    "https://www.contractsfinder.service.gov.uk/Search/Results"
  ],
  "country": "UK",
  "language": "en",
  "lookback_days": 30,
  "keywords": [
    "tender",
    "procurement",
    "bid",
    "rfp",
    "contract"
  ],
  "max_items": 100
}
```

# 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 = {
    "source_urls": [
        "https://www.contractsfinder.service.gov.uk/Search/Results"
    ],
    "country": "UK",
    "language": "en",
    "lookback_days": 30,
    "keywords": [
        "tender",
        "procurement",
        "bid",
        "rfp",
        "contract"
    ],
    "max_items": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("vanheelsing/public-procurement-monitor").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 = {
    "source_urls": ["https://www.contractsfinder.service.gov.uk/Search/Results"],
    "country": "UK",
    "language": "en",
    "lookback_days": 30,
    "keywords": [
        "tender",
        "procurement",
        "bid",
        "rfp",
        "contract",
    ],
    "max_items": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("vanheelsing/public-procurement-monitor").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 '{
  "source_urls": [
    "https://www.contractsfinder.service.gov.uk/Search/Results"
  ],
  "country": "UK",
  "language": "en",
  "lookback_days": 30,
  "keywords": [
    "tender",
    "procurement",
    "bid",
    "rfp",
    "contract"
  ],
  "max_items": 100
}' |
apify call vanheelsing/public-procurement-monitor --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Public Procurement, Tender & RFP Monitor",
        "description": "Monitor public procurement, tender, and RFP pages for new business opportunities. Keyword matching, dataset exports, webhooks, and scheduled runs help buyers capture recurring B2B leads without manual checking.",
        "version": "0.1",
        "x-build-id": "RGHndS11NpcoaAvrR"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/vanheelsing~public-procurement-monitor/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-vanheelsing-public-procurement-monitor",
                "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/vanheelsing~public-procurement-monitor/runs": {
            "post": {
                "operationId": "runs-sync-vanheelsing-public-procurement-monitor",
                "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/vanheelsing~public-procurement-monitor/run-sync": {
            "post": {
                "operationId": "run-sync-vanheelsing-public-procurement-monitor",
                "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",
                "required": [
                    "source_urls",
                    "keywords",
                    "max_items"
                ],
                "properties": {
                    "source_urls": {
                        "title": "Source URLs",
                        "type": "array",
                        "description": "Procurement pages, search result pages, RSS feeds, or JSON endpoints to monitor.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "country": {
                        "title": "Country",
                        "type": "string",
                        "description": "Optional country code or country name for filtering and reporting."
                    },
                    "language": {
                        "title": "Language",
                        "type": "string",
                        "description": "Optional language hint for the monitored pages."
                    },
                    "lookback_days": {
                        "title": "Lookback days",
                        "minimum": 1,
                        "type": "integer",
                        "description": "How far back to consider items as relevant."
                    },
                    "keywords": {
                        "title": "Keywords",
                        "type": "array",
                        "description": "Words or phrases that signal a relevant opportunity.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "max_items": {
                        "title": "Max items",
                        "minimum": 1,
                        "type": "integer",
                        "description": "Maximum number of matching records to emit per run."
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
