# Multi-Country Tender & RFP Aggregator (`swholmes/tender-rfp-aggregator`) Actor

Aggregate public-sector tenders and RFPs across national procurement portals into one normalized schema. Dedupes new notices across runs and can POST alerts to a webhook.

- **URL**: https://apify.com/swholmes/tender-rfp-aggregator.md
- **Developed by:** [Scott Holmes](https://apify.com/swholmes) (community)
- **Categories:** Lead generation, Automation, Jobs
- **Stats:** 1 total users, 0 monthly users, 80.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 tender matcheds

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

## Multi-Country Tender & RFP Aggregator

Public procurement is scattered across hundreds of national portals, each with its own format. This Actor pulls tenders from several sources, normalizes them into **one schema**, filters by keyword and recency, dedupes notices you've already seen across runs, and can push new tenders to a webhook. Built to run on a schedule as a bid-opportunity radar.

### Sources

| Key | Portal | Auth |
|---|---|---|
| `uk-contracts-finder` | UK Contracts Finder (OCDS) | none |
| `ocds-generic` | Any Open Contracting (OCDS) endpoint you supply | none |
| `us-sam-gov` | US SAM.gov Opportunities API | free API key |

Because `ocds-generic` speaks the Open Contracting Data Standard, a single adapter covers the many national portals that publish OCDS — point `ocdsEndpoint` at one and it maps automatically. Adding a new bespoke portal means writing one function in `src/sources.js` that returns the normalized shape.

### Input

| Field | Type | Notes |
|---|---|---|
| `keywords` | array | Match in title/description. Empty = everything in range. |
| `sources` | array | Which portals to query. |
| `ocdsEndpoint` | string | Required if using `ocds-generic`. |
| `samGovApiKey` | string (secret) | Required if using `us-sam-gov`. |
| `sinceDays` | integer | Recency window. |
| `onlyNew` | boolean | Suppress notices seen in earlier runs. |
| `webhookUrl` | string | Optional alert POST. |

### Output (normalized)

```json
{
  "id": "uk-contracts-finder:ocds-b5fd17-...",
  "title": "Supply of network equipment",
  "country": "GB",
  "buyer": "Example County Council",
  "value": 250000,
  "currency": "GBP",
  "publishedDate": "2026-07-02T00:00:00.000Z",
  "deadline": "2026-08-01T00:00:00.000Z",
  "url": "https://www.contractsfinder.service.gov.uk/notice/...",
  "source": "uk-contracts-finder"
}
````

### Monetization (pay-per-event)

- `source-query` — once per source per run.
- `tender` — once per output tender (the value moment; subscribers pay for fresh, matched opportunities).

### Important

Government endpoints change their APIs and rate limits periodically. The UK and OCDS adapters are implemented against documented standards, but **validate each source against live responses before charging customers**, and add adapters for the specific countries your buyers care about. This is exactly the fragmented-but-low-competition niche the market research flagged: whitespace, stable public targets, B2B budgets.

# Actor input Schema

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

Terms to match in tender titles/descriptions, e.g. \["wireless", "network", "RF"]. Leave empty to return all in range.

## `sources` (type: `array`):

Which national portals to pull from.

## `ocdsEndpoint` (type: `string`):

Only used when 'ocds-generic' is selected. An OCDS release-package search/list URL returning JSON.

## `samGovApiKey` (type: `string`):

Only used when 'us-sam-gov' is selected. Get a free key at sam.gov.

## `sinceDays` (type: `integer`):

Only return tenders published within this many days.

## `onlyNew` (type: `boolean`):

Suppress notices already seen in previous runs (dedup via Key-Value Store).

## `includeAwards` (type: `boolean`):

Off by default. Award notices announce contracts that have already been let — their deadline is in the past and they cannot be bid on. Turn on only if you are researching who won past contracts.

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

If set, each matching tender is POSTed as JSON to this URL as it is found — useful for piping alerts into Slack, Make, or n8n.

## Actor input object example

```json
{
  "keywords": [
    "network"
  ],
  "sources": [
    "uk-contracts-finder"
  ],
  "sinceDays": 14,
  "onlyNew": true,
  "includeAwards": false
}
```

# 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": [
        "network"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("swholmes/tender-rfp-aggregator").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": ["network"] }

# Run the Actor and wait for it to finish
run = client.actor("swholmes/tender-rfp-aggregator").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": [
    "network"
  ]
}' |
apify call swholmes/tender-rfp-aggregator --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Multi-Country Tender & RFP Aggregator",
        "description": "Aggregate public-sector tenders and RFPs across national procurement portals into one normalized schema. Dedupes new notices across runs and can POST alerts to a webhook.",
        "version": "0.1",
        "x-build-id": "mu2bBHV1SbxE5EMIU"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/swholmes~tender-rfp-aggregator/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-swholmes-tender-rfp-aggregator",
                "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/swholmes~tender-rfp-aggregator/runs": {
            "post": {
                "operationId": "runs-sync-swholmes-tender-rfp-aggregator",
                "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/swholmes~tender-rfp-aggregator/run-sync": {
            "post": {
                "operationId": "run-sync-swholmes-tender-rfp-aggregator",
                "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": [
                    "sources"
                ],
                "properties": {
                    "keywords": {
                        "title": "Keywords",
                        "type": "array",
                        "description": "Terms to match in tender titles/descriptions, e.g. [\"wireless\", \"network\", \"RF\"]. Leave empty to return all in range.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "sources": {
                        "title": "Sources to query",
                        "type": "array",
                        "description": "Which national portals to pull from.",
                        "items": {
                            "type": "string",
                            "enum": [
                                "uk-contracts-finder",
                                "ocds-generic",
                                "us-sam-gov"
                            ],
                            "enumTitles": [
                                "UK Contracts Finder",
                                "Generic OCDS endpoint",
                                "US SAM.gov (needs API key)"
                            ]
                        },
                        "default": [
                            "uk-contracts-finder"
                        ]
                    },
                    "ocdsEndpoint": {
                        "title": "Generic OCDS endpoint URL",
                        "type": "string",
                        "description": "Only used when 'ocds-generic' is selected. An OCDS release-package search/list URL returning JSON."
                    },
                    "samGovApiKey": {
                        "title": "SAM.gov API key",
                        "type": "string",
                        "description": "Only used when 'us-sam-gov' is selected. Get a free key at sam.gov."
                    },
                    "sinceDays": {
                        "title": "Look back (days)",
                        "minimum": 1,
                        "maximum": 365,
                        "type": "integer",
                        "description": "Only return tenders published within this many days.",
                        "default": 14
                    },
                    "onlyNew": {
                        "title": "Only output new tenders",
                        "type": "boolean",
                        "description": "Suppress notices already seen in previous runs (dedup via Key-Value Store).",
                        "default": true
                    },
                    "includeAwards": {
                        "title": "Include award notices",
                        "type": "boolean",
                        "description": "Off by default. Award notices announce contracts that have already been let — their deadline is in the past and they cannot be bid on. Turn on only if you are researching who won past contracts.",
                        "default": false
                    },
                    "webhookUrl": {
                        "title": "Alert webhook URL (optional)",
                        "type": "string",
                        "description": "If set, each matching tender is POSTed as JSON to this URL as it is found — useful for piping alerts into Slack, Make, or n8n."
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
