{
  "openapi": "3.0.1",
  "info": {
    "title": "Collecting Cars Scraper - Auction Results & Sold Prices",
    "description": "For car dealers, appraisers, collectors and price guides: Collecting Cars sold prices and auction results by search or make, with high bid, sold or unsold, bids, end date, year, mileage, location and currency. Live auctions too. Watch mode returns newly ended lots. Export JSON, CSV or Excel.",
    "version": "0.1",
    "x-build-id": "5CDfBT8gB6uYRlfqs"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neverempty~collecting-cars-auction-results/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neverempty-collecting-cars-auction-results",
        "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/neverempty~collecting-cars-auction-results/runs": {
      "post": {
        "operationId": "runs-sync-neverempty-collecting-cars-auction-results",
        "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/neverempty~collecting-cars-auction-results/run-sync": {
      "post": {
        "operationId": "run-sync-neverempty-collecting-cars-auction-results",
        "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": {
          "searchQueries": {
            "title": "Search terms (make and model)",
            "type": "array",
            "description": "What you would type into the Collecting Cars search box, for example porsche 911, land rover defender, bmw m3, ferrari testarossa. Each term is one search. Use * for every lot (together with Makes or the other filters). Leave this, Makes and Start URLs empty to run the example: the 20 most recently ended porsche 911 auctions.",
            "items": {
              "type": "string"
            }
          },
          "makes": {
            "title": "Makes",
            "type": "array",
            "description": "Only lots of these makes, written as on Collecting Cars, for example Porsche, Land Rover, Aston Martin, Mercedes-Benz. With no search term, returns every lot of these makes. Up to 30.",
            "items": {
              "type": "string"
            }
          },
          "lotTypes": {
            "title": "Lot types",
            "type": "array",
            "description": "Which kinds of lot to return. Cars only by default; Collecting Cars also sells motorbikes, number plates, parts and watches.",
            "items": {
              "type": "string",
              "enum": [
                "car",
                "bike",
                "plate",
                "part",
                "watch"
              ],
              "enumTitles": [
                "Cars",
                "Motorbikes",
                "Number plates",
                "Parts and memorabilia",
                "Watches"
              ]
            },
            "default": [
              "car"
            ]
          },
          "countryCodes": {
            "title": "Lot countries",
            "type": "array",
            "description": "Only lots located in these countries, as two-letter codes, for example GB, DE, AU, US, AE. Empty = every country.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs (lot pages)",
            "type": "array",
            "description": "Single Collecting Cars lot pages such as https://collectingcars.com/for-sale/1977-porsche-911-s-3 (returns that auction, including lots that did not sell). Up to 100 per run.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "auctionStatus": {
            "title": "Which auctions",
            "enum": [
              "ended",
              "live"
            ],
            "type": "string",
            "description": "Ended returns finished auctions with the sale price, bids and end date, newest first. Live returns auctions open for bids now, with the current bid and end time, ending soonest first.",
            "default": "ended"
          },
          "endedAfter": {
            "title": "Ended on or after",
            "type": "string",
            "description": "Only auctions that ended on or after this date (YYYY-MM-DD, UTC), for example 2026-01-01. Works with Ended."
          },
          "endedBefore": {
            "title": "Ended on or before",
            "type": "string",
            "description": "Only auctions that ended on or before this date (YYYY-MM-DD, UTC, the whole day included). Works with Ended."
          },
          "minYear": {
            "title": "Model year from",
            "minimum": 1886,
            "maximum": 2100,
            "type": "integer",
            "description": "Only lots of this model year or newer, for example 1989."
          },
          "maxYear": {
            "title": "Model year to",
            "minimum": 1886,
            "maximum": 2100,
            "type": "integer",
            "description": "Only lots of this model year or older, for example 1998."
          },
          "maxResultsPerSearch": {
            "title": "Max auctions per search",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "How many auctions to return for each search term, newest end date first (Live: ending soonest first). Empty = 50. Up to 2,000 per search; use the end dates, makes or model years to reach older ones."
          },
          "onlyNew": {
            "title": "Watch mode: only auctions ended since the last run",
            "type": "boolean",
            "description": "For schedules. The first run returns the current results marked first-check; each later run returns only auctions that ended since the run before (sold, and lots that ended without selling), marked new. With Live, only auctions that opened since the run before. A run with nothing new returns one free row that says so.",
            "default": false
          },
          "watchName": {
            "title": "Watch name",
            "type": "string",
            "description": "Optional. Give each scheduled task its own name (letters, digits, dot, dash, underscore) so two watches with the same searches keep separate memories."
          },
          "resetMonitoringState": {
            "title": "Start the watch over",
            "type": "boolean",
            "description": "Forget what this watch has already returned. The next run behaves like a first run.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}