{
  "openapi": "3.0.1",
  "info": {
    "title": "IAAI Import Calculator Poland: Landed Cost & Profit",
    "description": "Scrape live IAAI auction lots and get the full cost of importing each car from the USA to Poland: auction fees, transport, shipping, EU duty, VAT, Polish excise (akcyza) and repair. Compares with Otomoto.pl prices to show profit, ROI and your maximum bid.",
    "version": "0.1",
    "x-build-id": "5W1pLfZa6sJz2e603"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/donzely~iaai-import-calculator-poland/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-donzely-iaai-import-calculator-poland",
        "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~iaai-import-calculator-poland/runs": {
      "post": {
        "operationId": "runs-sync-donzely-iaai-import-calculator-poland",
        "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~iaai-import-calculator-poland/run-sync": {
      "post": {
        "operationId": "run-sync-donzely-iaai-import-calculator-poland",
        "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": "IAAI searches",
            "type": "array",
            "description": "Keywords searched on IAAI, e.g. \"bmw x5\", \"toyota rav4 hybrid\", \"ford mustang\". Each search is processed separately.",
            "items": {
              "type": "string"
            }
          },
          "yearFrom": {
            "title": "Year from",
            "minimum": 1980,
            "maximum": 2030,
            "type": "integer",
            "description": "Minimum model year."
          },
          "yearTo": {
            "title": "Year to",
            "minimum": 1980,
            "maximum": 2030,
            "type": "integer",
            "description": "Maximum model year."
          },
          "maxLotsPerSearch": {
            "title": "Max lots per search",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "How many IAAI lots to analyze per search.",
            "default": 20
          },
          "runAndDriveOnly": {
            "title": "Run & Drive only",
            "type": "boolean",
            "description": "Keep only lots marked Run & Drive.",
            "default": false
          },
          "skipZeroAcv": {
            "title": "Skip lots without ACV",
            "type": "boolean",
            "description": "Skip lots where IAAI does not publish Actual Cash Value (needed for bid and repair estimates).",
            "default": true
          },
          "onlyProfitable": {
            "title": "Only profitable lots",
            "type": "boolean",
            "description": "Output only lots where the estimated profit at the assumed bid is positive.",
            "default": false
          },
          "compareWithOtomoto": {
            "title": "Compare with Otomoto.pl prices",
            "type": "boolean",
            "description": "Look up undamaged comparable cars on Otomoto.pl (same model, year ±1, fuel, power ±15%) and compute market median, profit and maximum bid.",
            "default": true
          },
          "targetProfitPln": {
            "title": "Target profit (PLN)",
            "type": "integer",
            "description": "Profit you want to keep per car. Used to compute the maximum bid.",
            "default": 5000
          },
          "assumedBidPctOfAcv": {
            "title": "Assumed winning bid (% of ACV)",
            "minimum": 1,
            "maximum": 150,
            "type": "integer",
            "description": "Expected hammer price as % of IAAI ACV when no Buy Now price exists. Leave empty to use typical values by damage type (15% for flood/fire up to 55% for normal wear)."
          },
          "destinationPort": {
            "title": "EU port / customs clearance",
            "enum": [
              "BREMERHAVEN",
              "ROTTERDAM",
              "GDYNIA"
            ],
            "type": "string",
            "description": "Where the car is cleared through customs. Sets the import VAT rate (DE 19%, NL 21%, PL 23%).",
            "default": "BREMERHAVEN"
          },
          "oceanFreightUsd": {
            "title": "Ocean freight (USD)",
            "type": "integer",
            "description": "Shared container shipping USA → EU port.",
            "default": 1150
          },
          "usInlandTransportUsd": {
            "title": "US inland transport override (USD)",
            "type": "integer",
            "description": "Leave empty to estimate from the IAAI branch state (to the nearest export port)."
          },
          "brokerFeeUsd": {
            "title": "Broker fee (USD)",
            "type": "integer",
            "description": "Import broker / bidding account fee.",
            "default": 400
          },
          "otherAuctionFeesUsd": {
            "title": "Other IAAI fees (USD)",
            "type": "integer",
            "description": "Service, title handling and environmental fees on top of the buyer and bid fee.",
            "default": 140
          },
          "insurancePct": {
            "title": "Shipping insurance (% of bid)",
            "type": "number",
            "description": "Cargo insurance as a percentage of the bid.",
            "default": 1.5
          },
          "portAndClearanceEur": {
            "title": "Port & customs agency (EUR)",
            "type": "integer",
            "description": "Unloading, port fees and customs agency.",
            "default": 500
          },
          "euTransportToPolandEur": {
            "title": "Transport port → Poland (EUR)",
            "type": "integer",
            "description": "Truck transport from the EU port to Poland. Default 500 for DE/NL, 150 for Gdynia."
          },
          "customsDutyPct": {
            "title": "EU customs duty (%)",
            "type": "number",
            "description": "EU duty on passenger cars.",
            "default": 10
          },
          "registrationPln": {
            "title": "Registration & paperwork (PLN)",
            "type": "integer",
            "description": "Translations, technical inspection, registration.",
            "default": 1500
          },
          "repairCostFactor": {
            "title": "Repair cost multiplier",
            "type": "number",
            "description": "Scales the damage-based repair estimate (1 = default, 0 = ignore repairs).",
            "default": 1
          },
          "otomotoPagesPerQuery": {
            "title": "Otomoto pages per comparison",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Result pages (32 ads each) used to compute market statistics.",
            "default": 2
          },
          "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}