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.0When 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.
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.
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 } }'
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 allbuyer, those about listings the account wrote to (Leboncoin's Achats tab); seller, those about the account's own listings (Ventes); all, both.unreadbooleanDefault falseaccountstringcursorstringnext 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).
objectstringidstringpositionintegerrolestringurlstringlisting.idstringlisting.titlestringlisting.statusstringlisting.category_idstringlisting.photo_urlstringlisting.owner_idstringrole is seller.listing.owner_typestringother.idstringother.namestringlast_message.textstringlast_message.sent_atdatelast_message.attachments_countintegerunread_countintegeraccountstringsource_urlstringobserved_atdateErrors
Its own, besides those of every call (Errors). A failed call is free.
| Code | Status | What it means |
|---|---|---|
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 | 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. Retryable. |
account_quota_exceeded | 429 | This Leboncoin account reached its calls for today; retry_after says when the day starts over (midnight UTC). Retryable. |
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 | Leboncoin 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_unavailable | 503 | Leboncoin did not answer properly; retry later (not charged). Retryable. |
unexpected_answer | 424 | Leboncoin 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