{
  "openapi": "3.0.1",
  "info": {
    "title": "AutoScout24 Car Price & Stock Monitor",
    "description": "Track AutoScout24 searches across Europe and export only real changes: price drops, sold cars, relisted cars and delisted ads. Each row carries make, model, mileage, fuel and seller. Pay per search page and per detected change.",
    "version": "0.1",
    "x-build-id": "WxCtBAbXP2dEASbkF"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/blond_triathlon~autoscout24-price-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-blond_triathlon-autoscout24-price-monitor",
        "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/blond_triathlon~autoscout24-price-monitor/runs": {
      "post": {
        "operationId": "runs-sync-blond_triathlon-autoscout24-price-monitor",
        "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/blond_triathlon~autoscout24-price-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-blond_triathlon-autoscout24-price-monitor",
        "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": {
          "startUrls": {
            "title": "AutoScout24 search URLs",
            "type": "array",
            "description": "Paste one or more AutoScout24 search-result URLs (the /lst?... page). Configure make, model, price, year and mileage filters on autoscout24.com, copy the address bar, and paste it here. Each URL is one independent watchlist. A single /offers/... URL is also accepted and tracks that one car.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "filters": {
            "title": "Build a search from filters (optional)",
            "type": "object",
            "description": "Alternative to startUrls. Builds exactly one AutoScout24 search from the fields below. Use startUrls if you need model-level or equipment filters, which the site only exposes through numeric ids.",
            "properties": {
              "label": {
                "type": "string",
                "title": "Watchlist label",
                "description": "Human-readable name stored in every row, e.g. 'BMW 3 series under 20k'.",
                "editor": "textfield"
              },
              "country": {
                "type": "string",
                "title": "Country",
                "description": "Market to search. AutoScout24 covers these nine countries.",
                "editor": "select",
                "enum": [
                  "D",
                  "A",
                  "B",
                  "E",
                  "F",
                  "I",
                  "L",
                  "NL"
                ],
                "enumTitles": [
                  "Germany",
                  "Austria",
                  "Belgium",
                  "Spain",
                  "France",
                  "Italy",
                  "Luxembourg",
                  "Netherlands"
                ],
                "default": "D"
              },
              "make": {
                "type": "string",
                "title": "Make",
                "description": "Brand name, e.g. BMW, Audi, Volkswagen, Mercedes-Benz. Supports the ~60 most common European makes.",
                "editor": "textfield"
              },
              "makeId": {
                "type": "integer",
                "title": "Make ID (advanced)",
                "description": "Numeric AutoScout24 make id (mmvmk0). Overrides make. Find it in the site URL after selecting a make.",
                "editor": "number"
              },
              "modelId": {
                "type": "integer",
                "title": "Model ID (advanced)",
                "description": "Numeric AutoScout24 model id (mmvmd0). Requires the matching make.",
                "editor": "number"
              },
              "priceFrom": {
                "type": "integer",
                "title": "Min price (EUR)",
                "description": "Lower bound of the asking price, in euros.",
                "editor": "number"
              },
              "priceTo": {
                "type": "integer",
                "title": "Max price (EUR)",
                "description": "Upper bound of the asking price, in euros.",
                "editor": "number"
              },
              "yearFrom": {
                "type": "integer",
                "title": "Min first-registration year",
                "description": "Oldest allowed first-registration year, e.g. 2018.",
                "editor": "number"
              },
              "yearTo": {
                "type": "integer",
                "title": "Max first-registration year",
                "description": "Newest allowed first-registration year, e.g. 2024.",
                "editor": "number"
              },
              "mileageFrom": {
                "type": "integer",
                "title": "Min mileage (km)",
                "description": "Lowest allowed odometer reading, in kilometres.",
                "editor": "number"
              },
              "mileageTo": {
                "type": "integer",
                "title": "Max mileage (km)",
                "description": "Highest allowed odometer reading, in kilometres.",
                "editor": "number"
              },
              "fuel": {
                "type": "string",
                "title": "Fuel",
                "description": "Restrict the search to one fuel type.",
                "editor": "select",
                "enum": [
                  "",
                  "B",
                  "D",
                  "E",
                  "H",
                  "L",
                  "C"
                ],
                "enumTitles": [
                  "Any",
                  "Petrol",
                  "Diesel",
                  "Electric",
                  "Hybrid",
                  "LPG",
                  "CNG"
                ],
                "default": ""
              },
              "transmission": {
                "type": "string",
                "title": "Transmission",
                "description": "Restrict the search to manual or automatic gearboxes.",
                "editor": "select",
                "enum": [
                  "",
                  "M",
                  "A"
                ],
                "enumTitles": [
                  "Any",
                  "Manual",
                  "Automatic"
                ],
                "default": ""
              },
              "bodyType": {
                "type": "string",
                "title": "Body type",
                "description": "Restrict the search to one body style.",
                "editor": "select",
                "enum": [
                  "",
                  "1",
                  "2",
                  "3",
                  "4",
                  "5",
                  "6",
                  "12",
                  "13",
                  "7"
                ],
                "enumTitles": [
                  "Any",
                  "Compact",
                  "Convertible",
                  "Coupe",
                  "SUV / Off-road / Pick-up",
                  "Station wagon",
                  "Sedan",
                  "Van",
                  "Transporter",
                  "Other"
                ],
                "default": ""
              },
              "offerType": {
                "type": "string",
                "title": "Condition",
                "description": "Restrict the search to new, used, classic or other condition categories.",
                "editor": "select",
                "enum": [
                  "",
                  "N",
                  "U",
                  "J",
                  "O",
                  "D",
                  "S"
                ],
                "enumTitles": [
                  "Any",
                  "New",
                  "Used",
                  "Employee's car",
                  "Antique / Classic",
                  "Demonstration",
                  "Pre-registered"
                ],
                "default": ""
              },
              "sort": {
                "type": "string",
                "title": "Sort order",
                "description": "Newest first is best for spotting fresh listings; price ascending is best for price tracking.",
                "editor": "select",
                "enum": [
                  "age",
                  "standard",
                  "price",
                  "mileage",
                  "year",
                  "power"
                ],
                "enumTitles": [
                  "Newest first",
                  "Best results",
                  "Price ascending",
                  "Mileage ascending",
                  "First registration",
                  "Power"
                ],
                "default": "age"
              }
            }
          },
          "maxPagesPerSearch": {
            "title": "Pages per search",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "How many result pages to fetch per search. Each page is one request and holds up to 20 cars. Keep at 1 to stay inside the free tier.",
            "default": 1
          },
          "maxOffersPerSearch": {
            "title": "Max cars per search",
            "minimum": 1,
            "maximum": 400,
            "type": "integer",
            "description": "Cap on listings kept per search. Newer cars beyond this are ignored.",
            "default": 40
          },
          "mode": {
            "title": "Output mode",
            "enum": [
              "changes",
              "snapshot"
            ],
            "type": "string",
            "description": "changes = emit only price/stock changes (recommended for scheduled monitoring). snapshot = emit every car seen.",
            "default": "changes"
          },
          "stateKey": {
            "title": "History namespace",
            "type": "string",
            "description": "Key-value store record that holds the previous run's prices. Use the same value on every run of a given watchlist; use different values for independent watchlists.",
            "default": "autoscout24-watchlist-1"
          },
          "removedAfterRuns": {
            "title": "Report delisting after N misses",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many consecutive runs a car must be missing before it is reported as removed. 2 avoids false alarms when results shift between pages.",
            "default": 2
          },
          "proxyMode": {
            "title": "Proxy mode",
            "enum": [
              "auto",
              "unblocker",
              "residential",
              "none"
            ],
            "type": "string",
            "description": "AutoScout24 serves normal datacenter IPs, so 'auto' is free and sufficient. 'unblocker' costs ~$1.5 per 1,000 requests and is only needed if your runs start getting 403s.",
            "default": "auto"
          },
          "proxyUrl": {
            "title": "Custom proxy URL",
            "type": "string",
            "description": "Optional. Overrides proxyMode entirely, e.g. http://user:pass@host:port. Leave empty to use Apify Proxy."
          },
          "maxRequests": {
            "title": "Max requests",
            "minimum": 1,
            "maximum": 600,
            "type": "integer",
            "description": "Hard cap on outbound requests in this run. This is your cost guard.",
            "default": 40
          },
          "requestDelayMs": {
            "title": "Delay between requests (ms)",
            "minimum": 0,
            "maximum": 30000,
            "type": "integer",
            "description": "Politeness delay. 800-2000 ms is recommended.",
            "default": 1200
          },
          "maxRetries": {
            "title": "Retries per URL",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "Retries on 403/429/5xx. Each retry is a request.",
            "default": 2
          },
          "alertOn": {
            "title": "Emit changes of type",
            "type": "array",
            "description": "Which change types are written to the dataset.",
            "items": {
              "type": "string"
            },
            "default": [
              "new_offer",
              "price_down",
              "price_up",
              "back_in_stock",
              "out_of_stock",
              "removed"
            ]
          },
          "minPriceChangePct": {
            "title": "Ignore changes below (%)",
            "minimum": 0,
            "maximum": 100,
            "type": "number",
            "description": "Price moves smaller than this percentage are ignored. Filters noise from rounding.",
            "default": 0.5
          },
          "debugHtml": {
            "title": "Save raw page for debugging",
            "type": "boolean",
            "description": "Store the first fetched search page in the run's key-value store so the parser can be inspected. Turn off in production.",
            "default": false
          },
          "telegram": {
            "title": "Telegram alerts",
            "type": "object",
            "description": "Optional free alerting. Create a bot with @BotFather, then send it a message and read the chat id from getUpdates.",
            "properties": {
              "botToken": {
                "type": "string",
                "title": "Bot token",
                "description": "Token from @BotFather, e.g. 123456:ABC-DEF.",
                "editor": "textfield"
              },
              "chatId": {
                "type": "string",
                "title": "Chat ID",
                "description": "Numeric chat id that receives the alerts.",
                "editor": "textfield"
              },
              "onlyTypes": {
                "type": "array",
                "title": "Alert only on",
                "description": "Change types that are sent to Telegram.",
                "editor": "stringList",
                "default": [
                  "price_down",
                  "back_in_stock",
                  "new_offer"
                ],
                "items": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}