# France Organic Operators: Agence Bio Certified Companies (`datacraft-studio/france-organic-operators`) Actor

Official French organic operators from Agence Bio (Licence Ouverte 2.0): SIRET, Bio number, certified activities, certifier, engagement date. Sole traders excluded. Filters + alert mode. Pay per operator.

- **URL**: https://apify.com/datacraft-studio/france-organic-operators.md
- **Developed by:** [Yahya Nouali](https://apify.com/datacraft-studio) (community)
- **Categories:** Business, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.00 / 1,000 organic operator delivereds

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 Organic Operators: Agence Bio Certified Companies

Official register of **organic-certified operators in France** published by **Agence Bio**, from the open dataset [Professionnels engagés en BIO](https://www.data.gouv.fr/datasets/professionnels-engages-en-bio/) (Licence Ouverte / Open Licence 2.0).

### What you get

For each legal-entity operator:

| Field | Description |
|---|---|
| `siret` / `siren` | Establishment / company identifiers |
| `bioNumber` | Agence Bio operator number |
| `companyName` | Denomination |
| `postalCode` / `departmentCode` | Head-office location |
| `engagementDate` | Date of organic engagement |
| `activities` | Certified activities (Production, Préparation, Distribution, Stockage, Importation, Exportation, Restauration, Transport) |
| `certifier` | Control body (Ecocert, Bureau Veritas, …) |
| `companyProfileUrl` | Link to Annuaire des Entreprises |
| `bioDirectoryUrl` | Link to the Agence Bio directory sheet |

A final `run_summary` row reports how many operators were scanned, filtered, excluded as sole traders, and delivered.

### Filters

- SIREN / SIRET / Bio number lookup
- Department or postal-code prefix
- Certified activities
- Certifier name substring
- Engagement date range
- Exclude production-only farms
- Alert mode (new or changed since last run)

### Privacy

Natural persons (entrepreneurs individuels) are **never delivered**. Names that look like individuals are verified against the official French company registry; legal forms starting with `1` (natural persons) are excluded. Manager names and phone numbers from other Agence Bio endpoints are never read.

### Pricing

**$0.002 per organic operator** delivered (`organic-operator` event). Filtered-out rows, excluded sole traders, unchanged alert-mode entries and the summary row are free.

### Source & licence

- Source: Agence Bio / data.gouv.fr — *Professionnels engagés en BIO*
- Licence: [Licence Ouverte 2.0](https://www.etalab.gouv.fr/licence-ouverte-open-licence/)
- Cite the source and the dataset date returned in every row (`sourceDataDate`).

### Memory

Default **512 MB**. The national CSV is about 9 MB.

# Changelog

This Actor's version history is a separate document: https://apify.com/datacraft-studio/france-organic-operators/changelog.md

# Actor input Schema

## `sirens` (type: `array`):

9-digit SIREN or 14-digit SIRET to look up.

## `bioNumbers` (type: `array`):

Agence Bio operator numbers (numeroBio).

## `nameContains` (type: `string`):

Case-insensitive substring of the denomination (accents ignored).

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

Department codes inferred from the head-office postal code (e.g. 69, 2A, 974).

## `postalCodePrefixes` (type: `array`):

Keep operators whose head-office postal code starts with one of these prefixes (e.g. 69, 750).

## `activities` (type: `array`):

Keep operators that have at least one of these activities: Production, Préparation, Distribution, Stockage, Importation, Exportation, Restauration, Transport.

## `certifierContains` (type: `string`):

Substring of the certifying body name (e.g. Ecocert, Bureau Veritas).

## `engagedSince` (type: `string`):

Only operators whose engagement date is on or after this day.

## `engagedBefore` (type: `string`):

Only operators whose engagement date is strictly before this day.

## `excludeProductionOnly` (type: `boolean`):

Drop operators whose only certified activity is Production (keeps preparation, distribution, storage, import/export, catering).

## `verifyLegalEntities` (type: `boolean`):

Names that look like private individuals are checked against the official company registry; entrepreneurs individuels (nature juridique 1xxx) are never delivered. Disable only for debugging.

## `onlyNew` (type: `boolean`):

Deliver only operators that are new or whose activities/certifier/engagement changed since the last run. State is stored in a named key-value store.

## `stateStoreName` (type: `string`):

Key-value store used by alert mode.

## `maxItems` (type: `integer`):

Hard cap on charged rows (default 1000). Use 0 for no cap (still limited by the run cost limit).

## Actor input object example

```json
{
  "departments": [
    "69"
  ],
  "activities": [
    "Distribution"
  ],
  "excludeProductionOnly": false,
  "verifyLegalEntities": true,
  "onlyNew": false,
  "stateStoreName": "france-organic-operators-state",
  "maxItems": 10
}
```

# Actor output Schema

## `operators` (type: `string`):

One row per Agence Bio certified legal-entity operator.

## `summary` (type: `string`):

Counts, sole traders excluded and source date.

# 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": [
        "69"
    ],
    "activities": [
        "Distribution"
    ],
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("datacraft-studio/france-organic-operators").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": ["69"],
    "activities": ["Distribution"],
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("datacraft-studio/france-organic-operators").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": [
    "69"
  ],
  "activities": [
    "Distribution"
  ],
  "maxItems": 10
}' |
apify call datacraft-studio/france-organic-operators --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,datacraft-studio/france-organic-operators"
        }
    }
}
```

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/XbHnJ4fsIMZ2ZisEF/builds/nrYDzgzINm1nYEPju/openapi.json
