{
  "openapi": "3.0.1",
  "info": {
    "title": "Leboncoin Scraper - New Ads & Price Drop Monitor",
    "description": "For car traders, property hunters, resellers and deal-alert bots: new leboncoin.fr ads, price drops and removed ads for cars, property and items, by keyword, city, radius and price. Schedule it hourly. Price, location, photos; cars add year and mileage. Export CSV, Excel or JSON.",
    "version": "0.1",
    "x-build-id": "jM3lb5USZEhE5oauI"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neverempty~leboncoin-new-ads-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neverempty-leboncoin-new-ads-monitor",
        "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/neverempty~leboncoin-new-ads-monitor/runs": {
      "post": {
        "operationId": "runs-sync-neverempty-leboncoin-new-ads-monitor",
        "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/neverempty~leboncoin-new-ads-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-neverempty-leboncoin-new-ads-monitor",
        "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": [
              "all",
              "voitures",
              "motos",
              "caravaning",
              "utilitaires",
              "equipement_auto",
              "nautisme",
              "ventes_immobilieres",
              "locations",
              "colocations",
              "locations_saisonnieres",
              "bureaux_commerces",
              "ordinateurs",
              "photo_audio_video",
              "telephones_objets_connectes",
              "ameublement",
              "electromenager",
              "bricolage",
              "vetements",
              "equipement_bebe",
              "livres",
              "animaux",
              "sport_plein_air",
              "instruments_de_musique",
              "decoration",
              "collection",
              "jeux_jouets",
              "montres_bijoux",
              "consoles",
              "chaussures",
              "velos",
              "equipements_velos",
              "antiquites"
            ],
            "type": "string",
            "description": "Turn on Monitor mode, schedule it hourly → get only new ads & price drops. Pick the leboncoin category, e.g. Voitures (cars), Locations (property to rent) or Ventes immobilières (property for sale). Leave Category, Keywords, Locations and Search URLs all empty to run the example: Voitures in Lyon."
          },
          "searchQueries": {
            "title": "Keywords",
            "type": "array",
            "description": "Optional. What you would type into the leboncoin search box, for example peugeot 208, vélo électrique, T2, iphone 15. Each keyword is searched in each location.",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Locations",
            "type": "array",
            "description": "French cities (Lyon, Saint-Étienne), postcodes (69003), départements (69, 2A) or régions (Bretagne, Ile-de-France). Empty = all of France.",
            "items": {
              "type": "string"
            }
          },
          "radiusKm": {
            "title": "Radius around a city (km)",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Optional. Search this many kilometres around each city in Locations (1 to 200). Empty = the area leboncoin uses for that city. Not used for postcodes, départements or régions."
          },
          "minPrice": {
            "title": "Minimum price (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Lowest price in euros. For Locations (property to rent) this is the monthly rent."
          },
          "maxPrice": {
            "title": "Maximum price (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Highest price in euros. For Locations (property to rent) this is the monthly rent."
          },
          "sellerType": {
            "title": "Seller",
            "enum": [
              "any",
              "private",
              "pro"
            ],
            "type": "string",
            "description": "Return only private sellers, or only professional sellers and agencies. Empty = any seller."
          },
          "shippableOnly": {
            "title": "Only ads with delivery",
            "type": "boolean",
            "description": "Return only ads that offer delivery (livraison). Empty = all ads."
          },
          "searchUrls": {
            "title": "Search URLs",
            "type": "array",
            "description": "Optional. Paste the address of any leboncoin search results page, with your own filters already set on leboncoin.fr. Each one is watched as its own search, always newest first.",
            "items": {
              "type": "string"
            }
          },
          "maxResultsPerSearch": {
            "title": "Max ads per search",
            "minimum": 1,
            "maximum": 650,
            "type": "integer",
            "description": "How many of the newest ads to read per search (1 to 650; leboncoin shows at most 650 per search). Empty = 50. In monitor mode this is the window checked for new ads and changes on each run. On the first monitor run all of them are returned and charged."
          },
          "monitorMode": {
            "title": "Monitor mode: only new ads and changes",
            "type": "boolean",
            "description": "Turn on Monitor mode, schedule it hourly → get only new ads & price drops. The first run returns the current ads as the starting point; later runs return only new ads, price changes and removed ads, each marked in changeType."
          },
          "includePriceDrops": {
            "title": "Return price drops",
            "type": "boolean",
            "description": "In monitor mode, return ads whose price went down since the last run, with the previous price. Empty = yes."
          },
          "includePriceIncreases": {
            "title": "Return price rises",
            "type": "boolean",
            "description": "In monitor mode, also return ads whose price went up since the last run. Empty = no."
          },
          "minPriceChangePercent": {
            "title": "Smallest price change to return (%)",
            "minimum": 0,
            "maximum": 90,
            "type": "integer",
            "description": "In monitor mode, return a price drop or rise only when the price moved at least this many percent (0 to 90). Smaller moves add up until they pass it. Empty = any change."
          },
          "includeRemoved": {
            "title": "Return removed ads",
            "type": "boolean",
            "description": "In monitor mode, return ads you got before that leboncoin now says are gone (sold or deleted). An ad that only dropped out of the search list is not reported. Empty = yes."
          },
          "includeUnchanged": {
            "title": "Also return unchanged ads",
            "type": "boolean",
            "description": "In monitor mode, also return already-seen ads with no change (each one is charged). Empty = no."
          },
          "watchName": {
            "title": "Watch name",
            "type": "string",
            "description": "Optional. Give each schedule its own name (letters, digits, dot, dash, underscore) so separate schedules keep separate memories. Empty = default."
          },
          "resetMonitoringState": {
            "title": "Start this watch again",
            "type": "boolean",
            "description": "Forget what this watch remembered, so this run is a first check again."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}