# France Public Procurement Contracts (DECP) 2000-2026 (`phonic_lily/france-public-contracts-decp`) Actor

Use this tool when you need to see who won which French public contracts, for how much and against how many bids, by buyer, supplier SIREN, CPV code or region.

- **URL**: https://apify.com/phonic_lily/france-public-contracts-decp.md
- **Developed by:** [Henri bousquet](https://apify.com/phonic_lily) (community)
- **Categories:** Business
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.80 / 1,000 records

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

### What this Actor does

See who won which French public contracts, for how much and against how many bids, by buyer, supplier SIREN, CPV code or region.

### Who uses it

- **Bid manager at a French SME**: Search object and cpv_code for past contracts like the next tender, with amount_eur and offers_received.
- **Investigative journalist**: List one buyer_siret's contracts by supplier_name and procedure to spot repeat awards with few offers.
- **Public procurement researcher**: Compare offers_received by procedure and buyer_region across notification_year.
- **Sales director of a service firm**: Run watch mode on a cpv_code and buyer_department to get only contracts added since the last run.

**No scraping, no live dependency, no login**: the data is embedded in the Actor and searched locally. You pay per record returned (pay-per-event `contract-result`), never for empty runs.

### What you get

- 1,056,588 records, snapshot 2026-11-12.
- Source licence: Licence Ouverte 2.0 (Etalab).
- 22 input filters, all optional and combinable; results export as JSON, CSV, Excel, XML or HTML from the console or the API.

### Quick start

Press **Try for free** with the pre-filled input, or paste it into the Input tab:

```json
{
  "buyerDepartments": [
    "Paris"
  ],
  "maxResults": 10
}
```

That run returns up to 10 records and costs about $0.04 (10 x $0.004). A run of 1,000 records costs $4.00. `maxResults` (up to 10,000) caps both the output and the bill.

### Example output

One real record from the data, columns as returned:

```json
{
  "contract_key": "130001902003321513982495|54950120300059",
  "contract_uid": "130001902003321513982495",
  "notification_date": "2026-11-06",
  "notification_year": 2026,
  "supplier_siren": "549501203",
  "supplier_siret": "54950120300059",
  "supplier_name": "ETABLISSEMENTS DEGREANE",
  "supplier_size": "GE",
  "supplier_city": "La Farlède",
  "supplier_department": "Var",
  "buyer_siret": "13000190200332",
  "object": "Le marché porte sur des travaux de refonte ou de rénovation des postes électriques de transformatio…",
  "amount_eur": 1804151.5,
  "amount_normalised_eur": 1804151.5,
  "cpv_code": "45453000",
  "procedure": "Procédure adaptée",
  "nature": "Marché",
  "duration_months": 34,
  "offers_received": 5,
  "innovative": false
}
```

### Input

Every filter is optional; combine them freely.

- `query` (string): Keyword in object, supplier or buyer name (accent- and case-insensitive substring).
- `supplierSiren` (string): Supplier SIREN (accent- and case-insensitive substring).
- `buyerSiret` (string): Buyer SIRET (full or partial) (accent- and case-insensitive substring).
- `cpvPrefix` (string): CPV code (full or prefix, e.g. 45) (accent- and case-insensitive substring).
- `buyerDepartments` (array): Buyer department names (e.g. Haute-Savoie), case-insensitive exact. Records with an empty value never match.
- `supplierDepartments` (array): Supplier department names (exact, case-insensitive). Records with an empty value never match.
- `buyerRegions` (array): Buyer region names (exact, case-insensitive). Records with an empty value never match.
- `procedures` (array): Procedure (exact text). Records with an empty value never match.
- `natures` (array): Contract nature (Marche, ...). Records with an empty value never match.
- `supplierSizes` (array): Supplier size: PME, ETI, GE. Records with an empty value never match.
- `notificationYears` (array): Notification years (e.g. 2025). Records with an empty value never match.
- `minAmountEur` (number): Min amount (EUR). Records with an empty value never match.
- `maxAmountEur` (number): Max amount (EUR). Records with an empty value never match.
- `minOffers` (number): Min offers received. Records with an empty value never match.
- `maxOffers` (number): Max offers received. Records with an empty value never match.
- `notifiedFrom` (string): Notified from. ISO date YYYY-MM-DD (inclusive).
- `notifiedTo` (string): Notified to. ISO date YYYY-MM-DD (inclusive).
- `sortBy` (string): Sort by. Sort order of results. Default: file order (or distance when a radius is given).
- `onlyNewSinceLastRun` (boolean): Only new since my last run. Watch mode: return only records that appeared since your previous run with the same watch name, oldest first. Schedule the Actor (hourly, daily, weekly) to get an alert feed. Nothing is billed when there is nothing new. Sorting is ignored in this mode.
- `watchName` (string): Watch name. Name of the watch. Use one name per saved search so each keeps its own position.
- `lookbackDays` (integer): First run: days of history. First run of a watch only: return the records published within this many days before the newest matching record.
- `resetWatch` (boolean): Reset this watch. Forget the position of this watch and start again as a first run.
- `maxResults` (integer): Max results. Maximum records returned and billed (1..10000).

### Output fields

- `contract_key` : Contract uid + supplier SIRET (unique; suffix #n when the source reuses a uid for the same supplier).
- `contract_uid` : DECP contract uid (shared by co-contractors).
- `notification_date` : Notification date (ISO), null if invalid.
- `notification_year` : Year.
- `supplier_siren` : Supplier SIREN.
- `supplier_siret` : Supplier SIRET.
- `supplier_name` : Supplier legal name.
- `supplier_size` : PME / ETI / GE, null if unknown.
- `supplier_city` : Supplier city.
- `supplier_department` : Supplier department name.
- `buyer_siret` : Buyer SIRET.
- `buyer_name` : Buyer name.
- `buyer_city` : Buyer city.
- `buyer_department` : Buyer department name.
- `buyer_region` : Buyer region.
- `object` : Contract object (first 500 chars).
- `amount_eur` : Declared amount EUR, null if absent.
- `amount_normalised_eur` : Source-normalised amount EUR, null if absent.
- `amount_flag` : suspect / aberrant / null.
- `cpv_code` : CPV code.
- `procedure` : Procedure.
- `nature` : Nature.
- `duration_months` : Duration in months.
- `offers_received` : Offers received, null if not declared.
- `innovative` : Innovative contract flag.

Every record also carries `license` and `attribution` so you can republish with the required credit. Empty values are returned as `null` (never as 0).

### Call it from code

```python
from apify_client import ApifyClient
client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("phonic_lily/france-public-contracts-decp").call(run_input={"buyerDepartments": ["Paris"], "maxResults": 10})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

```bash
curl -X POST "https://api.apify.com/v2/acts/phonic_lily~france-public-contracts-decp/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>" \
  -H "Content-Type: application/json" -d '{"buyerDepartments": ["Paris"], "maxResults": 10}'
```

### Pricing

Pay per event: $0.004 per record returned, no start fee, nothing billed for an empty run.

| Records returned | Cost |
|---|---|
| 10 | $0.04 |
| 100 | $0.40 |
| 1,000 | $4.00 |
| 10,000 | $40.00 |

The price drops with your Apify plan (the Store header shows the lowest one, "from"):

| Apify plan | Per record | Per 1,000 records |
|---|---|---|
| Free | $0.004 | $4.00 |
| Starter | $0.0036 | $3.60 |
| Scale | $0.0032 | $3.20 |
| Business | $0.0028 | $2.80 |

### Use it from an AI agent (MCP)

Add this Actor as a tool to Claude, Cursor or any MCP client through the Apify MCP server:

```
https://mcp.apify.com?tools=phonic_lily/france-public-contracts-decp
```

The agent gets the input schema above and pays per record like any other run.

### FAQ

**Where does the data come from?** DECP consolidated tabular dataset (data.gouv.fr, Licence Ouverte 2.0), current data only (superseded modifications excluded), notification dates from 2000 to 2026-07. One row per supplier per contract (contract_key = uid|supplier SIRET). A supplier row is kept only if the supplier is a legal entity: confirmed by the INSEE SIRENE extract (not an individual entrepreneur, fully diffusible), or, when absent from the extract, classified ETI/GE or carrying a company legal form in its name. Rows with no supplier SIREN or an unverifiable supplier (possible individual) are dropped. Amounts are as declared: amount_flag marks values the source qualifies as suspect or aberrant; amount fields are null when absent, never 0. Offers received and duration are null when not declared. Dates before 2000 are source errors and set to null. All years 2000-2026 are in this single Actor (plus 108 rows with no usable notification date). When the source reuses the same contract uid for the same supplier on distinct lots, the repeated rows keep their own line and their contract_key gets a suffix #2, #3, ... (2,121 keys), so the key stays unique.

**How fresh is it?** Snapshot 2026-11-12. The data is embedded in the Actor and updated when the publisher rebuilds it, so a run never depends on a live source and never fails because a site is down.

**What does a run cost?** $0.004 per returned record, nothing for runs that return no record. Apify free plan credit ($5) covers about 1,250 records.

**Do I need a proxy, an account on the source or a browser?** No: the Actor reads its own embedded file.

### Data and licence

DECP consolidated tabular dataset (data.gouv.fr, Licence Ouverte 2.0), current data only (superseded modifications excluded), notification dates from 2000 to 2026-07. One row per supplier per contract (contract_key = uid|supplier SIRET). A supplier row is kept only if the supplier is a legal entity: confirmed by the INSEE SIRENE extract (not an individual entrepreneur, fully diffusible), or, when absent from the extract, classified ETI/GE or carrying a company legal form in its name. Rows with no supplier SIREN or an unverifiable supplier (possible individual) are dropped. Amounts are as declared: amount_flag marks values the source qualifies as suspect or aberrant; amount fields are null when absent, never 0. Offers received and duration are null when not declared. Dates before 2000 are source errors and set to null. All years 2000-2026 are in this single Actor (plus 108 rows with no usable notification date). When the source reuses the same contract uid for the same supplier on distinct lots, the repeated rows keep their own line and their contract_key gets a suffix #2, #3, ... (2,121 keys), so the key stays unique.

Snapshot date: 2026-11-12.

### Watch mode (new records only)

Set `onlyNewSinceLastRun` to true and schedule the Actor: each run returns only the records that appeared since your last run with the same `watchName` (field `notification_date`), oldest first, and bills nothing when there is nothing new. The data is refreshed by the publisher; see the snapshot date above.

### More from this publisher

- [France Public Contract Winners by SIREN (DECP)](https://apify.com/phonic_lily/france-public-contract-winners)

# Actor input Schema

## `query` (type: `string`):

Keyword in object, supplier or buyer name (accent- and case-insensitive substring).

## `supplierSiren` (type: `string`):

Supplier SIREN (accent- and case-insensitive substring).

## `buyerSiret` (type: `string`):

Buyer SIRET (full or partial) (accent- and case-insensitive substring).

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

CPV code (full or prefix, e.g. 45) (accent- and case-insensitive substring).

## `buyerDepartments` (type: `array`):

Buyer department names (e.g. Haute-Savoie), case-insensitive exact. Records with an empty value never match.

## `supplierDepartments` (type: `array`):

Supplier department names (exact, case-insensitive). Records with an empty value never match.

## `buyerRegions` (type: `array`):

Buyer region names (exact, case-insensitive). Records with an empty value never match.

## `procedures` (type: `array`):

Procedure (exact text). Records with an empty value never match.

## `natures` (type: `array`):

Contract nature (Marche, ...). Records with an empty value never match.

## `supplierSizes` (type: `array`):

Supplier size: PME, ETI, GE. Records with an empty value never match.

## `notificationYears` (type: `array`):

Notification years (e.g. 2025). Records with an empty value never match.

## `minAmountEur` (type: `number`):

Min amount (EUR). Records with an empty value never match.

## `maxAmountEur` (type: `number`):

Max amount (EUR). Records with an empty value never match.

## `minOffers` (type: `number`):

Min offers received. Records with an empty value never match.

## `maxOffers` (type: `number`):

Max offers received. Records with an empty value never match.

## `notifiedFrom` (type: `string`):

ISO date YYYY-MM-DD (inclusive).

## `notifiedTo` (type: `string`):

ISO date YYYY-MM-DD (inclusive).

## `sortBy` (type: `string`):

Sort order of results. Default: file order (or distance when a radius is given).

## `onlyNewSinceLastRun` (type: `boolean`):

Watch mode: return only records that appeared since your previous run with the same watch name, oldest first. Schedule the Actor (hourly, daily, weekly) to get an alert feed. Nothing is billed when there is nothing new. Sorting is ignored in this mode.

## `watchName` (type: `string`):

Name of the watch. Use one name per saved search so each keeps its own position.

## `lookbackDays` (type: `integer`):

First run of a watch only: return the records published within this many days before the newest matching record.

## `resetWatch` (type: `boolean`):

Forget the position of this watch and start again as a first run.

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

Maximum records returned and billed (1..10000).

## Actor input object example

```json
{
  "buyerDepartments": [
    "Paris"
  ],
  "onlyNewSinceLastRun": false,
  "watchName": "default",
  "lookbackDays": 30,
  "resetWatch": false,
  "maxResults": 10
}
```

# Actor output Schema

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

Dataset items returned by the run.

# 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 = {
    "buyerDepartments": [
        "Paris"
    ],
    "maxResults": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("phonic_lily/france-public-contracts-decp").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 = {
    "buyerDepartments": ["Paris"],
    "maxResults": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("phonic_lily/france-public-contracts-decp").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 '{
  "buyerDepartments": [
    "Paris"
  ],
  "maxResults": 10
}' |
apify call phonic_lily/france-public-contracts-decp --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,phonic_lily/france-public-contracts-decp"
        }
    }
}
```

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/wJAHbGNUI8ofTYVGe/builds/5Ora7Ziq1zo0bZ5Ds/openapi.json
