← Back to marketplace

Leboncoin

Fast JSON API for Leboncoin classified ads in France - ad search by category, keywords, city, postal code, department, region or radius with seller type, price, real estate (property type, surface, rooms, bedrooms, furnished) and vehicle (mileage, year) filters, ad details with photos and attributes, similar ads, categories, location lookup, seller profiles and seller ads.

data
by Mark89 endpoints100% uptime92ms avg

Includes 100 free calls per month

After the free quota, standard per-request pricing applies via x402 (USDC on Base).

Endpoints

GET/v1/ad/details
$0.0010/req

Returns an ad with its title, full description, price, status, publication and expiration dates, category, all photos, attributes (property type, surface, rooms, energy rating, mileage, brand…), location with coordinates and seller.

Request schema

ad_idstringrequired

Ad id, as returned by the /search endpoint (the number at the end of a leboncoin.fr ad URL).

Response schema

idinteger
urlstring
titlestring
descriptionstring
categoryobject
priceinteger
statusstring
published_atstring
updated_atstring
expires_atnull
imagesarray
attributesarray
featuresarray
locationobject
sellerobject
has_phoneboolean
urgentboolean
shippableboolean
GET/v1/ad/similar
$0.0010/req

Returns the ads similar to an ad, each with the same fields as the /search endpoint.

Request schema

ad_idstringrequired

Ad id, as returned by the /search endpoint.

Response schema

{
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "id": {
        "type": "integer"
      },
      "url": {
        "type": "string"
      },
      "title": {
        "type": "string"
      },
      "description": {
        "type": "string"
      },
      "category": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          }
        }
      },
      "price": {
        "type": "integer"
      },
      "status": {
        "type": "string"
      },
      "published_at": {
        "type": "string"
      },
      "updated_at": {
        "type": "string"
      },
      "expires_at": {
        "type": "null"
      },
      "images": {
        "type": "array",
        "items": {
          "type": "string"
        }
      },
      "attributes": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "key": {
              "type": "string"
            },
            "label": {
              "type": "string"
            },
            "value": {
              "type": "string"
            },
            "value_label": {
              "type": "string"
            }
          }
        }
      },
      "features": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "key": {
              "type": "string"
            },
            "label": {
              "type": [
                "string",
                "null"
              ]
            },
            "value": {
              "type": "string"
            },
            "value_label": {
              "type": "string"
            }
          }
        }
      },
      "location": {
        "type": "object",
        "properties": {
          "city": {
            "type": "string"
          },
          "zipcode": {
            "type": "string"
          },
          "district": {
            "type": "string"
          },
          "department_id": {
            "type": "string"
          },
          "department": {
            "type": "string"
          },
          "region_id": {
            "type": "string"
          },
          "region": {
            "type": "string"
          },
          "latitude": {
            "type": "number"
          },
          "longitude": {
            "type": "number"
          }
        }
      },
      "seller": {
        "type": "object",
        "properties": {
          "user_id": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "store_id": {
            "type": "string"
          },
          "siren": {
            "type": "string"
          }
        }
      },
      "has_phone": {
        "type": "boolean"
      },
      "urgent": {
        "type": "boolean"
      },
      "shippable": {
        "type": "boolean"
      }
    }
  }
}
GET/v1/categories
$0.0010/req

Lists the ad categories (real estate, vehicles, multimedia, home, fashion, jobs, services…) with their subcategories. The ids are the values accepted by the "category" parameter of the /search endpoint.

Request schema

{
  "type": "object",
  "properties": {}
}

Response schema

{
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "id": {
        "type": "string"
      },
      "name": {
        "type": "string"
      },
      "subcategories": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "subcategories": {
              "type": "array"
            }
          }
        }
      }
    }
  }
}
GET/v1/search
$0.0010/req

Searches the classified ads by category, keywords, location, seller type and price, with real estate (property type, surface, rooms, bedrooms, furnished) and vehicle (mileage, year) filters. Each ad comes with its id, title, full description, price, category, photos, attributes, location with coordinates and seller. Returns the total number of matches and up to 100 pages of 35 ads.

Request schema

categorystring

Optional category id (e.g. "9" for real estate sales, "10" for rentals, "2" for cars). Use the /categories endpoint to list valid values.

textstring

Optional keywords (e.g. "vélo électrique").

title_onlystring

Optional, "true" to match the keywords in the ad title only (defaults to "false").

citystring

Optional city name (e.g. "Lyon"). Use the /search/locations endpoint to list valid values.

zipcodestring

Optional postal code narrowing the city (e.g. "69003"), used together with "city".

department_idstring

Optional department number instead of a city (e.g. "69").

region_idstring

Optional region id instead of a city (e.g. "22"). Use the /search/locations endpoint to find it.

latitudenumber

Optional latitude of a point to search around instead of a city, used together with "longitude".

longitudenumber

Optional longitude of a point to search around, used together with "latitude".

radiusinteger

Optional search radius around "latitude"/"longitude" in kilometers, 1 to 200 (defaults to 10).

owner_typestring

Optional seller type: "private" or "pro" (defaults to both).

min_priceinteger

Optional minimum price in euros.

max_priceinteger

Optional maximum price in euros.

real_estate_typesstring

Optional comma-separated list of property types (e.g. "house,apartment"). Use the /search/real-estate-types endpoint to list valid values.

min_squareinteger

Optional minimum living area in square meters.

max_squareinteger

Optional maximum living area in square meters.

min_roomsinteger

Optional minimum number of rooms.

max_roomsinteger

Optional maximum number of rooms.

min_bedroomsinteger

Optional minimum number of bedrooms.

max_bedroomsinteger

Optional maximum number of bedrooms.

furnishedstring

Optional, "true" to keep furnished rentals only (defaults to "false").

min_mileageinteger

Optional minimum vehicle mileage in kilometers.

max_mileageinteger

Optional maximum vehicle mileage in kilometers.

min_yearinteger

Optional earliest vehicle year (e.g. 2018).

max_yearinteger

Optional latest vehicle year.

sortstring

Optional sort order (defaults to "newest"). Use the /search/sort-orders endpoint to list valid values.

pageinteger

Optional page number, 35 ads per page and at most 100 pages (defaults to 1).

Response schema

totalinteger
total_privateinteger
total_prointeger
pageinteger
page_sizeinteger
total_pagesinteger
adsarray
GET/v1/search/locations
$0.0010/req

Returns the French cities, postal codes, departments and regions matching a partially typed location, with the values to pass to the location parameters of the /search endpoint and their coordinates.

Request schema

querystringrequired

Text typed so far (e.g. "lyon" or "69003").

Response schema

{
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "type": {
        "type": "string"
      },
      "label": {
        "type": "string"
      },
      "city": {
        "type": "string"
      },
      "zipcode": {
        "type": [
          "string",
          "null"
        ]
      },
      "department_id": {
        "type": "string"
      },
      "region_id": {
        "type": "string"
      },
      "latitude": {
        "type": "number"
      },
      "longitude": {
        "type": "number"
      },
      "radius": {
        "type": "integer"
      }
    }
  }
}
GET/v1/search/real-estate-types
$0.0010/req

Lists the values accepted by the "real_estate_types" parameter of the /search endpoint.

Request schema

{
  "type": "object",
  "properties": {}
}

Response schema

{
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "value": {
        "type": "string"
      },
      "label": {
        "type": "string"
      }
    }
  }
}
GET/v1/search/sort-orders
$0.0010/req

Lists the values accepted by the "sort" parameter of the /search endpoint.

Request schema

{
  "type": "object",
  "properties": {}
}

Response schema

{
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "value": {
        "type": "string"
      },
      "label": {
        "type": "string"
      }
    }
  }
}
GET/v1/seller/ads
$0.0010/req

Lists the ads currently published by a seller, newest first, each with the same fields as the /search endpoint. Returns the total number of ads and up to 100 pages of 35.

Request schema

user_idstringrequired

Seller id, as returned in the "seller" of an ad.

pageinteger

Optional page number, 35 ads per page and at most 100 pages (defaults to 1).

Response schema

totalinteger
total_privateinteger
total_prointeger
pageinteger
page_sizeinteger
total_pagesinteger
adsarray
GET/v1/seller/details
$0.0010/req

Returns a seller profile: name, registration date, location, last activity, reply time, rating, badges and, for professionals, their store with company numbers (SIREN, SIRET).

Request schema

user_idstringrequired

Seller id, as returned in the "seller" of an ad.

Response schema

user_idstring
namestring
typestring
activitystring
descriptionnull
registered_atstring
locationstring
total_adsinteger
last_activitystring
last_activity_textstring
reply_timenull
reply_ratenull
picturenull
ratingnull
badgesarray
storeobject

Quick start

Easiest way: the APIHub CLI. Credits cover x402, no wallet needed.

# install and set up once
npx @apihubio/cli register
npx @apihubio/cli topup 10

# call this service
npx @apihubio/cli call -X GET "https://proxy.apihub.io/leboncoin/v1/ad/details" \
  -d '{"ad_id":"3312734760"}'

Or call the proxy directly (curl / any HTTP client):

curl https://proxy.apihub.io/leboncoin/v1/ad/details \
  -H "Authorization: Bearer ahk_your_key"

# If credits available: charged automatically, returns 200
# Otherwise: returns 402 (pay via @x402/fetch or top up credits)

Pricing calculator

Estimate your monthly cost for Leboncoin.

GET /v1/ad/details$0.0010/req
-
GET /v1/ad/similar$0.0010/req
-
GET /v1/categories$0.0010/req
-
GET /v1/search$0.0010/req
-
GET /v1/search/locations$0.0010/req
-
GET /v1/search/real-estate-types$0.0010/req
-
GET /v1/search/sort-orders$0.0010/req
-
GET /v1/seller/ads$0.0010/req
-
GET /v1/seller/details$0.0010/req
-