{
  "openapi": "3.0.1",
  "info": {
    "title": "Bring a Trailer Auctions Scraper - Prices, VINs & Bids",
    "description": "Scrape Bring a Trailer (bringatrailer.com) auctions: live and completed results, sold price, high bid, VIN, mileage, engine, seller, location, photos, plus optional bids and comments. Search by make, model, year or category. Cache returns only new or changed listings. Export JSON, CSV or Excel.",
    "version": "1.0",
    "x-build-id": "4uxVFTdESQxoqbgGH"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/confidential_gnat~bringatrailer-auctions-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-confidential_gnat-bringatrailer-auctions-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/confidential_gnat~bringatrailer-auctions-scraper/runs": {
      "post": {
        "operationId": "runs-sync-confidential_gnat-bringatrailer-auctions-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/confidential_gnat~bringatrailer-auctions-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-confidential_gnat-bringatrailer-auctions-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": {
          "startUrls": {
            "title": "Bring a Trailer URLs",
            "type": "array",
            "description": "Make or model pages, the live auctions page, the auction results page and single listing pages. Examples: https://bringatrailer.com/porsche/911/, https://bringatrailer.com/auctions/, https://bringatrailer.com/auctions/results/ or https://bringatrailer.com/listing/1990-jeep-comanche-13/. Leave empty to use the search terms and filters below.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "Make, model or any keyword, one search per term, for example Porsche 911 or Ford Bronco. Combined with the filters below.",
            "items": {
              "type": "string"
            }
          },
          "auctionStatus": {
            "title": "Auctions to scrape",
            "enum": [
              "completed",
              "live",
              "all"
            ],
            "type": "string",
            "description": "Completed auctions (sold, not sold and withdrawn), live auctions that are still open, or both.",
            "default": "completed"
          },
          "maxItems": {
            "title": "Max listings per search or URL",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum listings saved for each start URL and each search term. The site serves about 9,960 results per search; for more, the search is split by model year and category automatically.",
            "default": 5
          },
          "cacheProjectName": {
            "title": "Cache project name(for deduplication)",
            "type": "string",
            "description": "Use the same name on each scheduled run to get only new or changed listings. Listings already saved under that name and not changed are skipped, not charged and not counted towards Max listings. Each record gets changeType: new or updated. Leave empty to turn the cache off."
          },
          "result": {
            "title": "Auction result",
            "enum": [
              "any",
              "sold",
              "unsold"
            ],
            "type": "string",
            "description": "Only for completed auctions: keep every result, only the sold ones, or only the ones that did not sell (reserve not met or no bids).",
            "default": "any"
          },
          "reserveFilter": {
            "title": "Reserve",
            "enum": [
              "any",
              "noReserve",
              "reserve"
            ],
            "type": "string",
            "description": "Keep every auction, only no-reserve auctions, or only auctions with a reserve.",
            "default": "any"
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Only auctions in these categories (an auction in any of them is kept). Leave empty for all categories.",
            "items": {
              "type": "string",
              "enum": [
                "543",
                "431",
                "383",
                "415",
                "434",
                "560",
                "426",
                "428",
                "429",
                "556",
                "447",
                "430",
                "70",
                "379",
                "10",
                "11",
                "557",
                "436",
                "479",
                "553",
                "433",
                "432",
                "544",
                "21",
                "418",
                "380"
              ],
              "enumTitles": [
                "Aircraft",
                "All-Terrain Vehicles",
                "Boats",
                "Charity & Non-Profit",
                "Convertibles",
                "Diesels",
                "Electric Vehicles",
                "Go-Karts",
                "Hot Rods",
                "Kei Vehicles",
                "Military Vehicles",
                "Minibikes & Scooters",
                "Motorcycles",
                "Parts",
                "Projects",
                "Race Cars",
                "Right-Hand Drive",
                "RVs & Campers",
                "Service Vehicles",
                "Side-by-Sides",
                "Station Wagons",
                "Tractors",
                "Trains",
                "Truck & 4x4",
                "Vans",
                "Wheels"
              ]
            }
          },
          "yearFrom": {
            "title": "Model year from",
            "minimum": 1880,
            "maximum": 2100,
            "type": "integer",
            "description": "Earliest model year of the vehicle."
          },
          "yearTo": {
            "title": "Model year to",
            "minimum": 1880,
            "maximum": 2100,
            "type": "integer",
            "description": "Latest model year of the vehicle."
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Only auctions located in these countries, as two-letter codes such as US, GB, DE or CA. Leave empty for all countries.",
            "items": {
              "type": "string"
            }
          },
          "minPrice": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "integer",
            "description": "Only auctions with a price at or above this amount: the sold price, the high bid of an unsold auction or the current bid of a live one. In the currency of each listing."
          },
          "maxPrice": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "integer",
            "description": "Only auctions with a price at or below this amount (same price as the minimum)."
          },
          "endDateFrom": {
            "title": "Ended or ending from",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Only auctions that ended (or end) on or after this date, as YYYY-MM-DD."
          },
          "endDateTo": {
            "title": "Ended or ending until",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Only auctions that ended (or end) on or before this date, as YYYY-MM-DD."
          },
          "mileageFrom": {
            "title": "Minimum mileage",
            "minimum": 0,
            "type": "integer",
            "description": "Only vehicles with at least this mileage (as shown on the listing). Needs the listing page, so listings are opened even when 'Open each listing page' is off."
          },
          "mileageTo": {
            "title": "Maximum mileage",
            "minimum": 0,
            "type": "integer",
            "description": "Only vehicles with at most this mileage (as shown on the listing). Needs the listing page."
          },
          "sellers": {
            "title": "Seller usernames",
            "type": "array",
            "description": "Only listings of these sellers (usernames, case does not matter). Needs the listing page.",
            "items": {
              "type": "string"
            }
          },
          "sortBy": {
            "title": "Sort completed auctions by",
            "enum": [
              "newest",
              "oldest",
              "highestPrice"
            ],
            "type": "string",
            "description": "Newest first, oldest first or highest price first. Applies to searches that are not split into narrower ones (a split search is read newest and oldest first).",
            "default": "newest"
          },
          "scrapeDetails": {
            "title": "Open each listing page (full details)",
            "type": "boolean",
            "description": "On: every listing page is opened to add the VIN, mileage, engine, transmission, colours, seller, location, bid count, all photos and the full description. Off: records from the results only, which already hold the title, status, price, end time and a short description. Bids and comments always need the listing page.",
            "default": true
          },
          "includeBids": {
            "title": "Include bid history",
            "type": "boolean",
            "description": "Adds the list of bids (amount and time) to every record. Opens the listing page.",
            "default": false
          },
          "includeComments": {
            "title": "Include comments",
            "type": "boolean",
            "description": "Adds the comments of every listing (time, text, likes). Opens the listing page.",
            "default": false
          },
          "includeUsernames": {
            "title": "Include usernames",
            "type": "boolean",
            "description": "Adds the public usernames of bidders and commenters and the high bidder of every listing. Off by default.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. The default works for most runs; choose an Apify Proxy group or add your own proxy URLs to change it.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}