{
  "openapi": "3.0.1",
  "info": {
    "title": "AutoScout24 CH car listings",
    "description": "Scrape AutoScout24 vehicle listings by make and model with price, mileage, year, and full detail filters. Returns flattened, structured records ready for analysis.",
    "version": "0.1",
    "x-build-id": "ydHX2fC5S2KHjwk0w"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/data_dino~autoscout24-ch/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-data_dino-autoscout24-ch",
        "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/data_dino~autoscout24-ch/runs": {
      "post": {
        "operationId": "runs-sync-data_dino-autoscout24-ch",
        "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/data_dino~autoscout24-ch/run-sync": {
      "post": {
        "operationId": "run-sync-data_dino-autoscout24-ch",
        "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": {
          "category": {
            "title": "Vehicle category",
            "enum": [
              "car",
              "utility",
              "motorcycle",
              "truck",
              "camper",
              "trailer"
            ],
            "type": "string",
            "description": "Vehicle segment to browse. APIs is hard-capped at 20 listings per page.",
            "default": "car"
          },
          "make": {
            "title": "Make",
            "type": "string",
            "description": "Make, display name or key (e.g. Tesla, tesla, Mercedes-Benz). Empty = all makes."
          },
          "model": {
            "title": "Model",
            "type": "string",
            "description": "Model, display name or key (e.g. 'Model S', model-s). Only used when make is set."
          },
          "language": {
            "title": "Language",
            "enum": [
              "de",
              "fr",
              "it",
              "en"
            ],
            "type": "string",
            "description": "Language for the API responses and listing URLs.",
            "default": "en"
          },
          "domain": {
            "title": "Market domain",
            "enum": [
              "ch",
              "at",
              "de"
            ],
            "type": "string",
            "description": "Market domain used to build the canonical listing URL (ch = autoscout24.ch).",
            "default": "ch"
          },
          "detail": {
            "title": "Full detail",
            "type": "boolean",
            "description": "Fetch the per-listing detail, equipment and seller payloads (slower, richer rows).",
            "default": false
          },
          "pages": {
            "title": "Pages",
            "minimum": 1,
            "type": "integer",
            "description": "Max pages to walk (default: every matching page)."
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many listings (default: 50 so runs stay bounded).",
            "default": 50
          },
          "sort": {
            "title": "Sort by",
            "enum": [
              "price",
              "mileage",
              "year",
              "power",
              "created",
              "make_model",
              "relevance"
            ],
            "type": "string",
            "description": "Sort key (created = newest first by default; relevance drifts between pages).",
            "default": "created"
          },
          "order": {
            "title": "Order",
            "enum": [
              "asc",
              "desc"
            ],
            "type": "string",
            "description": "Sort direction.",
            "default": "desc"
          },
          "priceFrom": {
            "title": "Price from (CHF)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum asking price in CHF."
          },
          "priceTo": {
            "title": "Price to (CHF)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum asking price in CHF."
          },
          "mileageFrom": {
            "title": "Mileage from (km)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum mileage in km."
          },
          "mileageTo": {
            "title": "Mileage to (km)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum mileage in km."
          },
          "yearFrom": {
            "title": "First registration year from",
            "type": "integer",
            "description": "Earliest first-registration year."
          },
          "yearTo": {
            "title": "First registration year to",
            "type": "integer",
            "description": "Latest first-registration year."
          },
          "powerFrom": {
            "title": "Power from (HP)",
            "minimum": 1,
            "type": "integer",
            "description": "Minimum engine power in HP."
          },
          "powerTo": {
            "title": "Power to (HP)",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum engine power in HP."
          },
          "fuelTypes": {
            "title": "Fuel types",
            "uniqueItems": true,
            "type": "array",
            "description": "Fuel types to include (empty = all).",
            "items": {
              "type": "string",
              "enum": [
                "diesel",
                "petrol",
                "electric",
                "hybrid",
                "plug-in-hybrid",
                "cng",
                "lpg",
                "hydrogen",
                "ethanol",
                "other"
              ]
            }
          },
          "bodyTypes": {
            "title": "Body types",
            "uniqueItems": true,
            "type": "array",
            "description": "Body styles to include (empty = all).",
            "items": {
              "type": "string",
              "enum": [
                "saloon",
                "estate",
                "suv",
                "coupe",
                "convertible",
                "hatchback",
                "mpv",
                "pickup",
                "van"
              ]
            }
          },
          "conditionTypes": {
            "title": "Conditions",
            "uniqueItems": true,
            "type": "array",
            "description": "Listing conditions to include (empty = all).",
            "items": {
              "type": "string",
              "enum": [
                "new",
                "used",
                "demonstration",
                "damaged"
              ]
            }
          },
          "sellerTypes": {
            "title": "Seller types",
            "uniqueItems": true,
            "type": "array",
            "description": "Seller types to include (empty = all).",
            "items": {
              "type": "string",
              "enum": [
                "private",
                "professional",
                "dealer"
              ]
            }
          },
          "transmissionTypes": {
            "title": "Transmissions",
            "uniqueItems": true,
            "type": "array",
            "description": "Transmissions to include (empty = all).",
            "items": {
              "type": "string",
              "enum": [
                "manual",
                "automatic",
                "semi-automatic"
              ]
            }
          },
          "driveTypes": {
            "title": "Drive types",
            "uniqueItems": true,
            "type": "array",
            "description": "Drive types to include (empty = all).",
            "items": {
              "type": "string",
              "enum": [
                "front",
                "rear",
                "all-wheel"
              ]
            }
          },
          "colors": {
            "title": "Colors",
            "uniqueItems": true,
            "type": "array",
            "description": "Exterior colors to include (empty = all).",
            "items": {
              "type": "string",
              "enum": [
                "white",
                "black",
                "silver",
                "grey",
                "blue",
                "red",
                "green",
                "yellow",
                "orange",
                "brown",
                "beige",
                "gold",
                "purple",
                "multi-colour",
                "other"
              ]
            }
          },
          "delay": {
            "title": "Delay (seconds)",
            "minimum": 0,
            "type": "number",
            "description": "Minimum spacing between request starts (global politeness budget).",
            "default": 0.4
          },
          "concurrency": {
            "title": "Concurrency (listings in flight)",
            "minimum": 1,
            "type": "integer",
            "description": "Listings fetched in parallel when detail is on (bounded by the shared delay budget).",
            "default": 4
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}