{
  "openapi": "3.0.1",
  "info": {
    "title": "Otomoto Scraper & API: Export Car Listings, Prices & Dealers",
    "description": "Scrape Otomoto (otomoto.pl) without login: cars, vans, motorcycles, trucks and machinery by make, model, place, price, year, mileage or search URL. Price rating, accident flags, dealer phones and emails, optional full description and equipment. Whole country, no page limit. JSON, CSV, Excel.",
    "version": "0.1",
    "x-build-id": "HWkinvAIfgnZr6N9n"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/s_actors~otomoto-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-s_actors-otomoto-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/s_actors~otomoto-scraper/runs": {
      "post": {
        "operationId": "runs-sync-s_actors-otomoto-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/s_actors~otomoto-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-s_actors-otomoto-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": {
          "categories": {
            "title": "Vehicle types",
            "type": "array",
            "description": "What to search. One search per category, make and place, each up to the limit below. Spare parts are not included.",
            "items": {
              "type": "string",
              "enum": [
                "cars",
                "vans",
                "motorcycles",
                "trucks",
                "construction",
                "agricultural",
                "trailers"
              ],
              "enumTitles": [
                "Cars (osobowe)",
                "Vans (dostawcze)",
                "Motorcycles and quads",
                "Trucks (ciężarowe)",
                "Construction machinery",
                "Agricultural machinery",
                "Trailers (przyczepy)"
              ]
            },
            "default": [
              "cars"
            ]
          },
          "makes": {
            "title": "Makes",
            "type": "array",
            "description": "Makes to search, typed as on the site: \"BMW\", \"Audi\", \"Mercedes-Benz\", \"Škoda\", \"Alfa Romeo\". One search per make. Leave empty for every make. A make the site does not know is skipped (the site would otherwise return everything).",
            "items": {
              "type": "string"
            }
          },
          "models": {
            "title": "Models",
            "type": "array",
            "description": "Models of the make, only when exactly one make is given: \"X5\", \"Seria 3\", \"Golf\", \"Octavia\". Typed as on the site, or the model part of an Otomoto URL (mercedes-benz/c-klasa = \"c-klasa\"). One search per model.",
            "items": {
              "type": "string"
            }
          },
          "locations": {
            "title": "Places",
            "type": "array",
            "description": "Cities or voivodeships to search, typed as on the site: \"Warszawa\", \"Kraków\", \"Wrocław\", \"śląskie\". One search per place. Leave empty for the whole of Poland. A city the site does not know is skipped; for villages and small towns paste a search URL instead.",
            "items": {
              "type": "string"
            }
          },
          "radiusKm": {
            "title": "Radius around a city (km)",
            "enum": [
              "5",
              "10",
              "15",
              "25",
              "50",
              "75",
              "100",
              "150",
              "200",
              "250",
              "300"
            ],
            "type": "string",
            "description": "Search this far around each city in \"Places\" (5 to 300 km). Empty = the site default (about 50 km)."
          },
          "startUrls": {
            "title": "Otomoto URLs",
            "type": "array",
            "description": "Search pages copied from your browser with the filters already set, or links of single offers (https://www.otomoto.pl/osobowe/oferta/...). A search URL keeps its own filters; an offer link returns that offer with full details.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Offers per search",
            "minimum": 1,
            "maximum": 300000,
            "type": "integer",
            "description": "Maximum offers for each category, make, place and URL. The site lists a search to its very last page, so even all cars of Poland (about 255 000) can be exported.",
            "default": 100
          },
          "priceFrom": {
            "title": "Minimum price (PLN)",
            "minimum": 0,
            "type": "number",
            "description": "Only offers priced at or above this amount in złoty."
          },
          "priceTo": {
            "title": "Maximum price (PLN)",
            "minimum": 0,
            "type": "number",
            "description": "Only offers priced at or below this amount in złoty."
          },
          "yearFrom": {
            "title": "Year from",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Only vehicles produced in this year or later."
          },
          "yearTo": {
            "title": "Year to",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Only vehicles produced in this year or earlier."
          },
          "mileageFrom": {
            "title": "Minimum mileage (km)",
            "minimum": 0,
            "type": "number",
            "description": "Only vehicles with at least this mileage."
          },
          "mileageTo": {
            "title": "Maximum mileage (km)",
            "minimum": 0,
            "type": "number",
            "description": "Only vehicles with at most this mileage."
          },
          "powerFrom": {
            "title": "Minimum power (HP)",
            "minimum": 0,
            "type": "number",
            "description": "Only vehicles with at least this engine power in horsepower (KM)."
          },
          "powerTo": {
            "title": "Maximum power (HP)",
            "minimum": 0,
            "type": "number",
            "description": "Only vehicles with at most this engine power in horsepower (KM)."
          },
          "engineCapacityFrom": {
            "title": "Minimum engine size (cm³)",
            "minimum": 0,
            "type": "number",
            "description": "Only vehicles with at least this engine displacement."
          },
          "engineCapacityTo": {
            "title": "Maximum engine size (cm³)",
            "minimum": 0,
            "type": "number",
            "description": "Only vehicles with at most this engine displacement."
          },
          "fuelTypes": {
            "title": "Fuel",
            "type": "array",
            "description": "Fuel types to include. Several values are allowed. Empty = any.",
            "items": {
              "type": "string",
              "enum": [
                "petrol",
                "diesel",
                "hybrid",
                "plugin-hybrid",
                "electric",
                "petrol-lpg",
                "petrol-cng",
                "hidrogen",
                "etanol"
              ],
              "enumTitles": [
                "Petrol",
                "Diesel",
                "Hybrid",
                "Plug-in hybrid",
                "Electric",
                "Petrol + LPG",
                "Petrol + CNG",
                "Hydrogen",
                "Ethanol"
              ]
            }
          },
          "gearboxes": {
            "title": "Gearbox",
            "type": "array",
            "description": "Manual, automatic or both (empty).",
            "items": {
              "type": "string",
              "enum": [
                "manual",
                "automatic"
              ],
              "enumTitles": [
                "Manual",
                "Automatic"
              ]
            }
          },
          "bodyTypes": {
            "title": "Body type (cars)",
            "type": "array",
            "description": "Body types to include (cars only). Several values are allowed. Empty = any.",
            "items": {
              "type": "string",
              "enum": [
                "suv",
                "sedan",
                "combi",
                "compact",
                "city-car",
                "mini",
                "coupe",
                "cabrio",
                "minivan"
              ],
              "enumTitles": [
                "SUV",
                "Sedan",
                "Estate (kombi)",
                "Compact / hatchback",
                "City car",
                "Small car",
                "Coupe",
                "Convertible",
                "Minivan"
              ]
            }
          },
          "condition": {
            "title": "New or used",
            "enum": [
              "all",
              "new",
              "used"
            ],
            "type": "string",
            "description": "New vehicles, used vehicles or both.",
            "default": "all"
          },
          "sellerType": {
            "title": "Seller type",
            "enum": [
              "all",
              "private",
              "business"
            ],
            "type": "string",
            "description": "Private owners only, dealers and companies only, or both.",
            "default": "all"
          },
          "noAccident": {
            "title": "Accident-free only",
            "type": "boolean",
            "description": "Only vehicles the seller marks as accident-free (bezwypadkowy).",
            "default": false
          },
          "firstOwner": {
            "title": "First owner only",
            "type": "boolean",
            "description": "Only vehicles the seller marks as first owner (pierwszy właściciel).",
            "default": false
          },
          "undamaged": {
            "title": "Undamaged only",
            "type": "boolean",
            "description": "Hide damaged vehicles (uszkodzone).",
            "default": false
          },
          "postedWithinDays": {
            "title": "Posted within",
            "enum": [
              "1",
              "3",
              "7",
              "14",
              "30"
            ],
            "type": "string",
            "description": "Only offers posted in the last 1, 3, 7, 14 or 30 days (sorted newest first, stops at the first older page). Empty = any time."
          },
          "sort": {
            "title": "Sort order",
            "enum": [
              "newest",
              "priceAsc",
              "priceDesc",
              "mileageAsc",
              "yearDesc",
              "relevance"
            ],
            "type": "string",
            "description": "Newest first is the steadiest while offers are added during a run.",
            "default": "newest"
          },
          "includeDetails": {
            "title": "Full details",
            "type": "boolean",
            "description": "Open the page of every offer to add the full description, equipment, every photo, VIN flag, exact seller place and, for dealers, phone numbers, website and address. Charged as a separate \"Listing details\" event per offer.",
            "default": false
          },
          "includeDealerContacts": {
            "title": "Dealer contacts",
            "type": "boolean",
            "description": "Open one offer page of each dealer per run and add the dealer's phone numbers, own website, address and number of active ads to every offer of that dealer. Included in the offer price, no extra charge. Private sellers have no contacts here: a private person's phone is not collected.",
            "default": false
          },
          "findEmails": {
            "title": "Find dealer emails",
            "type": "boolean",
            "description": "Look for an email on the own website of each dealer (the home page and up to two contact pages; the mail server of the address is checked) and add it to every offer of that dealer. Turns on \"Dealer contacts\". Charged once per dealer with an email found in a run, as the \"Dealer email\" event; dealers without an email or website cost nothing.",
            "default": false
          },
          "onlyNew": {
            "title": "Only new offers",
            "type": "boolean",
            "description": "Output only offers that were not returned for the same search in the previous runs with the same monitor name (sorted by newest). Schedule the Actor to get new offers every hour.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Keeps the memory of seen offers apart for different schedules."
          },
          "debugLog": {
            "title": "Debug log",
            "type": "boolean",
            "description": "Log every request retry.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}