{
  "data": {
    "id": "0xKFZXAZYv6IqnAgi",
    "actId": "i3dVPriISATN9IzPG",
    "userId": "NL4ThgItAwaoBlffQ",
    "startedAt": "2026-11-20T07:46:35.447Z",
    "finishedAt": "2026-11-20T07:46:44.617Z",
    "status": "SUCCEEDED",
    "meta": {
      "origin": "CLI"
    },
    "stats": {
      "durationMillis": 9109,
      "runTimeSecs": 9.109,
      "computeUnits": 0.010121111111111112,
      "imageSizeBytes": 358329856
    },
    "options": {
      "useCache": true,
      "betaPackages": false,
      "memoryMbytes": 4096,
      "diskMbytes": 8192
    },
    "createdByOrganizationMemberUserId": "6GwdnIcc2aWR7LzCS",
    "exitCode": 0,
    "inputSchema": "{\n  \"title\": \"Leboncoin France classifieds input\",\n  \"type\": \"object\",\n  \"schemaVersion\": 1,\n  \"properties\": {\n    \"startUrls\": {\n      \"title\": \"Search URLs\",\n      \"type\": \"array\",\n      \"description\": \"Paste one or more leboncoin.fr search URLs. Every filter already in the URL is preserved (location, price, category, sort, property or vehicle filters). When you use this, the search filters below are ignored.\",\n      \"editor\": \"stringList\",\n      \"prefill\": [\n        \"https://www.leboncoin.fr/recherche?category=10\"\n      ],\n      \"items\": {\n        \"type\": \"string\",\n        \"pattern\": \"^https?://([a-z0-9-]+\\\\.)?leboncoin\\\\.fr/\"\n      }\n    },\n    \"category\": {\n      \"title\": \"Category ID\",\n      \"type\": \"integer\",\n      \"description\": \"Leboncoin category ID used when no search URL is pasted. Common IDs: 9 = property sales, 10 = rentals, 2 = cars, 6 = car parts, 17 = phones, 33 = jobs. You can find any other ID in a leboncoin.fr search URL after ?category=.\",\n      \"editor\": \"number\",\n      \"minimum\": 1,\n      \"maximum\": 99999\n    },\n    \"search\": {\n      \"title\": \"Keywords\",\n      \"type\": \"string\",\n      \"description\": \"Free-text keywords, for example a model, a neighbourhood, or a job title. Combine with a category and location for a narrower search.\",\n      \"editor\": \"textfield\"\n    },\n    \"locations\": {\n      \"title\": \"Locations\",\n      \"type\": \"array\",\n      \"description\": \"French places to search in. Paste the values Leboncoin uses in its own URL, for example Paris, Lyon, 75015, d_75 (department), r_12 (region), or a full city code such as Paris__48.8566_2.3522_75056. Separate multiple places with one entry each.\",\n      \"editor\": \"stringList\",\n      \"items\": {\n        \"type\": \"string\"\n      }\n    },\n    \"priceMin\": {\n      \"title\": \"Minimum price (EUR)\",\n      \"type\": \"integer\",\n      \"description\": \"Smallest price to include. Leave empty for no lower bound.\",\n      \"editor\": \"number\",\n      \"minimum\": 0,\n      \"maximum\": 100000000\n    },\n    \"priceMax\": {\n      \"title\": \"Maximum price (EUR)\",\n      \"type\": \"integer\",\n      \"description\": \"Largest price to include. Leave empty for no upper bound.\",\n      \"editor\": \"number\",\n      \"minimum\": 0,\n      \"maximum\": 100000000\n    },\n    \"sort\": {\n      \"title\": \"Sort order\",\n      \"type\": \"string\",\n      \"description\": \"How Leboncoin should order the results.\",\n      \"editor\": \"select\",\n      \"default\": \"relevance\",\n      \"prefill\": \"relevance\",\n      \"enum\": [\n        \"relevance\",\n        \"newest\",\n        \"oldest\",\n        \"price_low\",\n        \"price_high\"\n      ],\n      \"enumTitles\": [\n        \"Relevance\",\n        \"Newest first\",\n        \"Oldest first\",\n        \"Price: low to high\",\n        \"Price: high to low\"\n      ]\n    },\n    \"ownerType\": {\n      \"title\": \"Seller type\",\n      \"type\": \"string\",\n      \"description\": \"Keep every seller, only private individuals, or only professionals.\",\n      \"editor\": \"select\",\n      \"default\": \"all\",\n      \"prefill\": \"all\",\n      \"enum\": [\n        \"all\",\n        \"private\",\n        \"pro\"\n      ],\n      \"enumTitles\": [\n        \"All sellers\",\n        \"Private individuals\",\n        \"Professionals\"\n      ]\n    },\n    \"adType\": {\n      \"title\": \"Ad type\",\n      \"type\": \"string\",\n      \"description\": \"Offers are listings for sale or rent; demands are wanted ads.\",\n      \"editor\": \"select\",\n      \"default\": \"offer\",\n      \"prefill\": \"offer\",\n      \"enum\": [\n        \"offer\",\n        \"demand\",\n        \"all\"\n      ],\n      \"enumTitles\": [\n        \"Offers\",\n        \"Wanted ads\",\n        \"Both\"\n      ]\n    },\n    \"shippable\": {\n      \"title\": \"Shippable only\",\n      \"type\": \"boolean\",\n      \"description\": \"Return only ads where the seller offers shipping.\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"searchInTitle\": {\n      \"title\": \"Search keywords in titles only\",\n      \"type\": \"boolean\",\n      \"description\": \"Restrict the keyword match to ad titles instead of titles and descriptions.\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"roomsMin\": {\n      \"title\": \"Minimum rooms\",\n      \"type\": \"integer\",\n      \"description\": \"Real-estate filter: smallest number of rooms.\",\n      \"editor\": \"number\",\n      \"minimum\": 0,\n      \"maximum\": 30\n    },\n    \"roomsMax\": {\n      \"title\": \"Maximum rooms\",\n      \"type\": \"integer\",\n      \"description\": \"Real-estate filter: largest number of rooms.\",\n      \"editor\": \"number\",\n      \"minimum\": 0,\n      \"maximum\": 30\n    },\n    \"surfaceMin\": {\n      \"title\": \"Minimum surface (m²)\",\n      \"type\": \"integer\",\n      \"description\": \"Real-estate filter: smallest living area in square metres.\",\n      \"editor\": \"number\",\n      \"minimum\": 0,\n      \"maximum\": 100000\n    },\n    \"surfaceMax\": {\n      \"title\": \"Maximum surface (m²)\",\n      \"type\": \"integer\",\n      \"description\": \"Real-estate filter: largest living area in square metres.\",\n      \"editor\": \"number\",\n      \"minimum\": 0,\n      \"maximum\": 100000\n    },\n    \"realEstateType\": {\n      \"title\": \"Property type\",\n      \"type\": \"array\",\n      \"description\": \"Real-estate filter. Values: 1 = house, 2 = apartment, 3 = land, 4 = parking, 5 = other.\",\n      \"editor\": \"select\",\n      \"items\": {\n        \"type\": \"string\",\n        \"enum\": [\n          \"1\",\n          \"2\",\n          \"3\",\n          \"4\",\n          \"5\"\n        ],\n        \"enumTitles\": [\n          \"House\",\n          \"Apartment\",\n          \"Land\",\n          \"Parking\",\n          \"Other\"\n        ]\n      }\n    },\n    \"mileageMin\": {\n      \"title\": \"Minimum mileage (km)\",\n      \"type\": \"integer\",\n      \"description\": \"Vehicle filter: smallest odometer reading in kilometres.\",\n      \"editor\": \"number\",\n      \"minimum\": 0,\n      \"maximum\": 2000000\n    },\n    \"mileageMax\": {\n      \"title\": \"Maximum mileage (km)\",\n      \"type\": \"integer\",\n      \"description\": \"Vehicle filter: largest odometer reading in kilometres.\",\n      \"editor\": \"number\",\n      \"minimum\": 0,\n      \"maximum\": 2000000\n    },\n    \"yearMin\": {\n      \"title\": \"Minimum model year\",\n      \"type\": \"integer\",\n      \"description\": \"Vehicle filter: oldest registration year.\",\n      \"editor\": \"number\",\n      \"minimum\": 1900,\n      \"maximum\": 2100\n    },\n    \"yearMax\": {\n      \"title\": \"Maximum model year\",\n      \"type\": \"integer\",\n      \"description\": \"Vehicle filter: newest registration year.\",\n      \"editor\": \"number\",\n      \"minimum\": 1900,\n      \"maximum\": 2100\n    },\n    \"condition\": {\n      \"title\": \"Item condition\",\n      \"type\": \"array\",\n      \"description\": \"Goods filter. Values: 1 = new, 6 = refurbished, 2 = very good, 3 = good, 7 = fair, 5 = for parts.\",\n      \"editor\": \"select\",\n      \"items\": {\n        \"type\": \"string\",\n        \"enum\": [\n          \"1\",\n          \"6\",\n          \"2\",\n          \"3\",\n          \"7\",\n          \"5\"\n        ],\n        \"enumTitles\": [\n          \"New\",\n          \"Refurbished\",\n          \"Very good\",\n          \"Good\",\n          \"Fair\",\n          \"For parts\"\n        ]\n      }\n    },\n    \"contractType\": {\n      \"title\": \"Job contract\",\n      \"type\": \"array\",\n      \"description\": \"Jobs filter. Values: 1 = fixed-term, 2 = permanent, 3 = temporary, 4 = freelance, 5 = apprenticeship, 6 = internship, 7 = volunteering.\",\n      \"editor\": \"select\",\n      \"items\": {\n        \"type\": \"string\",\n        \"enum\": [\n          \"1\",\n          \"2\",\n          \"3\",\n          \"4\",\n          \"5\",\n          \"6\",\n          \"7\"\n        ],\n        \"enumTitles\": [\n          \"Fixed-term\",\n          \"Permanent\",\n          \"Temporary\",\n          \"Freelance\",\n          \"Apprenticeship\",\n          \"Internship\",\n          \"Volunteering\"\n        ]\n      }\n    },\n    \"maxItems\": {\n      \"title\": \"Maximum ads\",\n      \"type\": \"integer\",\n      \"description\": \"Stop after this many ads. The actor stops sooner when Leboncoin runs out of matching results.\",\n      \"editor\": \"number\",\n      \"minimum\": 1,\n      \"maximum\": 1000,\n      \"default\": 50,\n      \"prefill\": 3\n    }\n  },\n  \"required\": []\n}",
    "readme": "# Leboncoin France Classified Ads Extractor\n\nLeboncoin is France's largest classifieds marketplace: rentals and property sales, cars and motorbikes, jobs, phones, furniture, and almost everything else. This actor turns any public Leboncoin search into structured records you can filter, join, and chart. It needs no Leboncoin account, no cookies, and no proxy setup.\n\n## What it does\n\n- **Search URLs** — paste one or more `leboncoin.fr/recherche` links; filters already in the URL (location, price, category, sort, property or vehicle facets) are kept.\n- **Search builder** — choose a category, keywords, locations, price range, seller type, ad type, and the property, vehicle, goods, or job filters you need.\n- **Pagination** — reads Leboncoin's own 35-ad result pages until your `maxItems` is reached or the source runs out, and deduplicates across pages.\n- **Rich records** — price, location and coordinates, seller details, photo gallery, publication dates, and every category-specific attribute (surface, rooms, DPE, mileage, fuel, gearbox, contract type, and more).\n- **Legacy inputs** — saved tasks that still send `category`, `search`, `startUrls`, or `maxItems` keep working; old keys are mapped in code.\n\n## Inputs\n\n| Field | Purpose |\n| --- | --- |\n| `startUrls` | Public Leboncoin search URLs. Any filters in the URL are preserved. |\n| `category` | Category ID when you are not pasting a URL (9 property sales, 10 rentals, 2 cars, 33 jobs, and so on). |\n| `search` | Keywords, for example `peugeot 208` or `studio paris`. |\n| `locations` | Places in Leboncoin's own syntax: `Paris`, `75015`, `d_75`, `r_12`, or a full city code. |\n| `priceMin` / `priceMax` | Price band in euros. |\n| `sort` | Relevance, newest, oldest, price low-to-high, or price high-to-low. |\n| `ownerType` | All sellers, private individuals only, or professionals only. |\n| `adType` | Offers, wanted ads, or both. |\n| `shippable` | Only ads where the seller offers shipping. |\n| `searchInTitle` | Match keywords in titles only. |\n| `roomsMin` / `roomsMax` | Real-estate room count. |\n| `surfaceMin` / `surfaceMax` | Real-estate living area in m². |\n| `realEstateType` | House, apartment, land, parking, or other. |\n| `mileageMin` / `mileageMax` | Vehicle odometer range in km. |\n| `yearMin` / `yearMax` | Vehicle model-year range. |\n| `condition` | New, refurbished, very good, good, fair, or for parts. |\n| `contractType` | Fixed-term, permanent, temporary, freelance, apprenticeship, internship, or volunteering. |\n| `maxItems` | Stop after this many ads (maximum 1,000). |\n\n### Examples\n\nRentals in Paris under €2,000, newest first:\n\n```json\n{\n  \"startUrls\": [\"https://www.leboncoin.fr/recherche?category=10&locations=Paris&price=min-2000&sort=time&order=desc\"],\n  \"maxItems\": 100\n}\n```\n\nUsed Peugeot 208s with a mileage cap:\n\n```json\n{\n  \"category\": 2,\n  \"search\": \"Peugeot 208\",\n  \"priceMax\": 12000,\n  \"mileageMax\": 120000,\n  \"sort\": \"price_low\",\n  \"maxItems\": 50\n}\n```\n\nThree-room apartments for sale in Lyon:\n\n```json\n{\n  \"category\": 9,\n  \"locations\": [\"Lyon\"],\n  \"roomsMin\": 3,\n  \"roomsMax\": 3,\n  \"realEstateType\": [\"2\"],\n  \"maxItems\": 100\n}\n```\n\n## Output\n\nEach row is one ad. Empty values are omitted, never sent as `null` or a sentinel.\n\n| Field | Description |\n| --- | --- |\n| `id` | Leboncoin ad ID. |\n| `url` | Direct link to the ad. |\n| `subject` | Ad title. |\n| `body` | Description text, truncated to 2,000 characters. |\n| `categoryId` / `categoryName` | Category ID and label. |\n| `adType` / `status` | Offer or demand; active, sold, or expired. |\n| `price` / `priceCents` / `priceCurrency` | Asking price in euros and cents. |\n| `publishedDate` / `expirationDate` / `indexDate` | Publication, expiry, and last-index timestamps. |\n| `city` / `zipcode` / `cityLabel` | City, postal code, and full location label. |\n| `department` / `departmentId` / `region` / `regionId` / `country` | Administrative location. |\n| `latitude` / `longitude` | GPS coordinates. |\n| `ownerName` / `ownerType` / `ownerId` / `ownerStoreId` / `ownerSiren` | Seller identity and seller type. |\n| `hasPhone` | Whether the seller published a phone number. |\n| `imageCount` / `thumbnail` / `imageUrls` | Gallery size, thumbnail, and full-size photos. |\n| `attributes` | Generic category attributes as key/value pairs. |\n| `attributesDetailed` | Every published attribute with key, label, value, and generic flag. |\n| `isUrgent` / `isHighlighted` / `isBoosted` / `isGallery` / `isPhotosup` / `isSubToplist` | Ad promotion flags. |\n| `favorites` | Favourite count when Leboncoin publishes it. |\n| `position` / `pageNumber` / `searchUrl` | Where the ad appeared in your search. |\n| `scrapedAt` | ISO 8601 scrape time. |\n\n### Example record\n\n```json\n{\n  \"id\": 3311246700,\n  \"url\": \"https://www.leboncoin.fr/ad/locations/3311246700\",\n  \"subject\": \"Appartement 3 pièces 62 m²\",\n  \"categoryId\": \"10\",\n  \"categoryName\": \"Locations\",\n  \"adType\": \"offer\",\n  \"status\": \"active\",\n  \"price\": 1200,\n  \"priceCents\": 120000,\n  \"priceCurrency\": \"EUR\",\n  \"publishedDate\": \"2026-11-17 09:15:32\",\n  \"city\": \"Paris\",\n  \"zipcode\": \"75011\",\n  \"department\": \"Paris\",\n  \"departmentId\": \"75\",\n  \"region\": \"Île-de-France\",\n  \"regionId\": \"12\",\n  \"country\": \"FR\",\n  \"latitude\": 48.8566,\n  \"longitude\": 2.3522,\n  \"ownerType\": \"private\",\n  \"hasPhone\": false,\n  \"imageCount\": 18,\n  \"imageUrls\": [\"https://img.leboncoin.fr/api/v1/lbcpb1/images/3d/8e/fb/3d8efb8ddf7925e72a532dd4616782b0bda7fd37.jpg?rule=ad-image\"],\n  \"attributes\": {\"rooms\": \"3\", \"square\": \"62 m²\"},\n  \"position\": 1,\n  \"pageNumber\": 1,\n  \"searchUrl\": \"https://www.leboncoin.fr/recherche?category=10\",\n  \"scrapedAt\": \"2026-11-20T10:30:00+00:00\"\n}\n```\n\n## Use cases\n\n- Lettings and estate agents tracking new listings and price cuts in a city.\n- Car dealers and buyers comparing mileage, year, and price for one model.\n- Job boards monitoring offer volume by contract type and department.\n- Market researchers following resale prices for phones, furniture, or tools.\n- Lead-generation teams separating professional sellers from private ones.\n\n## FAQ\n\n**Do I need a Leboncoin account, cookies, or a proxy?**\nNo. The actor reads the same public pages any visitor sees and picks a working network path on its own.\n\n**What is the difference between `startUrls` and the builder fields?**\n`startUrls` reproduces a search you built on leboncoin.fr, including every filter in the address bar. The builder fields create a search from scratch. When `startUrls` is set, the builder fields are ignored.\n\n**Why is a field missing from some records?**\nLeboncoin only publishes some fields for some ads, categories, or sellers. Missing values are omitted. Legacy numeric fields such as `price`, `latitude`, `longitude`, and `imageCount` keep `0` when the source has no value.\n\n**How many ads are on a page?**\nLeboncoin serves 35 ads per result page. The actor follows the site's own pagination until `maxItems`, the source's page limit, or the end of the results.\n\n**Does it handle every category?**\nYes. Category-specific details are returned in `attributes` and `attributesDetailed`, so property, vehicle, job, and goods listings keep their own facets.\n\n**Are images included?**\nYes, as direct `img.leboncoin.fr` URLs. They are public and do not need a login.\n\n## Data source and limitations\n\nData comes from the public search pages on `leboncoin.fr` and their embedded Next.js payload. The actor does not log in, does not use a private API, and does not bypass a login wall. Leboncoin's bot protection can occasionally challenge a request; the actor retries across its network paths and stops with a clear status message if every path is blocked. Search results are capped by Leboncoin's own page limit (shown as `max_pages` upstream, usually 100 pages); split a very broad search by price, location, or category to go deeper.\n\nThis is an independent tool. It is not affiliated with, endorsed by, or sponsored by Leboncoin.\n",
    "actorDefinition": {
      "actorSpecification": 1,
      "name": "leboncoin-france-classified-ads-extractor",
      "title": "Leboncoin France Classified Ads Extractor",
      "description": "Extract Leboncoin France classifieds from search URLs or builder filters across property, vehicles, jobs and goods, with price, location, seller, photo gallery and category-specific attributes. No account or cookies required.",
      "version": "2.0",
      "buildTag": "latest",
      "meta": {
        "templateId": "python-empty"
      },
      "input": {
        "title": "Leboncoin France classifieds input",
        "type": "object",
        "schemaVersion": 1,
        "properties": {
          "startUrls": {
            "title": "Search URLs",
            "type": "array",
            "description": "Paste one or more leboncoin.fr search URLs. Every filter already in the URL is preserved (location, price, category, sort, property or vehicle filters). When you use this, the search filters below are ignored.",
            "editor": "stringList",
            "prefill": [
              "https://www.leboncoin.fr/recherche?category=10"
            ],
            "items": {
              "type": "string",
              "pattern": "^https?://([a-z0-9-]+\\.)?leboncoin\\.fr/"
            }
          },
          "category": {
            "title": "Category ID",
            "type": "integer",
            "description": "Leboncoin category ID used when no search URL is pasted. Common IDs: 9 = property sales, 10 = rentals, 2 = cars, 6 = car parts, 17 = phones, 33 = jobs. You can find any other ID in a leboncoin.fr search URL after ?category=.",
            "editor": "number",
            "minimum": 1,
            "maximum": 99999
          },
          "search": {
            "title": "Keywords",
            "type": "string",
            "description": "Free-text keywords, for example a model, a neighbourhood, or a job title. Combine with a category and location for a narrower search.",
            "editor": "textfield"
          },
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "French places to search in. Paste the values Leboncoin uses in its own URL, for example Paris, Lyon, 75015, d_75 (department), r_12 (region), or a full city code such as Paris__48.8566_2.3522_75056. Separate multiple places with one entry each.",
            "editor": "stringList",
            "items": {
              "type": "string"
            }
          },
          "priceMin": {
            "title": "Minimum price (EUR)",
            "type": "integer",
            "description": "Smallest price to include. Leave empty for no lower bound.",
            "editor": "number",
            "minimum": 0,
            "maximum": 100000000
          },
          "priceMax": {
            "title": "Maximum price (EUR)",
            "type": "integer",
            "description": "Largest price to include. Leave empty for no upper bound.",
            "editor": "number",
            "minimum": 0,
            "maximum": 100000000
          },
          "sort": {
            "title": "Sort order",
            "type": "string",
            "description": "How Leboncoin should order the results.",
            "editor": "select",
            "default": "relevance",
            "prefill": "relevance",
            "enum": [
              "relevance",
              "newest",
              "oldest",
              "price_low",
              "price_high"
            ],
            "enumTitles": [
              "Relevance",
              "Newest first",
              "Oldest first",
              "Price: low to high",
              "Price: high to low"
            ]
          },
          "ownerType": {
            "title": "Seller type",
            "type": "string",
            "description": "Keep every seller, only private individuals, or only professionals.",
            "editor": "select",
            "default": "all",
            "prefill": "all",
            "enum": [
              "all",
              "private",
              "pro"
            ],
            "enumTitles": [
              "All sellers",
              "Private individuals",
              "Professionals"
            ]
          },
          "adType": {
            "title": "Ad type",
            "type": "string",
            "description": "Offers are listings for sale or rent; demands are wanted ads.",
            "editor": "select",
            "default": "offer",
            "prefill": "offer",
            "enum": [
              "offer",
              "demand",
              "all"
            ],
            "enumTitles": [
              "Offers",
              "Wanted ads",
              "Both"
            ]
          },
          "shippable": {
            "title": "Shippable only",
            "type": "boolean",
            "description": "Return only ads where the seller offers shipping.",
            "default": false,
            "prefill": false
          },
          "searchInTitle": {
            "title": "Search keywords in titles only",
            "type": "boolean",
            "description": "Restrict the keyword match to ad titles instead of titles and descriptions.",
            "default": false,
            "prefill": false
          },
          "roomsMin": {
            "title": "Minimum rooms",
            "type": "integer",
            "description": "Real-estate filter: smallest number of rooms.",
            "editor": "number",
            "minimum": 0,
            "maximum": 30
          },
          "roomsMax": {
            "title": "Maximum rooms",
            "type": "integer",
            "description": "Real-estate filter: largest number of rooms.",
            "editor": "number",
            "minimum": 0,
            "maximum": 30
          },
          "surfaceMin": {
            "title": "Minimum surface (m²)",
            "type": "integer",
            "description": "Real-estate filter: smallest living area in square metres.",
            "editor": "number",
            "minimum": 0,
            "maximum": 100000
          },
          "surfaceMax": {
            "title": "Maximum surface (m²)",
            "type": "integer",
            "description": "Real-estate filter: largest living area in square metres.",
            "editor": "number",
            "minimum": 0,
            "maximum": 100000
          },
          "realEstateType": {
            "title": "Property type",
            "type": "array",
            "description": "Real-estate filter. Values: 1 = house, 2 = apartment, 3 = land, 4 = parking, 5 = other.",
            "editor": "select",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5"
              ],
              "enumTitles": [
                "House",
                "Apartment",
                "Land",
                "Parking",
                "Other"
              ]
            }
          },
          "mileageMin": {
            "title": "Minimum mileage (km)",
            "type": "integer",
            "description": "Vehicle filter: smallest odometer reading in kilometres.",
            "editor": "number",
            "minimum": 0,
            "maximum": 2000000
          },
          "mileageMax": {
            "title": "Maximum mileage (km)",
            "type": "integer",
            "description": "Vehicle filter: largest odometer reading in kilometres.",
            "editor": "number",
            "minimum": 0,
            "maximum": 2000000
          },
          "yearMin": {
            "title": "Minimum model year",
            "type": "integer",
            "description": "Vehicle filter: oldest registration year.",
            "editor": "number",
            "minimum": 1900,
            "maximum": 2100
          },
          "yearMax": {
            "title": "Maximum model year",
            "type": "integer",
            "description": "Vehicle filter: newest registration year.",
            "editor": "number",
            "minimum": 1900,
            "maximum": 2100
          },
          "condition": {
            "title": "Item condition",
            "type": "array",
            "description": "Goods filter. Values: 1 = new, 6 = refurbished, 2 = very good, 3 = good, 7 = fair, 5 = for parts.",
            "editor": "select",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "6",
                "2",
                "3",
                "7",
                "5"
              ],
              "enumTitles": [
                "New",
                "Refurbished",
                "Very good",
                "Good",
                "Fair",
                "For parts"
              ]
            }
          },
          "contractType": {
            "title": "Job contract",
            "type": "array",
            "description": "Jobs filter. Values: 1 = fixed-term, 2 = permanent, 3 = temporary, 4 = freelance, 5 = apprenticeship, 6 = internship, 7 = volunteering.",
            "editor": "select",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5",
                "6",
                "7"
              ],
              "enumTitles": [
                "Fixed-term",
                "Permanent",
                "Temporary",
                "Freelance",
                "Apprenticeship",
                "Internship",
                "Volunteering"
              ]
            }
          },
          "maxItems": {
            "title": "Maximum ads",
            "type": "integer",
            "description": "Stop after this many ads. The actor stops sooner when Leboncoin runs out of matching results.",
            "editor": "number",
            "minimum": 1,
            "maximum": 1000,
            "default": 50,
            "prefill": 3
          }
        },
        "required": []
      },
      "output": {
        "actorOutputSchemaVersion": 1,
        "title": "Leboncoin France Classified Ads Extractor Output",
        "description": "Leboncoin classified ads with price, location, seller, photo gallery and category-specific attributes.",
        "type": "object",
        "properties": {
          "ads": {
            "type": "string",
            "title": "Leboncoin Ads",
            "template": "{{links.apiDefaultDatasetUrl}}/items"
          }
        }
      },
      "dockerfile": "../Dockerfile",
      "readme": "# Leboncoin France Classified Ads Extractor\n\nLeboncoin is France's largest classifieds marketplace: rentals and property sales, cars and motorbikes, jobs, phones, furniture, and almost everything else. This actor turns any public Leboncoin search into structured records you can filter, join, and chart. It needs no Leboncoin account, no cookies, and no proxy setup.\n\n## What it does\n\n- **Search URLs** — paste one or more `leboncoin.fr/recherche` links; filters already in the URL (location, price, category, sort, property or vehicle facets) are kept.\n- **Search builder** — choose a category, keywords, locations, price range, seller type, ad type, and the property, vehicle, goods, or job filters you need.\n- **Pagination** — reads Leboncoin's own 35-ad result pages until your `maxItems` is reached or the source runs out, and deduplicates across pages.\n- **Rich records** — price, location and coordinates, seller details, photo gallery, publication dates, and every category-specific attribute (surface, rooms, DPE, mileage, fuel, gearbox, contract type, and more).\n- **Legacy inputs** — saved tasks that still send `category`, `search`, `startUrls`, or `maxItems` keep working; old keys are mapped in code.\n\n## Inputs\n\n| Field | Purpose |\n| --- | --- |\n| `startUrls` | Public Leboncoin search URLs. Any filters in the URL are preserved. |\n| `category` | Category ID when you are not pasting a URL (9 property sales, 10 rentals, 2 cars, 33 jobs, and so on). |\n| `search` | Keywords, for example `peugeot 208` or `studio paris`. |\n| `locations` | Places in Leboncoin's own syntax: `Paris`, `75015`, `d_75`, `r_12`, or a full city code. |\n| `priceMin` / `priceMax` | Price band in euros. |\n| `sort` | Relevance, newest, oldest, price low-to-high, or price high-to-low. |\n| `ownerType` | All sellers, private individuals only, or professionals only. |\n| `adType` | Offers, wanted ads, or both. |\n| `shippable` | Only ads where the seller offers shipping. |\n| `searchInTitle` | Match keywords in titles only. |\n| `roomsMin` / `roomsMax` | Real-estate room count. |\n| `surfaceMin` / `surfaceMax` | Real-estate living area in m². |\n| `realEstateType` | House, apartment, land, parking, or other. |\n| `mileageMin` / `mileageMax` | Vehicle odometer range in km. |\n| `yearMin` / `yearMax` | Vehicle model-year range. |\n| `condition` | New, refurbished, very good, good, fair, or for parts. |\n| `contractType` | Fixed-term, permanent, temporary, freelance, apprenticeship, internship, or volunteering. |\n| `maxItems` | Stop after this many ads (maximum 1,000). |\n\n### Examples\n\nRentals in Paris under €2,000, newest first:\n\n```json\n{\n  \"startUrls\": [\"https://www.leboncoin.fr/recherche?category=10&locations=Paris&price=min-2000&sort=time&order=desc\"],\n  \"maxItems\": 100\n}\n```\n\nUsed Peugeot 208s with a mileage cap:\n\n```json\n{\n  \"category\": 2,\n  \"search\": \"Peugeot 208\",\n  \"priceMax\": 12000,\n  \"mileageMax\": 120000,\n  \"sort\": \"price_low\",\n  \"maxItems\": 50\n}\n```\n\nThree-room apartments for sale in Lyon:\n\n```json\n{\n  \"category\": 9,\n  \"locations\": [\"Lyon\"],\n  \"roomsMin\": 3,\n  \"roomsMax\": 3,\n  \"realEstateType\": [\"2\"],\n  \"maxItems\": 100\n}\n```\n\n## Output\n\nEach row is one ad. Empty values are omitted, never sent as `null` or a sentinel.\n\n| Field | Description |\n| --- | --- |\n| `id` | Leboncoin ad ID. |\n| `url` | Direct link to the ad. |\n| `subject` | Ad title. |\n| `body` | Description text, truncated to 2,000 characters. |\n| `categoryId` / `categoryName` | Category ID and label. |\n| `adType` / `status` | Offer or demand; active, sold, or expired. |\n| `price` / `priceCents` / `priceCurrency` | Asking price in euros and cents. |\n| `publishedDate` / `expirationDate` / `indexDate` | Publication, expiry, and last-index timestamps. |\n| `city` / `zipcode` / `cityLabel` | City, postal code, and full location label. |\n| `department` / `departmentId` / `region` / `regionId` / `country` | Administrative location. |\n| `latitude` / `longitude` | GPS coordinates. |\n| `ownerName` / `ownerType` / `ownerId` / `ownerStoreId` / `ownerSiren` | Seller identity and seller type. |\n| `hasPhone` | Whether the seller published a phone number. |\n| `imageCount` / `thumbnail` / `imageUrls` | Gallery size, thumbnail, and full-size photos. |\n| `attributes` | Generic category attributes as key/value pairs. |\n| `attributesDetailed` | Every published attribute with key, label, value, and generic flag. |\n| `isUrgent` / `isHighlighted` / `isBoosted` / `isGallery` / `isPhotosup` / `isSubToplist` | Ad promotion flags. |\n| `favorites` | Favourite count when Leboncoin publishes it. |\n| `position` / `pageNumber` / `searchUrl` | Where the ad appeared in your search. |\n| `scrapedAt` | ISO 8601 scrape time. |\n\n### Example record\n\n```json\n{\n  \"id\": 3311246700,\n  \"url\": \"https://www.leboncoin.fr/ad/locations/3311246700\",\n  \"subject\": \"Appartement 3 pièces 62 m²\",\n  \"categoryId\": \"10\",\n  \"categoryName\": \"Locations\",\n  \"adType\": \"offer\",\n  \"status\": \"active\",\n  \"price\": 1200,\n  \"priceCents\": 120000,\n  \"priceCurrency\": \"EUR\",\n  \"publishedDate\": \"2026-11-17 09:15:32\",\n  \"city\": \"Paris\",\n  \"zipcode\": \"75011\",\n  \"department\": \"Paris\",\n  \"departmentId\": \"75\",\n  \"region\": \"Île-de-France\",\n  \"regionId\": \"12\",\n  \"country\": \"FR\",\n  \"latitude\": 48.8566,\n  \"longitude\": 2.3522,\n  \"ownerType\": \"private\",\n  \"hasPhone\": false,\n  \"imageCount\": 18,\n  \"imageUrls\": [\"https://img.leboncoin.fr/api/v1/lbcpb1/images/3d/8e/fb/3d8efb8ddf7925e72a532dd4616782b0bda7fd37.jpg?rule=ad-image\"],\n  \"attributes\": {\"rooms\": \"3\", \"square\": \"62 m²\"},\n  \"position\": 1,\n  \"pageNumber\": 1,\n  \"searchUrl\": \"https://www.leboncoin.fr/recherche?category=10\",\n  \"scrapedAt\": \"2026-11-20T10:30:00+00:00\"\n}\n```\n\n## Use cases\n\n- Lettings and estate agents tracking new listings and price cuts in a city.\n- Car dealers and buyers comparing mileage, year, and price for one model.\n- Job boards monitoring offer volume by contract type and department.\n- Market researchers following resale prices for phones, furniture, or tools.\n- Lead-generation teams separating professional sellers from private ones.\n\n## FAQ\n\n**Do I need a Leboncoin account, cookies, or a proxy?**\nNo. The actor reads the same public pages any visitor sees and picks a working network path on its own.\n\n**What is the difference between `startUrls` and the builder fields?**\n`startUrls` reproduces a search you built on leboncoin.fr, including every filter in the address bar. The builder fields create a search from scratch. When `startUrls` is set, the builder fields are ignored.\n\n**Why is a field missing from some records?**\nLeboncoin only publishes some fields for some ads, categories, or sellers. Missing values are omitted. Legacy numeric fields such as `price`, `latitude`, `longitude`, and `imageCount` keep `0` when the source has no value.\n\n**How many ads are on a page?**\nLeboncoin serves 35 ads per result page. The actor follows the site's own pagination until `maxItems`, the source's page limit, or the end of the results.\n\n**Does it handle every category?**\nYes. Category-specific details are returned in `attributes` and `attributesDetailed`, so property, vehicle, job, and goods listings keep their own facets.\n\n**Are images included?**\nYes, as direct `img.leboncoin.fr` URLs. They are public and do not need a login.\n\n## Data source and limitations\n\nData comes from the public search pages on `leboncoin.fr` and their embedded Next.js payload. The actor does not log in, does not use a private API, and does not bypass a login wall. Leboncoin's bot protection can occasionally challenge a request; the actor retries across its network paths and stops with a clear status message if every path is blocked. Search results are capped by Leboncoin's own page limit (shown as `max_pages` upstream, usually 100 pages); split a very broad search by price, location, or category to go deeper.\n\nThis is an independent tool. It is not affiliated with, endorsed by, or sponsored by Leboncoin.\n",
      "storages": {
        "dataset": {
          "actorSpecification": 1,
          "title": "Leboncoin Ads",
          "fields": {
            "type": "object",
            "properties": {
              "id": {
                "type": "integer",
                "description": "Leboncoin list_id"
              },
              "url": {
                "type": "string",
                "description": "Ad URL"
              },
              "subject": {
                "type": "string",
                "description": "Ad title"
              },
              "body": {
                "type": "string",
                "description": "Ad description text (truncated)"
              },
              "categoryId": {
                "type": "string",
                "description": "Category ID"
              },
              "categoryName": {
                "type": "string",
                "description": "Category name"
              },
              "adType": {
                "type": "string",
                "description": "offer / demand"
              },
              "status": {
                "type": "string",
                "description": "active / sold / expired"
              },
              "price": {
                "type": "integer",
                "description": "Price in EUR"
              },
              "publishedDate": {
                "type": "string",
                "description": "First publication date"
              },
              "expirationDate": {
                "type": "string",
                "description": "Expiration date"
              },
              "city": {
                "type": "string",
                "description": "City"
              },
              "zipcode": {
                "type": "string",
                "description": "Zip code"
              },
              "department": {
                "type": "string",
                "description": "Department name"
              },
              "region": {
                "type": "string",
                "description": "Region name"
              },
              "country": {
                "type": "string",
                "description": "Country code"
              },
              "latitude": {
                "type": "number",
                "description": "Latitude"
              },
              "longitude": {
                "type": "number",
                "description": "Longitude"
              },
              "ownerName": {
                "type": "string",
                "description": "Seller name"
              },
              "ownerType": {
                "type": "string",
                "description": "private / pro"
              },
              "ownerId": {
                "type": "string",
                "description": "Seller user ID"
              },
              "ownerStoreId": {
                "type": "string",
                "description": "Pro store ID (if pro)"
              },
              "hasPhone": {
                "type": "boolean",
                "description": "Whether phone is exposed"
              },
              "imageCount": {
                "type": "integer",
                "description": "Number of images"
              },
              "imageUrls": {
                "type": "array",
                "description": "All large image URLs"
              },
              "thumbnail": {
                "type": "string",
                "description": "Thumbnail image URL"
              },
              "attributes": {
                "type": "object",
                "description": "Generic attributes (real estate fields, car specs, etc.)"
              },
              "isUrgent": {
                "type": "boolean",
                "description": "Urgent ad flag"
              },
              "isHighlighted": {
                "type": "boolean",
                "description": "Highlighted ad flag"
              },
              "scrapedAt": {
                "type": "string",
                "description": "ISO 8601 scrape timestamp"
              },
              "priceCents": {
                "type": "integer",
                "description": "Price in euro cents"
              },
              "priceCurrency": {
                "type": "string",
                "description": "Price currency (EUR)"
              },
              "departmentId": {
                "type": "string",
                "description": "Department code"
              },
              "regionId": {
                "type": "string",
                "description": "Region code"
              },
              "cityLabel": {
                "type": "string",
                "description": "Full city label shown by Leboncoin"
              },
              "brand": {
                "type": "string",
                "description": "Brand for vehicles and goods"
              },
              "indexDate": {
                "type": "string",
                "description": "Date the ad was last indexed"
              },
              "attributesDetailed": {
                "type": "array",
                "description": "Every published category attribute with key, label, value and generic flag"
              },
              "isBoosted": {
                "type": "boolean",
                "description": "Boosted ad flag"
              },
              "isGallery": {
                "type": "boolean",
                "description": "Gallery ad flag"
              },
              "isPhotosup": {
                "type": "boolean",
                "description": "Photo-up ad flag"
              },
              "isSubToplist": {
                "type": "boolean",
                "description": "Sub-toplist ad flag"
              },
              "favorites": {
                "type": "integer",
                "description": "Number of favourites"
              },
              "ownerSiren": {
                "type": "string",
                "description": "Professional seller SIREN when published"
              },
              "position": {
                "type": "integer",
                "description": "Position in the returned results"
              },
              "pageNumber": {
                "type": "integer",
                "description": "Leboncoin results page the ad was read from"
              },
              "searchUrl": {
                "type": "string",
                "description": "Search URL that produced the ad"
              }
            }
          },
          "views": {
            "overview": {
              "title": "Overview",
              "transformation": {
                "fields": [
                  "subject",
                  "categoryName",
                  "price",
                  "city",
                  "zipcode",
                  "publishedDate",
                  "ownerType",
                  "url"
                ]
              },
              "display": {
                "component": "table",
                "properties": {
                  "subject": {
                    "label": "Title",
                    "format": "text"
                  },
                  "categoryName": {
                    "label": "Category",
                    "format": "text"
                  },
                  "price": {
                    "label": "Price €",
                    "format": "number"
                  },
                  "city": {
                    "label": "City",
                    "format": "text"
                  },
                  "zipcode": {
                    "label": "Zip",
                    "format": "text"
                  },
                  "publishedDate": {
                    "label": "Posted",
                    "format": "text"
                  },
                  "ownerType": {
                    "label": "Type",
                    "format": "text"
                  },
                  "url": {
                    "label": "URL",
                    "format": "link"
                  }
                }
              }
            },
            "detailed": {
              "title": "Detailed Results",
              "transformation": {
                "fields": [
                  "id",
                  "subject",
                  "categoryName",
                  "price",
                  "city",
                  "zipcode",
                  "department",
                  "region",
                  "latitude",
                  "longitude",
                  "ownerName",
                  "ownerType",
                  "imageCount",
                  "thumbnail",
                  "publishedDate",
                  "url",
                  "scrapedAt"
                ]
              },
              "display": {
                "component": "table",
                "properties": {
                  "id": {
                    "label": "ID",
                    "format": "number"
                  },
                  "subject": {
                    "label": "Title",
                    "format": "text"
                  },
                  "categoryName": {
                    "label": "Category",
                    "format": "text"
                  },
                  "price": {
                    "label": "Price",
                    "format": "number"
                  },
                  "city": {
                    "label": "City",
                    "format": "text"
                  },
                  "zipcode": {
                    "label": "Zip",
                    "format": "text"
                  },
                  "department": {
                    "label": "Dept",
                    "format": "text"
                  },
                  "region": {
                    "label": "Region",
                    "format": "text"
                  },
                  "latitude": {
                    "label": "Lat",
                    "format": "number"
                  },
                  "longitude": {
                    "label": "Lng",
                    "format": "number"
                  },
                  "ownerName": {
                    "label": "Owner",
                    "format": "text"
                  },
                  "ownerType": {
                    "label": "Type",
                    "format": "text"
                  },
                  "imageCount": {
                    "label": "Images",
                    "format": "number"
                  },
                  "thumbnail": {
                    "label": "Thumb",
                    "format": "link"
                  },
                  "publishedDate": {
                    "label": "Posted",
                    "format": "text"
                  },
                  "url": {
                    "label": "URL",
                    "format": "link"
                  },
                  "scrapedAt": {
                    "label": "Scraped At",
                    "format": "text"
                  }
                }
              }
            }
          }
        }
      }
    },
    "buildNumber": "2.0.1",
    "imageDigest": "0016069ae3322172dfabc887077bb2d5c1a70c159d2595f581f864687f999cec",
    "actVersion": {
      "sourceType": "SOURCE_FILES",
      "buildTag": "latest",
      "versionNumber": "2.0"
    },
    "usage": {
      "ACTOR_COMPUTE_UNITS": 0.010121111111111112
    }
  }
}