{
  "openapi": "3.0.1",
  "info": {
    "title": "Bring a Trailer Scraper — Sold Prices, Bids & Live Auctions",
    "description": "Scrape Bring a Trailer auction results and live auctions: sold prices, reserve-not-met high bids, end dates, year, mileage, country, no-reserve flag, photo. Optional listing details: VIN, make, model, location, bids, views, watchers, comments, engine, transmission. No login.",
    "version": "0.1",
    "x-build-id": "hGenMMRUOCcvXQDgG"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/yugenox~bringatrailer-results-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-yugenox-bringatrailer-results-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/yugenox~bringatrailer-results-scraper/runs": {
      "post": {
        "operationId": "runs-sync-yugenox-bringatrailer-results-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/yugenox~bringatrailer-results-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-yugenox-bringatrailer-results-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": "Auctions",
            "enum": [
              "results",
              "live"
            ],
            "type": "string",
            "description": "Completed auctions (sold prices and reserve-not-met high bids, back to 2014) or the auctions that are live right now (current bid, end time).",
            "default": "results"
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "What to search for, the same way as the search box on Bring a Trailer's Auction Results page, e.g. \"Porsche 911\", \"E30 M3\", \"Land Cruiser FJ40\", \"Ducati\". Each keyword is a separate search. Leave empty to get all auctions (optionally narrowed by the filters below).",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Bring a Trailer links",
            "type": "array",
            "description": "Optional: paste Bring a Trailer links instead of (or as well as) keywords. Supported: a model, make or category page (bringatrailer.com/porsche/996-911/, bringatrailer.com/ferrari/, bringatrailer.com/motorcycles/), the Auction Results page with its filters (bringatrailer.com/auctions/results/?search=…), the live Auctions page, or single auction listings (bringatrailer.com/listing/…/ — one row each, with every detail).",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 0,
            "maximum": 50000,
            "type": "integer",
            "description": "Maximum number of auctions for the whole run, shared fairly between your searches. 0 = everything that matches, up to 50,000 per run (Porsche 911 alone has over 19,000 results).",
            "default": 100
          },
          "includeDetails": {
            "title": "Include listing details",
            "type": "boolean",
            "description": "Also open each auction's listing page and add the VIN / chassis number, make, model, mileage, seller location (city, state), private party or dealer, lot number, number of bids, views, watchers and comments, the full details list (engine, transmission, colors …). Slower (one extra page per auction, about 1 second each) and charged as an extra event — see Pricing.",
            "default": false
          },
          "result": {
            "title": "Result",
            "enum": [
              "all",
              "sold",
              "unsold"
            ],
            "type": "string",
            "description": "Completed auctions only: sold, reserve not met (bid to), or both.",
            "default": "all"
          },
          "timeFrame": {
            "title": "Ended within",
            "enum": [
              "all",
              "7d",
              "30d",
              "1y",
              "2y",
              "5y"
            ],
            "type": "string",
            "description": "Completed auctions only: Bring a Trailer's own time-frame filter.",
            "default": "all"
          },
          "endDateFrom": {
            "title": "Ended on or after",
            "type": "string",
            "description": "Optional: only auctions ending on or after this date — YYYY-MM-DD, or a relative value like \"30 days\" (completed: 30 days ago; live: in 30 days)."
          },
          "endDateTo": {
            "title": "Ended on or before",
            "type": "string",
            "description": "Optional: only auctions ending on or before this date (the whole day counts) — YYYY-MM-DD or a relative value like \"7 days\". Live auctions: e.g. \"2 days\" = ending within the next 2 days."
          },
          "yearFrom": {
            "title": "Model year from",
            "minimum": 1800,
            "maximum": 2030,
            "type": "integer",
            "description": "Optional: oldest model year, e.g. 1965."
          },
          "yearTo": {
            "title": "Model year to",
            "minimum": 1800,
            "maximum": 2030,
            "type": "integer",
            "description": "Optional: newest model year, e.g. 1973."
          },
          "minPrice": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "integer",
            "description": "Optional: lowest sold price / high bid / current bid, in the auction's own currency (mostly USD)."
          },
          "maxPrice": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "integer",
            "description": "Optional: highest sold price / high bid / current bid, in the auction's own currency (mostly USD)."
          },
          "noReserveOnly": {
            "title": "No-reserve auctions only",
            "type": "boolean",
            "description": "Only auctions listed with no reserve.",
            "default": false
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Optional: where the vehicle is located, as country codes or names — e.g. US, CA, GB, DE, \"United Kingdom\" — or a region: NA (North America), EU (Europe), OC (Australia / New Zealand).",
            "items": {
              "type": "string"
            }
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Optional: Bring a Trailer categories (any of them matches).",
            "items": {
              "type": "string",
              "enum": [
                "AIRCRAFT",
                "ATV",
                "BOATS",
                "CHARITY",
                "CONVERTIBLES",
                "DIESELS",
                "ELECTRIC",
                "GO_KARTS",
                "HOT_RODS",
                "KEI",
                "MILITARY",
                "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"
              ],
              "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"
              ]
            }
          },
          "origins": {
            "title": "Origin",
            "type": "array",
            "description": "Optional: where the make comes from (any of them matches).",
            "items": {
              "type": "string",
              "enum": [
                "AMERICAN",
                "BRAZILIAN",
                "BRITISH",
                "CANADIAN",
                "CZECH",
                "DUTCH",
                "FRENCH",
                "GERMAN",
                "ITALIAN",
                "JAPANESE",
                "KOREAN",
                "PREWAR",
                "SPANISH",
                "SWEDISH"
              ],
              "enumTitles": [
                "American",
                "Brazilian",
                "British",
                "Canadian",
                "Czech",
                "Dutch",
                "French",
                "German",
                "Italian",
                "Japanese",
                "Korean",
                "Prewar",
                "Spanish",
                "Swedish"
              ]
            }
          },
          "excludeKeywords": {
            "title": "Exclude words",
            "type": "string",
            "description": "Optional: leave out auctions with these words, e.g. \"replica project\"."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "default",
              "newest",
              "oldest",
              "highestBid",
              "popular",
              "endingSoonest"
            ],
            "type": "string",
            "description": "Order of the results (and which ones you get first when Max results is lower than the number of matches).",
            "default": "default"
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify Proxy (datacenter) is used by default and is included in every Apify plan.",
            "default": {
              "useApifyProxy": true
            }
          },
          "_noResidential": {
            "title": "Run as an account without residential proxies",
            "type": "boolean",
            "description": "Internal (canaries): behave exactly like an account without the RESIDENTIAL proxy group. This actor never uses residential proxies.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}