{
  "openapi": "3.0.1",
  "info": {
    "title": "Leboncoin Scraper - France Classifieds & Prices, No Login",
    "description": "Scrape Leboncoin listings to track prices and spot resale deals in France. Search by keyword, category, place and price. Get price, city, photos, condition and seller type. No login or phone numbers.",
    "version": "0.1",
    "x-build-id": "zFA3XchNIX6IFGGtL"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/cliqtomedia~leboncoin-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-cliqtomedia-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/cliqtomedia~leboncoin-scraper/runs": {
      "post": {
        "operationId": "runs-sync-cliqtomedia-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/cliqtomedia~leboncoin-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-cliqtomedia-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": {
          "query": {
            "title": "Search keyword",
            "maxLength": 200,
            "type": "string",
            "description": "What to search for, in French as buyers type it (e.g. \"vélo électrique\", \"iphone 15\", \"canapé\"). Leave empty to browse a whole category or place."
          },
          "category": {
            "title": "Category",
            "enum": [
              "",
              "8",
              "9",
              "10",
              "11",
              "12",
              "13",
              "1",
              "2",
              "3",
              "4",
              "5",
              "106",
              "7",
              "6",
              "44",
              "50",
              "51",
              "14",
              "15",
              "83",
              "82",
              "16",
              "17",
              "81",
              "43",
              "84",
              "18",
              "19",
              "20",
              "45",
              "39",
              "46",
              "21",
              "52",
              "72",
              "22",
              "53",
              "47",
              "42",
              "79",
              "23",
              "54",
              "80",
              "24",
              "25",
              "26",
              "27",
              "30",
              "40",
              "89",
              "41",
              "86",
              "88",
              "29",
              "55",
              "85",
              "48",
              "35",
              "49",
              "75",
              "28",
              "76",
              "77",
              "71",
              "33",
              "74",
              "56",
              "105",
              "57",
              "59",
              "58",
              "32",
              "61",
              "62",
              "63",
              "64",
              "96",
              "31",
              "36",
              "65",
              "92",
              "93",
              "95",
              "97",
              "98",
              "99",
              "100",
              "101",
              "102",
              "103",
              "34",
              "38"
            ],
            "type": "string",
            "description": "Limit to one Leboncoin category. \"(all)\" entries cover the whole group.",
            "default": ""
          },
          "location": {
            "title": "Place",
            "maxLength": 100,
            "type": "string",
            "description": "A city (\"Lyon\"), postcode (\"69003\"), department name or number (\"Rhône\", \"69\") or region (\"Bretagne\", \"Occitanie\"). Leave empty for all of France."
          },
          "minPrice": {
            "title": "Minimum price (€)",
            "minimum": 0,
            "maximum": 1000000000,
            "type": "integer",
            "description": "Keep listings at this price or higher. Listings without a price are dropped when a price limit is set."
          },
          "maxPrice": {
            "title": "Maximum price (€)",
            "minimum": 0,
            "maximum": 1000000000,
            "type": "integer",
            "description": "Keep listings at this price or lower. Listings without a price are dropped when a price limit is set."
          },
          "maxItems": {
            "title": "Max listings per search",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Upper limit of listings saved for each search. Leboncoin shows at most 3,500 per search; above that a nationwide search is split by department automatically.",
            "default": 100
          },
          "searchUrls": {
            "title": "Search links",
            "maxItems": 20,
            "type": "array",
            "description": "Links copied from www.leboncoin.fr/recherche with every filter you set on the site, including category filters such as mileage or surface. Each link is one more search. A link that is not valid is skipped with a warning.",
            "items": {
              "type": "string"
            }
          },
          "adUrls": {
            "title": "Listing links or ids",
            "maxItems": 100,
            "type": "array",
            "description": "Fetch these listings directly, with the full description and all attributes. When set, the search fields and search links are ignored. Charged per listing at the listing-link price. A link that is not valid is skipped with a warning and not charged.",
            "items": {
              "type": "string"
            }
          },
          "moreQueries": {
            "title": "More search keywords",
            "maxItems": 20,
            "type": "array",
            "description": "Extra keywords, each run as one more search with the same filters. A listing found by several keywords is saved and charged once.",
            "items": {
              "type": "string"
            }
          },
          "radiusKm": {
            "title": "Radius around the place (km)",
            "minimum": 0,
            "maximum": 200,
            "type": "integer",
            "description": "Widen a city or postcode to a circle of this radius. Ignored for departments and regions."
          },
          "sellerType": {
            "title": "Seller type",
            "enum": [
              "all",
              "pro",
              "private"
            ],
            "type": "string",
            "description": "Only professional sellers or only private sellers.",
            "default": "all"
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "newest",
              "oldest",
              "relevance",
              "price-low",
              "price-high"
            ],
            "type": "string",
            "description": "Order of results, which also decides which listings fit into your limit.",
            "default": "newest"
          },
          "maxAgeDays": {
            "title": "Maximum listing age (days)",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Keep listings posted within this many days. Older listings are not charged. With \"Newest first\" the run also stops as soon as the results get older, which is faster."
          },
          "minRooms": {
            "title": "Minimum rooms",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Real estate only: at least this many rooms. Use with a real estate category."
          },
          "maxRooms": {
            "title": "Maximum rooms",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Real estate only: at most this many rooms. Use with a real estate category."
          },
          "minSurface": {
            "title": "Minimum surface (m²)",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Real estate only: at least this living area. Use with a real estate category."
          },
          "maxSurface": {
            "title": "Maximum surface (m²)",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Real estate only: at most this living area. Use with a real estate category."
          },
          "adType": {
            "title": "Listing type",
            "enum": [
              "offer",
              "demand"
            ],
            "type": "string",
            "description": "Offers are things for sale or rent. Wanted listings are people looking for something.",
            "default": "offer"
          },
          "titleOnly": {
            "title": "Search in titles only",
            "type": "boolean",
            "description": "Match the keyword in the listing title, not in the description.",
            "default": false
          },
          "urgentOnly": {
            "title": "Urgent listings only",
            "type": "boolean",
            "description": "Only listings the seller marked as urgent.",
            "default": false
          },
          "freeOnly": {
            "title": "Free items only",
            "type": "boolean",
            "description": "Only listings given away for free (\"Dons\"). Cannot be combined with a price limit.",
            "default": false
          },
          "shippableOnly": {
            "title": "Shippable items only",
            "type": "boolean",
            "description": "Only listings that offer delivery.",
            "default": false
          },
          "excludeTerms": {
            "title": "Exclude words in titles",
            "maxItems": 50,
            "type": "array",
            "description": "Drop listings whose title contains any of these words, ignoring case and accents (e.g. \"pièces\", \"HS\"). Dropped listings are not charged.",
            "items": {
              "type": "string"
            }
          },
          "includeSellerStats": {
            "title": "Add seller statistics",
            "type": "boolean",
            "description": "Add each seller's registration date, number of ads, reply rate, badges and rating. Charged once per seller per run. Never includes private sellers' names or phone numbers.",
            "default": false
          },
          "onlyNew": {
            "title": "Only new listings since last run",
            "type": "boolean",
            "description": "Remembers what each search returned and saves (and charges) only listings that appeared since the last run. Use it with a schedule and the newest sort to monitor a search. With another sort it means any listing you have not received yet.",
            "default": false
          },
          "stateName": {
            "title": "Monitoring name",
            "maxLength": 63,
            "type": "string",
            "description": "Keep the memory of separate monitors apart, e.g. \"paris-velos\". Lowercase letters, digits and hyphens. The memory is a store with this name in your Apify account, so do not use the name of another store. Leave empty to share one memory."
          },
          "deliveryConnector": {
            "title": "Send results to (optional)",
            "type": "string",
            "description": "Your Slack, Notion or other MCP connector. After the run the Actor posts a short summary there. Connect services once in Apify Console → MCP connectors."
          },
          "deliveryTarget": {
            "title": "Notion page or channel (optional)",
            "type": "string",
            "description": "Where to post the summary: a Notion page link (each run is added on top of that page) or a Slack channel ID. Leave empty to let the connector decide."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}