leboncoin-api
/!\ leboncoin.fr is using DataDome to protect his API from library likes this one, it is library is not reliable in production anymore /!\
Documentation
The documentation of the library is available here: https://durieux.me/projects/leboncoin.html.
Install
npm install leboncoin-api
Features
- Search on leboncoin.fr with all functionality available leboncoin.fr
- Get the detailed page of an item
- Get the phone number of the seller (convert the image to string) /!\ This API have an unknown usage limit
Usage
const leboncoin = ;var search = //Search around you with latitude and longitude of your position and a radius in meters. Doing so you don't need to set Region, Department and Location//Exemple for 30km around Lyon//.setArea({"lat": 45.7679705, "lng": 4.8637901999999995, "radius": 30000}) //Add sort, two kind date or price and two ways asc or desc //Exemple for a sort by date asc (older the first) //.setSort({sort_by:"date",sort_order:"asc"}) // will add a range of price ; // will add enums for Meublé and Non meublé // Please check into categories & sub categories constants to know which are the sub categories to add into "addSearchExtra" search;