# France Public Sector Late Payers: Payment Times (`digital_influx/france-public-payment-times`) Actor

How long French communes, departments, regions and 90,000 other local public budgets take to pay their suppliers, from the official yearly figures: average payment time in days, days over the 30-day legal limit, and the trend from 2023 to 2025. Search by department, name, SIRET or kind of body.

- **URL**: https://apify.com/digital_influx/france-public-payment-times.md
- **Developed by:** [Bruno Petrelli](https://apify.com/digital_influx) (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 $10.00 / 1,000 public body payment record saveds

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 Sector Late Payers: Payment Times

**How long French communes, departments, regions and other local public bodies take to pay their suppliers**, from the official figures the French Ministry of Economy publishes every year: about 90,000 local public budgets, each with its **average payment time in days** (the *délai global de paiement*). This Actor finds the ones you ask for, slowest payers first, and adds what the yearly files do not show side by side: **the figures of 2023, 2024 and 2025 and the trend**.

The legal limit for French local authorities and their public bodies is 30 days (article R2192-10 of the *code de la commande publique*). Thousands of them pay later than that.

No login, no API key, no proxies: the data is open (Licence Ouverte 2.0).

### Who uses it

- **Companies that sell to the French public sector** (construction, services, software, supplies): check how long a town hall or a syndicate takes to pay before you bid, and price the delay in.
- **Factoring and invoice finance:** suppliers of public bodies that pay in 60, 100 or 200 days need their cash sooner, and a public debtor is a safe one.
- **Journalists, elected officials and researchers:** the slowest payers of a department, and who got better or worse since 2023.
- **Credit and risk teams:** a public customer is not always a fast payer.

### What you get

One row per budget of a public body (a commune has its main budget and often annex budgets for water, transport or other services; each has its own figure):

| Field | Example |
|---|---|
| `name` | MAMOUDZOU |
| `siret`, `siren` | 20000883700011, 200008837 |
| `departmentCode`, `department` | 976, MAYOTTE |
| `entityType` | Commune (the source's 35 kinds: Commune, Département, Région, Ccas-Cias, Sivu, Eau assainissement...) |
| `budgetCode` | BP (main budget), BA (annex budget), BR, as the source writes it |
| `year` | 2025 |
| `averagePaymentDays` | 207.7 |
| `overLegalLimit`, `daysOverLegalLimit` | true, 177.7 (days over the 30-day limit) |
| `previousYearDays`, `changeVsPreviousYear`, `trend` | 144.31, 63.39, slower |
| `daysByYear` | { "2023": 72.86, "2024": 144.31, "2025": 207.7 } |
| `annuaireUrl` | The body's page in the French government's company directory |

The run's **OUTPUT** record has the rows found per search, the median of the saved rows, how many are over the legal limit and the attribution.

### Input

```json
{
  "entityTypes": ["commune"],
  "minAverageDays": 60,
  "maxResults": 20
}
```

| Field | What it does |
|---|---|
| `departments` | Codes (`75`, `13`, `2A`, `971`) or names (`Paris`, `Bouches-du-Rhône`). Empty = all of France. |
| `entityTypes` | Communes, departments, regions, intermunicipal bodies, syndicates, social action centres, water, fire services, transport, school funds. Empty = all. |
| `names` | Find bodies by name. Accents, hyphens and capitals do not matter: `saint etienne` finds SAINT ETIENNE METROPOLE. |
| `sirets` | Look up bodies by SIRET (14 digits). |
| `minAverageDays` | Average payment time of N days or more. |
| `year` | 2025 (default), 2024 or 2023. |
| `compareYears` | On by default: adds the other years' figures, the change and the trend. |
| `maxResults` | Rows saved per run, slowest first (default 100, up to 2,000). |

### Price

You pay per row saved. Searches that find nothing and invalid inputs cost nothing.

**Free Apify plan:** a run saves at most 25 rows. Any paid Apify plan removes that limit.

### Things to know

- **The figures are yearly averages** for each budget, as of 31 December. Each year's file comes out in the middle of the next year: 2025 is the newest.
- **The delay covers the whole public chain:** the body that approves the invoice and the public accountant who pays it.
- **Some figures are extreme** (over 1,000 days for a few water bodies overseas). They are given as published.
- **A body missing from a year's file has no figure for that year** (`null` in `daysByYear`), and then no trend.
- **A name search reads the name's longest word and compares the whole name here**, because the files write some names with hyphens and others without. A very common name (over 1,000 budgets) asks you to add a department.
- **The source is slow.** data.gouv.fr's tabular API takes 3 to 30 seconds per query, so a run takes from 10 seconds to a couple of minutes. Queries that fail are tried again.
- The API is read with a User-Agent that names this Actor, at most 3 queries at a time (its documented limit is 100 per second).

### Attribution

Source: "Délais de paiement des collectivités territoriales", Ministères économiques et financiers, published on [data.gouv.fr](https://www.data.gouv.fr/) under the [Licence Ouverte / Open Licence 2.0](https://www.etalab.gouv.fr/licence-ouverte-open-licence/).

# Actor input Schema

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

French departments by code (75, 13, 2A, 971) or by name (Paris, Bouches-du-Rhône). Empty = all of France.

## `entityTypes` (type: `array`):

Empty = all kinds (35 in the source, also budgets of local public services).

## `names` (type: `array`):

Find public bodies by name: Marseille, Saint-Étienne, Neuilly-le-Bisson. Accents, hyphens and capitals do not matter. Each name is one search; add a department when the name is common.

## `sirets` (type: `array`):

Look up public bodies by their 14-digit SIRET. The other filters are not applied to these.

## `minAverageDays` (type: `integer`):

Only bodies whose yearly average payment time is this many days or more. The legal limit for French local authorities is 30 days. Empty = any.

## `year` (type: `string`):

The year of the figures. Each year's file is published in the middle of the next year.

## `compareYears` (type: `boolean`):

On: each row also gets the average of the other years (2023 to 2025), the change against the year before and the trend. It takes two more queries per 100 rows.

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

Rows saved per run, slowest payers first; you pay per row saved. On the free Apify plan a run saves at most 25 rows; any paid Apify plan removes that limit.

## Actor input object example

```json
{
  "entityTypes": [
    "commune"
  ],
  "minAverageDays": 60,
  "year": "2025",
  "compareYears": true,
  "maxResults": 20
}
```

# Actor output Schema

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

No description

## `summary` (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 = {
    "entityTypes": [
        "commune"
    ],
    "minAverageDays": 60,
    "maxResults": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("digital_influx/france-public-payment-times").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 = {
    "entityTypes": ["commune"],
    "minAverageDays": 60,
    "maxResults": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("digital_influx/france-public-payment-times").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 '{
  "entityTypes": [
    "commune"
  ],
  "minAverageDays": 60,
  "maxResults": 20
}' |
apify call digital_influx/france-public-payment-times --silent --output-dataset

```

## MCP server setup

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

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/oKxDCM6obeXAtRuvZ/builds/dqzG527qhr5BcqKDP/openapi.json
