# France DECP Public Contracts & Renewals Scraper API (`govdata-api/decp-fr-awarded-contracts`) Actor

Extract awarded French public contracts (DECP v3 Ministry of Economy) with contract value, winning vendor SIREN, CPV code & computed renewal expiration dates to win RFPs 6-12 months early. Zero proxy needed · Official French Government Open Data · MCP & n8n ready.

- **URL**: https://apify.com/govdata-api/decp-fr-awarded-contracts.md
- **Developed by:** [Samuel Godran](https://apify.com/govdata-api) (community)
- **Categories:** Lead generation, AI
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/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

## France DECP Public Contracts & Renewals Scraper API

> **Spot €50k–€10M+ French public contracts expiring in the next 6–12 months — BEFORE the renewal RFP hits BOAMP — with exact awarded price, CPV code, and incumbent vendor SIREN.**

![Zero Proxy](https://img.shields.io/badge/Proxies-Zero%20Required-22c55e) ![Official Gov API](https://img.shields.io/badge/Source-Ministry%20of%20Economy%20DECP%20v3-2563eb) ![Pricing](https://img.shields.io/badge/Pricing-Pay--Per--Event-f59e0b) ![MCP Ready](https://img.shields.io/badge/AI%20%2F%20Automation-MCP%20%26%20n8n%20Ready-8b5cf6)

Extract 700,000+ validated awarded French public contracts (*marchés publics attribués*) directly from the official **French Ministry of Economy DECP v3 (`decp-v3-marches-valides`)** Open Data API.

While competitors wait for tenders to appear on BOAMP, this Actor automatically calculates **`estimatedEndDate`** (`notificationDate + durationMonths`) and **`daysUntilExpiration`** for every contract — turning historical public procurement data into a **predictive pre-RFP pipeline**.

***

### High-ROI Business Use Cases

- **Pre-RFP B2B Sales (*Anticipation de Renouvellements*)**: Set `onlyExpiringWithinMonths: 12` and `cpvPrefix: "72"` (IT services) or `"45"` (construction) to engage public buyers *before* they draft the next RFP specifications (*CCTP*).
- **Competitive Benchmarking & Pricing Intel**: Inspect exact awarded contract values (`amountEur`), procedure types, price revision formulas (`priceForm`), and number of competing bids (`bidsReceived`).
- **Incumbent Displacing & Subcontracting**: Extract the winning supplier's exact 14-digit SIRET and 9-digit SIREN (`winnerSiren1`), then enrich it automatically with our [SIRENE & RNE Company Enricher](https://apify.com/govdata-api/sirene-fr-company-enricher) to find directors, revenue, and headcount.
- **Public Sector Account Mapping**: Identify which French municipalities, hospitals, and ministries already have validated budgets (`minAmountEur: 100000`) for your exact service category.
- **AI GovTech Agents (MCP)**: Query historical French public spending and renewal pipelines conversationally from Claude, Cursor, or Antigravity.

***

### Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `keywords` | `string[]` | `[]` | Optional French keywords matching ANY term in the contract subject (`objet`), e.g. `["maintenance", "informatique", "sécurité", "nettoyage"]`. |
| `cpvPrefix` | `string` | `""` | Optional European CPV code prefix (e.g. `"72"` IT services, `"45"` construction, `"79"` business services, `"90"` cleaning/waste). |
| `departments` | `string[]` | `[]` | Optional execution location / department codes (e.g. `["75", "92", "69"]`). |
| `minAmountEur` | `integer` | `50000` | Minimum awarded contract value in EUR (`0` for no floor). |
| `minNotificationYear` | `integer` | `2023` | Earliest contract notification year (`2018` to `2030`). |
| `onlyExpiringWithinMonths` | `integer` | `0` | If `> 0` (`1` to `48`), strictly returns contracts whose `estimatedEndDate` falls between today and `X` months from now — ideal for pre-RFP renewal outreach. |
| `maxResults` | `integer` | `100` | Maximum awarded contracts to return (`1` to `5000`). |

***

### Real Input & Verified Output Example

#### Example Input (JSON)

```json
{
  "cpvPrefix": "72",
  "minAmountEur": 50000,
  "minNotificationYear": 2023,
  "onlyExpiringWithinMonths": 12,
  "maxResults": 100
}
```

#### Real Verified Output (Live Ministry of Economy DECP v3 Record)

```json
{
  "id": "2023X15000",
  "subject": "MISE EN OEUVRE EXPLOITATION MAINTENANCE HEBERGEMENT ET EVOLUTION DE LA SOLUTION SOUS LICENCE LIBRE OPEN ENT NG A DESTINATION DES MEMBRES DE LA CENTRALE ACHAT TERRITOIRE NUMERIQUE EDUCATIF VOSGES",
  "amountEur": 300000,
  "durationMonths": 37,
  "notificationDate": "2023-12-29",
  "estimatedEndDate": "2027-01-29",
  "daysUntilExpiration": 63,
  "cpvCode": "72000000-5",
  "nature": "Accord-cadre",
  "procedure": "Appel d'offres ouvert",
  "priceForm": "Révisable",
  "buyerId": "22880001700011",
  "buyerSiren": "228800017",
  "buyerName": "",
  "locationCode": "88",
  "locationName": "LES VOSGES",
  "winnerId1": "52878432500045",
  "winnerSiren1": "528784325",
  "winnerIdType1": "SIRET",
  "winnerName2": "",
  "winnerId2": "",
  "bidsReceived": null,
  "isInnovative": false,
  "hasEnvironmentalClause": false,
  "dataPublishedDate": "2023-12-29",
  "winnerAnnuaireUrl": "https://annuaire-entreprises.data.gouv.fr/entreprise/528784325"
}
```

***

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

Zero monthly commitment, zero proxy overhead — pay only per contract record extracted:

| Event Name | Description | Price (USD) |
|---|---|---|
| `actor-start` | Charged once per Actor run startup | `$0.005` |
| `result-item` | One awarded DECP contract enriched with expiration & renewal countdown | `$0.025` |

#### Estimated Cost Examples

| Volume | Calculation | Total Cost (USD) |
|---|---|---|
| **100 contracts** | `$0.005 + (100 × $0.025)` | **`$2.505`** (~$2.51) |
| **1,000 contracts** | `$0.005 + (1,000 × $0.025)` | **`$25.005`** (~$25.01) |

> **Budget cap built-in**: Use Apify's `maxTotalChargeUsd` setting to enforce strict spend limits automatically.

***

### Integrations: n8n, Make, API & AI Agents (MCP)

#### 1. n8n / Make.com / Zapier (Direct Sync HTTP Webhook)

Automate a weekly pre-RFP pipeline straight into HubSpot, Notion, or Slack:

```http
POST https://api.apify.com/v2/acts/govdata-api~decp-fr-awarded-contracts/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN
Content-Type: application/json

{
  "cpvPrefix": "72",
  "minAmountEur": 100000,
  "minNotificationYear": 2023,
  "onlyExpiringWithinMonths": 12,
  "maxResults": 50
}
```

#### 2. Node.js (`apify-client`)

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });

const run = await client.actor('govdata-api/decp-fr-awarded-contracts').call({
  cpvPrefix: '72',
  minAmountEur: 50000,
  minNotificationYear: 2023,
  onlyExpiringWithinMonths: 12,
  maxResults: 50,
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

#### 3. Python (`apify-client`)

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")

run = client.actor("govdata-api/decp-fr-awarded-contracts").call(run_input={
    "cpvPrefix": "72",
    "minAmountEur": 50000,
    "minNotificationYear": 2023,
    "onlyExpiringWithinMonths": 12,
    "maxResults": 50,
})

items = list(client.dataset(run["defaultDatasetId"]).iterate_items())
print(f"Found {len(items)} expiring French public contracts")
```

#### 4. AI Agents via Apify MCP Server (Claude Desktop, Cursor, Antigravity)

```json
{
  "mcpServers": {
    "apify-decp-fr": {
      "url": "https://mcp.apify.com?actors=govdata-api/decp-fr-awarded-contracts",
      "headers": {
        "Authorization": "Bearer YOUR_APIFY_TOKEN"
      }
    }
  }
}
```

*Example prompt*: `"Find French public IT contracts (CPV 72) worth over €100,000 expiring in the next 12 months and sort them by daysUntilExpiration so our sales team can prepare outreach."`

***

### Part of the Official France Open Data Suite by `govdata-api`

**Winning Playbook**: Extract expiring contracts with **DECP** -> enrich `winnerSiren1` & `buyerSiren` via **SIRENE & RNE Enricher** -> monitor the official renewal RFP on **BOAMP**:

| Actor | Official Government Source | Primary Use Case |
|---|---|---|
| **[France DECP Public Contracts & Renewals Scraper API](https://apify.com/govdata-api/decp-fr-awarded-contracts)** *(this Actor)* | Ministry of Economy (DECP v3) | Awarded public contracts > €50k + computed 6–12 month renewal dates |
| **[France BOAMP Public Tenders & RFP Scraper API](https://apify.com/govdata-api/boamp-fr-public-tenders)** | DILA / BOAMP (1.7M+ tenders) | Active French public RFPs (*appels d'offres*) with deadline countdown |
| **[France SIRENE & RNE Company Enricher & Leads API](https://apify.com/govdata-api/sirene-fr-company-enricher)** | DINUM / INSEE / INPI | Bulk SIREN enrichment, directors, revenue, RGE/Qualiopi & RGPD status |
| **[France BODACC Scraper — Insolvency, Liquidations & M\&A](https://apify.com/govdata-api/bodacc-fr-insolvency-radar)** | DILA / BODACC (51M+ notices) | Bankruptcies, liquidators, art. L.622-24 deadlines, M\&A sales & creations |
| **[France ADEME DPE Energy Audit Leads (F/G Scraper)](https://apify.com/govdata-api/ademe-fr-dpe-energy-leads)** | ADEME (`dpe03existant`) | Geocoded F/G *passoires thermiques* leads by postal code, fuel & m² |

***

### Legal & Data Source

## Data is sourced live from the official French Ministry of Economy open data portal (**`data.economie.gouv.fr` — `decp-v3-marches-valides`**) under **Licence Ouverte / Open Licence 2.0 (Etalab)**.

### Legal Notice & Open Data Licence

This Actor is an **independent API wrapper operated by GovData API** and is **not affiliated with, endorsed by, or officially connected to** any French or European government agency. All records are queried in real time from public government APIs (Official French Ministry of Economy DECP v3 API (Etalab Open Licence 2.0)). Users are solely responsible for complying with GDPR and applicable data-use regulations when processing extracted records.

# Actor input Schema

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

Match contracts whose title (objet) contains ANY of these keywords (e.g. \['informatique', 'maintenance', 'sécurité', 'nettoyage']).

## `cpvPrefix` (type: `string`):

Filter by European CPV code prefix (e.g. '72' for IT services, '45' for construction, '79' for business services).

## `departments` (type: `array`):

Filter by execution location code (e.g. \['75', '92', '69']).

## `minAmountEur` (type: `integer`):

Only return contracts equal to or above this amount in euros.

## `minNotificationYear` (type: `integer`):

Minimum notification year (e.g. 2023).

## `onlyExpiringWithinMonths` (type: `integer`):

If > 0, filter to contracts whose estimated end date (datenotification + dureemois) falls between today and X months from now — ideal for B2B pre-RFP outreach.

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

Maximum number of awarded contracts to return.

## Actor input object example

```json
{
  "keywords": [],
  "cpvPrefix": "",
  "departments": [],
  "minAmountEur": 50000,
  "minNotificationYear": 2023,
  "onlyExpiringWithinMonths": 0,
  "maxResults": 100
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("govdata-api/decp-fr-awarded-contracts").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("govdata-api/decp-fr-awarded-contracts").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call govdata-api/decp-fr-awarded-contracts --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,govdata-api/decp-fr-awarded-contracts"
        }
    }
}
```

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/zefE3fmARRZn9DWY5/builds/1nrp9i71bUrjiswBw/openapi.json
