{
  "openapi": "3.0.1",
  "info": {
    "title": "Leboncoin Scraper [$1/1K💰] | French Real Estate · Prices & DPE",
    "description": "Scrape Leboncoin.fr — France's largest classifieds platform — for structured French real estate data. Extract prices in EUR, price per m², surface, rooms, DPE/GES energy ratings, GPS, photos, and seller info with SIRET. DataDome bypass via Chrome TLS impersonation plus French residential proxy.",
    "version": "1.0",
    "x-build-id": "dZ5hhuR3EA0ntwfBF"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ahmed_jasarevic~leboncoin-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ahmed_jasarevic-leboncoin-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/ahmed_jasarevic~leboncoin-scraper/runs": {
      "post": {
        "operationId": "runs-sync-ahmed_jasarevic-leboncoin-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/ahmed_jasarevic~leboncoin-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-ahmed_jasarevic-leboncoin-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": {
          "category": {
            "title": "Category",
            "enum": [
              "9",
              "10"
            ],
            "type": "string",
            "description": "Leboncoin category ID. 9 = Ventes immobilieres (sales), 10 = Locations immobilieres (rentals).",
            "default": "9"
          },
          "realEstateType": {
            "title": "Property Type",
            "enum": [
              "all",
              "1",
              "2",
              "3",
              "4",
              "5",
              "6",
              "7"
            ],
            "type": "string",
            "description": "Type of property to search for.",
            "default": "all"
          },
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "Locations to target. Accepted forms: a region code (e.g. 12 for Ile-de-France, 84 for Auvergne-Rhone-Alpes), a code followed by a label (e.g. \"12|Ile de France\"), a department__zip pair (e.g. \"75__75000\"), or free text that is auto-resolved via leboncoin's parrot-location API (e.g. \"Paris\", \"Bordeaux\"). Leave empty for all France.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "minPrice": {
            "title": "Minimum Price",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum price filter in euros. Leave empty for no minimum."
          },
          "maxPrice": {
            "title": "Maximum Price",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum price filter in euros. Leave empty for no maximum."
          },
          "minSquare": {
            "title": "Minimum Surface (m2)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum property surface in square meters. Leave empty for no minimum."
          },
          "maxSquare": {
            "title": "Maximum Surface (m2)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum property surface in square meters. Leave empty for no maximum."
          },
          "minRooms": {
            "title": "Minimum Rooms",
            "minimum": 1,
            "type": "integer",
            "description": "Minimum number of rooms. Leave empty for no minimum."
          },
          "sort": {
            "title": "Sort By",
            "enum": [
              "time",
              "price",
              "relevance"
            ],
            "type": "string",
            "description": "Sort results by field.",
            "default": "time"
          },
          "order": {
            "title": "Sort Order",
            "enum": [
              "asc",
              "desc"
            ],
            "type": "string",
            "description": "Sort direction.",
            "default": "desc"
          },
          "maxItems": {
            "title": "Maximum Items",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of listings to scrape. Free users capped at 50.",
            "default": 100
          },
          "includePhotos": {
            "title": "Include Photos",
            "type": "boolean",
            "description": "Whether to extract photo URLs from listings.",
            "default": true
          },
          "cookieBootstrap": {
            "title": "Browser Cookie Bootstrap",
            "type": "boolean",
            "description": "When enabled, if the HTTP warmup does not yield a DataDome cookie, a headless Chromium tab is opened once per session inside the actor to sign it and let the API fly. Set to true if you see 403/captcha errors on the finder API.",
            "default": false
          },
          "cacheResults": {
            "title": "Cache Results",
            "type": "boolean",
            "description": "When enabled, results for the exact same search filters are stored in a key-value store and returned instantly on reruns within the TTL, without scraping Leboncoin again. Useful for repeated scheduled runs of the same query.",
            "default": false
          },
          "cacheTtlMinutes": {
            "title": "Cache TTL (minutes)",
            "minimum": 1,
            "type": "integer",
            "description": "How long cached results stay valid before a rerun rescrapes. Only used when Cache Results is enabled.",
            "default": 60
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "ON = use Apify Proxy (billed to your Apify account; RESIDENTIAL + country FR recommended for the best DataDome bypass). OFF = use your own proxies (billed to your proxy provider) - paste them into the credentials box below.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "FR"
            }
          },
          "proxyUrl": {
            "title": "Custom Proxy URL (optional)",
            "pattern": "^https?://+",
            "type": "string",
            "description": "Bypass Apify proxy and route all traffic through a single custom proxy URL instead, e.g. http://user:pass@host:3128. Use a French residential/mobile proxy for best results. Takes precedence over the proxy configuration above, and is billed to your own proxy provider."
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}