{
  "openapi": "3.0.1",
  "info": {
    "title": "European Car Deal Score – Fair Price & Deals on AutoScout24",
    "description": "Rates used-car listings across Germany, France, Italy, Spain, Belgium, the Netherlands, Austria and Luxembourg: expected market price, Great deal to Overpriced, cheaper alternatives and the same car's price level in each country. Also values your own car.",
    "version": "0.1",
    "x-build-id": "QelwCaUOb20XXBIgW"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/yck69~car-deal-score/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-yck69-car-deal-score",
        "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/yck69~car-deal-score/runs": {
      "post": {
        "operationId": "runs-sync-yck69-car-deal-score",
        "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/yck69~car-deal-score/run-sync": {
      "post": {
        "operationId": "run-sync-yck69-car-deal-score",
        "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": "As written on AutoScout24: Volkswagen, BMW, Mercedes-Benz, Tesla…"
          },
          "model": {
            "title": "Model",
            "type": "string",
            "description": "Golf, 3 Series, 320, C-Class, Model 3… Empty: every model of the make."
          },
          "yearFrom": {
            "title": "First registration from (year)",
            "minimum": 1950,
            "maximum": 2030,
            "type": "integer",
            "description": "Oldest first-registration year."
          },
          "yearTo": {
            "title": "First registration to (year)",
            "minimum": 1950,
            "maximum": 2030,
            "type": "integer",
            "description": "Newest first-registration year."
          },
          "mileageMax": {
            "title": "Maximum mileage (km)",
            "minimum": 0,
            "type": "integer",
            "description": "Only cars with at most this mileage."
          },
          "mileageMin": {
            "title": "Minimum mileage (km)",
            "minimum": 0,
            "type": "integer",
            "description": "Only cars with at least this mileage."
          },
          "priceMin": {
            "title": "Minimum price (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest asking price."
          },
          "priceMax": {
            "title": "Maximum price (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Highest asking price."
          },
          "fuels": {
            "title": "Fuel",
            "type": "array",
            "description": "Empty: all fuels.",
            "items": {
              "type": "string",
              "enum": [
                "petrol",
                "diesel",
                "electric",
                "hybrid petrol",
                "hybrid diesel",
                "lpg",
                "cng"
              ],
              "enumTitles": [
                "Petrol",
                "Diesel",
                "Electric",
                "Hybrid (petrol)",
                "Hybrid (diesel)",
                "LPG",
                "CNG"
              ]
            }
          },
          "gearboxes": {
            "title": "Gearbox",
            "type": "array",
            "description": "Empty: all.",
            "items": {
              "type": "string",
              "enum": [
                "automatic",
                "manual",
                "semi-automatic"
              ],
              "enumTitles": [
                "Automatic",
                "Manual",
                "Semi-automatic"
              ]
            }
          },
          "powerMinKw": {
            "title": "Minimum power (kW)",
            "minimum": 0,
            "type": "integer",
            "description": "1 kW = 1.36 hp."
          },
          "sellerType": {
            "title": "Seller",
            "enum": [
              "any",
              "dealer",
              "private"
            ],
            "type": "string",
            "description": "Who sells the car.",
            "default": "any"
          },
          "searchUrls": {
            "title": "AutoScout24 search links",
            "type": "array",
            "description": "Or paste searches from autoscout24.com/.de/.fr/.it… with your filters. The link must have the make in its path: https://www.autoscout24.com/lst/bmw/3-series?…",
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Where listings and comparables come from. Empty: all eight.",
            "items": {
              "type": "string",
              "enum": [
                "DE",
                "AT",
                "BE",
                "ES",
                "FR",
                "IT",
                "LU",
                "NL"
              ],
              "enumTitles": [
                "Germany",
                "Austria",
                "Belgium",
                "Spain",
                "France",
                "Italy",
                "Luxembourg",
                "Netherlands"
              ]
            },
            "default": [
              "DE",
              "AT",
              "BE",
              "ES",
              "FR",
              "IT",
              "LU",
              "NL"
            ]
          },
          "offerTypes": {
            "title": "Kind of car",
            "type": "array",
            "description": "Used cars by default.",
            "items": {
              "type": "string",
              "enum": [
                "U",
                "D",
                "S",
                "J",
                "N"
              ],
              "enumTitles": [
                "Used",
                "Demonstration",
                "Pre-registered",
                "Employee's car",
                "New"
              ]
            },
            "default": [
              "U"
            ]
          },
          "maxListings": {
            "title": "Listings per search",
            "minimum": 20,
            "maximum": 400,
            "type": "integer",
            "description": "Newest listings first (AutoScout24 shows 400 at most per search; narrow the filters for more precise comparables).",
            "default": 200
          },
          "dealRatings": {
            "title": "Only these ratings",
            "type": "array",
            "description": "Empty: every rated listing, best deals first.",
            "items": {
              "type": "string",
              "enum": [
                "Great deal",
                "Good deal",
                "Fair price",
                "High price",
                "Overpriced"
              ]
            }
          },
          "onlyNew": {
            "title": "Deal alerts: only new listings",
            "type": "boolean",
            "description": "Schedule the Actor and get only listings added since the previous run of the same search.",
            "default": false
          },
          "alertName": {
            "title": "Alert name",
            "type": "string",
            "description": "Separate memory per alert. Defaults to one per search."
          },
          "listingUrls": {
            "title": "AutoScout24 listing links",
            "type": "array",
            "description": "Each listing is valued against up to 200 comparables (same model, ±2 years, same fuel), with cheaper alternatives.",
            "items": {
              "type": "string"
            }
          },
          "car": {
            "title": "Your car",
            "type": "object",
            "description": "Value a car that is not listed: {\"make\": \"Volkswagen\", \"model\": \"Golf\", \"firstRegistration\": \"2021-07\", \"mileageKm\": 60000, \"fuel\": \"diesel\", \"gearbox\": \"automatic\", \"powerKw\": 110, \"price\": 21500}. Price is optional."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}