{
  "openapi": "3.0.1",
  "info": {
    "title": "Otomoto Scraper",
    "description": "Vehicle ads from otomoto.pl, Poland's biggest vehicle site, as clean JSON: make, model, price, year, mileage, fuel, power, city, region. Cars, vans, trucks, motorcycles and machinery. Dealer or private as a flag; seller identity never collected. Pay per result.",
    "version": "0.1",
    "x-build-id": "nMX7K7VPXYItqpPIF"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lowlanddata~otomoto-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lowlanddata-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/lowlanddata~otomoto-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lowlanddata-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/lowlanddata~otomoto-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lowlanddata-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": {
          "category": {
            "title": "Category",
            "enum": [
              "osobowe",
              "motocykle-i-quady",
              "dostawcze",
              "ciezarowe",
              "maszyny-rolnicze",
              "maszyny-budowlane",
              "przyczepy"
            ],
            "type": "string",
            "description": "The part of the site to search: cars (default), motorcycles and quads, vans, trucks, farm machinery, construction machinery or trailers. Parts are not searched.",
            "default": "osobowe"
          },
          "make": {
            "title": "Make",
            "type": "string",
            "description": "Vehicle make as the site spells it in its addresses: <code>bmw</code>, <code>audi</code>, <code>mercedes-benz</code>. Leave empty for every make. An unknown make stops the run before anything is billed."
          },
          "model": {
            "title": "Model",
            "type": "string",
            "description": "Vehicle model under the make, as the site spells it in its addresses: <code>seria-3</code>, <code>a4</code>. Needs <b>make</b>."
          },
          "searchQueries": {
            "title": "More makes and models",
            "type": "array",
            "description": "More searches in the same run, one per line: a make (<code>audi</code>) or a make and model (<code>bmw/seria-3</code>), each with the same category, price, year, mileage and the other filters of this form. The site has no free-text search, so these are makes and models, not keywords. An ad found by two searches comes back once. <b>Max ads counts the whole run</b>: each search gets an equal share of it, and the searches run in the order given. Up to 50.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Otomoto search links",
            "type": "array",
            "description": "Paste search pages copied from otomoto.pl after you set the filters on the site: category, make and model, price, year, mileage, fuel, body type, region and any other filter. Each link is read exactly as the site shows it, so the form fields on this page stand down for it, and a link keeps its own order. <b>Search pages only</b>: for single ads use Specific ad IDs. Up to 50.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "listingIds": {
            "title": "Specific ad IDs",
            "type": "array",
            "description": "Re-check ads you already know instead of searching: one per line, as the number shown as <code>listingId</code> on every dataset item, the code at the end of the ad address (<code>ID6IjZA4</code>) or the ad's full address. Each one is read from its own page, so it carries the description, the full fact sheet, the equipment list and every photo. An ad that is gone from the site is skipped, named in the log and not billed. <b>When given, the search fields of this form are ignored</b> and the run status says which. Up to 100.",
            "items": {
              "type": "string"
            }
          },
          "priceMinPln": {
            "title": "Minimum price (PLN)",
            "minimum": 0,
            "type": "integer",
            "description": "Only ads priced at least this many zloty."
          },
          "priceMaxPln": {
            "title": "Maximum price (PLN)",
            "minimum": 0,
            "type": "integer",
            "description": "Only ads priced at most this many zloty."
          },
          "yearMin": {
            "title": "Minimum year",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Vehicles produced in this year or later."
          },
          "yearMax": {
            "title": "Maximum year",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Vehicles produced in this year or earlier."
          },
          "mileageMinKm": {
            "title": "Minimum mileage (km)",
            "minimum": 0,
            "type": "integer",
            "description": "Vehicles with at least this mileage."
          },
          "mileageMaxKm": {
            "title": "Maximum mileage (km)",
            "minimum": 0,
            "type": "integer",
            "description": "Vehicles with at most this mileage."
          },
          "powerMinHp": {
            "title": "Minimum power (HP)",
            "minimum": 0,
            "type": "integer",
            "description": "Vehicles with at least this engine power in horsepower."
          },
          "powerMaxHp": {
            "title": "Maximum power (HP)",
            "minimum": 0,
            "type": "integer",
            "description": "Vehicles with at most this engine power in horsepower."
          },
          "fuelType": {
            "title": "Fuel type",
            "enum": [
              "petrol",
              "diesel",
              "electric",
              "hybrid",
              "plugin-hybrid",
              "petrol-lpg",
              "petrol-cng"
            ],
            "type": "string",
            "description": "Only vehicles with this fuel."
          },
          "transmission": {
            "title": "Transmission",
            "enum": [
              "manual",
              "automatic"
            ],
            "type": "string",
            "description": "Manual or automatic."
          },
          "sellerType": {
            "title": "Seller type",
            "enum": [
              "private",
              "professional"
            ],
            "type": "string",
            "description": "Only private sellers, or only dealers and companies."
          },
          "condition": {
            "title": "Condition",
            "enum": [
              "new",
              "used"
            ],
            "type": "string",
            "description": "Only new vehicles, or only used ones."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "newest",
              "price_asc",
              "price_desc",
              "mileage_asc",
              "mileage_desc",
              "power_asc",
              "power_desc",
              "relevance"
            ],
            "type": "string",
            "description": "Order of results: newest (best for monitoring), price_asc, price_desc, mileage_asc, mileage_desc, power_asc, power_desc, or relevance (the site's own order).",
            "default": "newest"
          },
          "maxItems": {
            "title": "Max ads",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many ads. Free-plan runs are capped at 5 items. The form starts at 25 for a cheap first run - that is the form's prefill, not a cap on your plan; clear it to use the default of 1000. The site serves 32 ads a page and has no result window, so a run can go as deep as you ask. Each page is a heavy read of about 1.5 MB that takes around five seconds, so 1,000 ads take about three minutes.",
            "default": 1000
          },
          "scrapeDetails": {
            "title": "Fetch ad pages",
            "type": "boolean",
            "description": "The search row carries the title, price, make, model, version, year, mileage, fuel, transmission, power, engine size, city, region, seller type, posting time and cover photo. Turn this on to read each ad's own page for the description, the body, drive, colour, doors, seats, emissions, consumption, the owner and accident flags, the equipment list, every photo and the dates. One extra request per ad, about six seconds each, so use it for hundreds of ads rather than thousands. Seller names, phone numbers, addresses, the registration number and the VIN are never read.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Proxy settings. otomoto.pl answers Apify datacenter proxies, so that is the default and nothing extra is billed. Leave it as it is.",
            "default": {
              "useApifyProxy": true
            }
          },
          "reportFailures": {
            "title": "Anonymous reports to the developer",
            "type": "boolean",
            "description": "Only two things are sent to the developer. When a run fails: the actor name and build, an error category, the truncated error message and a one-way hash of your input. At the start of every run: the actor name, the build, a one-way hash of your Apify account id and whether the account is on a paid Apify plan. <b>Your input, your results, your name and your account id itself are never sent.</b> Turn this off and nothing is sent; the actor behaves the same.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}