# France Public Contract Winners by SIREN (DECP) (`phonic_lily/france-public-contract-winners`) Actor

French public contract winners aggregated by supplier SIREN: contracts, declared total EUR, buyers, CPV codes, region, years. Embedded data, pay per row.

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

## Pricing

$4.00 / 1,000 supplier record returneds

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

## France Public Contract Winners by SIREN (DECP)

French public contract winners aggregated by supplier SIREN: contracts, declared total EUR, buyers, CPV codes, region, years. Embedded data, pay per row.

**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 `supplier-result`), never for empty runs.

### What you get

- 39,490 records, snapshot 2026-07.
- Source licence: Licence Ouverte 2.0 (Etalab).
- 15 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
{
  "departments": [
    "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
{
  "supplier_siren": "005620190",
  "supplier_name": "L'OISEAU BLEU",
  "supplier_size": "ETI",
  "supplier_city": "Abbeville",
  "supplier_department": "Somme",
  "supplier_region": "Hauts-de-France",
  "contracts_count": 15,
  "contracts_with_amount_count": 12,
  "contracts_amount_excluded_count": 0,
  "total_declared_amount_eur": 6427545.0,
  "first_notification_date": "2020-09-14",
  "last_notification_date": "2025-07-02",
  "distinct_buyers_count": 5,
  "top_buyers": [
    {
      "buyer_siret": "24760058800047",
      "buyer_name": "CC DES VILLES SOEURS",
      "contracts": 8
    },
    {
      "buyer_siret": "20007099300015",
      "buyer_name": "CA DE LA BAIE DE SOMME",
      "contracts": 3
    },
    {
      "buyer_siret": "20007093600014",
      "buyer_name": "CC PONTHIEU-MARQUENTERRE",
      "contracts": 2
    },
    {
      "buyer_siret": "20005340300057",
      "buyer_name": "REGION NORMANDIE (HOTEL DE REGION)",
      "contracts": 1
    },
    {
      "buyer_siret": "20007099300072",
      "buyer_name": "CA DE LA BAIE DE SOMME (REGIE DE TRANSPORT)",
      "contracts": 1
    }
  ]
}
```

### Input

Every filter is optional; combine them freely.

- `query` (string): Keyword in supplier name (accent- and case-insensitive substring).
- `supplierSiren` (string): Supplier SIREN (full or partial) (accent- and case-insensitive substring).
- `cpvPrefix` (string): CPV code prefix among the top 5 codes (e.g. 45 for construction). Digits only; matches suppliers whose top 5 CPV codes include one starting with this prefix.
- `departments` (array): Supplier department names (e.g. Haute-Savoie), case-insensitive exact. Records with an empty value never match.
- `regions` (array): Supplier region names (e.g. Bretagne), case-insensitive exact. Records with an empty value never match.
- `supplierSizes` (array): Supplier size: PME, ETI, GE. Records with an empty value never match.
- `minContracts` (number): Min number of contracts. Records with an empty value never match.
- `maxContracts` (number): Max number of contracts. Records with an empty value never match.
- `minTotalAmount` (number): Min total declared amount (EUR). Records with an empty value never match.
- `maxTotalAmount` (number): Max total declared amount (EUR). Records with an empty value never match.
- `minBuyers` (number): Min distinct buyers. Records with an empty value never match.
- `maxBuyers` (number): Max distinct buyers. Records with an empty value never match.
- `lastNotifiedFrom` (string): Last contract notified from. ISO date YYYY-MM-DD (inclusive).
- `lastNotifiedTo` (string): Last contract 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).
- `maxResults` (integer): Max results. Maximum records returned and billed (1..10000).

### Output fields

- `supplier_siren` : Supplier SIREN (9 digits).
- `supplier_name` : Most frequent legal name of the supplier.
- `supplier_size` : PME / ETI / GE, null if unknown.
- `supplier_city` : City of the supplier on its latest contract.
- `supplier_department` : Department name of the supplier.
- `supplier_region` : Region derived from the department, null for overseas collectivities.
- `contracts_count` : Number of distinct contracts.
- `contracts_with_amount_count` : Contracts with a usable declared amount (counted in the total).
- `contracts_amount_excluded_count` : Contracts whose amount was left out because flagged suspect or aberrant.
- `total_declared_amount_eur` : Sum of usable declared amounts in EUR, null if none, never 0.
- `first_notification_date` : Earliest notification date (ISO).
- `last_notification_date` : Latest notification date (ISO).
- `distinct_buyers_count` : Number of distinct buyers (SIRET).
- `top_buyers` : Up to 5 buyers: buyer_siret, buyer_name, contracts.
- `top_cpv_codes` : Up to 5 CPV codes: cpv_code, contracts.
- `top_cpv_codes_list` : Space-separated top CPV codes (used by cpvPrefix).
- `active_years` : Notification years with at least one contract.

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-contract-winners").call(run_input={"departments": ["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-contract-winners/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>" \
  -H "Content-Type: application/json" -d '{"departments": ["Paris"], "maxResults": 10}'
```

### FAQ

**Where does the data come from?** Built from the DECP consolidated dataset (data.gouv.fr, Licence Ouverte 2.0), as already embedded in the four Actors france-public-contracts-decp-2000-2020, -2021-2022, -2023-2024 and -2025-2026 (current data only, notification dates up to 2026-07; suppliers are legal entities only, verified against INSEE SIRENE). One row per supplier SIREN, all years combined. Method: contracts_count counts distinct contract uids (a contract with several co-contractors counts once for each). The declared contract amount (amount_eur) is credited in full to every co-contractor, it is not split between them. total_declared_amount_eur is the sum of the strictly positive declared amounts of the supplier's contracts; contracts whose amount the source flags as suspect or aberrant (amount_flag) are excluded from the sum and counted in contracts_amount_excluded_count; amounts declared as 0 are ignored; the total is null when no usable amount exists, never 0. Supplier name, size, city and department are those of the supplier's most recently notified contract; supplier_region is derived from the department (null for overseas collectivities without a region such as Saint-Martin). top_buyers and top_cpv_codes list the 5 most frequent buyers and CPV codes by number of distinct contracts (ties broken by identifier). Rows whose legal name starts with a civility title (Monsieur, Madame, Dr...) are removed as probable individuals. Aggregates describe notified contracts as published in DECP, which is known to be incomplete and sometimes inaccurate: they are not a measure of a company's revenue.

**How fresh is it?** Snapshot 2026-07. 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

Built from the DECP consolidated dataset (data.gouv.fr, Licence Ouverte 2.0), as already embedded in the four Actors france-public-contracts-decp-2000-2020, -2021-2022, -2023-2024 and -2025-2026 (current data only, notification dates up to 2026-07; suppliers are legal entities only, verified against INSEE SIRENE). One row per supplier SIREN, all years combined. Method: contracts_count counts distinct contract uids (a contract with several co-contractors counts once for each). The declared contract amount (amount_eur) is credited in full to every co-contractor, it is not split between them. total_declared_amount_eur is the sum of the strictly positive declared amounts of the supplier's contracts; contracts whose amount the source flags as suspect or aberrant (amount_flag) are excluded from the sum and counted in contracts_amount_excluded_count; amounts declared as 0 are ignored; the total is null when no usable amount exists, never 0. Supplier name, size, city and department are those of the supplier's most recently notified contract; supplier_region is derived from the department (null for overseas collectivities without a region such as Saint-Martin). top_buyers and top_cpv_codes list the 5 most frequent buyers and CPV codes by number of distinct contracts (ties broken by identifier). Rows whose legal name starts with a civility title (Monsieur, Madame, Dr...) are removed as probable individuals. Aggregates describe notified contracts as published in DECP, which is known to be incomplete and sometimes inaccurate: they are not a measure of a company's revenue.

Snapshot date: 2026-07.

# Actor input Schema

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

Keyword in supplier name (accent- and case-insensitive substring).

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

Supplier SIREN (full or partial) (accent- and case-insensitive substring).

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

Digits only; matches suppliers whose top 5 CPV codes include one starting with this prefix.

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

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

## `regions` (type: `array`):

Supplier region names (e.g. Bretagne), case-insensitive exact. Records with an empty value never match.

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

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

## `minContracts` (type: `number`):

Min number of contracts. Records with an empty value never match.

## `maxContracts` (type: `number`):

Max number of contracts. Records with an empty value never match.

## `minTotalAmount` (type: `number`):

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

## `maxTotalAmount` (type: `number`):

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

## `minBuyers` (type: `number`):

Min distinct buyers. Records with an empty value never match.

## `maxBuyers` (type: `number`):

Max distinct buyers. Records with an empty value never match.

## `lastNotifiedFrom` (type: `string`):

ISO date YYYY-MM-DD (inclusive).

## `lastNotifiedTo` (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).

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

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

## Actor input object example

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

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

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

```

## MCP server setup

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

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/wMqMNVOv64eIqXBfd/builds/duoDw2eLw6Kg29JY6/openapi.json
