{
  "openapi": "3.0.1",
  "info": {
    "title": "Autohero Scraper",
    "description": "Scrape Autohero used cars in 9 European countries: prices, price drops, finance, specs, VIN, equipment, inspection damages and photos. Fast public API, server-side filters.",
    "version": "0.1",
    "x-build-id": "OffIYzig9H4MC9vGE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rastriq~autohero-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rastriq-autohero-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/rastriq~autohero-scraper/runs": {
      "post": {
        "operationId": "runs-sync-rastriq-autohero-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/rastriq~autohero-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-rastriq-autohero-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",
        "properties": {
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Autohero markets to scrape. Empty = all 9.",
            "items": {
              "type": "string",
              "enum": [
                "DE",
                "FR",
                "ES",
                "IT",
                "AT",
                "NL",
                "BE",
                "PL",
                "SE"
              ],
              "enumTitles": [
                "🇩🇪 Germany",
                "🇫🇷 France",
                "🇪🇸 Spain",
                "🇮🇹 Italy",
                "🇦🇹 Austria",
                "🇳🇱 Netherlands",
                "🇧🇪 Belgium",
                "🇵🇱 Poland (PLN)",
                "🇸🇪 Sweden (SEK)"
              ]
            }
          },
          "brands": {
            "title": "Brands",
            "type": "array",
            "description": "e.g. <code>BMW</code>, <code>Volkswagen</code>, <code>Mercedes-Benz</code>, <code>Kia</code> (any capitalisation). Empty = all.",
            "items": {
              "type": "string"
            }
          },
          "models": {
            "title": "Models",
            "type": "array",
            "description": "Model text match. Names are localised by market, e.g. BMW <code>3er</code> (DE) vs <code>Serie 3</code> (ES); <code>Golf</code> works everywhere.",
            "items": {
              "type": "string"
            }
          },
          "fuelTypes": {
            "title": "Fuel types",
            "type": "array",
            "description": "Empty = all. Hybrid includes plug-in hybrids (see <code>isPlugInHybrid</code>).",
            "items": {
              "type": "string",
              "enum": [
                "Petrol",
                "Diesel",
                "Hybrid",
                "Electric",
                "LPG",
                "CNG",
                "Ethanol"
              ]
            }
          },
          "gearType": {
            "title": "Gearbox",
            "enum": [
              "any",
              "Automatic",
              "Manual"
            ],
            "type": "string",
            "description": "Transmission.",
            "default": "any"
          },
          "minPrice": {
            "title": "Min price",
            "minimum": 0,
            "type": "integer",
            "description": "In the market's currency (EUR / PLN / SEK)."
          },
          "maxPrice": {
            "title": "Max price",
            "minimum": 0,
            "type": "integer",
            "description": "In the market's currency (EUR / PLN / SEK)."
          },
          "minMileage": {
            "title": "Min mileage (km)",
            "minimum": 0,
            "type": "integer",
            "description": "Lower bound."
          },
          "maxMileage": {
            "title": "Max mileage (km)",
            "minimum": 0,
            "type": "integer",
            "description": "Upper bound."
          },
          "minYear": {
            "title": "Built from (year)",
            "minimum": 1980,
            "maximum": 2100,
            "type": "integer",
            "description": "Earliest year of manufacture."
          },
          "maxYear": {
            "title": "Built until (year)",
            "minimum": 1980,
            "maximum": 2100,
            "type": "integer",
            "description": "Latest year of manufacture."
          },
          "minPowerHp": {
            "title": "Min power (hp)",
            "minimum": 0,
            "type": "integer",
            "description": "Lower bound."
          },
          "maxPowerHp": {
            "title": "Max power (hp)",
            "minimum": 0,
            "type": "integer",
            "description": "Upper bound."
          },
          "excludeComingSoon": {
            "title": "Exclude 'coming soon' cars",
            "type": "boolean",
            "description": "Skip cars that are listed but not yet purchasable.",
            "default": false
          },
          "sort": {
            "title": "Sort order",
            "enum": [
              "most_popular",
              "lowest_price",
              "highest_price",
              "lowest_mileage",
              "highest_mileage",
              "newest_eligible",
              "lowest_financed_price",
              "highest_financed_price",
              "brand_asc",
              "brand_desc"
            ],
            "type": "string",
            "description": "Result order per country. For complete snapshots use <i>Most popular</i>, <i>Newest</i> or <i>Lowest mileage</i> (verified to return every car once).",
            "default": "most_popular"
          },
          "maxItems": {
            "title": "Max items per country",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum cars per country. 0 = all matching cars.",
            "default": 0
          },
          "includeDetails": {
            "title": "Include car details",
            "type": "boolean",
            "description": "Adds VIN, body type, colour, doors, seats, official hp, dimensions, boot volume, full equipment (flat and by category), top features, inspection damages (area + type), accident history and next inspection date. Fetched in batches of 25 cars per request, so it stays fast and cheap.",
            "default": false
          },
          "includeImages": {
            "title": "Include photo gallery",
            "type": "boolean",
            "description": "Adds all photo URLs, damage photos and 360° images (implies details). The main photo is always included.",
            "default": false
          },
          "imageSize": {
            "title": "Image size",
            "enum": [
              "small",
              "medium",
              "large"
            ],
            "type": "string",
            "description": "Size of the generated image URLs.",
            "default": "medium"
          },
          "maxConcurrency": {
            "title": "Max concurrency (details)",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Parallel detail batches.",
            "default": 3
          },
          "maxRequestRetries": {
            "title": "Max retries per request",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Exponential backoff; failing detail batches are split automatically.",
            "default": 4
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Not needed: Autohero's API is public. Enable only if you get blocked."
          },
          "debug": {
            "title": "Debug logging",
            "type": "boolean",
            "description": "Verbose logs.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}