{
  "openapi": "3.0.1",
  "info": {
    "title": "Copart Scraper - Auction Cars, Damage, Bids & Retail Value",
    "description": "Scrape Copart salvage and clean-title car auctions by keyword or link: lot, VIN, year, make, model, odometer, primary damage, title, estimated retail value, repair cost, current bid, buy now price, sale date, yard and photos. Filters for year, make, damage, state. Error rows are free.",
    "version": "0.1",
    "x-build-id": "xlBmEYaFZWg1X9vCW"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapewise~copart-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapewise-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/scrapewise~copart-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapewise-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/scrapewise~copart-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapewise-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": {
          "searchQueries": {
            "title": "Search keywords",
            "type": "array",
            "description": "Make, model or any keyword, one per line, for example toyota camry or tesla model 3. Each keyword is one search. Leave empty when you paste links below.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Lot or search links",
            "type": "array",
            "description": "Optional: Copart lot links (https://www.copart.com/lot/12345678/...) or search links (https://www.copart.com/lotSearchResults?query=tesla). Bare lot numbers work too.",
            "items": {
              "type": "string"
            }
          },
          "yearFrom": {
            "title": "Year from",
            "minimum": 1900,
            "maximum": 2030,
            "type": "integer",
            "description": "Only vehicles of this model year or newer, for example 2018."
          },
          "yearTo": {
            "title": "Year to",
            "minimum": 1900,
            "maximum": 2030,
            "type": "integer",
            "description": "Only vehicles of this model year or older, for example 2022."
          },
          "makes": {
            "title": "Makes",
            "type": "array",
            "description": "Only these makes, as Copart writes them, for example TOYOTA, HONDA, FORD. Empty = all makes.",
            "items": {
              "type": "string"
            }
          },
          "primaryDamage": {
            "title": "Primary damage",
            "type": "array",
            "description": "Keep only lots with these primary damage types. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "front end",
                "rear end",
                "side",
                "minor dent/scratches",
                "all over",
                "water/flood",
                "hail",
                "burn",
                "burn - engine",
                "vandalism",
                "undercarriage",
                "mechanical",
                "top/roof",
                "rollover",
                "normal wear",
                "stripped",
                "frame damage"
              ],
              "enumTitles": [
                "Front End",
                "Rear End",
                "Side",
                "Minor Dent/Scratches",
                "All Over",
                "Water/Flood",
                "Hail",
                "Burn",
                "Burn - Engine",
                "Vandalism",
                "Undercarriage",
                "Mechanical",
                "Top/Roof",
                "Rollover",
                "Normal Wear",
                "Stripped",
                "Frame Damage"
              ]
            }
          },
          "locationStates": {
            "title": "Yard states",
            "type": "array",
            "description": "Two-letter US state codes of the yard, for example FL, TX, CA. Empty = every state.",
            "items": {
              "type": "string"
            }
          },
          "maxOdometer": {
            "title": "Max odometer",
            "minimum": 0,
            "type": "integer",
            "description": "Only lots with an odometer reading between 1 and this value, for example 60000 (lots without a reading are left out)."
          },
          "buyItNowOnly": {
            "title": "Buy It Now only",
            "type": "boolean",
            "description": "On: only lots with a Buy It Now price.",
            "default": false
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "auction_date",
              "auction_date_desc",
              "year_desc",
              "year_asc",
              "odometer_asc",
              "repair_cost_desc"
            ],
            "type": "string",
            "description": "Order of the results, as on the site.",
            "default": "auction_date"
          },
          "includeDetails": {
            "title": "Photos and inspection details",
            "type": "boolean",
            "description": "On: two extra calls per lot for every high-resolution photo and the inspection sheet (windshield, hail and prior damage, SUV/van, tire brand, size and tread depth). Off: faster, one photo and every other field.",
            "default": false
          },
          "maxItems": {
            "title": "Max lots",
            "minimum": 0,
            "type": "integer",
            "description": "Hard cap for the whole run, across all searches and links. 0 = no cap.",
            "default": 50
          },
          "onlyNew": {
            "title": "Only new lots (for schedules)",
            "type": "boolean",
            "description": "On: remembers the lots delivered in earlier runs of the same search (in your account) and delivers only lots not seen before. Skipped lots are free.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify Proxy by default. Change it only if you know you need to.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}