{
  "openapi": "3.0.1",
  "info": {
    "title": "Autohero Scraper: Used Cars Germany & Gebrauchtwagen in the EU",
    "description": "Autohero scraper for used cars in Germany (Gebrauchtwagen) and 8 more EU countries. Filter by brand, price, mileage, year, fuel and gearbox. Get VIN, equipment, damages, service history and price drops, plus a monitor for new cars. Export JSON, CSV or Excel. No login needed.",
    "version": "0.2",
    "x-build-id": "hcCxZdAtownTdS9eb"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/getascraper~autohero-cars-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-getascraper-autohero-cars-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/getascraper~autohero-cars-scraper/runs": {
      "post": {
        "operationId": "runs-sync-getascraper-autohero-cars-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/getascraper~autohero-cars-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-getascraper-autohero-cars-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",
        "required": [
          "locales",
          "maxItems"
        ],
        "properties": {
          "startUrls": {
            "title": "Direct car page links",
            "type": "array",
            "description": "Optional. Paste Autohero car page links to get just those cars; the storefronts below are then ignored. A car that is no longer listed is reported in the run message.",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "locales": {
            "title": "Storefront countries",
            "type": "array",
            "description": "Storefront codes: de (Germany), at, fr, es, it, nl, nl-be, fr-be, pl, se. Each country is searched on its own, so Germany gives German cars only. Belgium's two storefronts are the same stock.",
            "default": [
              "de"
            ],
            "items": {
              "type": "string"
            }
          },
          "brands": {
            "title": "Brands",
            "type": "array",
            "description": "Optional. One or more makes, for example BMW, Volkswagen, Peugeot. Not case sensitive.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "brand": {
            "title": "Brand (single)",
            "type": "string",
            "description": "Kept for older saved inputs. Use Brands for one or several makes.",
            "default": ""
          },
          "model": {
            "title": "Model",
            "type": "string",
            "description": "Optional. Model name or part of it, for example Golf, 308, A-Klasse, ID.3. Not case sensitive.",
            "default": ""
          },
          "minPrice": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest price in the storefront's own currency (EUR, PLN in Poland, SEK in Sweden)."
          },
          "maxPrice": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "integer",
            "description": "Highest price in the storefront's own currency."
          },
          "maxMileageKm": {
            "title": "Maximum mileage (km)",
            "minimum": 0,
            "type": "integer",
            "description": "Only cars with at most this many kilometres."
          },
          "minYear": {
            "title": "Built from year",
            "minimum": 1980,
            "type": "integer",
            "description": "Only cars built in this year or later."
          },
          "maxYear": {
            "title": "Built up to year",
            "minimum": 1980,
            "type": "integer",
            "description": "Only cars built in this year or earlier."
          },
          "minPowerKw": {
            "title": "Minimum power (kW)",
            "minimum": 0,
            "type": "integer",
            "description": "Only cars with at least this power. 1 kW is about 1.36 hp."
          },
          "fuelTypes": {
            "title": "Fuel types",
            "type": "array",
            "description": "Leave empty for every fuel type. Hybrid includes plug-in hybrids.",
            "items": {
              "type": "string",
              "enum": [
                "petrol",
                "diesel",
                "electric",
                "hybrid",
                "ethanol"
              ],
              "enumTitles": [
                "Petrol",
                "Diesel",
                "Electric",
                "Hybrid (incl. plug-in)",
                "Ethanol"
              ]
            },
            "default": []
          },
          "transmissions": {
            "title": "Gearboxes",
            "type": "array",
            "description": "Leave empty for every gearbox.",
            "items": {
              "type": "string",
              "enum": [
                "manual",
                "automatic",
                "semi_automatic",
                "dual_clutch"
              ],
              "enumTitles": [
                "Manual",
                "Automatic",
                "Semi-automatic",
                "Dual-clutch"
              ]
            },
            "default": []
          },
          "accidentFreeOnly": {
            "title": "Accident-free only",
            "type": "boolean",
            "description": "Only cars with no recorded accident.",
            "default": false
          },
          "priceDroppedOnly": {
            "title": "Price-reduced cars only",
            "type": "boolean",
            "description": "Only cars whose price has been lowered since they were listed.",
            "default": false
          },
          "includeComingSoon": {
            "title": "Include coming-soon cars",
            "type": "boolean",
            "description": "Cars Autohero lists before they can be bought. Switch off to see only cars available now.",
            "default": true
          },
          "sortBy": {
            "title": "Sort results by",
            "enum": [
              "newest",
              "price_asc",
              "price_desc",
              "mileage_asc",
              "mileage_desc"
            ],
            "type": "string",
            "description": "Sorted by Autohero before the cut-off, so you get the true newest, cheapest or lowest-mileage cars.",
            "default": "newest"
          },
          "maxItems": {
            "title": "Maximum cars per country",
            "minimum": 1,
            "type": "integer",
            "description": "The most cars saved for each selected country. The free plan is limited to 25 per run.",
            "default": 25
          },
          "includeDetails": {
            "title": "Add full car details",
            "type": "boolean",
            "description": "Adds VIN, body type, colour, equipment list, every documented damage, service history, warranty options and dimensions. Slower, one extra page per car.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Optional. Give this search a name to remember it between runs. The next run reports cars that are new and cars whose price changed. Leave empty for a normal run.",
            "default": ""
          },
          "monitorOnlyChanges": {
            "title": "Save only new and changed cars",
            "type": "boolean",
            "description": "With a monitor name, skip cars that look the same as last time. Switch off to get every car with its change status.",
            "default": true
          },
          "pageLimit": {
            "title": "Batch size",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Cars fetched per request. The default of 100 is best.",
            "default": 100
          },
          "maxConcurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 12,
            "type": "integer",
            "description": "How many requests run at once. Car detail pages are always limited to 4 at a time.",
            "default": 4
          },
          "maxRequestRetries": {
            "title": "Retries",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Automatic retries when Autohero does not answer.",
            "default": 5
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Runs connect directly by default. If Autohero refuses, the Actor switches to a proxy by itself.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}