Leboncoin: Search listings
One page of a leboncoin.fr search, 35 listings at most, exactly as the page shows them, descriptions included.
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" } }'
An example answer, from the contract. Run it on your own input with your API key.
{ "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" } ] }
61 fields per listing
Every call returns them for each record, in the results of its JSON answer.
Search listings
61 fields- object
- text
- The kind of record: a listing, whichever site it comes from.
- listing
- id
- id
- Leboncoin's listing id; repeated in ids.listing_id.
3000000001- position
- number
- Its place among the cards the search shows, across pages (35 a page): 36 is the first of page 2. A featured copy has a place of its own, as on the page.
- 1
- featured
- yes / no
- Shown with Leboncoin's "À la une" badge at this place (a paid option). Sorted by date, Leboncoin also puts such listings at the top of the page: the same listing then comes twice, featured at the top and in its own place by date, as the page shows it.
- No
What it costs
Billed by the call: 100 credits, whatever the page holds (up to 35 listings). Pick how many calls a month.
100 credits a call
Calls a month
100
Built to run
Every call counts; a day is green at 99.5% successful.
- Successful calls
- 89.57%
- Median call
- 15.8 s
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/listings/search.
Search listings
When do I use it?
You need the listings of a leboncoin.fr search: title, description, price, place, seller, photos, every attribute (property, vehicle, job...), and whether the seller shows a phone (has_phone). Set the search up on leboncoin.fr (category, place, filters, sort), then pass its URL. For a seller's number, call leboncoin/phones/get on a listing with has_phone.
What do I give it?
url(required): A leboncoin.fr search, exactly as the browser shows it once the search is set up (category, place, filters, keywords, sort), itspagethe page to start at (page=2 is the second page). Sort by date, newest first, with sort=time&order=desc ("Plus récentes"). Every filter of the site is read; a parameter Leboncoin does not filter on is refused, never ignored.
What does it return?
One page of a leboncoin.fr search, 35 listings at most, exactly as the page shows them, descriptions included. 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 35 records at most, up to page 100.
Pricing
What does a call cost?
100 credits a call, whatever the page holds: a short last page costs a whole call. An empty page and a failed call are free.
When is a call free?
- an empty page (past the end, or nothing found)
- a call that fails
Errors
What can go wrong?
invalid_url(422): This URL is not a leboncoin.fr search this operation reads.invalid_cursor(422): This cursor was not given by an answer; sendnextfrom the last answer as it is.site_challenge(503, retry): Leboncoin asked to prove a person is there; retry in a minute (not charged).site_unavailable(503, retry): Leboncoin did not answer in time or refused the call; retry later (not charged).unexpected_answer(424): Leboncoin answered in a shape we do not read yet; we are told and fix it, and it is not charged.
How long can a call take?
60 seconds at most by default, up to 120 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/listings/search. Its page for agents, in Markdown: leboncoin/listings/search.md.
Where is its full description?
The contract, as JSON: https://api.lobstr.io/v2/catalog/leboncoin/listings/search: 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.