# French Companies Scraper (`anyxsolutions/french-companies-scraper`) Actor

French company scraper for the SIRENE register: search French companies by name, SIREN, SIRET, NAF activity code, location or size. Get legal form, headcount, status, head office with GPS, directors, revenue, net income and VAT number. Official open data, no API key.

- **URL**: https://apify.com/anyxsolutions/french-companies-scraper.md
- **Developed by:** [Anyx Solutions](https://apify.com/anyxsolutions) (community)
- **Categories:** Lead generation, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 results

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

![banner](https://anyx.solutions/banners/french-companies-scraper.png)

## French Companies Scraper

**French company data from the official register (SIREN, legal form, NAF activity, headcount, directors, revenue and head-office address) as clean JSON.**

Get company records for any business registered in France: the 9-digit SIREN, the head office's
SIRET, legal and trade names, legal form, NAF activity code and label, size category and employee
headcount band, creation and closure dates, the head-office address with GPS coordinates, directors
and auditors, the number of establishments, published revenue and net income, the intra-EU VAT
number and certifications such as RGE or Qualiopi. Search by name or address, paste
annuaire-entreprises.data.gouv.fr company or search URLs, look up SIRENs and SIRETs, or list every
company matching filters such as activity code, department, postcode, headcount band and legal
form. The data comes from the French state's open company directory, the Annuaire des Entreprises,
built on the INSEE SIRENE register and the national business register (RNE). There is no login,
no API key and no proxy to set up. Built for B2B lead generation, market mapping, KYC and supplier
checks, and CRM enrichment.

### ⚡ Quick start

```json
{
  "startUrls": [
    {
      "url": "https://annuaire-entreprises.data.gouv.fr/rechercher?terme=boulangerie&cp_dep=75&cp_dep_type=dep&etat=A"
    }
  ],
  "maxItems": 5
}
```

Or list companies by filters alone, for example every active software company with 20 to 49
employees in the Rhône:

```json
{
  "activityCodes": ["62.01Z"],
  "departments": ["69"],
  "headcountBands": ["12"],
  "status": "A",
  "maxItems": 100
}
```

### 🧩 Input

| Field                | Type    | Required | Default                      | Description                                                                                                                                                                                                                                                                           |
| -------------------- | ------- | -------- | ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `startUrls`          | array   | no       | —                            | Annuaire des Entreprises URLs: company pages (`/entreprise/542051180` or `/entreprise/<name>-542051180`), other company tabs (`/dirigeants/…`, `/donnees-financieres/…`), establishment pages (`/etablissement/<SIRET>`), or search pages (`/rechercher?terme=…`) with their filters. |
| `searchTerms`        | array   | no       | —                            | Words to search for: a company name, brand, address or director's name, such as `boulangerie` or `Michelin`. At least 3 characters unless a filter is set.                                                                                                                            |
| `sirens`             | array   | no       | —                            | SIREN or SIRET numbers to fetch directly, such as `542051180` or `54205118000066`. Spaces are ignored; invalid numbers are skipped and listed in the log.                                                                                                                             |
| `activityCodes`      | array   | no       | —                            | Activity codes (NAF/APE) of the main activity, such as `10.71C` (bakery) or `62.01Z` (software development). Dots are optional.                                                                                                                                                       |
| `activitySections`   | array   | no       | —                            | Activity sections: broad NAF sections, `A` to `U`, such as `F` (construction).                                                                                                                                                                                                        |
| `departments`        | array   | no       | —                            | Departments: INSEE department codes of any establishment, such as `75`, `2A` or `971`.                                                                                                                                                                                                |
| `postalCodes`        | array   | no       | —                            | Postcodes (5 digits) of any establishment, such as `75011`.                                                                                                                                                                                                                           |
| `regions`            | array   | no       | —                            | Regions of any establishment, as INSEE region codes, such as `11` (Île-de-France).                                                                                                                                                                                                    |
| `headcountBands`     | array   | no       | —                            | Employee headcount bands (INSEE codes): `NN` non-employer, `00` 0, `01` 1-2, `02` 3-5, `03` 6-9, `11` 10-19, `12` 20-49, `21` 50-99, `22` 100-199, `31` 200-249, `32` 250-499, `41` 500-999, `42` 1,000-1,999, `51` 2,000-4,999, `52` 5,000-9,999, `53` 10,000+.                      |
| `companyCategories`  | array   | no       | —                            | Company size category: `PME` (SME), `ETI` (mid-cap) or `GE` (large company).                                                                                                                                                                                                          |
| `legalForms`         | array   | no       | —                            | Legal forms (INSEE codes), 4 digits, such as `5710` (SAS), `5499` (SARL), `5599` (SA) or `9220` (association).                                                                                                                                                                        |
| `status`             | string  | no       | —                            | Company status: `A` (active) or `C` (ceased). Leave empty for both.                                                                                                                                                                                                                   |
| `structureType`      | string  | no       | —                            | Type of organisation: `asso` (association), `ei` (sole trader), `sp` (public administration) or `ct` (local authority).                                                                                                                                                               |
| `certifications`     | array   | no       | —                            | Certifications and labels the company must hold, such as `est_rge` (RGE), `est_qualiopi` (Qualiopi), `est_bio` (organic) or `est_ess` (social economy).                                                                                                                               |
| `revenueMin`         | integer | no       | —                            | Minimum revenue (EUR) in the latest published accounts.                                                                                                                                                                                                                               |
| `revenueMax`         | integer | no       | —                            | Maximum revenue (EUR) in the latest published accounts.                                                                                                                                                                                                                               |
| `netIncomeMin`       | integer | no       | —                            | Minimum net income (EUR) in the latest published accounts.                                                                                                                                                                                                                            |
| `netIncomeMax`       | integer | no       | —                            | Maximum net income (EUR) in the latest published accounts.                                                                                                                                                                                                                            |
| `sortBySize`         | boolean | no       | `false`                      | Largest companies first: sort by number of establishments instead of relevance.                                                                                                                                                                                                       |
| `maxItems`           | integer | no       | —                            | Maximum companies per search term or search URL. The input form starts at 5; leave it empty for every match (up to 10,000 per search). SIRENs and company URLs always return one company each.                                                                                        |
| `proxyConfiguration` | object  | no       | `{ "useApifyProxy": false }` | Proxy settings. The register needs no proxy.                                                                                                                                                                                                                                          |

Give at least one URL, search term or SIREN, or set a filter on its own: with filters and no
words, the Actor lists every company that matches them. The filters apply to search terms and
filter-only listings; a search URL keeps the filters written in it.

### 📤 Output

Each company is one dataset row. Dates are ISO 8601; amounts are in euros.

#### Fields

| Field                     | Type    | Description                                                                                                                                                                                                                                                              |
| ------------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `siren`                   | string  | The company's 9-digit SIREN number.                                                                                                                                                                                                                                      |
| `headOfficeSiret`         | string  | The 14-digit SIRET of the head office (siège).                                                                                                                                                                                                                           |
| `name`                    | string  | Full display name, with the acronym in brackets when there is one.                                                                                                                                                                                                       |
| `legalName`               | string  | Registered name (raison sociale). Null for sole traders.                                                                                                                                                                                                                 |
| `acronym`                 | string  | Acronym (sigle), when registered.                                                                                                                                                                                                                                        |
| `tradeNames`              | array   | Trading names and shop signs of the head office.                                                                                                                                                                                                                         |
| `legalFormCode`           | string  | INSEE legal-form code (catégorie juridique), such as `5710`.                                                                                                                                                                                                             |
| `legalForm`               | string  | Legal form name, such as "SAS, société par actions simplifiée".                                                                                                                                                                                                          |
| `activityCode`            | string  | Main activity code (NAF/APE), such as `10.71C`.                                                                                                                                                                                                                          |
| `activity`                | string  | Main activity label (NAF rév. 2, in French). Null for codes from older nomenclatures.                                                                                                                                                                                    |
| `activityCodeNaf2025`     | string  | Main activity in the new NAF 2025 nomenclature, when assigned.                                                                                                                                                                                                           |
| `activitySection`         | string  | NAF section letter, `A` to `U`.                                                                                                                                                                                                                                          |
| `activitySectionName`     | string  | NAF section label (in French).                                                                                                                                                                                                                                           |
| `companyCategory`         | string  | INSEE size category: `PME`, `ETI` or `GE`.                                                                                                                                                                                                                               |
| `status`                  | string  | `ACTIVE` or `CEASED`.                                                                                                                                                                                                                                                    |
| `creationDate`            | string  | Date the company was created.                                                                                                                                                                                                                                            |
| `closureDate`             | string  | Date the company ceased, when it has.                                                                                                                                                                                                                                    |
| `headcountBandCode`       | string  | INSEE headcount band code, such as `12`.                                                                                                                                                                                                                                 |
| `headcountBand`           | string  | Headcount band in words, such as "20-49 employees".                                                                                                                                                                                                                      |
| `headcountYear`           | number  | Year the headcount band refers to.                                                                                                                                                                                                                                       |
| `isEmployer`              | boolean | Whether the company has employees.                                                                                                                                                                                                                                       |
| `address`                 | string  | Head-office address on one line.                                                                                                                                                                                                                                         |
| `postalCode`              | string  | Head-office postcode.                                                                                                                                                                                                                                                    |
| `city`                    | string  | Head-office town.                                                                                                                                                                                                                                                        |
| `communeCode`             | string  | INSEE code of the head office's commune.                                                                                                                                                                                                                                 |
| `department`              | string  | Head office's department code.                                                                                                                                                                                                                                           |
| `region`                  | string  | Head office's region.                                                                                                                                                                                                                                                    |
| `country`                 | string  | `France`, or the country of a head office abroad.                                                                                                                                                                                                                        |
| `latitude`                | number  | Head-office latitude.                                                                                                                                                                                                                                                    |
| `longitude`               | number  | Head-office longitude.                                                                                                                                                                                                                                                   |
| `directors`               | array   | Directors, officers and auditors: `type` (`person` or `company`), `name`, `lastName`, `firstNames`, `role`, `birthMonth` (YYYY-MM), `nationality`, and `siren` for a company.                                                                                            |
| `establishmentsCount`     | number  | Number of establishments, open or closed.                                                                                                                                                                                                                                |
| `openEstablishmentsCount` | number  | Number of open establishments.                                                                                                                                                                                                                                           |
| `matchingEstablishments`  | array   | Up to 10 establishments that matched the search (by address, postcode, department and so on): `siret`, `isHeadOffice`, `status`, `tradeNames`, `address`, `postalCode`, `city`, `activityCode`, `headcountBand`, `creationDate`, `closureDate`, `latitude`, `longitude`. |
| `revenue`                 | number  | Revenue (chiffre d'affaires) in the latest published accounts.                                                                                                                                                                                                           |
| `netIncome`               | number  | Net income (résultat net) in the latest published accounts.                                                                                                                                                                                                              |
| `financialYear`           | number  | Year of the latest published accounts.                                                                                                                                                                                                                                   |
| `financials`              | array   | Every published year: `year`, `revenue`, `netIncome`, newest first.                                                                                                                                                                                                      |
| `vatNumber`               | string  | Intra-EU VAT number.                                                                                                                                                                                                                                                     |
| `collectiveAgreements`    | array   | IDCC codes of the collective agreements that apply.                                                                                                                                                                                                                      |
| `certifications`          | array   | Certifications and labels held, such as "Qualiopi" or "RGE (environmental guarantee)".                                                                                                                                                                                   |
| `isAssociation`           | boolean | Whether the organisation is an association.                                                                                                                                                                                                                              |
| `isSoleTrader`            | boolean | Whether it is a sole trader (entreprise individuelle).                                                                                                                                                                                                                   |
| `associationId`           | string  | RNA number of an association.                                                                                                                                                                                                                                            |
| `lastUpdated`             | string  | When the record was last updated.                                                                                                                                                                                                                                        |
| `searchTerm`              | string  | The words that found the company; null for lookups and filter-only listings.                                                                                                                                                                                             |
| `url`                     | string  | The company's page on annuaire-entreprises.data.gouv.fr.                                                                                                                                                                                                                 |

<details><summary>Example output</summary>

```json
{
  "siren": "403052111",
  "headOfficeSiret": "40305211102616",
  "name": "BOULANGERIES PAUL",
  "legalName": "BOULANGERIES PAUL",
  "acronym": null,
  "tradeNames": [],
  "legalFormCode": "5710",
  "legalForm": "SAS, société par actions simplifiée",
  "activityCode": "10.71A",
  "activity": "Fabrication industrielle de pain et de pâtisserie fraîche",
  "activityCodeNaf2025": "10.71G",
  "activitySection": "C",
  "activitySectionName": "Industrie manufacturière",
  "companyCategory": "ETI",
  "status": "ACTIVE",
  "creationDate": "1995-12-07",
  "closureDate": null,
  "headcountBandCode": "41",
  "headcountBand": "500-999 employees",
  "headcountYear": 2024,
  "isEmployer": true,
  "address": "BATIMENT D.E 344 AVENUE DE LA MARNE 59700 MARCQ-EN-BARŒUL",
  "postalCode": "59700",
  "city": "MARCQ-EN-BARŒUL",
  "communeCode": "59378",
  "department": "59",
  "region": "Hauts-de-France",
  "country": "France",
  "latitude": 50.678029398,
  "longitude": 3.1169136021,
  "directors": [
    {
      "type": "person",
      "name": "MAXIME HOLDER",
      "lastName": "HOLDER",
      "firstNames": "MAXIME",
      "role": "Directeur Général",
      "birthMonth": "1969-08",
      "nationality": null,
      "siren": null
    },
    {
      "type": "company",
      "name": "KPMG SA",
      "lastName": null,
      "firstNames": null,
      "role": "Commissaire aux comptes titulaire",
      "birthMonth": null,
      "nationality": null,
      "siren": "775726417"
    }
  ],
  "establishmentsCount": 315,
  "openEstablishmentsCount": 124,
  "matchingEstablishments": [
    {
      "siret": "40305211101022",
      "isHeadOffice": false,
      "status": "ACTIVE",
      "tradeNames": ["PAUL"],
      "address": "5 RUE DU HAVRE 75008 PARIS",
      "postalCode": "75008",
      "city": "PARIS",
      "activityCode": "56.10C",
      "headcountBand": "10-19 employees",
      "creationDate": "1996-01-01",
      "closureDate": null,
      "latitude": 48.87459033,
      "longitude": 2.3266834338
    }
  ],
  "revenue": 73611839,
  "netIncome": -2197350,
  "financialYear": 2024,
  "financials": [
    {
      "year": 2024,
      "revenue": 73611839,
      "netIncome": -2197350
    }
  ],
  "vatNumber": "FR32403052111",
  "collectiveAgreements": ["3255"],
  "certifications": [
    "Food safety inspected (Alim'Confiance)",
    "Greenhouse gas report published"
  ],
  "isAssociation": false,
  "isSoleTrader": false,
  "associationId": null,
  "lastUpdated": "2026-10-23T09:47:40",
  "searchTerm": "boulangerie",
  "url": "https://annuaire-entreprises.data.gouv.fr/entreprise/403052111"
}
```

</details>

### 💡 Use cases

- **B2B lead generation.** List every active company in an activity and area, such as bakeries in Paris or IT firms with 20 to 49 employees in Lyon, with addresses, directors and revenue.
- **Market mapping.** Count and locate competitors by NAF code, department and size, with GPS coordinates ready for a map.
- **KYC and supplier checks.** Confirm a SIREN, legal form, status, VAT number and directors before you sign a contract or pay an invoice.
- **CRM enrichment.** Add SIRETs, NAF codes, headcount bands and financials to your accounts from a list of SIRENs.
- **Certified contractors.** Find RGE renovation contractors or Qualiopi training providers in a region.

### ❓ FAQ

- **Where does the data come from?** From the Annuaire des Entreprises, the French state's open company directory run by the DINUM, which combines the INSEE SIRENE register, the national business register (RNE) and other public sources. The data is published under the Licence Ouverte / Open Licence 2.0 (Etalab); credit "Annuaire des Entreprises, data.gouv.fr" when you reuse it.
- **Do I need an API key, an account or a proxy?** No.
- **How many results can one search return?** The register serves at most 10,000 companies per search. For a bigger slice, split the search by department, postcode, activity code or headcount band, one search URL or one run each; the log says when a search hits the limit.
- **How fast is it?** The register allows about 7 requests a second per IP, and the Actor stays under that limit. One request returns up to 25 companies, so 1,000 companies take about 40 requests. On a shared cloud IP the register may briefly slow requests down; the Actor waits and retries.
- **Why is the head office outside the department I filtered on?** Location filters match any establishment of the company, not only the head office. `matchingEstablishments` lists the establishments that matched.
- **Why is a company missing?** Companies and sole traders who have asked INSEE not to publish their data (non-diffusible) are left out of the open directory, and so of the results.
- **Why is revenue 0 or missing?** Only companies that file their accounts publicly have figures. Many small companies file confidential accounts, which can show as a revenue of 0.
- **Are the labels in English?** Activity and legal-form labels are the official French INSEE names; headcount bands, statuses and certifications are in English.

### 🔗 More scrapers by Anyx

- [Google Maps Email Extractor](https://apify.com/anyxsolutions/google-maps-email-extractor)
- [Yellow Pages Scraper](https://apify.com/anyxsolutions/yellowpages-scraper)
- [Trustpilot Scraper](https://apify.com/anyxsolutions/trustpilot-scraper)
- [Indeed Scraper](https://apify.com/anyxsolutions/indeed-scraper)

### 🤝 Anyx Solutions

We build custom scrapers and data-extraction pipelines.

- Email: tantosthor@gmail.com

# Actor input Schema

## `startUrls` (type: `array`):

Company pages such as https://annuaire-entreprises.data.gouv.fr/entreprise/542051180, establishment pages (/etablissement/<SIRET>), or search pages copied from the site (/rechercher?terme=boulangerie\&cp_dep=75\&cp_dep_type=dep), filters included.

## `searchTerms` (type: `array`):

Words to search for, for example a company name, a brand, an address or a director's name, such as boulangerie or Michelin. At least 3 characters, unless a filter is set.

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

Company numbers to fetch directly: 9-digit SIRENs or 14-digit SIRETs for one establishment, for example 542051180 or 54205118000066. Spaces are ignored.

## `activityCodes` (type: `array`):

Only companies whose main activity has one of these NAF codes, for example 10.71C (bakery) or 62.01Z (software development). Dots are optional.

## `activitySections` (type: `array`):

Only companies in these broad NAF sections, for example Construction or Information and communication.

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

Only companies with an establishment in these departments, as INSEE codes, for example 75 (Paris), 69 (Rhône), 2A (Corse-du-Sud) or 971 (Guadeloupe).

## `postalCodes` (type: `array`):

Only companies with an establishment in these 5-digit postcodes, for example 75011 or 69002.

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

Only companies with an establishment in these regions.

## `headcountBands` (type: `array`):

Only companies in these INSEE headcount bands, from the latest annual declaration.

## `companyCategories` (type: `array`):

Only companies in these INSEE size categories: SME (PME), mid-cap (ETI) or large company (GE).

## `legalForms` (type: `array`):

Only companies with these 4-digit INSEE legal-form codes (catégorie juridique), for example 5710 (SAS), 5499 (SARL), 5599 (SA) or 9220 (association).

## `status` (type: `string`):

Only active companies, or only companies that have ceased trading. Leave empty for both.

## `structureType` (type: `string`):

Only associations, sole traders, public administrations or local authorities. Leave empty for every type.

## `certifications` (type: `array`):

Only companies holding every certification or label selected, for example RGE for energy-renovation contractors or Qualiopi for training providers.

## `revenueMin` (type: `integer`):

Only companies whose latest published revenue is at least this many euros, for example 1000000. Companies that publish no accounts are left out.

## `revenueMax` (type: `integer`):

Only companies whose latest published revenue is at most this many euros, for example 50000000.

## `netIncomeMin` (type: `integer`):

Only companies whose latest published net income is at least this many euros, for example 0 for profitable companies.

## `netIncomeMax` (type: `integer`):

Only companies whose latest published net income is at most this many euros, for example -1 for loss-making companies.

## `sortBySize` (type: `boolean`):

Sort results by company size (number of establishments) instead of relevance.

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

Maximum number of companies to return per search term or search URL. Leave empty to get every match, up to the register's 10,000 per search. SIRENs and company URLs always return one company each.

## `proxyConfiguration` (type: `object`):

Proxy settings. The French company register is public and needs no proxy.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://annuaire-entreprises.data.gouv.fr/rechercher?terme=boulangerie&cp_dep=75&cp_dep_type=dep&etat=A"
    }
  ],
  "sortBySize": false,
  "maxItems": 5,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (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 = {
    "startUrls": [
        {
            "url": "https://annuaire-entreprises.data.gouv.fr/rechercher?terme=boulangerie&cp_dep=75&cp_dep_type=dep&etat=A"
        }
    ],
    "maxItems": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("anyxsolutions/french-companies-scraper").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 = {
    "startUrls": [{ "url": "https://annuaire-entreprises.data.gouv.fr/rechercher?terme=boulangerie&cp_dep=75&cp_dep_type=dep&etat=A" }],
    "maxItems": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("anyxsolutions/french-companies-scraper").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 '{
  "startUrls": [
    {
      "url": "https://annuaire-entreprises.data.gouv.fr/rechercher?terme=boulangerie&cp_dep=75&cp_dep_type=dep&etat=A"
    }
  ],
  "maxItems": 5
}' |
apify call anyxsolutions/french-companies-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,anyxsolutions/french-companies-scraper"
        }
    }
}
```

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/aCiloWbDyQ8bm88gI/builds/HPd8bVniRF8pl6E6u/openapi.json
