# Connect ChatGPT to Leboncoin Data — OpenScraper

*HTML page: https://openscraper.ai/chatgpt-leboncoin · Agent index: https://openscraper.ai/llms.txt*

> On its own, ChatGPT can't read leboncoin.fr (the site is protected by DataDome). Add OpenScraper's MCP server, `https://mcp.openscraper.ai/mcp`, and ChatGPT collects Leboncoin listings on request, in plain English and with no code, even by the thousands, delivered as an Excel or CSV file. From $0.79 per 1,000 listings (with a subscription; $0.93 without), $5 free at sign-up.

## How it works

1. You ask ChatGPT, for example: “Get the latest 3,000 flats for sale in Bordeaux and put them in an Excel file.”
2. ChatGPT runs the extraction: our servers collect the listings from leboncoin.fr, even by the thousands (about 3,500 per search; beyond that, ChatGPT splits the search).
3. You get the file: price, size, rooms, city… in an Excel or CSV file (download link valid 24 hours), ready to load into your database.

## Connect ChatGPT to Leboncoin

MCP server URL: `https://mcp.openscraper.ai/mcp`

### ChatGPT (browser), no code

1. In ChatGPT, open **Settings → Security and login** and turn on **Developer mode**.
2. Open <https://chatgpt.com/plugins>, click **+**, then **“Add custom MCP server”**.
3. Name it “OpenScraper”, paste the URL `https://mcp.openscraper.ai/mcp` and pick **OAuth** as the authentication.
4. Accept the warning, click **“Create as a plugin”** and sign in with your OpenScraper account.
5. In a new chat, type `@`, pick OpenScraper and ask your question.

Developer mode isn't offered on every ChatGPT plan, and its place in the settings has moved before. In a company workspace, an admin may have to allow custom MCP servers first.

### OpenAI API (for developers)

Copy your OpenScraper API key (`sk_live_…`) from the dashboard, then declare our server as an `mcp` tool in a Responses API call:

```bash
curl https://api.openai.com/v1/responses \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-5",
    "tools": [{
      "type": "mcp",
      "server_label": "openscraper",
      "server_url": "https://mcp.openscraper.ai/mcp",
      "headers": { "Authorization": "Bearer sk_live_..." },
      "require_approval": "never"
    }],
    "input": "Get the latest 500 flats for sale in Bordeaux on Leboncoin and give me the CSV file link."
  }'
```

## Example requests

- “Get every house for sale in Gironde under €400,000 and give me an Excel file with the price per m².”
- “Scrape the latest 2,000 apartment rentals in Lyon and give me the median price per district.”
- “Get the latest 500 diesel Peugeot 208s under €10,000 in Île-de-France, as a CSV.”

## Pricing

The MCP server is free: you only pay for the listings collected. Your ChatGPT plan is separate.

| Plan | Price |
| --- | --- |
| Pay as you go | $0.93 / 1,000 listings |
| Super User subscription (-15%, from $70/month in credits) | $0.79 / 1,000 listings |

$5 free at sign-up, over 5,000 listings. An extraction of 3,000 listings costs about $2.79. Full plans: <https://openscraper.ai/pricing.md>.

## FAQ

**Can ChatGPT read Leboncoin listings on its own?** No. leboncoin.fr is protected by an anti-bot (DataDome) that blocks automated requests, ChatGPT's web browsing included. It needs an external tool that fetches the listings on its behalf.

**How does ChatGPT retrieve Leboncoin listings?** Once our MCP server is connected, ChatGPT goes through OpenScraper's infrastructure, which handles the anti-bot and returns the Leboncoin listings as structured data, ready to be used in its answers.

**Can I get thousands of listings?** Yes. The scraping runs on our servers. One Leboncoin search goes up to about 3,500 listings; beyond that, ChatGPT splits the search (by department, by price range…). It then gives you a link to an Excel or CSV file with every listing (valid 24 hours).

**Do I need to code?** No. In ChatGPT, you turn on Developer mode, paste a URL and sign in. Code is only needed if you go through the OpenAI API.

**Does ChatGPT get access to my Leboncoin account?** No. Only public listings are read; you only sign in to your OpenScraper account.

With Claude: <https://openscraper.ai/claude-leboncoin.md>. To use the listings without an assistant: <https://openscraper.ai/leboncoin-api.md> (parameters: <https://openscraper.ai/docs.md>).
