{
  "openapi": "3.0.1",
  "info": {
    "title": "EU Used Car Price Arbitrage: Cheapest Country + Landed Cost",
    "description": "Compare a used car's price across AutoScout24 in DE, IT, FR, NL, BE, AT, ES, LU and Otomoto.pl, adjusted for mileage, year and power. Ranks listings by landed cost in your country (transport, registration, Polish excise) and shows the saving vs your home market.",
    "version": "0.1",
    "x-build-id": "bG3yIWCNUAHqbXo9V"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/donzely~eu-car-price-arbitrage/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-donzely-eu-car-price-arbitrage",
        "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/donzely~eu-car-price-arbitrage/runs": {
      "post": {
        "operationId": "runs-sync-donzely-eu-car-price-arbitrage",
        "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/donzely~eu-car-price-arbitrage/run-sync": {
      "post": {
        "operationId": "run-sync-donzely-eu-car-price-arbitrage",
        "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": {
          "searches": {
            "title": "Cars to compare",
            "type": "array",
            "description": "One car per line: make, model and optionally year range and fuel, e.g. \"bmw x5 2019-2021 diesel\", \"vw golf 2018\", \"tesla model 3\", \"mercedes c klasse 2020 hybrid\". Typos and Polish/German model names (\"seria 3\", \"klasa c\", \"3er\") are understood.",
            "items": {
              "type": "string"
            }
          },
          "destinationCountry": {
            "title": "Your country (destination)",
            "type": "string",
            "description": "Where the car will be registered: PL, DE, IT, FR, NL, BE, AT, ES or LU (country names also work). Savings are computed against this market; Polish excise is built in. Unknown values fall back to PL with a warning.",
            "default": "PL"
          },
          "countries": {
            "title": "Countries to search",
            "type": "array",
            "description": "Markets to compare: DE, IT, FR, NL, BE, AT, ES, LU (AutoScout24) and PL (Otomoto). Country names in English, German or Polish also work. Empty means all.",
            "default": [
              "DE",
              "IT",
              "FR",
              "NL",
              "BE",
              "AT",
              "ES",
              "LU",
              "PL"
            ],
            "items": {
              "type": "string"
            }
          },
          "yearFrom": {
            "title": "Year from",
            "minimum": 1990,
            "maximum": 2030,
            "type": "integer",
            "description": "First registration year from. Overrides a year written in the search."
          },
          "yearTo": {
            "title": "Year to",
            "minimum": 1990,
            "maximum": 2030,
            "type": "integer",
            "description": "First registration year to."
          },
          "fuel": {
            "title": "Fuel",
            "enum": [
              "any",
              "petrol",
              "diesel",
              "hybrid",
              "plugin-hybrid",
              "electric",
              "lpg"
            ],
            "type": "string",
            "description": "Overrides a fuel written in the search.",
            "default": "any"
          },
          "gearbox": {
            "title": "Gearbox",
            "enum": [
              "any",
              "automatic",
              "manual"
            ],
            "type": "string",
            "description": "Gearbox type.",
            "default": "any"
          },
          "maxMileageKm": {
            "title": "Max mileage (km)",
            "minimum": 0,
            "type": "integer",
            "description": "Skip cars with higher mileage."
          },
          "powerFromHp": {
            "title": "Power from (HP)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum engine power in HP."
          },
          "powerToHp": {
            "title": "Power to (HP)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum engine power in HP."
          },
          "maxPriceEur": {
            "title": "Max price (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Skip listings above this asking price."
          },
          "listingsPerCountry": {
            "title": "Listings analyzed per country",
            "minimum": 10,
            "maximum": 400,
            "type": "integer",
            "description": "Sample size per market. More listings give better medians but take longer.",
            "default": 40
          },
          "maxItems": {
            "title": "Max listings in output",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Best-ranked listings returned (you pay per returned listing).",
            "default": 50
          },
          "onlyCheaperThanDestination": {
            "title": "Only foreign cars cheaper than at home",
            "type": "boolean",
            "description": "Return only foreign listings whose landed cost is below the destination-market value of the same car.",
            "default": false
          },
          "buyerType": {
            "title": "Buyer",
            "enum": [
              "private",
              "vat-registered"
            ],
            "type": "string",
            "description": "Dealers also get landedCostNetEur and vatReclaimableEur for VAT-deductible listings.",
            "default": "private"
          },
          "transportEurPerKm": {
            "title": "Transport (EUR per km)",
            "type": "number",
            "description": "Truck transport price per km between countries.",
            "default": 0.9
          },
          "minTransportEur": {
            "title": "Minimum transport (EUR)",
            "type": "integer",
            "description": "Minimum cross-border transport cost.",
            "default": 350
          },
          "domesticDeliveryEur": {
            "title": "Domestic delivery (EUR)",
            "type": "integer",
            "description": "Cost to collect a car in your own country, so domestic listings are compared fairly.",
            "default": 150
          },
          "registrationEur": {
            "title": "Registration and paperwork (EUR)",
            "type": "integer",
            "description": "Registration, plates, technical inspection, translations. Default 250 for PL, 300 elsewhere."
          },
          "registrationTaxPct": {
            "title": "Registration tax for non-PL destination (%)",
            "type": "number",
            "description": "For destinations with a registration tax (NL BPM, AT NoVA, ES IEDMT, BE, FR malus) enter an approximate % of price. Polish excise is calculated automatically.",
            "default": 0
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional Apify Proxy.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}