{
  "openapi": "3.0.1",
  "info": {
    "title": "AutoScout24 Underpriced Cars — Discount vs Model Median",
    "description": "Type a make/model and get the cheapest AutoScout24 listings measured against every car of that model, not one page. Returns the model's median, then for each of the 40 cheapest cars its price, % under the median, mileage and year. $0.02 per make/model; unmeasurable search = free. Unofficial.",
    "version": "0.1",
    "x-build-id": "VYcCoBsQGDXxat9dN"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/jpmarketdata~autoscout24-underpriced-deals/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-jpmarketdata-autoscout24-underpriced-deals",
        "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/jpmarketdata~autoscout24-underpriced-deals/runs": {
      "post": {
        "operationId": "runs-sync-jpmarketdata-autoscout24-underpriced-deals",
        "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/jpmarketdata~autoscout24-underpriced-deals/run-sync": {
      "post": {
        "operationId": "run-sync-jpmarketdata-autoscout24-underpriced-deals",
        "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": [
          "models"
        ],
        "properties": {
          "models": {
            "title": "Makes or make/model",
            "type": "array",
            "description": "Make/model URL names, e.g. `bmw/3er`, `volkswagen/golf` or `bmw`. Narrower searches compare more similar cars. Each model with a usable price comparison costs $0.02, even with no deals; unusable comparisons are free. Maximum cost per run defaults to $3.00; raise it in run options or split the list.",
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Country",
            "enum": [
              "de",
              "at",
              "be",
              "es",
              "fr",
              "it",
              "lu",
              "nl",
              "com"
            ],
            "type": "string",
            "description": "Choose the AutoScout24 country site. This changes the matching stock, model URL names and currency used for deal comparisons.",
            "default": "de"
          },
          "dealThresholdPct": {
            "title": "Deal threshold (% of market median)",
            "minimum": 10,
            "maximum": 100,
            "type": "integer",
            "description": "A listing is a deal when its price is at or below this share of the market median. 80 means at least 20% below the median of matching cars.",
            "default": 80
          },
          "maxCandidates": {
            "title": "Cheapest listings to place",
            "minimum": 10,
            "maximum": 200,
            "type": "integer",
            "description": "How many of the cheapest listings to read and position. Sorted by price ascending, ~18 per page.",
            "default": 40
          },
          "firstRegistrationFrom": {
            "title": "First registration from (year)",
            "minimum": 1950,
            "type": "integer",
            "description": "Include only cars first registered in this year or later, in both the market comparison and the candidate listings."
          },
          "mileageMaxKm": {
            "title": "Max mileage (km)",
            "minimum": 0,
            "type": "integer",
            "description": "Include only cars at or below this mileage in both market calculations and candidate listings, so their price ranks compare cars under the same filter."
          },
          "maxPopulationSpread": {
            "title": "Widest market price ratio to allow",
            "type": "string",
            "description": "Maximum ratio between the high and low prices enclosing the middle 80% of matching cars. Wider searches mix model years and conditions and are refused rather than scored against unlike cars.",
            "default": "4.0"
          },
          "implausibleBelowPct": {
            "title": "Implausible below (% of median)",
            "type": "string",
            "description": "Listings under this share of the median are placeholders, not prices — dealers use EUR 1 for price-on-request, deposits and parts cars. They are counted in implausibleExcluded and kept out of the deal list.",
            "default": "5.0"
          },
          "ladderSteps": {
            "title": "Price ladder steps",
            "minimum": 4,
            "maximum": 16,
            "type": "integer",
            "description": "Number of price ceilings used to count matching cars across price bands. More steps narrow the estimated price ranks but add requests.",
            "default": 9
          },
          "refineSteps": {
            "title": "Ladder refinement steps",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Extra rungs placed around the median to sharpen the middle of the distribution.",
            "default": 3
          },
          "includeIndividualDeals": {
            "title": "Include individual deals",
            "type": "boolean",
            "description": "On by default. Return each matching deal with its price placement at $0.002 per deal, in addition to the $0.02 model analysis. Turn off for summary rows only.",
            "default": true
          },
          "convertToUsd": {
            "title": "Convert to USD",
            "type": "boolean",
            "description": "Add USD figures alongside the local currency.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}