Skip to content
NewIntroducing lobstr.io API v2: Web Data for AI Agents
Leboncoin: List a conversation's messagesTry it

Leboncoin: List a conversation's messages

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 creditsa callWorks today
Try itDocs
1Request
The conversation: its id, or its link (https://www.leboncoin.fr/messages/id/<id>), as leboncoin/conversations/list gives them (id, url).
The connected Leboncoin account the conversation is in (GET /v2/accounts).
Where to continue, from next in an answer, as it is: opaque, and only for the conversation it was given with (otherwise invalid_cursor).
3 credits 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": "messages/list",
    "options": {
      "conversation": "0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d"
    }
  }'
2Response

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

{
  "object": "run",
  "id": "run_nupgxmwjymlxdmpvye6m2cjaki",
  "livemode": true,
  "source": "leboncoin",
  "operation": "messages/list",
  "version": "1.0.0",
  "schema_url": "https://api.lobstr.io/v2/catalog/leboncoin/messages/list",
  "options": {
    "conversation": "0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d"
  },
  "fields": null,
  "status": "succeeded",
  "count": 2,
  "has_more": false,
  "next": null,
  "cost": {
    "credits": 3
  },
  "results": [
    {
      "object": "message",
      "id": "ac4b8090-ed4d-11f1-8080-808080808080",
      "position": 1,
      "conversation_id": "0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
      "text": "Bonjour GARAGE DU CENTRE,\n\nVotre annonce « Renault Clio V 1.0 TCe 90 Evolution » m'intéresse. Est-elle toujours disponible ?\n\nMerci d'avance !",
      "kind": "template",
      "template": {
        "id": "vehicles_availability",
        "modified": true
      },
      "sent_at": "2026-11-30T07:08:48Z",
      "from_account": true,
      "read": true,
      "read_by_other": true,
      "attachments": [],
      "source_url": "https://www.leboncoin.fr/messages/id/0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
      "observed_at": "2026-12-01T12:00:00Z"
    },
    {
      "object": "message",
      "id": "d186d460-dda6-11f1-8080-808080808080",
      "position": 2,
      "conversation_id": "0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
      "text": "Bonjour, oui le véhicule est toujours disponible",
      "kind": "text",
      "template": null,
      "sent_at": "2026-11-30T10:56:52Z",
      "from_account": false,
      "read": false,
      "read_by_other": true,
      "attachments": [],
      "source_url": "https://www.leboncoin.fr/messages/id/0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
      "observed_at": "2026-12-01T12:00:00Z"
    }
  ]
}

15 fields per message

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

List a conversation's messages

15 fields
object
text
message
id
id
The message's id on Leboncoin.
ac4b8090-ed4d-11f1-8080-808080808080
position
number
Its rank from the first message written: 1 opened the conversation.
1
conversation_id
id
The conversation's id, as conversations/list's `id`.
0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d
text
text
As written, a ready-made message as its writer left it.
Bonjour GARAGE DU CENTRE, Votre annonce « Renault Clio V 1.0 TCe 90 Evolution » m'intéresse. Est-elle toujours disponible ? Merci d'avance !

What it costs

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

Every plan

3 credits a call

Calls a month

100

Per 100 calls

$0.60

On Starter, $20 a month for up to 3,333 calls.

Live

Built to run

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

Successful calls
100.00%
Median call
1.3 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/messages/list.

List a conversation's messages

When do I use it?

You buy or sell on Leboncoin with a connected account and need what was said in a conversation, not only its last message: each message's text as written, whether the account or the person on the other side wrote it, when, whether the account has read it and whether the other side has read the account's, its attachments, and whether it is one of Leboncoin's ready-made messages (kind: template, with its template's id: "Is it still available?" and its answers). Give the conversation's id or its link, as leboncoin/conversations/list returns them. Reading leaves the conversation as it was: its messages stay unseen for the account's owner.

What do I give it?
  • conversation (required): The conversation: its id, or its link (https://www.leboncoin.fr/messages/id/), as leboncoin/conversations/list gives them (id, url).
  • account: The connected Leboncoin account the conversation is in (GET /v2/accounts). Left out, the platform takes the first of your Leboncoin accounts with a free slot.
What does it return?

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. 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?

3 credits a page of up to 50 messages. 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
  • conversationnotfound

Errors

What can go wrong?
  • invalid_options (422): Pass conversation: a conversation's id or its link (https://www.leboncoin.fr/messages/id/), as leboncoin/conversations/list gives them.
  • invalid_cursor (422): This cursor was not given by an answer; send next from the last answer as it is.
  • conversation_not_found (404): This account has no such conversation: it is another account's, or it was deleted. List the account's own with leboncoin/conversations/list (not charged).
  • 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/messages/list. Its page for agents, in Markdown: leboncoin/messages/list.md.

Where is its full description?

The contract, as JSON: https://api.lobstr.io/v2/catalog/leboncoin/messages/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.