Skip to content
NewIntroducing lobstr.io API v2: Web Data for AI Agents
leboncoin APITry it

Try the leboncoin API

Pick an operation: its request in cURL, Python or Node, and its answer.

1Request
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).
Where to go on, from next in an answer, as it is: opaque, and only for the search it was given with (otherwise invalid_cursor).
100 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": "listings/search",
    "options": {
      "url": "https://www.leboncoin.fr/recherche?category=9&locations=Lyon__45.76_4.83_7308_5000__d69&sort=time&order=desc"
    }
  }'
2Response

An example answer. Run it on your own input.

{
  "object": "run",
  "id": "run_jdcbrm3rrntchrzax4eu5tkqgy",
  "livemode": true,
  "source": "leboncoin",
  "operation": "listings/search",
  "version": "2.1.0",
  "schema_url": "https://api.lobstr.io/v2/catalog/leboncoin/listings/search",
  "options": {
    "url": "https://www.leboncoin.fr/recherche?category=9&locations=Lyon__45.76_4.83_7308_5000__d69&sort=time&order=desc"
  },
  "fields": null,
  "status": "succeeded",
  "count": 1,
  "has_more": true,
  "next": {
    "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",
      "cursor": "gAAAAABpNWd0x2kQ8vZr3TfYc1LmRb7uHsE9wA4jXoKqDn6yPiGt5"
    }
  },
  "cost": {
    "credits": 100
  },
  "results": [
    {
      "object": "listing",
      "id": "3000000001",
      "position": 1,
      "featured": false,
      "url": "https://www.leboncoin.fr/ad/ventes_immobilieres/3000000001",
      "title": "Appartement 3 pièces 64 m²",
      "description": "Lumineux, proche métro.\nLibre au 1er décembre.",
      "category": {
        "id": "9",
        "name": "Ventes immobilières"
      },
      "ad_type": "offer",
      "status": "active",
      "price": {
        "amount": 289000,
        "currency": "EUR"
      },
      "buyer_fee": null,
      "shipping": [],
      "published_at": "2026-10-21T07:14:00Z",
      "republished_at": "2026-11-02T08:30:12Z",
      "expires_at": "2027-01-01T08:30:12Z",
      "has_phone": true,
      "is_boosted": false,
      "paid_options": {
        "urgent": false,
        "gallery": false,
        "photosup": false,
        "sub_toplist": false,
        "continuous_top_ads": false,
        "highlight": false,
        "booster": false,
        "has_option": false
      },
      "photos": [
        {
          "url": "https://img.leboncoin.fr/api/v1/lbcpb1/images/00/00/00/example.jpg?rule=ad-large",
          "is_floor_plan": false
        }
      ],
      "photo_count": 1,
      "videos": [],
      "location": {
        "city": "Lyon",
        "postal_code": "69003",
        "district": null,
        "department": {
          "id": "69",
          "name": "Rhône"
        },
        "region": {
          "id": "22",
          "name": "Rhône-Alpes"
        },
        "country_code": "FR",
        "latitude": 45.75,
        "longitude": 4.85,
        "precision": null,
        "from_address": false
      },
      "seller": {
        "type": "pro",
        "id": "00000000-0000-0000-0000-000000000000",
        "name": "Acme Immobilier",
        "store_id": "1000001",
        "siren": "000000000",
        "activity_sector": "2",
        "no_salesmen": true,
        "fees_url": null
      },
      "attributes": [
        {
          "key": "real_estate_type",
          "label": "Type de bien",
          "value": "2",
          "value_label": "Appartement",
          "values": [
            "2"
          ],
          "values_label": null
        },
        {
          "key": "square",
          "label": "Surface habitable",
          "value": "64",
          "value_label": "64 m²",
          "values": [
            "64"
          ],
          "values_label": null
        },
        {
          "key": "energy_rate",
          "label": "Classe énergie",
          "value": "c",
          "value_label": "C",
          "values": [
            "c"
          ],
          "values_label": null
        }
      ],
      "calendar": null,
      "ids": {
        "listing_id": "3000000001",
        "user_id": "00000000-0000-0000-0000-000000000000",
        "store_id": "1000001"
      },
      "source_url": "https://www.leboncoin.fr/recherche?category=9&locations=Lyon__45.76_4.83_7308_5000__d69&sort=time&order=desc",
      "observed_at": "2026-11-02T09:00:00Z"
    }
  ]
}

leboncoin API operations

7 operations, one key, the same envelope: results, count, cost and next for the following page.

Get a listing

3 creditsa call

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

OptionTakesWhat it is
listing*stringThe listing's id, or its URL as it appears in the browser.

Check a listing is still online

1 credita call

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

OptionTakesWhat it is
listing*stringThe listing's id, or its URL as it appears in the browser.

Get a seller's phone number

6 creditsa call

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

OptionTakesWhat it is
listing*stringThe listing's id, or its URL as it appears in the browser.
accountstringThe connected leboncoin account to read with (GET /v2/accounts).

List conversations

1 credita call50 conversations a page

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.

OptionTakesWhat it is
unreadbooleandefault falseOnly the conversations with messages the account has not seen (leboncoin's Non lus tab).

List a conversation's messages

3 creditsa call50 messages a page

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.

OptionTakesWhat it is
conversation*stringThe conversation: its id, or its link (https://www.leboncoin.fr/messages/id/<id>), as leboncoin/conversations/list gives them (id, url).
accountstringThe connected leboncoin account the conversation is in (GET /v2/accounts).

Send a message

20 creditsa call

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.

OptionTakesWhat it is
conversation*stringThe conversation to reply in: its id, or its link (https://www.leboncoin.fr/messages/id/<id>), as leboncoin/conversations/list gives them.
text*stringThe message, as the person reading it will see it: plain text, line breaks kept, 2,000 characters at most.
accountstringThe connected leboncoin account that writes, the conversation's own (GET /v2/accounts).

Use the leboncoin API in your agent

One key, then your agent or your code calls every operation of this page.

  1. 01

    Connect lobstr.io

    Add the lobstr.io MCP server to Claude, ChatGPT, Cursor or any MCP client, or take an API key for your code.

    Claude
    ChatGPT
    Cursor
  2. 02

    Ask, or call

    Tell your agent what you need from leboncoin: it finds the operations that fit and runs them. From your code, it is one POST to /v2/run.

    Find the flats for sale by private sellers in Lyon posted this week under 300,000 euros, and get me the phone numbers of those who show one.

    Search listings
    Get a seller's phone number
  3. 03

    Pay per call

    1 to 100 credits a call that returns data, from your plan’s credits. The free plan gives 100 credits a month.

    35 listings 100
    Empty pageFree
    Failed callFree

Why lobstr.io

What you get when your agent or your code calls leboncoin through lobstr.io.

01

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.

02

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.

lobstr.ioConnected
find_operations
get_operation
run_operation
get_balance
send_feedback
03

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.

Last 30 days

What it costs

Set what you need from each operation in a month: the credits add up, and the plan that holds them is the price.

Every plan
Search listings1,0002,900 credits
Get a listing100300 credits
Check a listing is still online00 credits
Get a seller's phone number100600 credits
List conversations00 credits
List a conversation's messages00 credits
Send a message00 credits

Each operation’s price a call: 35 listings, 50 conversations or 50 messages.

A month

$20

3,800 credits a month: Starter holds 10,000.

Live

leboncoin API reliability

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

Successful calls
96.30%
Median call
5.9 s
90 days agoToday
95% or more (SLA)90 to 95%75 to 90%Under 75%

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

leboncoin API FAQ

What people ask before calling the leboncoin API.

Listings, phones and messages

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

Using the API

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.

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.

Can I combine leboncoin with other sources?

Yes, on the same key and the same credits. Set a flat next to the homes SeLoger and Bien’ici list in the same city, or a car next to those of La Centrale. 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.

Ready to call it?

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