{
  "openapi": "3.0.1",
  "info": {
    "title": "Copart Scraper — Salvage Auction Lots, Bids & VINs",
    "description": "Scrape Copart US and Canada salvage auctions. Extract lot number, VIN, current bid, Buy It Now, damage, title brand, odometer, yard GPS, and photos. Search by URL or make/model filters; monitor bid changes.",
    "version": "0.1",
    "x-build-id": "PeX84STNbAhAKzfFK"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawloop~copart-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawloop-copart-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/crawloop~copart-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawloop-copart-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/crawloop~copart-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawloop-copart-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": "Start URLs (search or lot pages)",
            "type": "array",
            "description": "Paste Copart search result URLs (lotSearchResults, lotsByMake, vehicleFinder) or individual /lot/{number} pages from copart.com or copart.ca. Filters already applied in the browser URL are kept. When Start URLs are set, the filter fields below are ignored for those searches.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "searchQuery": {
            "title": "Keyword search",
            "type": "string",
            "description": "Free-text query, same as the Copart search box (toyota camry, f-150, flood). Used when Start URLs are empty. Leave empty and set make/model filters to browse by facets."
          },
          "site": {
            "title": "Marketplace",
            "enum": [
              "US",
              "CA"
            ],
            "type": "string",
            "description": "Copart storefront for filter-based runs. Ignored when Start URLs already contain a host.",
            "default": "US"
          },
          "make": {
            "title": "Make / brand",
            "type": "string",
            "description": "Vehicle make, e.g. TOYOTA, FORD, BMW. Applied as a Copart facet when Start URLs are empty."
          },
          "model": {
            "title": "Model",
            "type": "string",
            "description": "Vehicle model, e.g. CAMRY, F150, X5. Works best together with Make."
          },
          "yearFrom": {
            "title": "Min model year",
            "minimum": 1920,
            "type": "integer",
            "description": "Earliest model year, e.g. 2018."
          },
          "yearTo": {
            "title": "Max model year",
            "minimum": 1920,
            "type": "integer",
            "description": "Latest model year, e.g. 2024."
          },
          "state": {
            "title": "Yard state / province",
            "type": "string",
            "description": "Two-letter yard location code, e.g. CA, TX, FL, ON, BC."
          },
          "damage": {
            "title": "Primary damage",
            "type": "string",
            "description": "Copart damage description, e.g. FRONT END, REAR END, HAIL, FLOOD, SIDE, MINOR DENT/SCRATCHES."
          },
          "buyItNowOnly": {
            "title": "Buy It Now lots only",
            "type": "boolean",
            "description": "Only lots that can be purchased immediately at a fixed Buy It Now price.",
            "default": false
          },
          "runAndDriveOnly": {
            "title": "Run and Drive only",
            "type": "boolean",
            "description": "Only lots flagged as Run and Drive.",
            "default": false
          },
          "lotNumbers": {
            "title": "Lot numbers",
            "type": "array",
            "description": "One or more Copart lot numbers (or /lot/{number} URLs) to fetch directly, skipping search.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max lots",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum number of lots to collect per run. Copart search is typically capped around 1,000 hits per query — split by make, year, or state to go deeper.",
            "default": 50
          },
          "scrapeDetails": {
            "title": "Fetch lot detail records",
            "type": "boolean",
            "description": "Call Copart lot-detail JSON for richer specs, live bid state, seller, and title fields. Disable for faster search-card output.",
            "default": true
          },
          "includePhotos": {
            "title": "Include full photo galleries",
            "type": "boolean",
            "description": "Attach full-size and high-resolution image URL lists. A thumbnail is always included. Galleries add extra lot-detail requests.",
            "default": false
          },
          "monitorMode": {
            "title": "Monitor mode (new lots + bid/status changes)",
            "type": "boolean",
            "description": "Delta tracking via Key-Value store. First run seeds a baseline (no dataset rows). Later runs emit only new lots or changes to current bid, Buy It Now, or sale status. Stops early after several already-known lots.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Max concurrent detail requests",
            "minimum": 1,
            "maximum": 12,
            "type": "integer",
            "description": "How many lot-detail requests to run in parallel. Higher is faster; keep moderate to reduce blocks.",
            "default": 8
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy. RESIDENTIAL with US (copart.com) or CA (copart.ca) is recommended — Copart uses bot protection and often blocks datacenter IPs.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "US"
            }
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}