# France RGE Solar, Heat Pump & BTP Installers Leads (Emails) (`grimbles/fr-rge-green-installers-leads`) Actor

Extract certified French RGE installers & renovation companies (solar PV, heat pumps, insulation, HVAC) from official ADEME & INSEE SIRENE APIs. Delivers verified emails, phones, websites, directors (Président/Gérant), revenue, and RGE certificates.

- **URL**: https://apify.com/grimbles/fr-rge-green-installers-leads.md
- **Developed by:** [Grimbles Data Labs](https://apify.com/grimbles) (community)
- **Categories:** Lead generation, Automation, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.35 / 1,000 rge certified company lead extracteds

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

## France RGE Solar, Heat Pump & BTP Leads (Emails & Directors — ADEME + SIRENE)

**Extract certified French RGE (*Reconnu Garant de l'Environnement*) solar, heat pump, HVAC, insulation, and renovation companies with direct emails, phones, websites, and company directors (`Président` / `Gérant`).**

Instead of scraping France Rénov' HTML pages with broken captchas, this Actor queries the **official French ADEME Open Data API (`data.ademe.fr`)** and cross-enriches each company in parallel via the **official INSEE SIRENE API (`recherche-entreprises.api.gouv.fr`)** to deliver a complete, deduplicated B2B lead file in one click.

***

### Key Features

- **Direct Verified Contacts from ADEME**: Extracts the official `email`, `phone` (`telephone`), and `website` (`site_internet`) declared by the RGE installer upon certification.
- **Executive Directors & Financials from INSEE SIRENE**: Resolves `primaryDirectorName` (ranking `Président`, `Gérant`, and `Directeur Général` ahead of statutory auditors), `vatNumber`, `nafCode`, `employeeRange`, and `latestRevenueEur`.
- **Certificate Consolidation by Company (`SIREN`)**: A single installer often holds 3 to 6 RGE certificates (`QualiPV`, `QualiPAC`, `Qualibat`); this Actor automatically deduplicates rows by `siren` and aggregates all active `rgeDomains` and `certificateNames` into a single enriched company record.
- **100% Official French Government Open Data**: Zero proxies needed, built-in rate limiting (`<= 4.5 req/s`) and `429` retry handling.

***

### Sample Output JSON

```json
{
  "siren": "849201553",
  "siret": "84920155300019",
  "companyName": "HELIOS ENERGIE FRANCE SAS",
  "primaryDirectorName": "Thomas Moreau (Président)",
  "email": "contact@helios-energie.fr",
  "phone": "04 72 55 01 90",
  "website": "https://www.helios-energie.fr",
  "rgeMetaDomain": "Énergies renouvelables",
  "rgeDomains": [
    "Panneaux solaires photovoltaïques",
    "Pompe à chaleur : chauffage"
  ],
  "certificateNames": ["QualiPV Elec", "QualiPAC Chauffage"],
  "certifierBody": "Qualit'EnR",
  "certificateExpiryDate": "2027-06-30",
  "streetAddress": "14 RUE DE LA REPUBLIQUE",
  "postalCode": "69002",
  "city": "LYON",
  "latitude": 45.764,
  "longitude": 4.835,
  "nafCode": "43.22B",
  "vatNumber": "FR32849201553",
  "latestRevenueEur": 1450000.0,
  "acceptsPrivateIndividuals": true,
  "leadScore": 95
}
```

***

### AI Agent (MCP) & n8n Integration

Connect this Actor directly to **Claude Desktop**, **Cursor**, or any MCP-compatible AI agent using the Apify MCP Server:

```json
{
  "mcpServers": {
    "fr-rge-green-installers-leads": {
      "url": "https://mcp.apify.com/?tools=grimbles/fr-rge-green-installers-leads",
      "headers": {
        "Authorization": "Bearer <YOUR_APIFY_API_TOKEN>"
      }
    }
  }
}
```

For **n8n**, call `POST https://api.apify.com/v2/acts/grimbles~fr-rge-green-installers-leads/run-sync-get-dataset-items?token=<YOUR_APIFY_API_TOKEN>` with your desired JSON filter payload on a weekday cron schedule.

# Actor input Schema

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

Optional keyword to filter RGE domain or company name in the ADEME registry (e.g. 'photovoltaique', 'pompe a chaleur', 'isolation').

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

Filter RGE companies by 2-digit French department or 5-digit postal code prefix (e.g. \['69', '33']).

## `onlyWithEmail` (type: `boolean`):

When enabled, only returns RGE companies that disclose a direct email address in the ADEME registry.

## `enrichSireneDirectors` (type: `boolean`):

Enrich each RGE company with INSEE SIRENE to extract executive directors (Président / Gérant), NAF code, VAT number, and latest revenue.

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

Maximum number of deduplicated RGE company leads to extract.

## Actor input object example

```json
{
  "query": "",
  "postalCodePrefixes": [],
  "onlyWithEmail": false,
  "enrichSireneDirectors": true,
  "maxResults": 25
}
```

# Actor output Schema

## `dataset` (type: `string`):

Dataset containing extracted French RGE installers, direct emails/phones/websites, directors, and commercial scores.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("grimbles/fr-rge-green-installers-leads").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("grimbles/fr-rge-green-installers-leads").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 '{}' |
apify call grimbles/fr-rge-green-installers-leads --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,grimbles/fr-rge-green-installers-leads"
        }
    }
}
```

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/kqVhQcoaXXDFNPesi/builds/2JghcSO8XKN6gfgSl/openapi.json
