Skip to content
OperationsLeboncoin

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.

leboncoin/conversations/list1 credit a callv1.0.0

When to 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.

It runs with one of your own Leboncoin accounts, connected once: Accounts.

Try it

The options on the left write the call; the answer on the right is the contract's example. With your API key, the same call returns live data.

1Request
Only the conversations with messages the account has not seen (Leboncoin's Non lus tab).
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. Run it on your own input.

{
  "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"
    }
  ]
}

Options

role"all" | "buyer" | "seller"Default 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.
unreadbooleanDefault false
Only the conversations with messages the account has not seen (Leboncoin's Non lus tab).
accountstring
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.
cursorstring
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).

Record

Each record of results, in the envelope every call returns (Run an operation).

objectstring
idstring
The conversation's id on Leboncoin: leboncoin/messages/list reads its messages.
positioninteger
Its rank in the inbox, across pages (51 is the first of page 2); a filter leaves gaps.
rolestring
buyer: the account wrote about someone else's listing; seller: about the account's own.
urlstring
The conversation on leboncoin.fr (www.leboncoin.fr/messages/id/).
listing.idstring
leboncoin/listings/get reads it whole.
listing.titlestring
listing.statusstring
As Leboncoin says it: active, deleted (no longer online).
listing.category_idstring
Leboncoin's category number: 2 for cars, 9 for flats and houses for sale.
listing.photo_urlstring
listing.owner_idstring
Its seller's id: the account's own when role is seller.
listing.owner_typestring
professional or private; null once the listing is deleted.
other.idstring
other.namestring
As Leboncoin shows it: a pseudonym, or a pro store name (RENAULT ETAMPES).
last_message.textstring
Its preview, as written.
last_message.sent_atdate
last_message.attachments_countinteger
How many photos or files it carries.
unread_countinteger
How many messages the account has not seen.
accountstring
The connected account it was read with, when one was named.
source_urlstring
The inbox on leboncoin.fr.
observed_atdate

Errors

Its own, besides those of every call (Errors). A failed call is free.

CodeStatusWhat it means
invalid_options422role is all, buyer or seller; unread is true or false.
invalid_cursor422This cursor was not given by an answer; send next from the last answer as it is.
account_required422You 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_limited429This 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. Retryable.
account_quota_exceeded429This Leboncoin account reached its calls for today; retry_after says when the day starts over (midnight UTC). Retryable.
account_unusable409Leboncoin 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_challenge503Leboncoin asked this account to prove it is a person. Open leboncoin.fr in the browser the account syncs from, then retry (not charged). Retryable.
site_unavailable503Leboncoin did not answer properly; retry later (not charged). Retryable.
unexpected_answer424Leboncoin answered in a shape we do not read yet; we are told and fix it (not charged).

Price

1 credit a page of up to 50 conversations. An empty page, a busy account and a failed call are free. What a credit costs on each plan: Credits and pricing.

Each connected account makes one call every 5 seconds, plus 0 to 3 seconds and 600 a day; a busy account answers at once with account_rate_limited and retry_after.

Changelog

1.0.02026-12-01
First version: a connected Leboncoin account's inbox, private or pro, 50 conversations a page, each with its listing, the person on the other side, the last message, its unseen count and its link; as a buyer, a seller or both, and only the unread ones.