{
  "openapi": "3.0.1",
  "info": {
    "title": "Standvirtual Scraper — Portugal Used Car Listings",
    "description": "Scrape standvirtual.com, Portugal's largest car marketplace: price, make, model, version, year, mileage, fuel, gearbox, power, location, dealer or private seller, market-price rating. Filters by make, model, district, price, year, mileage. Only-new mode for daily monitoring. Pay per car.",
    "version": "0.1",
    "x-build-id": "IGOnVdoseErShqlWV"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/eudatalab~standvirtual-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-eudatalab-standvirtual-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/eudatalab~standvirtual-scraper/runs": {
      "post": {
        "operationId": "runs-sync-eudatalab-standvirtual-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/eudatalab~standvirtual-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-eudatalab-standvirtual-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": {
          "make": {
            "title": "Make",
            "type": "string",
            "description": "Car make as on standvirtual.com, e.g. bmw, vw (Volkswagen), mercedes-benz, renault, peugeot, tesla. Plain names like Volkswagen or Mercedes also work. Empty = all makes."
          },
          "model": {
            "title": "Model",
            "type": "string",
            "description": "Model slug as on standvirtual.com, e.g. serie-3, golf, clio, model-3 (needs Make)."
          },
          "location": {
            "title": "District",
            "enum": [
              "",
              "aveiro",
              "beja",
              "braga",
              "braganca",
              "castelobranco",
              "coimbra",
              "evora",
              "faro",
              "guarda",
              "leiria",
              "lisboa",
              "portalegre",
              "porto",
              "santarem",
              "setubal",
              "vianadocastelo",
              "vilareal",
              "viseu",
              "madeira-madeira",
              "acores-saomiguel"
            ],
            "type": "string",
            "description": "Portuguese district. Empty = all of Portugal.",
            "default": ""
          },
          "query": {
            "title": "Keyword",
            "type": "string",
            "description": "Optional free-text search, e.g. gti, 7 lugares, nacional."
          },
          "priceFrom": {
            "title": "Price from (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum price in euros."
          },
          "priceTo": {
            "title": "Price to (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum price in euros."
          },
          "yearFrom": {
            "title": "Year from",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "First registration year, from."
          },
          "yearTo": {
            "title": "Year to",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "First registration year, to."
          },
          "mileageTo": {
            "title": "Max mileage (km)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum mileage in kilometres."
          },
          "fuelType": {
            "title": "Fuel",
            "enum": [
              "",
              "gaz",
              "diesel",
              "electric",
              "hibride-gaz",
              "hibride-diesel",
              "plugin-hybrid",
              "gpl",
              "gnc",
              "hidrogen"
            ],
            "type": "string",
            "description": "Fuel type. Empty = any.",
            "default": ""
          },
          "gearbox": {
            "title": "Gearbox",
            "enum": [
              "",
              "manual",
              "automatic"
            ],
            "type": "string",
            "description": "Gearbox. Empty = any.",
            "default": ""
          },
          "sellerType": {
            "title": "Seller",
            "enum": [
              "",
              "private",
              "business"
            ],
            "type": "string",
            "description": "Private sellers or dealers only. Empty = both.",
            "default": ""
          },
          "condition": {
            "title": "Condition",
            "enum": [
              "",
              "used",
              "new"
            ],
            "type": "string",
            "description": "New or used cars. Empty = both.",
            "default": ""
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "newest",
              "price_asc",
              "price_desc"
            ],
            "type": "string",
            "description": "Order of results (matters when Max cars is smaller than the search).",
            "default": "relevance"
          },
          "startUrls": {
            "title": "Start URLs (advanced)",
            "type": "array",
            "description": "Any standvirtual.com search URL with your filters (copy it from the browser), or single car pages. Overrides the fields above.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxItems": {
            "title": "Max cars",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many cars. Each car is one charged event, so this is also your cost cap.",
            "default": 100
          },
          "followDetails": {
            "title": "Open each car's page (full details)",
            "type": "boolean",
            "description": "Adds description, colour, body type, doors, drive, gears, CO2, equipment list, all photos, map position and dealer name. Slower (one extra page per car), same price per car.",
            "default": false
          },
          "onlyNew": {
            "title": "Only new results since the last run",
            "type": "boolean",
            "description": "For scheduled runs: each run returns (and charges for) only cars that earlier runs of this same search have not delivered yet. The memory is kept in a key-value store in your own Apify account named standvirtual-seen; delete it to start over. Changing any search field starts a separate memory.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed: the site answers Apify servers directly, and datacenter proxies get blocked on car pages (403) more often than a direct connection. Turn Apify Proxy on only if your runs get blocked.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}