# UK & France Government Tenders Scraper (OCDS & BOAMP) (`whthpnd/uk-france-public-tenders-scraper`) Actor

Unified, proxy-free public procurement scraper combining UK Contracts Finder (OCDS API) and France BOAMP government tenders. Extract tender titles, buyer names, contact emails, phone numbers, CPV codes, contract values, and submission deadlines.

- **URL**: https://apify.com/whthpnd/uk-france-public-tenders-scraper.md
- **Developed by:** [DirectAPI Labs](https://apify.com/whthpnd) (community)
- **Categories:** Lead generation, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.10 / 1,000 result items

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## UK & France Government Tenders Scraper (OCDS & BOAMP)

Unified, **proxy-free** European public procurement scraper (`256 MB` RAM) combining official **UK Contracts Finder (OCDS API)** and **France BOAMP (`boamp.fr` OpenDataSoft API v2.1)** tenders into one clean, B2B-ready schema.

### Why Use This Actor?

- **Direct Buyer Emails & Phone Numbers:** Unlike EU-wide summaries, UK Contracts Finder and France BOAMP frequently include `buyerEmail`, `buyerPhone`, and named procurement contacts directly in the tender record.
- **Two Major Procurement Markets Together:** Track active UK public sector opportunities (`GB`, `GBP`) alongside French national and municipal tenders (`FR`, `EUR`) in one run — a natural companion to `TED Europa` for below-threshold national contracts.
- **Keyword & Date Filtering:** Filter by `searchQuery` and `publishedFrom` across both sources cleanly.
- **High-Reliability Official JSON APIs:** No fragile HTML scraping or headless browsers; runs on `256 MB` RAM with zero proxy costs.

### Input Parameters

| Field | Type | Default | Description |
|---|---|---|---|
| `sources` | Array | `["uk", "france"]` | Procurement portals to include (`uk`, `france`). |
| `searchQuery` | String | `""` | Optional keyword filter (e.g., `software`, `cloud`, `construction`). |
| `publishedFrom` | String | `""` | Optional `YYYY-MM-DD` lower publication date filter. |
| `maxNoticesPerSource` | Integer | `15` | Maximum tenders extracted per portal (`1`–`200`). |

#### Example Input

```json
{
  "sources": ["uk", "france"],
  "searchQuery": "software",
  "publishedFrom": "2026-11-01",
  "maxNoticesPerSource": 50
}
```

### Output Format

Each dataset item represents one normalized public tender notice:

```json
{
  "country": "GB",
  "source": "uk_contracts_finder",
  "noticeId": "CW111086",
  "title": "Cloud Hosting & Managed Infrastructure Contract",
  "description": "End-to-end managed infrastructure and cloud support services...",
  "status": "active",
  "buyerName": "Happywoods Nursery",
  "buyerEmail": "juan@happywoods.co.uk",
  "buyerPhone": "07715403399",
  "buyerWebsite": null,
  "valueAmount": 500000,
  "currency": "GBP",
  "cpvCode": "45211350",
  "publishedDate": "2026-11-24",
  "deadlineDate": "2026-12-01",
  "url": "https://www.contractsfinder.service.gov.uk/Notice/14691e1c-1b86-4ae9-b519-0d65e0fc162b"
}
```

### Pricing & Cost Efficiency

- **Pricing model:** Pay-Per-Event (`$0.00005` start + `$0.0025` base per tender, discounted to `$0.0019` on Diamond tier).
- **Compute footprint:** Default `256 MB` RAM (~`$0.0001` platform compute) with **no proxies needed**.

### Integrations & Automation

Stream daily government contract leads into **n8n**, **Make**, **HubSpot**, **Slack**, **Google Sheets**, or **AI Bid-Qualification Agents (MCP)**.

### FAQ

**Does the UK portal return active open tenders?**
Yes — it queries `stages=tender` by default to focus on active procurement opportunities rather than historical closed awards.

**Can I run only UK or only France?**
Yes — pass `["uk"]` or `["france"]` in `sources`.

**Why are UK contract values populated more often than French BOAMP values?**
UK OCDS structured releases provide dedicated `tender.value.amount` fields, whereas French BOAMP notices focus on notice title, buyer (`nomacheteur`), department, and deadline.

**Are proxies required?**
No — both official government APIs are publicly accessible from Apify Cloud.

# Actor input Schema

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

Government tender sources to query (supported: uk, france).

## `searchQuery` (type: `string`):

Optional keyword filter matched across tender title, description, or buyer.

## `publishedFrom` (type: `string`):

Only include tenders published on or after this date.

## `maxNoticesPerSource` (type: `integer`):

Maximum number of notices to extract from each selected portal.

## Actor input object example

```json
{
  "sources": [
    "uk",
    "france"
  ],
  "maxNoticesPerSource": 15
}
```

# Actor output Schema

## `tenders` (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 = {
    "sources": [
        "uk",
        "france"
    ],
    "maxNoticesPerSource": 15
};

// Run the Actor and wait for it to finish
const run = await client.actor("whthpnd/uk-france-public-tenders-scraper").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 = {
    "sources": [
        "uk",
        "france",
    ],
    "maxNoticesPerSource": 15,
}

# Run the Actor and wait for it to finish
run = client.actor("whthpnd/uk-france-public-tenders-scraper").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 '{
  "sources": [
    "uk",
    "france"
  ],
  "maxNoticesPerSource": 15
}' |
apify call whthpnd/uk-france-public-tenders-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,whthpnd/uk-france-public-tenders-scraper"
        }
    }
}
```

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/ec1aGIo4BWApbGiLO/builds/FIYbd5tOcQGyV11vF/openapi.json
