{
  "openapi": "3.0.1",
  "info": {
    "title": "Bring a Trailer Scraper - Auction Results, Sold Prices & VIN",
    "description": "For car appraisers, dealers, collectors and price guides: Bring a Trailer sold prices by make and model with final price or high bid, sold or reserve not met, end date, mileage, VIN, location and seller type. Watch mode returns only newly ended auctions. Export JSON, CSV or Excel.",
    "version": "0.1",
    "x-build-id": "g9wVrJagrHijDO6Lp"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neverempty~bring-a-trailer-auction-results/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neverempty-bring-a-trailer-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~bring-a-trailer-auction-results/runs": {
      "post": {
        "operationId": "runs-sync-neverempty-bring-a-trailer-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~bring-a-trailer-auction-results/run-sync": {
      "post": {
        "operationId": "run-sync-neverempty-bring-a-trailer-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 Bring a Trailer search box, for example porsche 911, land cruiser fj40, bmw e30 m3, ferrari testarossa. Each term is one search. Leave this and Start URLs empty to run the example: the 20 most recently ended porsche 911 auctions.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs (model pages or listings)",
            "type": "array",
            "description": "Bring a Trailer model pages such as https://bringatrailer.com/porsche/911/ (returns that model's auctions, like a search) or single listing pages such as https://bringatrailer.com/listing/1991-ferrari-testarossa-67/ (returns that auction). Up to 100 listing URLs 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",
              "sold",
              "live"
            ],
            "type": "string",
            "description": "Ended returns finished auctions with the final price or high bid and whether the reserve was met. Sold only skips reserve-not-met and withdrawn auctions. Live returns auctions open for bids now, with the current bid.",
            "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 and Sold only."
          },
          "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 and Sold only."
          },
          "minYear": {
            "title": "Model year from",
            "minimum": 1886,
            "maximum": 2100,
            "type": "integer",
            "description": "Only cars of this model year or newer, for example 1989. Bring a Trailer applies the year to the search itself."
          },
          "maxYear": {
            "title": "Model year to",
            "minimum": 1886,
            "maximum": 2100,
            "type": "integer",
            "description": "Only cars of this model year or older, for example 1998."
          },
          "maxResultsPerSearch": {
            "title": "Max auctions per search",
            "minimum": 1,
            "maximum": 3600,
            "type": "integer",
            "description": "How many auctions to return for each search term or model page, newest end date first. Empty = 50. Bring a Trailer shows the 3,600 most recent per search; use the end dates or model years to reach older ones."
          },
          "includeDetails": {
            "title": "Read each auction page (VIN, mileage, seller)",
            "type": "boolean",
            "description": "On: each auction page is read for make, model, VIN, mileage, location, private or dealer seller, bids, comments, views and watchers. Off: faster rows with title, year, price, result, end date, country and photo from the search results only.",
            "default": true
          },
          "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 (or, for Live, opened) since the run before, marked new. 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}