{
  "openapi": "3.0.1",
  "info": {
    "title": "LeBonCoin Real Estate Scraper [Just 💰$0.59] — Property Ads",
    "description": "💰 $0.59 per 1,000 listings, platform usage included — the cheapest LeBonCoin property scraper. Paste any search URL or filter by property type, surface & rooms, price and city. Seller details included; incremental tracking for market monitoring.",
    "version": "0.1",
    "x-build-id": "H3HiiXOjVtPTtlFnv"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/blackfalcondata~leboncoin-real-estate-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-blackfalcondata-leboncoin-real-estate-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/blackfalcondata~leboncoin-real-estate-scraper/runs": {
      "post": {
        "operationId": "runs-sync-blackfalcondata-leboncoin-real-estate-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/blackfalcondata~leboncoin-real-estate-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-blackfalcondata-leboncoin-real-estate-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "operation": {
            "title": "🏷️ Listing type",
            "enum": [
              "sale",
              "rent",
              "colocation",
              "commercial"
            ],
            "type": "string",
            "description": "Choose the LeBonCoin real estate section to scrape: properties for sale, rentals, shared rentals, or offices and commercial premises.",
            "default": "sale"
          },
          "propertyType": {
            "title": "🏘️ Property type",
            "type": "array",
            "description": "Filter by one or more LeBonCoin property type codes. 1=House, 2=Apartment, 3=Land, 4=Parking, 5=Other.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5"
              ],
              "enumTitles": [
                "House",
                "Apartment",
                "Land",
                "Parking",
                "Other"
              ]
            }
          },
          "cityName": {
            "title": "🏙️ City Name",
            "type": "string",
            "description": "City name (e.g. \"Paris\", \"Lyon\"). Resolved to the nearest known city."
          },
          "query": {
            "title": "🔍 Search keywords",
            "type": "string",
            "description": "Optional keywords to search within LeBonCoin real estate listings, for example appartement, maison, studio or investissement."
          },
          "maxResults": {
            "title": "💯 Max Results",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of listings to return per run. Set to 0 for unlimited. The actor defaults to 512 MB memory; choosing 1024 MB in run options can reduce wall-clock time but increases Apify compute usage billed to the user.",
            "default": 100
          },
          "startUrls": {
            "title": "🔗 …or paste a Leboncoin property search URL",
            "type": "array",
            "description": "Easiest way to start: run your search on leboncoin.fr with every filter you want, then copy the URL from the address bar and paste it here. All filters on the URL are kept. When set, the search fields above are ignored. Single ad URLs work too.",
            "items": {
              "type": "string"
            }
          },
          "surfaceMin": {
            "title": "Surface from (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Only include properties with living surface at or above this value."
          },
          "surfaceMax": {
            "title": "Surface to (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Only include properties with living surface at or below this value."
          },
          "roomsMin": {
            "title": "Rooms from",
            "minimum": 0,
            "type": "integer",
            "description": "Only include properties with at least this many rooms."
          },
          "roomsMax": {
            "title": "Rooms to",
            "minimum": 0,
            "type": "integer",
            "description": "Only include properties with at most this many rooms."
          },
          "bedroomsMin": {
            "title": "Bedrooms from",
            "minimum": 0,
            "type": "integer",
            "description": "Only include properties with at least this many bedrooms."
          },
          "bedroomsMax": {
            "title": "Bedrooms to",
            "minimum": 0,
            "type": "integer",
            "description": "Only include properties with at most this many bedrooms."
          },
          "landSurfaceMin": {
            "title": "Land surface from (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Only include houses or land listings with land surface at or above this value."
          },
          "landSurfaceMax": {
            "title": "Land surface to (m²)",
            "minimum": 0,
            "type": "integer",
            "description": "Only include houses or land listings with land surface at or below this value."
          },
          "energyClass": {
            "title": "⚡ Energy class (DPE)",
            "type": "array",
            "description": "Filter by one or more DPE energy classes.",
            "items": {
              "type": "string",
              "enum": [
                "a",
                "b",
                "c",
                "d",
                "e",
                "f",
                "g"
              ],
              "enumTitles": [
                "A",
                "B",
                "C",
                "D",
                "E",
                "F",
                "G"
              ]
            }
          },
          "outsideAccess": {
            "title": "🌿 Outdoor access",
            "type": "array",
            "description": "Filter by LeBonCoin outdoor access tokens. Multiple selections can return listings matching any selected outdoor feature.",
            "items": {
              "type": "string",
              "enum": [
                "garden",
                "terrace",
                "balcony",
                "pool"
              ],
              "enumTitles": [
                "Garden",
                "Terrace",
                "Balcony",
                "Swimming pool"
              ]
            }
          },
          "newBuild": {
            "title": "New build only",
            "type": "boolean",
            "description": "When enabled, only include new-build property listings. Leave disabled to include both new and existing properties.",
            "default": false
          },
          "hasElevator": {
            "title": "Elevator required",
            "type": "boolean",
            "description": "When enabled, only include apartment listings marked with an elevator.",
            "default": false
          },
          "topFloorOnly": {
            "title": "Top floor only",
            "type": "boolean",
            "description": "When enabled, only include apartment listings on the top floor.",
            "default": false
          },
          "features": {
            "title": "🏷️ Property amenities",
            "type": "array",
            "description": "Filter by verified LeBonCoin amenity tokens. When multiple amenities are selected, LeBonCoin can return listings matching any selected amenity.",
            "items": {
              "type": "string",
              "enum": [
                "with_garage_or_parking_spot",
                "cellar",
                "intercom",
                "equipped_kitchen",
                "separate_kitchen",
                "american_kitchen",
                "caretaker",
                "bathtub",
                "air_conditioned",
                "new_building",
                "old_builiding"
              ],
              "enumTitles": [
                "Garage or parking spot",
                "Cellar",
                "Intercom",
                "Equipped kitchen",
                "Separate kitchen",
                "American kitchen",
                "Caretaker",
                "Bathtub",
                "Air conditioned",
                "New building",
                "Old building"
              ]
            }
          },
          "priceMin": {
            "title": "💰 Price from (€)",
            "minimum": 0,
            "type": "integer",
            "description": "Only include properties priced at or above this value in EUR."
          },
          "priceMax": {
            "title": "💰 Price to (€)",
            "minimum": 0,
            "type": "integer",
            "description": "Only include properties priced at or below this value in EUR."
          },
          "ownerType": {
            "title": "Seller type",
            "enum": [
              "all",
              "private",
              "pro"
            ],
            "type": "string",
            "description": "Leave as All for both private sellers and agencies.",
            "default": "all"
          },
          "sort": {
            "title": "🔀 Sort order",
            "enum": [
              "time",
              "price",
              "price_desc",
              "relevance"
            ],
            "type": "string",
            "description": "Choose how matching property listings are ordered.",
            "default": "time"
          },
          "location": {
            "title": "📍 Location",
            "type": "string",
            "description": "A LeBonCoin location token, passed verbatim: a city name (e.g. Paris), a department (d_75), or a region (r_12). Ignored when latitude/longitude are set, or when real estate search URLs are provided."
          },
          "lat": {
            "title": "Latitude (GPS radius search)",
            "type": "string",
            "description": "Decimal latitude, e.g. 48.8566. Requires longitude + radius."
          },
          "lon": {
            "title": "🌐 Longitude",
            "minimum": -180,
            "maximum": 180,
            "type": "number",
            "description": "GPS longitude. Pair with lat."
          },
          "radiusKm": {
            "title": "📡 Radius (km)",
            "minimum": 1,
            "type": "integer",
            "description": "Search radius around the GPS point, in kilometres. Requires latitude + longitude."
          },
          "mode": {
            "title": "⚙️ Output mode",
            "enum": [
              "listings",
              "agencies"
            ],
            "type": "string",
            "description": "Choose listing records or a deduplicated agency view built from professional sellers found in the scraped listings.",
            "default": "listings"
          },
          "includeDetails": {
            "title": "📋 Add listing extras (favorites, shipping, payment)",
            "type": "boolean",
            "description": "Every result already includes the full description, all photos, price, location, seller and structured attributes. Turn this on to also add the favorites count, shipping options and accepted payment methods for each listing. Charged as a separate per-listing event and makes the run slower. Leave off unless you need those three fields.",
            "default": false
          },
          "includePhone": {
            "title": "📞 Reveal Phone Numbers",
            "type": "boolean",
            "description": "Attempt to retrieve the seller phone number for each listing that shows one. Charged per number found.",
            "default": false
          },
          "extractContacts": {
            "title": "📇 Extract Contact Details",
            "type": "boolean",
            "description": "Mine phone numbers, email addresses, and external URLs from listing description text.",
            "default": true
          },
          "watchSellerIds": {
            "title": "Watch seller IDs (agency monitoring)",
            "type": "array",
            "description": "Array of seller or agency IDs to monitor. When set, only listings from these sellers are returned.",
            "items": {
              "type": "string"
            }
          },
          "compact": {
            "title": "📦 Compact Output (for AI / MCP)",
            "type": "boolean",
            "description": "Return only core fields. Reduces payload size for LLM pipelines and agent tools.",
            "default": false
          },
          "descriptionFormat": {
            "title": "📝 Description Format",
            "enum": [
              "all",
              "text",
              "html",
              "markdown"
            ],
            "type": "string",
            "description": "Choose which representation of the listing description to include. `all` keeps every variant; the others keep only the selected one.",
            "default": "all"
          },
          "descriptionMaxLength": {
            "title": "✂️ Description Max Length",
            "minimum": 0,
            "type": "integer",
            "description": "Truncate listing descriptions to this many characters. Set to 0 for no truncation.",
            "default": 0
          },
          "excludeEmptyFields": {
            "title": "🧹 Exclude Empty Fields",
            "type": "boolean",
            "description": "Drop null, empty-string, and empty-array fields from each record before output. Reduces payload size.",
            "default": false
          },
          "incrementalMode": {
            "title": "♻️ Incremental Mode",
            "type": "boolean",
            "description": "Compare results against the previous run and only emit new or changed listings. Tracks state across runs automatically.",
            "default": false
          },
          "stateKey": {
            "title": "🔑 State Key",
            "type": "string",
            "description": "Optional stable ID for the tracked search. Leave empty to auto-derive from your search inputs - different filter combinations get isolated state."
          },
          "emitExpired": {
            "title": "⚰️ Emit Expired Listings",
            "type": "boolean",
            "description": "When incremental mode is on, also emit listings that were seen before but are no longer found.",
            "default": false
          },
          "emitUnchanged": {
            "title": "🔄 Emit Unchanged Listings",
            "type": "boolean",
            "description": "When incremental mode is on, also emit listings whose content has not changed since the last run.",
            "default": false
          },
          "skipReposts": {
            "title": "🚫 Skip Reposts",
            "type": "boolean",
            "description": "In incremental mode, skip listings that appear to be reposts of a previously-seen expired listing with matching details.",
            "default": false
          },
          "notifyOnlyChanges": {
            "title": "🔔 Notify Only New / Updated",
            "type": "boolean",
            "description": "When incremental mode is on, send notifications only for new or updated listings. Has no effect outside incremental mode.",
            "default": false
          },
          "notificationLimit": {
            "title": "📊 Max Listings Per Notification",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum number of listings included in each notification message (1-20).",
            "default": 5
          },
          "telegramToken": {
            "title": "🔑 Telegram Bot Token",
            "type": "string",
            "description": "Telegram bot token from @BotFather. Required for Telegram notifications. Pairs well with incremental mode."
          },
          "telegramChatId": {
            "title": "💬 Telegram Chat / Channel ID",
            "type": "string",
            "description": "Chat ID (from @userinfobot) or channel ID (starts with -100). Required when telegramToken is set."
          },
          "discordWebhookUrl": {
            "title": "🎮 Discord Webhook URL",
            "type": "string",
            "description": "Discord channel webhook URL."
          },
          "slackWebhookUrl": {
            "title": "💼 Slack Incoming Webhook URL",
            "type": "string",
            "description": "Slack incoming webhook URL."
          },
          "whatsappPhoneNumberId": {
            "title": "📞 WhatsApp Phone Number ID",
            "type": "string",
            "description": "WhatsApp Business phone number ID."
          },
          "whatsappAccessToken": {
            "title": "📱 WhatsApp Access Token",
            "type": "string",
            "description": "WhatsApp Cloud API access token from Meta Business Manager."
          },
          "whatsappTo": {
            "title": "📲 WhatsApp Recipient",
            "type": "string",
            "description": "Recipient phone number in E.164 format without +."
          },
          "webhookUrl": {
            "title": "🪝 Generic Webhook URL",
            "type": "string",
            "description": "Receives a JSON POST with {metadata, items} after each run."
          },
          "webhookHeaders": {
            "title": "📋 Webhook Headers",
            "type": "object",
            "description": "Optional JSON object of custom HTTP headers for the webhook POST."
          },
          "appConnector": {
            "title": "Send results to a connected app",
            "type": "string",
            "description": "Optional connector ID for downstream app integrations."
          },
          "mcpIssueTeam": {
            "title": "Issue tracker team",
            "type": "string",
            "description": "Only when the connected app is an issue tracker: the team (name or ID) the summary issue is created under, if that app requires one."
          },
          "lng": {
            "title": "Longitude (GPS radius search)",
            "type": "string",
            "description": "Decimal longitude, e.g. 2.3522. Requires latitude + radius."
          },
          "allowLowConfidence": {
            "title": "🔓 Allow Low-Confidence City Match",
            "type": "boolean",
            "description": "When enabled, accepts a fuzzy or GPS-approximate city match instead of failing. Disable to prevent silent wrong-location results.",
            "default": false
          },
          "maxPages": {
            "title": "📄 Max Pages",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum number of result pages to process per search.",
            "default": 5
          },
          "proxyConfiguration": {
            "title": "🌐 Proxy Configuration",
            "type": "object",
            "description": "Proxy settings. Defaults to Apify Residential proxies in France for best results.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "FR"
            }
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}