{
  "openapi": "3.0.1",
  "info": {
    "title": "LeasingMarkt.de Scraper – Germany Car Leasing Offers",
    "description": "Scrape car leasing offers from LeasingMarkt.de (Germany): monthly rate (gross and net), term, km per year, down payment, leasing factor, list and purchase price, specs, dealer and location, plus private lease takeovers. Filter by make, model, fuel, body, rate and postcode.",
    "version": "0.1",
    "x-build-id": "48svRgT0LthymjdyV"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sn41lz~leasingmarkt-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sn41lz-leasingmarkt-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/sn41lz~leasingmarkt-scraper/runs": {
      "post": {
        "operationId": "runs-sync-sn41lz-leasingmarkt-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/sn41lz~leasingmarkt-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-sn41lz-leasingmarkt-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": {
          "makes": {
            "title": "Makes",
            "type": "array",
            "description": "Car makes, e.g. 'BMW', 'Volkswagen', 'Mercedes-Benz', 'Skoda', 'Tesla'. Leave empty for all makes.",
            "items": {
              "type": "string"
            }
          },
          "models": {
            "title": "Models",
            "type": "array",
            "description": "Optional models or model series of the make above, e.g. 'Golf', 'ID.3', 'Tiguan', '3er', 'X1', 'GLC'. Only used with exactly one make.",
            "items": {
              "type": "string"
            }
          },
          "contractType": {
            "title": "Offer type",
            "enum": [
              "new",
              "takeover"
            ],
            "type": "string",
            "description": "New leasing contracts from dealers (default), or lease takeovers (Leasingübernahme) offered by current lessees.",
            "default": "new"
          },
          "customerType": {
            "title": "Customer type",
            "enum": [
              "all",
              "private",
              "business"
            ],
            "type": "string",
            "description": "Offers for private customers (Privatleasing), businesses (Gewerbeleasing) or both.",
            "default": "all"
          },
          "condition": {
            "title": "Car condition",
            "enum": [
              "any",
              "new",
              "used"
            ],
            "type": "string",
            "description": "New cars only, used cars only (incl. demo and pre-registered stock), or both.",
            "default": "any"
          },
          "fuel": {
            "title": "Fuel",
            "enum": [
              "petrol",
              "diesel",
              "electric",
              "hybrid",
              "plugInHybrid",
              "gas"
            ],
            "type": "string",
            "description": "Only cars with this fuel."
          },
          "bodyType": {
            "title": "Body type",
            "enum": [
              "small",
              "compact",
              "sedan",
              "estate",
              "suv",
              "van",
              "convertible",
              "sports",
              "commercial",
              "motorhome"
            ],
            "type": "string",
            "description": "Only cars with this body type."
          },
          "transmission": {
            "title": "Transmission",
            "enum": [
              "manual",
              "automatic"
            ],
            "type": "string",
            "description": "Only cars with this gearbox."
          },
          "minMonthlyRate": {
            "title": "Min monthly rate (€, gross)",
            "minimum": 0,
            "type": "integer",
            "description": "Only offers with a monthly rate (incl. VAT) at or above this."
          },
          "maxMonthlyRate": {
            "title": "Max monthly rate (€, gross)",
            "minimum": 0,
            "type": "integer",
            "description": "Only offers with a monthly rate (incl. VAT) at or below this."
          },
          "maxDurationMonths": {
            "title": "Max term (months)",
            "minimum": 1,
            "type": "integer",
            "description": "Only offers with a contract term of at most this many months, e.g. 12 for short-term leasing."
          },
          "availableNow": {
            "title": "Available now only",
            "type": "boolean",
            "description": "Only cars available immediately (sofort verfügbar).",
            "default": false
          },
          "dealsOnly": {
            "title": "Deals only",
            "type": "boolean",
            "description": "Only the offers LeasingMarkt.de marks as deals.",
            "default": false
          },
          "zipCode": {
            "title": "Postcode (PLZ)",
            "type": "string",
            "description": "Optional German postcode to search around, e.g. '10115' (Berlin), '80331' (Munich), '20095' (Hamburg)."
          },
          "radiusKm": {
            "title": "Radius (km)",
            "minimum": 1,
            "type": "integer",
            "description": "Distance around the postcode above. Default 50 km.",
            "default": 50
          },
          "includeDetails": {
            "title": "Include full details",
            "type": "boolean",
            "description": "Open each offer for the dealer (company name, address, coordinates), transfer and registration costs, extra and less km prices, the leasing bank, doors, seats and the offer text. Turn off for a faster run with the search-result fields only.",
            "default": true
          },
          "startUrls": {
            "title": "LeasingMarkt.de search URLs (optional)",
            "type": "array",
            "description": "Or paste LeasingMarkt.de search or brand/model pages, e.g. https://www.leasingmarkt.de/leasing-vw-golf, https://www.leasingmarkt.de/e-auto/sofort-verfuegbar or https://www.leasingmarkt.de/listing?sfid=%5B3%5D",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many offers in total. 0 = no limit.",
            "default": 0
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed: LeasingMarkt.de pages load fine without a proxy. Set one only if you see blocked requests in the log."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}