{"operation":"listings/search","version":"2.1.0","status":"pilot","title":"Search listings","summary":"One page of a leboncoin.fr search, 35 listings at most, exactly as the page shows them, descriptions included.","use_when":"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`.","categories":["Real estate","Cars","E-commerce"],"icon":"lens","source":"leboncoin","input":{"type":"object","required":["url"],"additionalProperties":false,"properties":{"url":{"type":"string","format":"uri","pattern":"^https://www\\.leboncoin\\.fr/recherche/?(\\?.*)?$","description":"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). 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.","examples":["https://www.leboncoin.fr/recherche?category=9&locations=Lyon__45.76_4.83_7308_5000__d69&real_estate_type=2&sort=time&order=desc","https://www.leboncoin.fr/recherche?category=2&price=min-3000&regdate=2016-max","https://www.leboncoin.fr/recherche?text=v%C3%A9lo+%C3%A9lectrique&shippable=1"]},"cursor":{"type":"string","pattern":"^[A-Za-z0-9_=-]{40,8000}$","description":"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`). Leave it out to start at the URL's page. It goes on where the previous page ended, as Leboncoin's own next page does: a page reached by its URL alone is read as a link to it shows it, and Leboncoin may skip the listings that the featured copies of the page before pushed down."}}},"pagination":{"style":"cursor","page_size":35,"next":{"url":"<url as it was written>","cursor":"<opaque>"},"last_page":100},"record":{"type":"object","additionalProperties":false,"required":["object","id","position","featured","url","title","description","category","ad_type","status","price","buyer_fee","shipping","published_at","republished_at","expires_at","has_phone","is_boosted","paid_options","photos","photo_count","videos","location","seller","attributes","calendar","ids","source_url","observed_at"],"properties":{"object":{"const":"listing","description":"The kind of record: a listing, whichever site it comes from."},"id":{"type":"string","pattern":"^[0-9]+$","description":"Leboncoin's listing id; repeated in ids.listing_id."},"position":{"type":"integer","minimum":1,"description":"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."},"featured":{"type":"boolean","description":"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."},"url":{"type":"string","format":"uri","description":"The listing on leboncoin.fr."},"title":{"type":"string"},"description":{"type":["string","null"],"description":"The seller's text, as written (line breaks kept)."},"category":{"type":"object","additionalProperties":false,"required":["id","name"],"properties":{"id":{"type":"string","description":"Leboncoin's category id: 2 cars, 9 property sales, 10 rentals..."},"name":{"type":"string","description":"As Leboncoin names it","in French.":null}}},"ad_type":{"type":"string","enum":["offer","demand"],"description":"An offer (selling, renting, hiring) or a demand (looking for)."},"status":{"type":"string","description":"Leboncoin's status of the listing: active on a search page."},"price":{"type":["object","null"],"additionalProperties":false,"required":["amount","currency"],"description":"The price the listing shows; null when it shows none (jobs, gifts).","properties":{"amount":{"type":"number"},"currency":{"const":"EUR","description":"ISO 4217."}}},"buyer_fee":{"type":["object","null"],"additionalProperties":false,"required":["amount","currency"],"description":"What Leboncoin adds for a buyer who pays on the site (its buyer protection); null when it does not apply.","properties":{"amount":{"type":"number"},"currency":{"const":"EUR","description":"ISO 4217."}}},"shipping":{"type":"array","description":"The ways the seller ships, each with its price; empty when the listing is hand to hand only.","items":{"type":"object","additionalProperties":false,"required":["type","price","base_price"],"properties":{"type":{"type":["string","null"],"description":"Leboncoin's name of the carrier or service: mondial_relay, shop2shop, colissimo, custom_shipping..."},"price":{"type":["object","null"],"additionalProperties":false,"required":["amount","currency"],"description":"The price the listing shows; null when it shows none (jobs, gifts).","properties":{"amount":{"type":"number"},"currency":{"const":"EUR","description":"ISO 4217."}}},"base_price":{"type":["object","null"],"additionalProperties":false,"required":["amount","currency"],"description":"The price before Leboncoin's discount, when it shows one.","properties":{"amount":{"type":"number"},"currency":{"const":"EUR","description":"ISO 4217."}}}}}},"published_at":{"type":"string","format":"date-time","description":"The first publication, UTC."},"republished_at":{"type":"string","format":"date-time","description":"The date the listing shows and \"Plus récentes\" sorts by, UTC: its first publication, or the last time it was put back on top (an option, an edit)."},"expires_at":{"type":["string","null"],"format":"date-time","description":"When the listing goes offline unless renewed, UTC; null when Leboncoin does not say."},"has_phone":{"type":"boolean","description":"The listing shows a \"Voir le numéro\" button: leboncoin/phones/get reads its number."},"is_boosted":{"type":"boolean","description":"Leboncoin's own flag for a listing pushed by an option."},"paid_options":{"type":"object","additionalProperties":false,"required":["urgent","gallery","photosup","sub_toplist","continuous_top_ads","highlight","booster","has_option"],"description":"The options the seller paid for, under Leboncoin's own names: urgent (the Urgent badge), photosup (more photos), booster and continuous_top_ads (put back on top), gallery, sub_toplist, highlight; has_option when any is on.","properties":{"urgent":{"type":"boolean"},"gallery":{"type":"boolean"},"photosup":{"type":"boolean"},"sub_toplist":{"type":"boolean"},"continuous_top_ads":{"type":"boolean"},"highlight":{"type":"boolean"},"booster":{"type":"boolean"},"has_option":{"type":"boolean"}}},"photos":{"type":"array","description":"Every photo, in the listing's order, at the largest size Leboncoin serves.","items":{"type":"object","additionalProperties":false,"required":["url","is_floor_plan"],"properties":{"url":{"type":"string","format":"uri"},"is_floor_plan":{"type":"boolean","description":"Leboncoin's own reading of the photo as a floor plan (property listings)."}}}},"photo_count":{"type":"integer","minimum":0},"videos":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["url","provider","id"],"properties":{"url":{"type":"string","format":"uri"},"provider":{"type":["string","null"],"description":"youtube","...":null},"id":{"type":["string","null"],"description":"The video's id at its provider."}}}},"location":{"type":"object","additionalProperties":false,"required":["city","postal_code","district","department","region","country_code","latitude","longitude","precision","from_address"],"properties":{"city":{"type":["string","null"]},"postal_code":{"type":["string","null"]},"district":{"type":["string","null"],"description":"The part of the city, when the seller gave an address: Golfe Juan in Vallauris."},"department":{"type":["object","null"],"additionalProperties":false,"required":["id","name"],"properties":{"id":{"type":"string","description":"Leboncoin's id: the department's number (13, 2A), or its own for a region."},"name":{"type":["string","null"]}}},"region":{"type":["object","null"],"additionalProperties":false,"required":["id","name"],"properties":{"id":{"type":"string","description":"Leboncoin's id: the department's number (13, 2A), or its own for a region."},"name":{"type":["string","null"]}},"description":"The region as Leboncoin files it (its former regions: Aquitaine, Rhône-Alpes)."},"country_code":{"type":["string","null"],"pattern":"^[A-Z]{2}$","description":"ISO 3166-1 alpha-2."},"latitude":{"type":["number","null"]},"longitude":{"type":["number","null"]},"precision":{"type":["string","null"],"enum":["street_number","street","district","city",null],"description":"What the point stands for, as Leboncoin says; null when it does not say."},"from_address":{"type":"boolean","description":"The seller gave an address; otherwise only a city, and the point stands for the city."}}},"seller":{"type":"object","additionalProperties":false,"required":["type","id","name","store_id","siren","activity_sector","no_salesmen","fees_url"],"properties":{"type":{"type":"string","enum":["private","pro"]},"id":{"type":["string","null"],"description":"Leboncoin's user id."},"name":{"type":["string","null"],"description":"The seller's name as the listing shows it: a pseudonym, or the shop's name."},"store_id":{"type":["string","null"],"description":"The seller's store on Leboncoin (private sellers have one too)."},"siren":{"type":["string","null"],"description":"French company number","professional sellers who gave it.":null},"activity_sector":{"type":["string","null"],"description":"Leboncoin's id of a professional seller's sector."},"no_salesmen":{"type":"boolean","description":"The seller refuses canvassing."},"fees_url":{"type":["string","null"],"format":"uri","description":"A professional's page of fees (estate agents' scales)."}}},"attributes":{"type":"array","description":"Every attribute Leboncoin gives the listing, in its order and under its own key: the ones the page shows (brand, mileage, rooms, energy rating...), with their French labels, and the others (the seller's rating_score and rating_count, the car's price positioning...). Nothing a category adds is lost.","items":{"type":"object","additionalProperties":false,"required":["key","label","value","value_label","values","values_label"],"properties":{"key":{"type":"string"},"label":{"type":["string","null"],"description":"The French label the page shows, null for one it does not show."},"value":{"type":["string","null"]},"value_label":{"type":["string","null"]},"values":{"type":"array","items":{"type":"string"},"description":"Every value of a list (equipment","options).":null},"values_label":{"type":["array","null"],"items":{"type":"string"}}}}},"calendar":{"type":["object","null"],"additionalProperties":false,"required":["min_price","periods"],"description":"Holiday rentals only, null otherwise; the periods the seller set, open or closed, each with its price.","properties":{"min_price":{"type":["object","null"],"additionalProperties":false,"required":["amount","currency"],"description":"The lowest price of the calendar.","properties":{"amount":{"type":"number"},"currency":{"const":"EUR","description":"ISO 4217."}}},"periods":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["status","start_date","end_date","price"],"properties":{"status":{"type":["string","null"],"description":"open or closed."},"start_date":{"type":["string","null"],"format":"date"},"end_date":{"type":["string","null"],"format":"date"},"price":{"type":["object","null"],"additionalProperties":false,"required":["amount","currency"],"description":"The price the seller set for the period; null for a closed one.","properties":{"amount":{"type":"number"},"currency":{"const":"EUR","description":"ISO 4217."}}}}}}}},"ids":{"type":"object","additionalProperties":false,"required":["listing_id","user_id","store_id"],"description":"Every id Leboncoin gives with the listing.","properties":{"listing_id":{"type":"string"},"user_id":{"type":["string","null"]},"store_id":{"type":["string","null"]}}},"source_url":{"type":"string","format":"uri","description":"The search page these values were read from, its page included."},"observed_at":{"type":"string","format":"date-time","description":"When they were read","UTC.":null}}},"price":{"credits_per_call":100,"description":"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.","free":["empty","failed"]},"deadline":{"default_s":60,"max_s":120},"errors":[{"code":"invalid_url","status":422,"detail":true,"message":"This URL is not a leboncoin.fr search this operation reads."},{"code":"invalid_cursor","status":422,"message":"This cursor was not given by an answer; send `next` from the last answer as it is."},{"code":"site_challenge","status":503,"retryable":true,"message":"Leboncoin asked to prove a person is there; retry in a minute (not charged)."},{"code":"site_unavailable","status":503,"retryable":true,"message":"Leboncoin did not answer in time or refused the call; retry later (not charged)."},{"code":"unexpected_answer","status":424,"retryable":false,"message":"Leboncoin answered in a shape we do not read yet; we are told and fix it, and it is not charged."}],"examples":[{"request":{"url":"https://www.leboncoin.fr/recherche?category=9&locations=Lyon__45.76_4.83_7308_5000__d69&sort=time&order=desc"},"records":[{"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"}],"next":{"url":"https://www.leboncoin.fr/recherche?category=9&locations=Lyon__45.76_4.83_7308_5000__d69&sort=time&order=desc&page=2","cursor":"{\"ids_to_display\":[],\"es_pivot\":\"0.0|1793565058000|3000000035\",\"reranker_offset\":35,\"total\":5335,\"page_number\":1}"}}],"health":{"canaries":[{"url":"https://www.leboncoin.fr/recherche?category=9&locations=Paris&sort=time&order=desc","min_records":30},{"url":"https://www.leboncoin.fr/recherche?category=2&locations=Lyon","min_records":30}],"required_fields":["id","url","title","description","location.city","republished_at","seller.type"]},"changelog":[{"version":"2.1.0","date":"2026-11-13","notes":"`next` keeps the search as it was written and goes on with `cursor`, opaque, as every paged operation of the API (Google's page tokens): copy `next` as before. The URL is no longer rewritten with the next page; its `page` still starts at any page."},{"version":"2.0.0","date":"2026-11-13","notes":"`since` is gone: Leboncoin has no date filter, it was ours, and a page is now served exactly as Leboncoin serves it. To keep only the newest listings, a batch filters on `republished_at` and stops early on a search sorted by date, newest first."},{"version":"1.0.0","date":"2026-11-02","notes":"First version on the API v2: one page of a leboncoin.fr search as the page shows it, featured copies in their place, with every description and attribute; `next` carries the page's cursor, so a search read page by page neither skips nor repeats a listing."}],"object":"operation","id":"leboncoin/listings/search","site":{"title":"Leboncoin","domain":"leboncoin.fr","color":"#FF7A3D"}}