Skip to content
NewIntroducing lobstr.io API v2: Web Data for AI Agents
Leboncoin: List conversationsTry it

Leboncoin: List conversations

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 credita callWorks today
Try itDocs
1Request
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.
Only the conversations with messages the account has not seen (Leboncoin's Non lus tab).
The connected Leboncoin account whose inbox to read (GET /v2/accounts).
Where to continue, from next in an answer, as it is: opaque, and only for the inbox and filters it was given with (otherwise invalid_cursor).
1 credit a call
Code, from the fields above
curl https://api.lobstr.io/v2/run \
  -H "Authorization: Bearer $LOBSTR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "source": "leboncoin",
    "operation": "conversations/list",
    "options": {
      "unread": true
    }
  }'
2Response

An example answer, from the contract. Run it on your own input with your API key.

{
  "object": "run",
  "id": "run_nr4ehsb3rf6gwz2vsq77oqcwo4",
  "livemode": true,
  "source": "leboncoin",
  "operation": "conversations/list",
  "version": "1.0.0",
  "schema_url": "https://api.lobstr.io/v2/catalog/leboncoin/conversations/list",
  "options": {
    "unread": true
  },
  "fields": null,
  "status": "succeeded",
  "count": 1,
  "has_more": false,
  "next": null,
  "cost": {
    "credits": 1
  },
  "results": [
    {
      "object": "conversation",
      "id": "0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
      "position": 1,
      "role": "buyer",
      "url": "https://www.leboncoin.fr/messages/id/0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
      "listing": {
        "id": "3000000001",
        "title": "Renault Clio V 1.0 TCe 90 Evolution",
        "status": "active",
        "category_id": "2",
        "photo_url": "https://img.leboncoin.fr/api/v1/lbcpb1/images/00/00/00/0000000000000000000000000000000000000000.jpg?rule=ad-thumb",
        "owner_id": "11111111-2222-4333-8444-555555555555",
        "owner_type": "professional"
      },
      "other": {
        "id": "11111111-2222-4333-8444-555555555555",
        "name": "GARAGE DU CENTRE"
      },
      "last_message": {
        "text": "Bonjour, oui le véhicule est toujours disponible",
        "sent_at": "2026-11-30T10:56:52Z",
        "attachments_count": 0
      },
      "unread_count": 1,
      "account": null,
      "source_url": "https://www.leboncoin.fr/messages",
      "observed_at": "2026-12-01T12:00:00Z"
    }
  ]
}

21 fields per conversation

Every call returns them for each record, in the results of its JSON answer.

List conversations

21 fields
object
text
conversation
id
id
The conversation's id on Leboncoin: leboncoin/messages/list reads its messages.
0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d
position
number
Its rank in the inbox, across pages (51 is the first of page 2); a filter leaves gaps.
1
role
text
buyer: the account wrote about someone else's listing; seller: about the account's own.
buyer
url
link
The conversation on leboncoin.fr (www.leboncoin.fr/messages/id/<id>).
leboncoin.fr/messages/id/0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d

What it costs

Billed by the call: 1 credits, whatever the page holds (up to 50 conversations). Pick how many calls a month.

Every plan

1 credit a call

Calls a month

100

Per 100 calls

Free

On the free plan, up to 100 calls a month.

Live

Built to run

Every call counts; a day is green at 99.5% successful.

Successful calls
100.00%
Median call
1.2 s
90 days agoToday
99.5% or more (SLA)98 to 99.5%95 to 98%Under 95%

A call fails when the site does not answer or we cannot read its answer; a wrong input is not counted.

Frequently asked questions

What people ask before calling leboncoin/conversations/list.

List conversations

When do I use it?

You buy or sell on Leboncoin with a connected account and need its inbox: the conversations about the listings you wrote to (role: buyer) and about your own listings (role: seller), or both (the default), the most recent first, each with its listing (id, title, status, category, photo, its seller's id and whether a pro), the person on the other side (name, id), the last message as written and when, its count of messages not seen, and its link. Keep only the conversations with unseen messages (unread), like Leboncoin's Non lus tab. A conversation's messages are leboncoin/messages/list's: give it the conversation's id. Private and pro accounts alike.

What do I give it?
  • role: 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: Only the conversations with messages the account has not seen (Leboncoin's Non lus tab).
  • account: The connected Leboncoin account whose inbox to read (GET /v2/accounts). Left out, the platform takes the first of your Leboncoin accounts with a free slot.
What does it return?

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. Every record has the same fields, empty ones included: they are all listed above.

How do I get the next page?

Each answer ends with next: the following call, whole. Send it as it is; it is null after the last page. A page holds 50 records at most.

Pricing

What does a call cost?

1 credit a page of up to 50 conversations. An empty page, a busy account and a failed call are free.

When is a call free?
  • an empty page (past the end, or nothing found)
  • a call that fails
  • a call the account is too busy for (it answers with retry_after)
  • a call past the account’s daily quota
  • a call the site challenged

Errors

What can go wrong?
  • invalid_options (422): role is all, buyer or seller; unread is true or false.
  • invalid_cursor (422): This cursor was not given by an answer; send next from the last answer as it is.
  • account_required (422): You have no connected Leboncoin account. Connect one with POST /v2/accounts {"site": "leboncoin", "cookies": ...}, the cookies of a browser where you are logged in to Leboncoin (https://docs.lobstr.io/accounts).
  • account_rate_limited (429, retry): This Leboncoin account cannot read right now: it pauses a few seconds between two calls, makes 600 a day across the messaging operations, and Leboncoin can slow it down. retry_after says when it can again, in seconds. Retrying before then gets this same answer: nothing is queued.
  • account_quota_exceeded (429, retry): This Leboncoin account reached its calls for today; retry_after says when the day starts over (midnight UTC).
  • account_unusable (409): Leboncoin logged this account out. Connect it again with POST /v2/accounts and fresh cookies from a browser where you are logged in (the same login keeps its id).
  • site_challenge (503, retry): Leboncoin asked this account to prove it is a person. Open leboncoin.fr in the browser the account syncs from, then retry (not charged).
  • site_unavailable (503, retry): Leboncoin did not answer properly; retry later (not charged).
  • unexpected_answer (424): Leboncoin answered in a shape we do not read yet; we are told and fix it (not charged).
How long can a call take?

30 seconds at most by default, up to 60 with timeout_s. A call past it answers timeout (408), is not charged, and can be sent again.

API and agents

Can my AI agent run it?

Yes: connect the lobstr.io MCP server (https://api.lobstr.io/v2/mcp, your API key as a Bearer token); its run_operation tool runs leboncoin/conversations/list. Its page for agents, in Markdown: leboncoin/conversations/list.md.

Where is its full description?

The contract, as JSON: https://api.lobstr.io/v2/catalog/leboncoin/conversations/list: every option, every field, the price and the errors. This page is drawn from it.

Ready to call it?

An API key in a minute, then the call above, from your code or your agent.