{
  "openapi": "3.0.1",
  "info": {
    "title": "LeBonCoin Car Scraper - Vehicle Listings",
    "description": "Scrape LeBonCoin car listings with make, model, year, mileage, fuel, gearbox, price and location filters. Export structured vehicle specs, seller details and listing URLs for market monitoring workflows.",
    "version": "0.1",
    "x-build-id": "yfFRT10jEjggsyv4k"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/blackfalcondata~leboncoin-car-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-blackfalcondata-leboncoin-car-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-car-scraper/runs": {
      "post": {
        "operationId": "runs-sync-blackfalcondata-leboncoin-car-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-car-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-blackfalcondata-leboncoin-car-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 keywords",
            "type": "string",
            "description": "Optional keywords to search within car listings, for example diesel or hybrid."
          },
          "make": {
            "title": "Make (brand)",
            "type": "string",
            "description": "LeBonCoin brand code, UPPERCASE — e.g. RENAULT, PEUGEOT, MERCEDES-BENZ. See README for the full list."
          },
          "model": {
            "title": "Model",
            "type": "string",
            "description": "LeBonCoin model code in BRAND_Model form — e.g. RENAULT_Clio, PEUGEOT_308. See README."
          },
          "yearMin": {
            "title": "Year from",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Only include cars first registered in or after this year."
          },
          "yearMax": {
            "title": "Year to",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Only include cars first registered in or before this year."
          },
          "mileageMin": {
            "title": "Mileage from (km)",
            "minimum": 0,
            "type": "integer",
            "description": "Only include cars with mileage at or above this value in kilometres."
          },
          "mileageMax": {
            "title": "Mileage to (km)",
            "minimum": 0,
            "type": "integer",
            "description": "Only include cars with mileage at or below this value in kilometres."
          },
          "priceMin": {
            "title": "💰 Price from (€)",
            "minimum": 0,
            "type": "integer",
            "description": "Only include cars priced at or above this value in EUR."
          },
          "priceMax": {
            "title": "💰 Price to (€)",
            "minimum": 0,
            "type": "integer",
            "description": "Only include cars priced at or below this value in EUR."
          },
          "fuel": {
            "title": "⛽ Fuel type",
            "type": "array",
            "description": "Filter by one or more fuel types.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5",
                "6",
                "7",
                "8"
              ],
              "enumTitles": [
                "Petrol",
                "Diesel",
                "LPG",
                "Electric",
                "Other",
                "Hybrid",
                "CNG",
                "Plug-in hybrid"
              ]
            }
          },
          "gearbox": {
            "title": "Gearbox",
            "type": "array",
            "description": "Filter by manual or automatic gearbox.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2"
              ],
              "enumTitles": [
                "Manual",
                "Automatic"
              ]
            }
          },
          "bodyType": {
            "title": "Body type",
            "type": "array",
            "description": "Filter by one or more body types.",
            "items": {
              "type": "string",
              "enum": [
                "berline",
                "break",
                "citadine",
                "coupe",
                "cabriolet",
                "monospace",
                "4x4",
                "autre"
              ],
              "enumTitles": [
                "Saloon",
                "Estate",
                "City car",
                "Coupé",
                "Convertible",
                "Minivan",
                "SUV / 4x4",
                "Other"
              ]
            }
          },
          "doors": {
            "title": "Doors",
            "type": "array",
            "description": "Filter by number of doors.",
            "items": {
              "type": "string",
              "enum": [
                "2",
                "3",
                "4",
                "5"
              ]
            }
          },
          "seats": {
            "title": "Seats",
            "type": "array",
            "description": "Filter by number of seats.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5",
                "6"
              ]
            }
          },
          "color": {
            "title": "Colour",
            "type": "array",
            "description": "Filter by vehicle colour.",
            "items": {
              "type": "string",
              "enum": [
                "blanc",
                "noir",
                "gris",
                "argent",
                "bleu",
                "rouge",
                "vert",
                "jaune",
                "orange",
                "beige",
                "marron",
                "violet",
                "rose",
                "bordeaux",
                "autre"
              ],
              "enumTitles": [
                "White",
                "Black",
                "Grey",
                "Silver",
                "Blue",
                "Red",
                "Green",
                "Yellow",
                "Orange",
                "Beige",
                "Brown",
                "Purple",
                "Pink",
                "Burgundy",
                "Other"
              ]
            }
          },
          "critair": {
            "title": "Crit'Air sticker",
            "type": "array",
            "description": "Filter by Crit'Air sticker class.",
            "items": {
              "type": "string",
              "enum": [
                "0",
                "1",
                "2",
                "3",
                "4",
                "5"
              ],
              "enumTitles": [
                "Crit'Air 0",
                "Crit'Air 1",
                "Crit'Air 2",
                "Crit'Air 3",
                "Crit'Air 4",
                "Crit'Air 5"
              ]
            }
          },
          "dinPowerMin": {
            "title": "DIN power from (hp)",
            "minimum": 0,
            "type": "integer",
            "description": "Only include cars with DIN power at or above this value."
          },
          "dinPowerMax": {
            "title": "DIN power to (hp)",
            "minimum": 0,
            "type": "integer",
            "description": "Only include cars with DIN power at or below this value."
          },
          "fiscalPowerMin": {
            "title": "Fiscal power from (CV)",
            "minimum": 0,
            "type": "integer",
            "description": "Only include cars with fiscal power at or above this value."
          },
          "fiscalPowerMax": {
            "title": "Fiscal power to (CV)",
            "minimum": 0,
            "type": "integer",
            "description": "Only include cars with fiscal power at or below this value."
          },
          "ownerType": {
            "title": "Seller type",
            "enum": [
              "all",
              "private",
              "pro"
            ],
            "type": "string",
            "description": "Leave as All for both private sellers and dealers.",
            "default": "all"
          },
          "sort": {
            "title": "🔀 Sort order",
            "enum": [
              "time",
              "price",
              "price_desc",
              "relevance"
            ],
            "type": "string",
            "description": "Choose how matching car listings are ordered.",
            "default": "time"
          },
          "location": {
            "title": "📍 Location",
            "type": "string",
            "description": "A LeBonCoin location token, passed verbatim: a city name (e.g. Lyon), a department (d_75), or a region (r_12). Ignored when latitude/longitude are set, or when car search URLs are provided."
          },
          "lat": {
            "title": "Latitude (GPS radius search)",
            "type": "string",
            "description": "Decimal latitude, e.g. 48.8566. Requires longitude + radius."
          },
          "lng": {
            "title": "Longitude (GPS radius search)",
            "type": "string",
            "description": "Decimal longitude, e.g. 2.3522. Requires latitude + radius."
          },
          "radiusKm": {
            "title": "📡 Radius (km)",
            "minimum": 1,
            "type": "integer",
            "description": "Search radius around the GPS point, in kilometres. Requires latitude + longitude."
          },
          "startUrls": {
            "title": "🔗 Car search URLs",
            "type": "array",
            "description": "Paste one or more LeBonCoin car-search URLs. When set, typed search filters are ignored.",
            "items": {
              "type": "string"
            }
          },
          "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": 25
          },
          "maxPages": {
            "title": "📄 Max Pages",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Maximum number of result pages to process per search.",
            "default": 5
          },
          "includeDetails": {
            "title": "📋 Include Full Listing Details",
            "type": "boolean",
            "description": "Fetch the detail page for each listing to retrieve the full description, contact information, and structured attributes. This increases runtime and Apify compute usage; 512 MB is the balanced default, while 1024 MB is a speed option for larger detail runs.",
            "default": true
          },
          "includePhone": {
            "title": "📞 Reveal Phone Numbers",
            "type": "boolean",
            "description": "Attempt to retrieve the seller's phone number for each listing. Only applies when includeDetails is enabled.",
            "default": false
          },
          "extractContacts": {
            "title": "📇 Extract Contact Details",
            "type": "boolean",
            "description": "Mine phone numbers, email addresses, and external URLs from the listing description text.",
            "default": true
          },
          "watchSellerIds": {
            "title": "Watch seller IDs (dealer monitoring)",
            "type": "array",
            "description": "Array of seller or dealer 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 identifier 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
          },
          "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. Server Settings → Integrations → Webhooks → New Webhook."
          },
          "slackWebhookUrl": {
            "title": "💼 Slack Incoming Webhook URL",
            "type": "string",
            "description": "Slack incoming webhook URL. Slack App → Incoming Webhooks → Add New Webhook."
          },
          "whatsappAccessToken": {
            "title": "📱 WhatsApp Access Token",
            "type": "string",
            "description": "WhatsApp Cloud API access token from Meta Business Manager. The recipient must have messaged your business number within the last 24 hours."
          },
          "whatsappPhoneNumberId": {
            "title": "📞 WhatsApp Phone Number ID",
            "type": "string",
            "description": "WhatsApp Business phone number ID (numeric, from Meta dashboard). Required when whatsappAccessToken is set."
          },
          "whatsappTo": {
            "title": "📲 WhatsApp Recipient",
            "type": "string",
            "description": "Recipient phone number in E.164 format without + (e.g. \"33612345678\"). Recipient must have messaged your business number within the last 24 hours."
          },
          "webhookUrl": {
            "title": "🪝 Generic Webhook URL",
            "type": "string",
            "description": "Receives a JSON POST with {metadata, items} after each run. Compatible with n8n, Make, Zapier, and custom HTTP backends."
          },
          "webhookHeaders": {
            "title": "📋 Webhook Headers",
            "type": "object",
            "description": "Optional JSON object of custom HTTP headers for the webhook POST (e.g. {\"Authorization\":\"Bearer ...\"})."
          },
          "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
          },
          "appConnector": {
            "title": "Send results to a connected app",
            "type": "string",
            "description": "Optional connector identifier 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."
          },
          "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}