# France Elected Officials Scraper - RNE Mayors & MPs (`dltik/rne-elus-fr-scraper`) Actor

Search the official RNE - every French elected official. 550K+ mayors, local councillors, MPs and senators. Filter by name, department, region, commune or mandate. Get birth date, profession, mandate dates, territory + INSEE codes. For lobbying, B2G sales, political intelligence. $2/1K.

- **URL**: https://apify.com/dltik/rne-elus-fr-scraper.md
- **Developed by:** [dltik](https://apify.com/dltik) (community)
- **Categories:** Business, Lead generation, Marketing
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

$2.00 / 1,000 elected official scrapeds

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

## France Elected Officials Scraper — RNE (Mayors, MPs, Councillors) API

> Query the **official RNE (Répertoire National des Élus)** — the French government's complete registry of **every elected official**. **550,000+ mandates**: mayors, deputy mayors, municipal / departmental / regional councillors, EPCI councillors, plus **deputies (députés) and senators (sénateurs)**. Filter by name, department, region, commune or mandate type and get a clean, exportable dataset. **HTTP-only, $0.002 per official**.

⭐ **Bookmark this France Elected Officials Scraper** — Apify ranks actors by bookmarks, so it directly helps the visibility of this scraper on the Apify Store.

### What is the France Elected Officials Scraper?

The **France Elected Officials Scraper** is an Apify actor that turns the [official RNE open data](https://www.data.gouv.fr/fr/datasets/repertoire-national-des-elus-1/) into a filterable, exportable dataset. The Répertoire National des Élus is maintained by the French Ministry of the Interior and lists every person holding an elective mandate in France — from the mayor of a 50-person village to the senators of Paris.

It runs on the free official open-data API (no authentication, no API key, no rate limits to fight). Pass a name, a territory (department, region or commune) and/or a mandate type, and receive one structured row per elected official with their identity, profession, mandate dates and full territorial codes.

### Why it matters: lobbying, B2G and political intelligence

Public-affairs teams, lobbyists, B2G sales reps and journalists all need an up-to-date, queryable map of who holds power where. The RNE is the authoritative source, but the raw open data ships as scattered CSV files split by mandate level. This scraper unifies them behind a single filter interface so you can pull, for example, *every mayor in Gironde* or *every regional councillor in Bretagne* in seconds.

### Use cases

- **Lobbying / public affairs** — build a contact map of decision-makers by territory and mandate.
- **B2G sales targeting** — find the mayors and councillors of every commune above a threshold to sell to local government.
- **Political intelligence** — analyse the composition of councils by age, sex and socio-professional category.
- **Journalism & research** — fact-check mandates, build databases of local and national elected officials.
- **CRM enrichment** — match elected officials to communes and INSEE codes for geographic segmentation.

### Input

```json
{
  "mandate_type": "maire",
  "department": "33",
  "maxResults": 600
}
````

- `query` — name keyword (last or first name).
- `mandate_type` — `maire`, `adjoint`, `conseiller_municipal`, `conseiller_departemental`, `conseiller_regional`, `conseiller_communautaire`, `depute`, `senateur`. Empty = all local mandates.
- `department` — code (`33`, `75`, `2A`) or name (`Gironde`).
- `region` — code or name (local mandates).
- `commune` — name (`Bordeaux`) or INSEE code (`33063`).
- `maxResults` — cap on rows (aliases `limit`, `max`).

### Output

```json
{
  "type": "elected_official",
  "first_name": "Marie",
  "last_name": "LARRUE",
  "birth_date": "1958-09-20",
  "sex": "F",
  "mandate_type": "Municipal",
  "function": "Maire",
  "mandate_start": "2020-06-28",
  "profession_csp": "Profession libérale",
  "commune": "Le Tuzan",
  "commune_insee": "33545",
  "department": "Gironde",
  "department_code": "33",
  "region": "Nouvelle-Aquitaine",
  "region_code": "75"
}
```

### Pricing

**PAY\_PER\_EVENT — $0.002 per elected official** (= $2 per 1,000). Free actor starts. No charge when nothing matches.

### FAQ — RNE elected officials data

**Where does the data come from?** The official Répertoire National des Élus (French Ministry of the Interior), served through the free public open-data API. No key required.

**Does it include deputies and senators?** Yes — set `mandate_type` to `depute` or `senateur`. Mayors and all local councillors come from the main RNE dataset.

**Is party / political affiliation included?** No. The RNE open data does not publish "nuance politique" (party). The actor returns the official identity, mandate and socio-professional category fields that the RNE exposes.

**How many can I pull at once?** The source API caps a single query at 10,000 rows; narrow by department or region to export larger populations slice by slice.

***

⭐ **Found this useful? Bookmark this France Elected Officials Scraper** — it's the strongest signal for Apify Store ranking.

#### Related actors

- [Pappers Sirène Scraper](https://apify.com/dltik/pappers-sirene-scraper) — 26M French companies (SIREN/SIRET)
- [RNA Associations FR](https://apify.com/dltik/rna-associations-fr) — French non-profit associations registry
- [data.gouv.fr MCP Server](https://apify.com/dltik/mcp-server-data-gouv) — French open-data catalog for AI agents

License: MIT · Author: [dltik](https://apify.com/dltik)

# Actor input Schema

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

Search by last name or first name (case/accent-insensitive). Example: 'MARTIN', 'Dupont'. Combine with a territory filter to narrow results.

## `mandate_type` (type: `string`):

Restrict to one mandate. 'maire' = mayors only; 'adjoint' = deputy mayors; 'conseiller\_\*' = council members at that level; 'depute'/'senateur' = national MPs. Leave empty for all local mandates.

## `department` (type: `string`):

Department code (e.g. '33', '75', '2A') or name (e.g. 'Gironde'). For depute/senateur, matches the election department.

## `region` (type: `string`):

Region code (e.g. '75', '11', '84') or name (e.g. 'Bretagne'). Applies to local mandates only.

## `commune` (type: `string`):

Commune name (e.g. 'Bordeaux') or 5-char INSEE code (e.g. '33063'). Applies to local mandates only.

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

Max elected officials to return. Aliases accepted: 'limit', 'max'. Each official is charged at the per-event price - start small. Capped at 10000 per run by the source API; narrow by department/region for larger sets.

## `proxyConfig` (type: `object`):

Optional. The RNE open API has no anti-bot, so proxy is rarely needed.

## Actor input object example

```json
{
  "maxResults": 50,
  "proxyConfig": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Elected-official records.

# 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("dltik/rne-elus-fr-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 = {}

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=dltik/rne-elus-fr-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "France Elected Officials Scraper - RNE Mayors & MPs",
        "description": "Search the official RNE - every French elected official. 550K+ mayors, local councillors, MPs and senators. Filter by name, department, region, commune or mandate. Get birth date, profession, mandate dates, territory + INSEE codes. For lobbying, B2G sales, political intelligence. $2/1K.",
        "version": "1.0",
        "x-build-id": "7aN1LTBwL1IaRwPLs"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/dltik~rne-elus-fr-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-dltik-rne-elus-fr-scraper",
                "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/dltik~rne-elus-fr-scraper/runs": {
            "post": {
                "operationId": "runs-sync-dltik-rne-elus-fr-scraper",
                "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/dltik~rne-elus-fr-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-dltik-rne-elus-fr-scraper",
                "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",
                "properties": {
                    "query": {
                        "title": "Name keyword",
                        "type": "string",
                        "description": "Search by last name or first name (case/accent-insensitive). Example: 'MARTIN', 'Dupont'. Combine with a territory filter to narrow results."
                    },
                    "mandate_type": {
                        "title": "Mandate type",
                        "enum": [
                            "maire",
                            "adjoint",
                            "conseiller_municipal",
                            "conseiller_departemental",
                            "conseiller_regional",
                            "conseiller_communautaire",
                            "depute",
                            "senateur"
                        ],
                        "type": "string",
                        "description": "Restrict to one mandate. 'maire' = mayors only; 'adjoint' = deputy mayors; 'conseiller_*' = council members at that level; 'depute'/'senateur' = national MPs. Leave empty for all local mandates."
                    },
                    "department": {
                        "title": "Department",
                        "type": "string",
                        "description": "Department code (e.g. '33', '75', '2A') or name (e.g. 'Gironde'). For depute/senateur, matches the election department."
                    },
                    "region": {
                        "title": "Region",
                        "type": "string",
                        "description": "Region code (e.g. '75', '11', '84') or name (e.g. 'Bretagne'). Applies to local mandates only."
                    },
                    "commune": {
                        "title": "Commune",
                        "type": "string",
                        "description": "Commune name (e.g. 'Bordeaux') or 5-char INSEE code (e.g. '33063'). Applies to local mandates only."
                    },
                    "maxResults": {
                        "title": "Max officials",
                        "minimum": 1,
                        "maximum": 10000,
                        "type": "integer",
                        "description": "Max elected officials to return. Aliases accepted: 'limit', 'max'. Each official is charged at the per-event price - start small. Capped at 10000 per run by the source API; narrow by department/region for larger sets.",
                        "default": 50
                    },
                    "proxyConfig": {
                        "title": "Proxy (rarely needed)",
                        "type": "object",
                        "description": "Optional. The RNE open API has no anti-bot, so proxy is rarely needed.",
                        "default": {
                            "useApifyProxy": false
                        }
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
