Discover/leboncoin.fr API
live

leboncoin.fr APIleboncoin.fr

Access leboncoin.fr listings via API. Search cars, real estate, jobs, and more with price filters, location codes, and seller profiles.

Endpoints
5
Updated
28d ago
Try it
Page number (1-100)
Search keyword (e.g., 'iphone', 'voiture')
Category ID (e.g., '2' for cars, '9' for real estate sales, '15' for electronics, '33' for jobs)
Location code: d_XX for department (e.g., d_39 for Jura, d_75 for Paris), r_XX for region (e.g., r_12 for Ile-de-France)
Maximum price filter in euros
Minimum price filter in euros
api.parse.bot/scraper/e47ee25c-b3eb-449c-b65b-e512fd4cf897/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Use it in your codegrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/e47ee25c-b3eb-449c-b65b-e512fd4cf897/search_listings?page=1&query=iphone&location=d_75' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 5 totalclick to expand

Search for listings on leboncoin.fr with optional filters. Returns paginated results up to 100 pages. Location uses leboncoin codes: d_XX for departments (e.g., d_39 for Jura, d_75 for Paris), r_XX for regions (e.g., r_12 for Ile-de-France).

Input
ParamTypeDescription
pageintegerPage number (1-100)
querystringSearch keyword (e.g., 'iphone', 'voiture')
categorystringCategory ID (e.g., '2' for cars, '9' for real estate sales, '15' for electronics, '33' for jobs)
locationstringLocation code: d_XX for department (e.g., d_39 for Jura, d_75 for Paris), r_XX for region (e.g., r_12 for Ile-de-France)
price_maxintegerMaximum price filter in euros
price_minintegerMinimum price filter in euros
Response
{
  "type": "object",
  "fields": {
    "page": "integer current page number",
    "total": "integer total number of matching listings",
    "results": "array of listing objects with id, title, price, url, date, category, location, images, owner, owner_type, attributes",
    "max_pages": "integer maximum page number available",
    "total_all": "integer total across all categories"
  },
  "sample": {
    "data": {
      "page": 1,
      "total": 384024,
      "results": [
        {
          "id": 3172761225,
          "url": "https://www.leboncoin.fr/ad/telephones_objets_connectes/3172761225",
          "date": "2026-04-02 20:40:37",
          "owner": "[email protected]",
          "price": 110,
          "title": "Iphone 11",
          "images": [
            "https://img.leboncoin.fr/api/v1/lbcpb1/images/98/f9/32/98f9323abab2743719b4a45013f2e2b3b3d913c8.jpg?rule=ad-image"
          ],
          "category": "Téléphones & Objets connectés",
          "location": "Courcelles-lès-Lens 62970",
          "attributes": {
            "condition": "Très bon état",
            "phone_brand": "Apple",
            "phone_model": "iPhone 11"
          },
          "owner_type": "private"
        }
      ],
      "max_pages": 100,
      "total_all": 384024
    },
    "status": "success"
  }
}

About the leboncoin.fr API

This API exposes 5 endpoints covering leboncoin.fr, France's largest classifieds platform, returning listing data across cars, real estate, electronics, and jobs. The search_listings endpoint accepts category IDs, price range filters, and department or region location codes to return paginated results including title, price, images, owner info, and listing attributes. Dedicated endpoints for car search and price analytics are also included.

Search and Filter Listings

The search_listings endpoint returns paginated results (up to 100 pages) with fields including id, title, price, url, date, category, location, images, owner, owner_type, and attributes. You can narrow results using category (e.g., '2' for cars, '9' for real estate sales, '15' for electronics, '33' for jobs), price_min/price_max in euros, and location using leboncoin's own coding scheme: d_XX for departments (e.g., d_75 for Paris) and r_XX for regions (e.g., r_12 for Ile-de-France). The response also exposes total, max_pages, and total_all so you can page through result sets accurately.

Listing Details and Car Search

get_listing_detail accepts either a full listing URL or a numeric listing ID and returns the complete listing record: description, full images array, attributes object with listing-specific fields, seller owner name, location as city and postal code, and first publication date. The dedicated search_cars endpoint wraps car-category filtering with additional make and model parameters — pass uppercase make names like 'PEUGEOT' or 'BMW' alongside a model string to filter results without manually specifying the category.

Price Analytics and Seller Profiles

get_average_price computes average, min, max, and count of priced listings matching a keyword query, scoped to an optional category. Statistics are calculated from up to 35 listings from the first result page, so treat these as indicative market prices rather than exhaustive aggregations. get_seller_profile takes a user_id from listing detail responses and returns the seller's public name and an array of their active ads.

Common use cases
  • Monitor used car prices for a specific make and model using search_cars with make and model filters
  • Track real estate listing volumes and price ranges in a French department using search_listings with category='9' and a d_XX location code
  • Build a price alert tool that compares a target price against the average returned by get_average_price for a given query
  • Aggregate seller activity by fetching get_seller_profile for user IDs extracted from listing detail responses
  • Index new electronics listings by polling search_listings with category='15' and comparing date fields
  • Estimate fair market value for second-hand goods using min, max, and average from get_average_price
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does leboncoin.fr have an official public developer API?+
Leboncoin does not offer a publicly documented developer API for third-party access to its listing data. There is no official API portal or published endpoints available to external developers.
What location codes does the `search_listings` endpoint use, and where do I find them?+
The endpoint uses leboncoin's own geographic coding system. Department codes follow the format d_XX (e.g., d_75 for Paris, d_39 for Jura) and region codes follow r_XX (e.g., r_12 for Ile-de-France). These map directly to leboncoin's internal location taxonomy — use the two-digit French department number or region number after the prefix.
How accurate is the data returned by `get_average_price`?+
The endpoint computes statistics from the first page of results, covering up to 35 listings that carry a price. It returns average, min, max, and count. Because it samples only the first result page, it reflects the most recently listed or most relevant items rather than the full historical dataset. Use it as a directional pricing reference, not a statistical survey of all active listings.
Does the API expose listing descriptions from `get_listing_detail`?+
Yes. get_listing_detail returns a description field along with attributes, images, price, location, owner, and publication date. The attributes object contains listing-specific fields that vary by category — for a car listing this typically includes mileage, fuel type, and year; for real estate it includes surface area and number of rooms.
Does the API support searching for listings in categories beyond cars and real estate, such as services or rentals?+
The search_listings endpoint accepts any valid leboncoin category ID as the category parameter, including categories like jobs ('33') and electronics ('15'). However, dedicated filtered endpoints only exist for cars via search_cars. There is no dedicated endpoint for real estate rentals, services, or other specific sub-categories with their own filter parameters. You can fork this API on Parse and revise it to add a specialized endpoint for any additional category.
Page content last updated . Spec covers 5 endpoints from leboncoin.fr.
Related APIs in MarketplaceSee all →
lacentrale.fr API
Search and browse thousands of used cars from La Centrale, France's top automotive marketplace, with detailed specifications like price, mileage, engine type, gearbox, and exterior color. Find your next vehicle by filtering listings and comparing comprehensive car details all in one place.
encheres-publiques.com API
Search and browse real estate, vehicle, art, and equipment auctions across France, viewing detailed lot information and upcoming auction events from various organizers. Filter auction listings by category and type to find specific items and compare auction details to make informed bidding decisions.
2ememain.be API
Search and browse listings on 2ememain.be, view detailed product information and seller profiles, and explore what items specific sellers have available. Filter by category, price, condition, and location to find listings across the marketplace — all with full seller details in one place.
olx.pt API
Search and monitor real estate listings and business advertisements from OLX Portugal with advanced filtering and pagination options. Get detailed information about specific listings including prices, descriptions, and seller details to find exactly what you're looking for.
lacentrale.com API
Search used car listings on lacentrale.fr to instantly compare price statistics—including minimum, maximum, average, and median values—filtered by make, model, year, fuel type, gearbox, and other specifications. Make informed pricing decisions by analyzing real market data for the exact vehicle configuration you're interested in.
olx.ba API
Search and browse listings on OLX.ba across all categories. Retrieve listing names, prices, categories, and URLs, or drill into individual listings for detailed attributes such as location, address, area, floor, condition, and seller information. Includes dedicated support for apartment listings.
dba.dk API
Search and retrieve detailed listings from Denmark's largest marketplace DBA.dk, including product information, pricing, and seller details across general goods and car categories. Browse marketplace categories, find specific items, and access comprehensive data on both regular listings and automotive inventory.
craigslist.org API
Search Craigslist listings across any region and instantly access structured data including prices, locations, coordinates, images, and direct URLs. Find exactly what you're looking for with organized sale listings that are easy to filter and analyze.