{
  "openapi": "3.0.1",
  "info": {
    "title": "AutoScout24 [Only $1.25] Scraper · CH -> SWISS",
    "description": "[Only $1.25] Scrape vehicle listings from AutoScout24.ch (Switzerland) via the public REST API. Supports filter-based search and direct detail page URLs. ℹ️ For custom solutions or support, contact : muhameddidovic@gmail.com",
    "version": "0.0",
    "x-build-id": "LgZoA2xa9p6DTNinQ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/memo23~autoscout24-ch-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-memo23-autoscout24-ch-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/memo23~autoscout24-ch-scraper/runs": {
      "post": {
        "operationId": "runs-sync-memo23-autoscout24-ch-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/memo23~autoscout24-ch-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-memo23-autoscout24-ch-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",
        "required": [
          "maxItems"
        ],
        "properties": {
          "startUrls": {
            "title": "Start URLs (detail or search)",
            "type": "array",
            "description": "Accepts: (1) a full detail URL <code>/de/d/{id}</code> / <code>/fr/d/{id}</code> / <code>/it/d/{id}</code> / <code>/en/d/{id}</code>, (2) a bare numeric id like <code>12345678</code>, or (3) a search URL <code>/{lang}/s/...</code>. Search URLs parse: <code>mk-{key}</code> (make), <code>mo-{key}</code> (model), <code>?priceFrom/priceTo</code>, <code>?firstRegistrationYearFrom/To</code>, <code>?mileageFrom/To</code>, and <code>?sort[0][type]/[order]</code>. Other URL filters (fuel/body/condition/radius) are listed in the run log and ignored — set those via the form fields below.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "filterLanguage": {
            "title": "Language",
            "enum": [
              "de",
              "fr",
              "it",
              "en"
            ],
            "type": "string",
            "description": "Response locale (affects translated fields and detail-page URL slug).",
            "default": "de"
          },
          "filterVehicleCategory": {
            "title": "Vehicle category",
            "enum": [
              "car",
              "camper",
              "truck",
              "motorcycle",
              "trailer"
            ],
            "type": "string",
            "description": "Filter by vehicle type. The <em>car</em> category covers the bulk of the site.",
            "default": "car"
          },
          "filterMake": {
            "title": "Make",
            "type": "string",
            "description": "Manufacturer slug, e.g. <strong>bmw</strong>, <strong>audi</strong>, <strong>mercedes-benz</strong>. Applied client-side after each page of results."
          },
          "filterModel": {
            "title": "Model",
            "type": "string",
            "description": "Model slug, e.g. <strong>x1</strong>, <strong>a3</strong>, <strong>c-class</strong>. Only applies when Make is set. Applied client-side."
          },
          "filterConditionType": {
            "title": "Condition",
            "enum": [
              "",
              "new",
              "pre-registered",
              "demonstration",
              "used"
            ],
            "type": "string",
            "description": "Vehicle condition filter. Applied client-side.",
            "default": ""
          },
          "filterFuelType": {
            "title": "Fuel type",
            "enum": [
              "",
              "electric",
              "petrol",
              "diesel",
              "hybrid",
              "mhev-petrol",
              "mhev-diesel",
              "plugin-hybrid"
            ],
            "type": "string",
            "description": "Fuel/powertrain filter. Applied client-side.",
            "default": ""
          },
          "filterBodyType": {
            "title": "Body type",
            "enum": [
              "",
              "suv",
              "saloon",
              "estate",
              "coupe",
              "cabriolet",
              "small-car",
              "pickup",
              "minivan",
              "bus"
            ],
            "type": "string",
            "description": "Body type filter. Applied client-side.",
            "default": ""
          },
          "filterPriceFromCHF": {
            "title": "Minimum price (CHF)",
            "type": "integer",
            "description": "Minimum price in Swiss francs. Leave blank for no lower bound."
          },
          "filterPriceToCHF": {
            "title": "Maximum price (CHF)",
            "type": "integer",
            "description": "Maximum price in Swiss francs. Leave blank for no upper bound."
          },
          "filterYearFrom": {
            "title": "First registration year — from",
            "type": "integer",
            "description": "Earliest first-registration year (e.g. <strong>2018</strong>). Leave blank to include older cars."
          },
          "filterYearTo": {
            "title": "First registration year — to",
            "type": "integer",
            "description": "Latest first-registration year (e.g. <strong>2025</strong>). Leave blank for no upper bound."
          },
          "filterMileageFrom": {
            "title": "Mileage from (km)",
            "type": "integer",
            "description": "Minimum mileage in kilometres. Leave blank for no lower bound."
          },
          "filterMileageTo": {
            "title": "Mileage to (km)",
            "type": "integer",
            "description": "Maximum mileage in kilometres. Leave blank for no upper bound."
          },
          "filterPowerFromHP": {
            "title": "Power from (HP)",
            "type": "integer",
            "description": "Minimum engine power in horsepower. Leave blank for no lower bound."
          },
          "filterPowerToHP": {
            "title": "Power to (HP)",
            "type": "integer",
            "description": "Maximum engine power in horsepower. Leave blank for no upper bound."
          },
          "filterZipCode": {
            "title": "ZIP code",
            "type": "string",
            "description": "Swiss postal code for radius search (e.g. <strong>8001</strong>). Pair with <em>Radius</em> below. Sent to the API but not enforced client-side (no geo lookup)."
          },
          "filterRadiusKm": {
            "title": "Radius (km)",
            "type": "integer",
            "description": "Search radius around the ZIP code. Requires <em>ZIP code</em> to be set."
          },
          "sortType": {
            "title": "Sort by",
            "enum": [
              "RELEVANCE",
              "PRICE",
              "MILEAGE",
              "YEAR",
              "POWER"
            ],
            "type": "string",
            "description": "Sorting field. Applied server-side by the AutoScout24.ch API.",
            "default": "RELEVANCE"
          },
          "sortOrder": {
            "title": "Sort order",
            "enum": [
              "DESC",
              "ASC"
            ],
            "type": "string",
            "description": "Sort direction. <em>DESC</em> with <em>RELEVANCE</em> puts the most-featured listings first.",
            "default": "DESC"
          },
          "enrichDetails": {
            "title": "Fetch full detail pages",
            "type": "boolean",
            "description": "When enabled, each listing is enriched by a second call to the JSON detail endpoint (<code>GET api.autoscout24.ch/v1/listings/{id}</code>) — adds fields like cylinders, doors, drive type, and a fuller consumption breakdown. Doubles the number of requests. The detail endpoint is on the same Cloudflare-free API host, so no proxy is required.",
            "default": false
          },
          "maxItems": {
            "title": "Max results",
            "type": "integer",
            "description": "Maximum number of listings to collect. Non-paying users are capped at 60.",
            "default": 1000
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "type": "integer",
            "description": "Maximum number of parallel HTTP requests.",
            "default": 5
          },
          "minConcurrency": {
            "title": "Min concurrency",
            "type": "integer",
            "description": "Minimum number of parallel HTTP requests (auto-scales up to <em>Max concurrency</em>).",
            "default": 1
          },
          "maxRequestRetries": {
            "title": "Max request retries",
            "type": "integer",
            "description": "Number of retry attempts per failed request before giving up.",
            "default": 6
          },
          "proxy": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy servers used to reach AutoScout24.ch. Apify proxy or custom URLs both supported.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}