{
  "openapi": "3.0.1",
  "info": {
    "title": "Collecting Cars Scraper - Auction Results & Live Lots",
    "description": "Scrape Collecting Cars auctions: live lots, coming soon and the full sold archive (27,000+ results since 2019). Sold price, current bid, bids, reserve, end date, make, model, year, mileage, location, prices in USD/EUR/GBP. Optional lot page details. Monitor new lots and sales.",
    "version": "0.1",
    "x-build-id": "t7ZGzGMdK6Tcm8dpr"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapewise~collectingcars-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapewise-collectingcars-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/scrapewise~collectingcars-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapewise-collectingcars-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/scrapewise~collectingcars-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapewise-collectingcars-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": {
          "status": {
            "title": "Auction status",
            "enum": [
              "all",
              "live",
              "sold",
              "comingsoon"
            ],
            "type": "string",
            "description": "Live auctions, sold results (the full archive since 2019, about 27,000 lots), lots coming soon, or all of them.",
            "default": "all"
          },
          "search": {
            "title": "Search text",
            "type": "string",
            "description": "Make, model or any word of the title, like the search box of the site: Porsche 911, Ferrari Testarossa, Land Rover Defender, E30 M3. Leave empty to get every lot that matches the filters. Also accepts 'searchQuery', 'query' and 'keyword'."
          },
          "startUrls": {
            "title": "Collecting Cars links",
            "type": "array",
            "description": "Search links copied from the site (https://collectingcars.com/buy, /sold, /coming-soon, /makes/Porsche/1/911/5, with or without filters) and lot links (https://collectingcars.com/for-sale/<lot>). Each search link is read with its own filters. Also accepts 'urls'.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max lots",
            "minimum": 1,
            "maximum": 30000,
            "type": "integer",
            "description": "Lots delivered in total for this run. 1,000 sold results take a few seconds.",
            "default": 50
          },
          "makes": {
            "title": "Makes",
            "type": "array",
            "description": "Exact make names as on the site: Porsche, Ferrari, Aston Martin, Mercedes-Benz, BMW, Land Rover. Not case sensitive. Also accepts 'make'.",
            "items": {
              "type": "string"
            }
          },
          "models": {
            "title": "Models",
            "type": "array",
            "description": "Exact model names as on the site: 911, Defender, F40, M3, Countach. Use it together with Makes. Also accepts 'model'.",
            "items": {
              "type": "string"
            }
          },
          "minYear": {
            "title": "Year from",
            "minimum": 1880,
            "maximum": 2100,
            "type": "integer",
            "description": "Only lots built in this year or later."
          },
          "maxYear": {
            "title": "Year to",
            "minimum": 1880,
            "maximum": 2100,
            "type": "integer",
            "description": "Only lots built in this year or earlier."
          },
          "category": {
            "title": "Category",
            "enum": [
              "any",
              "car",
              "bike",
              "part",
              "plate"
            ],
            "type": "string",
            "description": "Collecting Cars sells cars, motorcycles, parts and UK number plates.",
            "default": "any"
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Where the lot is located, as 2-letter codes: GB, AU, DE, NL, IT, SE, FR, BE, ES, AE, HK, CH, US, NZ. Also accepts 'country'.",
            "items": {
              "type": "string"
            }
          },
          "region": {
            "title": "Region",
            "enum": [
              "any",
              "UK",
              "Europe",
              "APAC",
              "Middle East",
              "US",
              "RoW"
            ],
            "type": "string",
            "description": "Region where the lot is located.",
            "default": "any"
          },
          "minPrice": {
            "title": "Min price",
            "minimum": 0,
            "type": "integer",
            "description": "Sold price, or current bid for live lots, in the currency below (converted by the site). Lots coming soon have no price yet and are left out when a price filter is set."
          },
          "maxPrice": {
            "title": "Max price",
            "minimum": 0,
            "type": "integer",
            "description": "Sold price, or current bid for live lots, in the currency below."
          },
          "priceCurrency": {
            "title": "Price filter currency",
            "enum": [
              "USD",
              "EUR",
              "GBP",
              "AUD",
              "CAD",
              "CHF",
              "AED",
              "HKD",
              "JPY",
              "NZD",
              "SEK"
            ],
            "type": "string",
            "description": "Currency of Min price and Max price. Every lot also comes with its price converted to USD, EUR and GBP.",
            "default": "USD"
          },
          "onlyNoReserve": {
            "title": "Only lots that will sell (no reserve or reserve met)",
            "type": "boolean",
            "description": "Keep only lots without a reserve or whose reserve has already been met.",
            "default": false
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "default",
              "newest",
              "recentlySold",
              "priceHigh",
              "priceLow"
            ],
            "type": "string",
            "description": "Order of the lots. Prices are compared in USD.",
            "default": "default"
          },
          "includeDetails": {
            "title": "Add lot page details",
            "type": "boolean",
            "description": "Opens each lot page and adds the full description split into key facts, equipment, condition, service history and summary, plus exterior and interior color, body style, engine, watchers, views, minimum next bid, video link and the full photo gallery. Charged as an extra event per lot (see Pricing). About 1 lot page per second.",
            "default": false
          },
          "onlyNew": {
            "title": "Only new lots and status changes since the previous run",
            "type": "boolean",
            "description": "For schedules. The first run delivers up to Max lots and remembers every lot it read for this search. Later runs deliver only lots that are new since then, and lots whose status changed (coming soon to live, live to sold). Unchanged lots are skipped and never charged.",
            "default": false
          },
          "compareWithPreviousRun": {
            "title": "Compare with the previous run",
            "type": "boolean",
            "description": "Delivers every lot as usual and adds changeType (new, statusChanged, updated, unchanged), previousStatus, previousPrice, priceChange and firstSeenAt, compared with the previous run of the same search.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Usually not needed; the default works for most runs. Change it only if you know you need to.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}