{
  "openapi": "3.0.1",
  "info": {
    "title": "Bring a Trailer Scraper — Collector Car Auctions & Sold Prices",
    "description": "Scrape live collector car auctions and historical sold hammer prices from Bring a Trailer (BaT). Extract current bids, sold vs reserve-not-met outcomes, vehicle years, mileage, no-reserve flags, auction end dates, descriptions, and photos for classic and exotic car valuation.",
    "version": "0.1",
    "x-build-id": "wwv1HtDcXp5qAYsCa"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/haketa~bringatrailer-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-haketa-bringatrailer-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/haketa~bringatrailer-scraper/runs": {
      "post": {
        "operationId": "runs-sync-haketa-bringatrailer-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/haketa~bringatrailer-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-haketa-bringatrailer-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": {
          "mode": {
            "title": "Auction Mode",
            "enum": [
              "completed",
              "live",
              "all"
            ],
            "type": "string",
            "description": "Choose whether to extract historical completed auction results with final hammer prices, currently active live auctions, or both.",
            "default": "completed"
          },
          "searchTerms": {
            "title": "Search Keywords (Make / Model / Chassis)",
            "type": "array",
            "description": "Search by make, model, chassis code, or keyword (e.g. \"Porsche 911\", \"BMW E30 M3\", \"Ferrari 360\", \"Land Cruiser\"). Multiple terms run sequentially in one job. Leave empty to browse all auctions matching your filters.",
            "items": {
              "type": "string"
            }
          },
          "outcomeFilter": {
            "title": "Auction Outcome (Completed Mode)",
            "enum": [
              "all",
              "sold",
              "rnm"
            ],
            "type": "string",
            "description": "Filter completed auctions by final outcome: all closed auctions, verified sold lots only, or reserve-not-met high bids only.",
            "default": "all"
          },
          "noReserveOnly": {
            "title": "No Reserve Only",
            "type": "boolean",
            "description": "When enabled, returns only No-Reserve auctions where the vehicle sells to the highest bidder regardless of price.",
            "default": false
          },
          "premiumOnly": {
            "title": "Premium / White Glove Only",
            "type": "boolean",
            "description": "When enabled, returns only Bring a Trailer Premium and White Glove curated collector listings.",
            "default": false
          },
          "yearMin": {
            "title": "Minimum Model Year",
            "minimum": 1880,
            "type": "integer",
            "description": "Earliest vehicle manufacturing year to include (e.g. 1965)."
          },
          "yearMax": {
            "title": "Maximum Model Year",
            "minimum": 1880,
            "type": "integer",
            "description": "Latest vehicle manufacturing year to include (e.g. 1998)."
          },
          "priceMin": {
            "title": "Minimum Bid / Sold Price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum current bid or realized hammer price in USD (e.g. 25000)."
          },
          "priceMax": {
            "title": "Maximum Bid / Sold Price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum current bid or realized hammer price in USD (e.g. 150000)."
          },
          "origin": {
            "title": "Vehicle Country of Origin",
            "enum": [
              "",
              "3",
              "7",
              "8",
              "9",
              "4",
              "6",
              "18",
              "498",
              "496",
              "82",
              "497",
              "499",
              "542",
              "441"
            ],
            "type": "string",
            "description": "Filter vehicles by manufacturer country/heritage (e.g. German, Italian, Japanese, American, British).",
            "default": ""
          },
          "era": {
            "title": "Decade / Era",
            "enum": [
              "",
              "2020",
              "2010",
              "2000",
              "1990",
              "1980",
              "1970",
              "1960",
              "1950",
              "1940",
              "1930",
              "1920",
              "1910",
              "1900",
              "pre-1900"
            ],
            "type": "string",
            "description": "Filter vehicles by production decade.",
            "default": ""
          },
          "category": {
            "title": "Vehicle Category",
            "enum": [
              "",
              "434",
              "21",
              "11",
              "70",
              "429",
              "433",
              "10",
              "557",
              "556",
              "426",
              "560",
              "418",
              "436",
              "447",
              "383",
              "543",
              "431",
              "553",
              "430",
              "428",
              "432",
              "479",
              "379",
              "380",
              "415",
              "544"
            ],
            "type": "string",
            "description": "Filter by Bring a Trailer specialty vehicle or automobilia category.",
            "default": ""
          },
          "country": {
            "title": "Seller / Vehicle Location Country",
            "enum": [
              "",
              "US",
              "CA",
              "GB",
              "DE",
              "IT",
              "FR",
              "NL",
              "BE",
              "NO",
              "GR",
              "JP"
            ],
            "type": "string",
            "description": "Filter listings by the country where the vehicle is physically located.",
            "default": ""
          },
          "recency": {
            "title": "Time Frame (Completed Mode)",
            "enum": [
              "",
              "7D",
              "30D",
              "1Y",
              "2Y",
              "5Y"
            ],
            "type": "string",
            "description": "Restrict completed auction results to a recent closing window.",
            "default": ""
          },
          "excludeKeywords": {
            "title": "Exclude Keywords",
            "type": "string",
            "description": "Optional words to exclude from auction results (e.g. \"wheels project replica\")."
          },
          "sortBy": {
            "title": "Sort Order",
            "enum": [
              "td",
              "bd",
              "vd",
              "ta"
            ],
            "type": "string",
            "description": "Order in which auction lots are returned.",
            "default": "td"
          },
          "maxItems": {
            "title": "Max Auctions",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum total auctions to extract across the run. Default is 100; set to 0 for unlimited pagination.",
            "default": 100
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Apify Proxy settings. Standard datacenter proxies work reliably and keep run costs minimal.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}