{
  "openapi": "3.0.1",
  "info": {
    "title": "Bring a Trailer Sold Comps - Auction Results & Price Bands",
    "description": "Bring a Trailer auction results with valuation stats: sale price or high bid, sold vs reserve not met, end date, model year, plus a comps summary per search (sell-through rate, p10 to p90 prices). Optional mileage, VIN, location, seller, bids, views. For car valuation.",
    "version": "0.1",
    "x-build-id": "sZsS0L8gw8IT3TBeu"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fanndev~bringatrailer-sold-comps-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fanndev-bringatrailer-sold-comps-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/fanndev~bringatrailer-sold-comps-scraper/runs": {
      "post": {
        "operationId": "runs-sync-fanndev-bringatrailer-sold-comps-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/fanndev~bringatrailer-sold-comps-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-fanndev-bringatrailer-sold-comps-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": {
          "searchQueries": {
            "title": "Search",
            "type": "array",
            "description": "Make, model or keyword, e.g. 'porsche 911', 'land cruiser fj40', 'e30 m3'. One search (and one comps summary) per entry. Leave empty to use filters only.",
            "items": {
              "type": "string"
            }
          },
          "result": {
            "title": "Result",
            "enum": [
              "all",
              "sold",
              "reserve-not-met"
            ],
            "type": "string",
            "description": "Sold auctions, reserve-not-met auctions, or both (both gives the true sell-through rate).",
            "default": "all"
          },
          "endedWithin": {
            "title": "Ended within",
            "enum": [
              "all",
              "7d",
              "30d",
              "1y",
              "2y",
              "5y"
            ],
            "type": "string",
            "description": "Only auctions that ended in this window.",
            "default": "all"
          },
          "yearFrom": {
            "title": "Model year from",
            "minimum": 1885,
            "maximum": 2100,
            "type": "integer",
            "description": "Earliest model year."
          },
          "yearTo": {
            "title": "Model year to",
            "minimum": 1885,
            "maximum": 2100,
            "type": "integer",
            "description": "Latest model year."
          },
          "maxPrice": {
            "title": "Max price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Only auctions whose final bid is below this amount."
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Leave out auctions whose title contains these words, e.g. 'targa', 'project', 'parts'.",
            "items": {
              "type": "string"
            }
          },
          "origins": {
            "title": "Origin",
            "type": "array",
            "description": "Country of origin of the vehicle.",
            "items": {
              "type": "string",
              "enum": [
                "American",
                "Brazilian",
                "British",
                "Canadian",
                "Czech",
                "Dutch",
                "French",
                "German",
                "Italian",
                "Japanese",
                "Korean",
                "Prewar",
                "Spanish",
                "Swedish"
              ]
            }
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Bring a Trailer categories, e.g. Motorcycles, Truck & 4x4, Race Cars.",
            "items": {
              "type": "string",
              "enum": [
                "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"
              ]
            }
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "newest",
              "oldest",
              "highest-price"
            ],
            "type": "string",
            "description": "Order of results.",
            "default": "newest"
          },
          "maxResults": {
            "title": "Max auctions per search",
            "minimum": 0,
            "type": "integer",
            "description": "0 = every matching auction (Bring a Trailer has about 275,000 completed auctions).",
            "default": 200
          },
          "includeCompsSummary": {
            "title": "Add comps summary",
            "type": "boolean",
            "description": "Adds one summary row per search: sell-through rate and sold-price p10 / p25 / median / p75 / p90 / min / max / mean, computed from the auctions collected.",
            "default": true
          },
          "includeDetails": {
            "title": "Include auction details",
            "type": "boolean",
            "description": "Opens each auction page to add mileage, chassis/VIN, location, seller, private party or dealer, listing details (engine, transmission, colors, options), lot number, bid count, views and watchers. One extra page per auction.",
            "default": false
          },
          "listingUrls": {
            "title": "Listing URLs",
            "type": "array",
            "description": "Optional. Bring a Trailer auction pages (https://bringatrailer.com/listing/...) to return with full details.",
            "items": {
              "type": "string"
            }
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Auction pages opened in parallel (requests are paced to stay within the site's limits).",
            "default": 3
          },
          "maxRetries": {
            "title": "Max retries",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Retries per request.",
            "default": 6
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy. The default (datacenter) works for this site and costs least; switch to Residential only if a large run starts getting blocked.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}