Leboncoin whoami
Report which Leboncoin account this browser is signed in as: the account email (and name when set), from Leboncoin's own account data. Being signed out is reported as a normal answer (loggedIn false), not an error, so it can be used to check a session before running other Leboncoin scripts.
Input
None
Output
loggedIn requiredname optionalemail optionalFAQ
Get Leboncoin ad
Fetch a single Leboncoin classified ad by its URL. Returns title, full description, price, seller info, location, favorites count, all images, and a generic list of the ad's own category-specific attributes (e.g. mileage/fuel for a car, rooms/surface for a real estate listing, condition/material for furniture) with their labels and values as leboncoin itself displays them. Works across every category since the attribute list is read generically rather than assuming a fixed schema per category.
Search Leboncoin ads
Search Leboncoin classifieds by keyword, location, category, price range and seller type, sorted by relevance, newest or price. Returns total, max_pages, count and one page of 35 ads (id, url, title, price, city, zipcode, category, seller type, publication and listing dates, thumbnail, photo count, and whether the ad is promoted). Leboncoin places promoted ads among the results whatever the sort. A search with no match returns an empty list; a page past the last one fails with the page count.
Search leboncoin jobs
Search leboncoin's job listings ("Offres d'emploi") by free-text keyword and optional city. Results include salary, contract type, sector, experience, study level and work time when the poster provided them; those fields are null otherwise, which is common for ads with no company attached. The location is matched against leboncoin's own city list, picking the closest whole-city match; an unrecognized city is refused. Pagination is 1-based, 35 results per page; a page beyond the last is refused rather than returned as an empty result. A keyword with no match returns an empty result, not an error.
