{
  "openapi": "3.0.1",
  "info": {
    "title": "Leboncoin France Classified Ads Extractor",
    "description": "Scrape Leboncoin search results by URL, category or keyword across real estate, vehicles, jobs and more, with price, location, photos, owner type and category-specific attributes.",
    "version": "2.0",
    "x-build-id": "0xKFZXAZYv6IqnAgi"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/vexaloom-labs~leboncoin-france-classified-ads-extractor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-vexaloom-labs-leboncoin-france-classified-ads-extractor",
        "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/vexaloom-labs~leboncoin-france-classified-ads-extractor/runs": {
      "post": {
        "operationId": "runs-sync-vexaloom-labs-leboncoin-france-classified-ads-extractor",
        "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/vexaloom-labs~leboncoin-france-classified-ads-extractor/run-sync": {
      "post": {
        "operationId": "run-sync-vexaloom-labs-leboncoin-france-classified-ads-extractor",
        "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": {
          "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.",
            "items": {
              "type": "string",
              "pattern": "^https?://([a-z0-9-]+\\.)?leboncoin\\.fr/"
            }
          },
          "category": {
            "title": "Category ID",
            "minimum": 1,
            "maximum": 99999,
            "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=."
          },
          "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."
          },
          "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.",
            "items": {
              "type": "string"
            }
          },
          "priceMin": {
            "title": "Minimum price (EUR)",
            "minimum": 0,
            "maximum": 100000000,
            "type": "integer",
            "description": "Smallest price to include. Leave empty for no lower bound."
          },
          "priceMax": {
            "title": "Maximum price (EUR)",
            "minimum": 0,
            "maximum": 100000000,
            "type": "integer",
            "description": "Largest price to include. Leave empty for no upper bound."
          },
          "sort": {
            "title": "Sort order",
            "enum": [
              "relevance",
              "newest",
              "oldest",
              "price_low",
              "price_high"
            ],
            "type": "string",
            "description": "How Leboncoin should order the results.",
            "default": "relevance"
          },
          "ownerType": {
            "title": "Seller type",
            "enum": [
              "all",
              "private",
              "pro"
            ],
            "type": "string",
            "description": "Keep every seller, only private individuals, or only professionals.",
            "default": "all"
          },
          "adType": {
            "title": "Ad type",
            "enum": [
              "offer",
              "demand",
              "all"
            ],
            "type": "string",
            "description": "Offers are listings for sale or rent; demands are wanted ads.",
            "default": "offer"
          },
          "shippable": {
            "title": "Shippable only",
            "type": "boolean",
            "description": "Return only ads where the seller offers shipping.",
            "default": 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
          },
          "roomsMin": {
            "title": "Minimum rooms",
            "minimum": 0,
            "maximum": 30,
            "type": "integer",
            "description": "Real-estate filter: smallest number of rooms."
          },
          "roomsMax": {
            "title": "Maximum rooms",
            "minimum": 0,
            "maximum": 30,
            "type": "integer",
            "description": "Real-estate filter: largest number of rooms."
          },
          "surfaceMin": {
            "title": "Minimum surface (m²)",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Real-estate filter: smallest living area in square metres."
          },
          "surfaceMax": {
            "title": "Maximum surface (m²)",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Real-estate filter: largest living area in square metres."
          },
          "realEstateType": {
            "title": "Property type",
            "type": "array",
            "description": "Real-estate filter. Values: 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"
              ]
            }
          },
          "mileageMin": {
            "title": "Minimum mileage (km)",
            "minimum": 0,
            "maximum": 2000000,
            "type": "integer",
            "description": "Vehicle filter: smallest odometer reading in kilometres."
          },
          "mileageMax": {
            "title": "Maximum mileage (km)",
            "minimum": 0,
            "maximum": 2000000,
            "type": "integer",
            "description": "Vehicle filter: largest odometer reading in kilometres."
          },
          "yearMin": {
            "title": "Minimum model year",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Vehicle filter: oldest registration year."
          },
          "yearMax": {
            "title": "Maximum model year",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Vehicle filter: newest registration year."
          },
          "condition": {
            "title": "Item condition",
            "type": "array",
            "description": "Goods filter. Values: 1 = new, 6 = refurbished, 2 = very good, 3 = good, 7 = fair, 5 = for parts.",
            "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.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5",
                "6",
                "7"
              ],
              "enumTitles": [
                "Fixed-term",
                "Permanent",
                "Temporary",
                "Freelance",
                "Apprenticeship",
                "Internship",
                "Volunteering"
              ]
            }
          },
          "maxItems": {
            "title": "Maximum ads",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Stop after this many ads. The actor stops sooner when Leboncoin runs out of matching results.",
            "default": 50
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}