{
  "openapi": "3.0.1",
  "info": {
    "title": "Otomoto Scraper - Plus Autovit & Standvirtual",
    "description": "Scrape used car listings from Otomoto, Autovit and Standvirtual (Poland, Romania, Portugal). Get price in EUR, make, model, year, mileage, fuel, the site's own price rating and price drops, plus dealer names. Track new listings, add condition flags and dealer details. JSON, CSV, Excel or API.",
    "version": "0.1",
    "x-build-id": "jFTfjCmVSJ4hprf1g"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/difioprdy~otomoto-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-difioprdy-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/difioprdy~otomoto-scraper/runs": {
      "post": {
        "operationId": "runs-sync-difioprdy-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/difioprdy~otomoto-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-difioprdy-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": {
          "preset": {
            "title": "Preset (what do you want to do?)",
            "enum": [
              "custom",
              "price_research",
              "deal_hunting",
              "dealer_leads",
              "market_report"
            ],
            "type": "string",
            "description": "price_research: one-off check with EUR prices and summaries. deal_hunting: scheduled watch for new listings and price changes (needs a Monitor name). dealer_leads: dealer listings only, with showroom details. market_report: 500 listings per site. A preset other than Custom always sets Sort, Seller type, Monitor mode, Report delisted and Dealer details.",
            "default": "custom"
          },
          "sites": {
            "title": "Sites",
            "minItems": 1,
            "uniqueItems": true,
            "type": "array",
            "description": "Sites to search, e.g. [\"otomoto\", \"autovit\"]. Each site is a separate search with the same filters.",
            "items": {
              "type": "string",
              "enum": [
                "otomoto",
                "autovit",
                "standvirtual"
              ],
              "enumTitles": [
                "Otomoto (otomoto.pl, Poland, PLN)",
                "Autovit (autovit.ro, Romania, EUR)",
                "Standvirtual (standvirtual.com, Portugal, EUR)"
              ]
            },
            "default": [
              "otomoto"
            ]
          },
          "make": {
            "title": "Make",
            "maxLength": 60,
            "type": "string",
            "description": "Car make as written on the site, e.g. \"Volkswagen\", \"Dacia\", \"Mercedes-Benz\". Empty = all makes.",
            "default": ""
          },
          "model": {
            "title": "Model",
            "maxLength": 60,
            "type": "string",
            "description": "Model as written on the site, e.g. \"Golf\", \"Logan\", \"Clio\". Needs a make. Empty = all models.",
            "default": ""
          },
          "startUrls": {
            "title": "Start URLs (instead of make/model)",
            "type": "array",
            "description": "Car search URLs copied from otomoto.pl, autovit.ro or standvirtual.com, with any filters set on the site, e.g. https://www.otomoto.pl/osobowe/volkswagen/golf?search[filter_float_year:from]=2018.",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxItems": {
            "title": "Max listings per search",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum listings checked per site (or per Start URL). Your cost control: always used when filled. Empty = 100 (market_report: 500). In monitor mode at most 30,000."
          },
          "yearFrom": {
            "title": "Year from",
            "minimum": 0,
            "maximum": 2100,
            "type": "integer",
            "description": "Oldest production year, e.g. 2018 (standvirtual: year of first registration). Empty = any.",
            "default": 0
          },
          "yearTo": {
            "title": "Year to",
            "minimum": 0,
            "maximum": 2100,
            "type": "integer",
            "description": "Newest production year, e.g. 2022. Empty = any.",
            "default": 0
          },
          "priceMin": {
            "title": "Min price",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum price in the site's currency (PLN on otomoto, EUR on autovit/standvirtual), e.g. 20000.",
            "default": 0
          },
          "priceMax": {
            "title": "Max price",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum price in the site's currency, e.g. 80000. Empty = no limit.",
            "default": 0
          },
          "mileageMax": {
            "title": "Max mileage (km)",
            "minimum": 0,
            "maximum": 2000000,
            "type": "integer",
            "description": "Maximum mileage in km, e.g. 150000. Empty = no limit.",
            "default": 0
          },
          "fuel": {
            "title": "Fuel",
            "uniqueItems": true,
            "type": "array",
            "description": "Fuel types to include, e.g. [\"diesel\"]. Empty = any.",
            "items": {
              "type": "string",
              "enum": [
                "petrol",
                "diesel",
                "lpg",
                "cng",
                "hybrid",
                "plugin_hybrid",
                "electric"
              ],
              "enumTitles": [
                "Petrol",
                "Diesel",
                "LPG",
                "CNG",
                "Hybrid",
                "Plug-in hybrid",
                "Electric"
              ]
            },
            "default": []
          },
          "gearbox": {
            "title": "Gearbox",
            "enum": [
              "any",
              "manual",
              "automatic"
            ],
            "type": "string",
            "description": "manual or automatic. any = no filter.",
            "default": "any"
          },
          "sellerType": {
            "title": "Seller type",
            "enum": [
              "all",
              "private",
              "dealer"
            ],
            "type": "string",
            "description": "Ignored unless Preset is Custom. all, private sellers only, or dealers only.",
            "default": "all"
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "newest",
              "relevance",
              "price"
            ],
            "type": "string",
            "description": "Ignored unless Preset is Custom. newest first, the site's relevance order, or cheapest first.",
            "default": "newest"
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "maxItems": 100,
            "type": "array",
            "description": "Drop listings whose title contains any of these words, e.g. [\"uszkodzony\", \"avariat\"]. Not charged.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "monitorMode": {
            "title": "Monitor mode (only new and changed)",
            "type": "boolean",
            "description": "Ignored unless Preset is Custom. Return only listings that are new or whose price changed since the last run with the same Monitor name and search. Unchanged listings are free.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "pattern": "^$|^[A-Za-z0-9](?:[A-Za-z0-9-]{0,61}[A-Za-z0-9])?$",
            "type": "string",
            "description": "Name of this watch, needed in monitor mode, e.g. \"golf-warsaw\". Use a new name to start over.",
            "default": ""
          },
          "emitDelisted": {
            "title": "Report delisted listings",
            "type": "boolean",
            "description": "Ignored unless Preset is Custom. In monitor mode, also return listings that disappeared (free), when the whole search was read.",
            "default": false
          },
          "includeCarDetails": {
            "title": "Car details (extra charge)",
            "type": "boolean",
            "description": "Open each listing page for colour, body type, generation, accident/damage, first owner, service record, registration, VIN available and the full photo gallery. Slower; charged per listing with details.",
            "default": false
          },
          "includeDealerDetails": {
            "title": "Dealer details (extra charge)",
            "type": "boolean",
            "description": "Ignored unless Preset is Custom. Dealer listings: showroom address, coordinates, opening hours and stock count (one page per dealer). Charged per listing that gets them.",
            "default": false
          },
          "useResidentialProxy": {
            "title": "Always use residential proxy",
            "type": "boolean",
            "description": "Normally the Actor connects directly and switches to Apify residential proxy (site's country) only when blocked. Turn on to use it from the start (adds proxy cost).",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}