# BOAMP France Marchés Publics API (`aspiring_barricade/boamp-france-marches-publics-api`) Actor

Recherche des marchés publics français via l'open data officiel BOAMP (DILA). Scoring de pertinence, déduplication et mode alerte nouveautés. JSON propre.

- **URL**: https://apify.com/aspiring\_barricade/boamp-france-marches-publics-api.md
- **Developed by:** [Joachim Pouchain](https://apify.com/aspiring_barricade) (community)
- **Categories:** Developer tools, Automation, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## BOAMP France Marchés Publics API — French Public Tenders Scraper

Recherchez les **marchés publics français** via l'open data officiel **BOAMP** (Bulletin officiel des annonces des marchés publics, DILA) et obtenez un jeu de données plat et propre, avec un **score de pertinence** intégré, une **déduplication** automatique et un **mode alerte nouveautés** pour la veille programmée. Ce scraper BOAMP transforme le flux officiel des appels d'offres français en JSON, CSV ou Excel prêts à l'emploi pour la prospection B2G, la veille concurrentielle, la conformité et les pipelines IA/RAG.

> English summary: search **French public tenders** from the official BOAMP open data API. Keyword **relevance scoring**, **deduplication** and **new-only alerts**, exported as clean JSON/CSV/Excel.

Contrairement à un export brut, chaque avis est **noté de 0 à 100** selon vos mots-clés et **dédupliqué**, pour faire remonter d'abord les opportunités les plus pertinentes.

### Pourquoi cet actor / Why this actor

- **Source officielle, sans scraping risqué.** Les données proviennent de l'API open data BOAMP de la DILA — aucun proxy résidentiel, aucun contournement anti-bot.
- **Score de pertinence (0–100).** Vos mots-clés sont pondérés sur l'objet et les descripteurs. Triez ou filtrez par `relevance_score`. La plupart des concurrents renvoient un export non classé.
- **Déduplication.** Les avis republiés sont regroupés via une clé stable (`notice_id` + acheteur + date).
- **Mode alerte nouveautés.** En run programmé, ne renvoyez *que* les avis jamais vus — idéal pour une veille quotidienne/hebdomadaire sans retraiter les mêmes lignes.
- **Schéma plat stable.** Mêmes noms de champs que nos actors TED et Awards : votre pipeline ne casse jamais.

### Entrée / Input

| Champ | Type | Description |
|-------|------|-------------|
| `mots_cles` | array | Termes recherchés en plein texte (objet, acheteur…), combinés en OU. **Requis.** |
| `departement` | array | Codes département (ex : `75`, `69`, `13`). |
| `type_marche` | array | `Travaux`, `Fournitures`, `Services`. |
| `only_awards` | boolean | Ne renvoyer que les avis d'attribution (marchés déjà gagnés). |
| `date_from` / `date_to` | string | `AAAA-MM-JJ`. `date_from` vide = 30 derniers jours. |
| `min_relevance_score` | integer | Ignore les résultats sous ce seuil 0–100. |
| `alert_new_only` | boolean | Ne renvoyer que les avis nouveaux depuis le dernier run. |
| `alert_key` | string | Espace de nommage pour des veilles distinctes. |
| `max_items` | integer | Nombre maximum d'avis à renvoyer. |

#### Exemple d'entrée

```json
{
  "mots_cles": ["informatique", "logiciel"],
  "departement": ["75", "92"],
  "type_marche": ["Services"],
  "min_relevance_score": 25,
  "alert_new_only": false,
  "max_items": 100
}
````

### Sortie / Output

Chaque élément du dataset est un enregistrement plat et stable :

```json
{
  "source": "BOAMP",
  "notice_id": "26-63506",
  "title": "CMS DESIGNSYSTEM",
  "buyer_name": "AUVERGNE RHONE ALPES TOURISME",
  "buyer_country": "FRA",
  "cpv_codes": ["Logiciel", "186"],
  "description": "CMS DESIGNSYSTEM",
  "value_amount": null,
  "value_currency": null,
  "publication_date": "2026-06-28",
  "deadline_date": "2026-07-28",
  "notice_type": "Avis de marché",
  "award_winner": null,
  "source_url": "https://www.boamp.fr/avis/detail/26-63506",
  "relevance_score": 60
}
```

#### Champs de sortie

- `source` — toujours `BOAMP`.
- `notice_id` — identifiant `idweb` de l'avis BOAMP.
- `title`, `description` — objet du marché.
- `buyer_name` — acheteur public ; `buyer_country` — `FRA`.
- `cpv_codes` — descripteurs (libellés + codes) tenant lieu de classification.
- `value_amount`, `value_currency` — non exposés par l'open data BOAMP (`null`).
- `publication_date`, `deadline_date` — `AAAA-MM-JJ` (date limite de réponse).
- `notice_type` — nature de l'avis (Avis de marché, Avis d'attribution…).
- `award_winner` — titulaire pour les avis d'attribution.
- `source_url` — lien direct vers l'avis sur boamp.fr.
- `relevance_score` — pertinence mots-clés, 0–100.

### Cas d'usage / Use cases

#### Prospection B2G

Repérez chaque appel d'offres correspondant à votre offre, classé par pertinence, et envoyez les meilleurs leads vers votre CRM.

#### Veille des appels d'offres

Programmez l'actor avec `alert_new_only: true` pour ne recevoir que les nouveaux avis chaque matin — sans doublons.

#### Veille concurrentielle (attributions)

Activez `only_awards: true` pour suivre qui remporte les marchés et à quelles conditions.

#### Conformité & audit

Conservez une trace horodatée et auditable de l'activité de la commande publique pertinente.

#### RAG / LLM

Le schéma plat et propre est parfait comme source de connaissances pour des agents de résumé d'appels d'offres.

### Tarification / Pricing

Cet actor utilise une tarification **pay-per-result** : **0,005 $ par avis renvoyé** (par élément du dataset), plus l'usage plateforme Apify. Un run de 100 résultats coûte environ **0,50 $** en frais de résultats. Le paramètre `max_items` plafonne la dépense et `alert_new_only` garde les runs programmés économiques.

### Source des données & licence

Les données proviennent de l'open data officiel **BOAMP** publié par la **DILA**. Elles sont réutilisables, y compris à des fins commerciales, sous **Licence Ouverte / Open Licence (Etalab) v2.0**, sous réserve de mentionner la source. Cet actor n'offre aucune garantie sur l'exhaustivité ou l'exactitude des avis sous-jacents.

### Notes & limites

- Par défaut, les 30 derniers jours sont renvoyés si `date_from` est vide : le run par défaut renvoie toujours des données fraîches.
- L'open data BOAMP n'expose pas de montant numérique propre : `value_amount` est `null`. Pour des valeurs de marché à l'échelle européenne, voir notre actor **TED EU Public Tenders**.
- BOAMP couvre la France. Pour l'UE 27 + EEE, voir **TED EU Public Tenders** ; pour les attributions européennes, voir **EU Contract Awards Tracker**.

### Use as an MCP tool (AI agents)

This Actor is available as an **MCP tool** for AI agents (Claude, ChatGPT, Cursor, etc.) through Apify’s hosted MCP server. Point your MCP client at:

```
https://mcp.apify.com/?actors=aspiring_barricade/boamp-france-marches-publics-api
```

The Actor’s input schema becomes the tool’s parameters automatically. An Apify API token is required.

### Use in n8n

Run this Actor inside your [n8n](https://n8n.io) workflows using the official **Apify** node (search “Apify” in the n8n nodes panel) and select the Actor `aspiring_barricade/boamp-france-marches-publics-api`. A dedicated community node (`n8n-nodes-boamp-france`) is also being published to npm for one-click installation via **n8n → Settings → Community Nodes**.

# Actor input Schema

## `mots_cles` (type: `array`):

Termes recherchés en plein texte sur l'avis (objet, acheteur...). Combinés en OU.

## `departement` (type: `array`):

Optionnel. Codes département (ex: 75, 69, 13).

## `type_marche` (type: `array`):

Optionnel: Travaux, Fournitures, Services.

## `only_awards` (type: `boolean`):

Ne renvoyer que les avis d'attribution (marchés déjà gagnés).

## `date_from` (type: `string`):

Optionnel (AAAA-MM-JJ). Vide = 30 derniers jours.

## `date_to` (type: `string`):

Optionnel (AAAA-MM-JJ).

## `min_relevance_score` (type: `integer`):

Optionnel. Ignore les résultats sous ce seuil de pertinence.

## `alert_new_only` (type: `boolean`):

Ne renvoyer que les avis non vus lors des runs précédents. Idéal pour une veille programmée.

## `alert_key` (type: `string`):

Espace de nommage de l'historique 'nouveautés' (recherches distinctes = états distincts).

## `max_items` (type: `integer`):

Nombre maximum d'avis à renvoyer.

## Actor input object example

```json
{
  "mots_cles": [
    "informatique"
  ],
  "departement": [],
  "type_marche": [],
  "only_awards": false,
  "min_relevance_score": 0,
  "alert_new_only": false,
  "alert_key": "default",
  "max_items": 50
}
```

# 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 = {
    "mots_cles": [
        "informatique"
    ],
    "max_items": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("aspiring_barricade/boamp-france-marches-publics-api").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 = {
    "mots_cles": ["informatique"],
    "max_items": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("aspiring_barricade/boamp-france-marches-publics-api").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "mots_cles": [
    "informatique"
  ],
  "max_items": 50
}' |
apify call aspiring_barricade/boamp-france-marches-publics-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=aspiring_barricade/boamp-france-marches-publics-api",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "BOAMP France Marchés Publics API",
        "description": "Recherche des marchés publics français via l'open data officiel BOAMP (DILA). Scoring de pertinence, déduplication et mode alerte nouveautés. JSON propre.",
        "version": "1.0",
        "x-build-id": "5OGVHSMVwT4sVlboD"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/aspiring_barricade~boamp-france-marches-publics-api/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-aspiring_barricade-boamp-france-marches-publics-api",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/aspiring_barricade~boamp-france-marches-publics-api/runs": {
            "post": {
                "operationId": "runs-sync-aspiring_barricade-boamp-france-marches-publics-api",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/aspiring_barricade~boamp-france-marches-publics-api/run-sync": {
            "post": {
                "operationId": "run-sync-aspiring_barricade-boamp-france-marches-publics-api",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "mots_cles"
                ],
                "properties": {
                    "mots_cles": {
                        "title": "Mots-clés",
                        "type": "array",
                        "description": "Termes recherchés en plein texte sur l'avis (objet, acheteur...). Combinés en OU.",
                        "default": [
                            "informatique"
                        ],
                        "items": {
                            "type": "string"
                        }
                    },
                    "departement": {
                        "title": "Départements",
                        "type": "array",
                        "description": "Optionnel. Codes département (ex: 75, 69, 13).",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "type_marche": {
                        "title": "Type de marché",
                        "type": "array",
                        "description": "Optionnel: Travaux, Fournitures, Services.",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "only_awards": {
                        "title": "Seulement les attributions",
                        "type": "boolean",
                        "description": "Ne renvoyer que les avis d'attribution (marchés déjà gagnés).",
                        "default": false
                    },
                    "date_from": {
                        "title": "Publié à partir du",
                        "type": "string",
                        "description": "Optionnel (AAAA-MM-JJ). Vide = 30 derniers jours."
                    },
                    "date_to": {
                        "title": "Publié jusqu'au",
                        "type": "string",
                        "description": "Optionnel (AAAA-MM-JJ)."
                    },
                    "min_relevance_score": {
                        "title": "Score de pertinence minimum (0-100)",
                        "type": "integer",
                        "description": "Optionnel. Ignore les résultats sous ce seuil de pertinence.",
                        "default": 0
                    },
                    "alert_new_only": {
                        "title": "Mode alerte: uniquement les nouveautés",
                        "type": "boolean",
                        "description": "Ne renvoyer que les avis non vus lors des runs précédents. Idéal pour une veille programmée.",
                        "default": false
                    },
                    "alert_key": {
                        "title": "Clé d'alerte",
                        "type": "string",
                        "description": "Espace de nommage de l'historique 'nouveautés' (recherches distinctes = états distincts).",
                        "default": "default"
                    },
                    "max_items": {
                        "title": "Nombre max de résultats",
                        "type": "integer",
                        "description": "Nombre maximum d'avis à renvoyer.",
                        "default": 50
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
