{
  "openapi": "3.0.1",
  "info": {
    "title": "AutoScout24 Scraper",
    "description": "Scrape AutoScout24 car listings in Germany, Austria, Italy, France, the Netherlands, Belgium, Spain and Luxembourg: price, price rating, mileage, year, power, fuel, dealer, photos, description and equipment.",
    "version": "0.1",
    "x-build-id": "vw2v1OwR9aBojjbJH"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automly~autoscout24-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automly-autoscout24-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/automly~autoscout24-scraper/runs": {
      "post": {
        "operationId": "runs-sync-automly-autoscout24-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/automly~autoscout24-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-automly-autoscout24-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": {
          "make": {
            "title": "Make",
            "type": "string",
            "description": "Car make, e.g. bmw, mercedes-benz or volkswagen (the name as on AutoScout24 or its link). Leave empty for every make."
          },
          "model": {
            "title": "Model",
            "type": "string",
            "description": "Model or series of that make, e.g. 3-series, 320, golf or c-class. Needs the make. Leave empty for every model."
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Countries the cars are in, e.g. Germany. Leave empty to search the country of the AutoScout24 site below.",
            "items": {
              "type": "string",
              "enum": [
                "DE",
                "AT",
                "IT",
                "FR",
                "NL",
                "BE",
                "ES",
                "LU"
              ],
              "enumTitles": [
                "Germany",
                "Austria",
                "Italy",
                "France",
                "Netherlands",
                "Belgium",
                "Spain",
                "Luxembourg"
              ]
            }
          },
          "priceFrom": {
            "title": "Price from",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest asking price, e.g. 5000."
          },
          "priceTo": {
            "title": "Price to",
            "minimum": 0,
            "type": "integer",
            "description": "Highest asking price, e.g. 30000."
          },
          "yearFrom": {
            "title": "Year from",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Earliest year of first registration, e.g. 2018."
          },
          "yearTo": {
            "title": "Year to",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Latest year of first registration, e.g. 2024."
          },
          "mileageFrom": {
            "title": "Mileage from",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest mileage in kilometres, e.g. 10000."
          },
          "mileageTo": {
            "title": "Max mileage",
            "minimum": 0,
            "type": "integer",
            "description": "Highest mileage in kilometres, e.g. 150000."
          },
          "fuelType": {
            "title": "Fuel type",
            "enum": [
              "petrol",
              "diesel",
              "electric",
              "hybrid",
              "hybrid-petrol",
              "hybrid-diesel",
              "lpg",
              "cng",
              "hydrogen",
              "ethanol"
            ],
            "type": "string",
            "description": "Only this fuel type, e.g. Diesel. Leave empty for all."
          },
          "transmission": {
            "title": "Transmission",
            "enum": [
              "automatic",
              "manual",
              "semi-automatic"
            ],
            "type": "string",
            "description": "Only this gearbox, e.g. Automatic. Leave empty for all."
          },
          "bodyType": {
            "title": "Body type",
            "enum": [
              "sedan",
              "station wagon",
              "suv",
              "hatchback",
              "coupe",
              "convertible",
              "van",
              "transporter"
            ],
            "type": "string",
            "description": "Only this body type, e.g. SUV. Leave empty for all."
          },
          "powerFromKw": {
            "title": "Power from (kW)",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest engine power in kW, e.g. 100 (1 kW = 1.36 hp)."
          },
          "powerToKw": {
            "title": "Power to (kW)",
            "minimum": 0,
            "type": "integer",
            "description": "Highest engine power in kW, e.g. 250."
          },
          "sellerType": {
            "title": "Seller",
            "enum": [
              "any",
              "dealer",
              "private"
            ],
            "type": "string",
            "description": "Dealer or private listings, e.g. Dealers only.",
            "default": "any"
          },
          "location": {
            "title": "City or postal code",
            "type": "string",
            "description": "Search around a place, e.g. Berlin or 10115, in the first country above (or the AutoScout24 site's country)."
          },
          "radiusKm": {
            "title": "Search radius",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Distance around the city or postal code, e.g. 50.",
            "default": 50
          },
          "autoscoutDomain": {
            "title": "AutoScout24 site",
            "enum": [
              "de",
              "at",
              "it",
              "fr",
              "nl",
              "be",
              "es",
              "lu",
              "com"
            ],
            "type": "string",
            "description": "The AutoScout24 country site to read, e.g. autoscout24.de: its country is searched when Countries is empty, links point to it, and labels such as equipment come in its language. autoscout24.com gives English labels.",
            "default": "de"
          },
          "searchUrls": {
            "title": "Search URLs",
            "type": "array",
            "description": "AutoScout24 search result links with filters set on the site, e.g. https://www.autoscout24.de/lst/bmw/3er?atype=C&cy=D, or listing links. Read next to the filters above; listing links always come with full details.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "includeDetails": {
            "title": "Include full details",
            "type": "boolean",
            "description": "Open each listing for its full description, equipment, colour, body type, consumption and CO2, previous owners, accident-free, warranty, next inspection and the dealer's address, phones and website. Turn off for a cheaper, faster list of search results.",
            "default": true
          },
          "sort": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "price-asc",
              "price-desc",
              "newest",
              "mileage-asc",
              "year-desc"
            ],
            "type": "string",
            "description": "Order the results are read in, e.g. Price: lowest first.",
            "default": "relevance"
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "How many listings to save in total for the whole run, e.g. 500. Set 0 for every listing the search has; searches with more than 4,000 results are read in price bands.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}