# leboncoin API

> Search any leboncoin page with its filters, get a listing whole or check it is still online, read the phone number a seller shows, then read and answer your own inbox. JSON with the same fields every time, from your code or your agent.

7 operations, 1 to 100 credits a call, one API key. The page for people: https://www.lobstr.io/store/leboncoin

## Operations

### Search listings: `leboncoin/listings/search`

One page of a leboncoin.fr search, 35 listings at most, exactly as the page shows them, descriptions included.

100 credits a call, 35 listings a page. Its page: https://www.lobstr.io/store/leboncoin/listings/search. Every option, field and error: https://api.lobstr.io/v2/catalog/leboncoin/listings/search.md

| Option | Takes | Default | What it is |
| --- | --- | --- | --- |
| `url` (required) | string |  | A leboncoin.fr search, exactly as the browser shows it once the search is set up (category, place, filters, keywords, sort), its page the page to start at (page=2 is the second page). |

### Get a listing: `leboncoin/listings/get`

One leboncoin.fr listing, whole, by its id or URL, with a search's fields and how many people saved it.

3 credits a call. Its page: https://www.lobstr.io/store/leboncoin/listings/get. Every option, field and error: https://api.lobstr.io/v2/catalog/leboncoin/listings/get.md

| Option | Takes | Default | What it is |
| --- | --- | --- | --- |
| `listing` (required) | string |  | The listing's id, or its URL as it appears in the browser. |

### Check a listing is still online: `leboncoin/listings/check`

Whether a leboncoin.fr listing is still online (active, paused by its seller, or gone), with its dates.

1 credit a call. Its page: https://www.lobstr.io/store/leboncoin/listings/check. Every option, field and error: https://api.lobstr.io/v2/catalog/leboncoin/listings/check.md

| Option | Takes | Default | What it is |
| --- | --- | --- | --- |
| `listing` (required) | string |  | The listing's id, or its URL as it appears in the browser. |

### Get a seller's phone number: `leboncoin/phones/get`

The phone number a seller shows on one leboncoin.fr listing, read with a connected leboncoin account.

6 credits a call. Its page: https://www.lobstr.io/store/leboncoin/phones/get. Every option, field and error: https://api.lobstr.io/v2/catalog/leboncoin/phones/get.md

| Option | Takes | Default | What it is |
| --- | --- | --- | --- |
| `listing` (required) | string |  | The listing's id, or its URL as it appears in the browser. |
| `account` | string |  | The connected leboncoin account to read with (GET /v2/accounts). |

### List conversations: `leboncoin/conversations/list`

A connected leboncoin account's inbox, page after page: each conversation with its listing, the person on the other side, the last message and its date, and its count of unseen messages.

1 credit a call, 50 conversations a page. Its page: https://www.lobstr.io/store/leboncoin/conversations/list. Every option, field and error: https://api.lobstr.io/v2/catalog/leboncoin/conversations/list.md

| Option | Takes | Default | What it is |
| --- | --- | --- | --- |
| `role` | all, buyer, seller | `all` | Which conversations: buyer, those about listings the account wrote to (leboncoin's Achats tab); seller, those about the account's own listings (Ventes); all, both. |
| `unread` | boolean | `false` | Only the conversations with messages the account has not seen (leboncoin's Non lus tab). |
| `account` | string |  | The connected leboncoin account whose inbox to read (GET /v2/accounts). |

### List a conversation's messages: `leboncoin/messages/list`

The messages of one of a connected leboncoin account's conversations, oldest first, page after page: who wrote, what, when, whether each side has read it, and leboncoin's ready-made messages told apart.

3 credits a call, 50 messages a page. Its page: https://www.lobstr.io/store/leboncoin/messages/list. Every option, field and error: https://api.lobstr.io/v2/catalog/leboncoin/messages/list.md

| Option | Takes | Default | What it is |
| --- | --- | --- | --- |
| `conversation` (required) | string |  | The conversation: its id, or its link (https://www.leboncoin.fr/messages/id/<id>), as leboncoin/conversations/list gives them (id, url). |
| `account` | string |  | The connected leboncoin account the conversation is in (GET /v2/accounts). |

### Send a message: `leboncoin/messages/send`

Sends a reply with a connected leboncoin account in one of its conversations, as its messages page does, and answers the message as leboncoin keeps it.

20 credits a call. Its page: https://www.lobstr.io/store/leboncoin/messages/send. Every option, field and error: https://api.lobstr.io/v2/catalog/leboncoin/messages/send.md

| Option | Takes | Default | What it is |
| --- | --- | --- | --- |
| `conversation` (required) | string |  | The conversation to reply in: its id, or its link (https://www.leboncoin.fr/messages/id/<id>), as leboncoin/conversations/list gives them. |
| `text` (required) | string |  | The message, as the person reading it will see it: plain text, line breaks kept, 2,000 characters at most. |
| `account` | string |  | The connected leboncoin account that writes, the conversation's own (GET /v2/accounts). |

## Call it

From code, one endpoint for every operation:

```bash
curl https://api.lobstr.io/v2/run \
  -H "Authorization: Bearer $LOBSTR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"source":"leboncoin","operation":"listings/search","options":{"url":"https://www.leboncoin.fr/recherche?category=9&locations=Lyon__45.76_4.83_7308_5000__d69&sort=time&order=desc"}}'
```

The answer holds `results` (the records), `count`, `cost.credits` and `next`: the whole call for the following page, to send as it is; null on the last page. SDKs: `pip install lobstrio`, `npm install lobstrio` (https://docs.lobstr.io/sdks).

From an AI agent: the MCP server https://api.lobstr.io/v2/mcp with your API key, in Claude, ChatGPT, Cursor or any MCP client. Its tools: find_operations, get_operation, run_operation, get_balance, send_feedback. Setup for each agent: https://docs.lobstr.io/agents

The API key is in the dashboard, under API: https://app.lobstr.io/dashboard/api. No account yet? An agent can get one for the person it works for: https://www.lobstr.io/auth.md

## Why lobstr.io

- **One key, every source**: No Pro offer, no feed manager, no partner software. One lobstr.io key reaches leboncoin and 20 other sources, from Google Maps to LinkedIn Sales Navigator, on the same credits.
- **Built for agents**: Five MCP tools, nothing to learn: your agent finds the operation, reads what it takes and gives, runs it and follows next. Your code gets the same through the SDKs or plain HTTP.
- **Measured in public**: Every call of the last 90 days counts in the figures on this page, and a failed call is free. 6 of its 7 operations are also run every 1 to 6 hours by our own checks.

## Price

1 to 100 credits a call, whatever the page holds; an empty page and a failed call are free. The plans:

- Free: $0 a month, 100 credits a month
- Starter: $20 a month, 10,000 credits a month
- Pro: $100 a month, 100,000 credits a month
- Team: $500 a month, 1,000,000 credits a month

Every plan compared: https://www.lobstr.io/pricing.md

## leboncoin API reliability

Every call of the last 90 days, from our users and from our own checks. 6 of its 7 operations are also run every 1 to 6 hours by our own checks. A failed call is free.

| Operation | Calls | Successful | Median call |
| --- | --- | --- | --- |
| `leboncoin/listings/search` | 689 | 93.03% | 15.3 s |
| `leboncoin/listings/get` | 899 | 98.00% | 1.1 s |
| `leboncoin/listings/check` | 609 | 97.87% | 1.2 s |
| `leboncoin/phones/get` | 104 | 92.31% | 1.6 s |
| `leboncoin/conversations/list` | 28 | 100.00% | 1.5 s |
| `leboncoin/messages/list` | 21 | 100.00% | 1.3 s |
| `leboncoin/messages/send` | 2 | 100.00% | 5.8 s |

## leboncoin API FAQ

### Is there an official leboncoin API?

Not one that reads its listings. leboncoin’s professional offers publish a pro’s own listings automatically, and its Offre Agilité connects a pro’s feed manager (Shoppingfeed, Sellermania, Octopia, Beezup, Iziflux) to keep its catalogue and stock in sync on leboncoin. lobstr.io reads leboncoin as a visitor sees it: any search with its filters, any listing whole, the phone a seller shows, with an API key.

### Do I need a leboncoin account?

Not to search listings, get one or check it is still online: those calls go out signed out, as a visitor’s browser. A seller’s phone number, your inbox and your messages need your leboncoin account, private or pro, connected once with the [lobstr.io Chrome extension](https://www.lobstr.io/chrome-extension). lobstr.io never takes an account in silence.

### Can I get the sellers’ phone numbers?

Yes, with your connected account. A search says which listings show a “Voir le numéro” button (has_phone), and leboncoin/phones/get reads that number, 6 credits a number found. Each account reads about one number a minute, up to 300 a day. A listing without a number costs nothing.

### Can I answer buyers from my code?

Yes, with your connected account. leboncoin/conversations/list reads your inbox, as a buyer, a seller or both, the unread alone if you like; messages/list reads a conversation back to its first message, without marking it read; messages/send replies in a conversation you already have, 20 credits a message, 5 a day for an account. Each message is sent once and never retried. A first message to a seller is not offered yet.

### Do I need a leboncoin Pro offer?

No. A lobstr.io API key is all it takes, and the free plan gives 100 credits a month.

### What does a call cost?

100 credits a page of 35 listings, 3 for a listing whole, 1 to check a listing, 6 for a phone number, 1 for a page of 50 conversations, 3 for a page of 50 messages, 20 for a message sent: 1,000 credits cost $0.50 to $2 depending on the plan. An empty page, a listing gone, a listing without a number, a message leboncoin refuses, a busy account and a failed call are free.

### Can my AI agent use it?

Yes. Add the lobstr.io MCP server to Claude, ChatGPT, Cursor or any MCP client: the agent finds the operation, runs it and follows next by itself. [Setup for each agent](https://docs.lobstr.io/agents).

### Is there an SDK?

Yes: lobstrio, on PyPI and npm, with a typed method for each operation (client.leboncoin.listings.search in Python) and a loop over every page. [The SDKs](https://docs.lobstr.io/sdks).

### Can I combine leboncoin with other sources?

Yes, on the same key and the same credits. Set a flat next to the homes [SeLoger](https://www.lobstr.io/store/seloger/listings/search) and Bien’ici list in the same city, or a car next to those of [La Centrale](https://www.lobstr.io/store/lacentrale/listings/search). An agent chains them by itself.

### How reliable is the leboncoin API on lobstr.io?

Every call of the last 90 days is drawn on this page, day by day, and a failed call is free. 6 of its 7 operations are also run every 1 to 6 hours by our own checks, so a change on leboncoin shows within 6 hours.

## Related sources

- [SeLoger: Search listings](https://www.lobstr.io/store/seloger.md): The homes SeLoger lists to buy or to rent in the same city, each with its agency’s phone. 15 credits a call.
- [Bien'ici: Search listings](https://www.lobstr.io/store/bienici.md): Bien’ici’s homes for any French place, filtered by price, surface, rooms and features. 1 credit a call.
- [La Centrale: Search vehicle listings](https://www.lobstr.io/store/lacentrale.md): Used cars from dealers and private owners, with their mileage and the seller’s public phones. 23 credits a call.
- [Facebook Marketplace: Search listings](https://www.lobstr.io/store/facebook_marketplace.md): The same kind of classifieds on Facebook Marketplace, any category with its filters. 1 credit a call.
