{
  "openapi": "3.0.1",
  "info": {
    "title": "Copart Scraper: Salvage Auction Lots, Bids, VIN and Damage",
    "description": "Scrape Copart public auction lots by make, model, year, state, yard, damage or search link: lot number, VIN as shown, title, damage, odometer, current bid, buy now, sale date, yard, photos. USA, Canada, UK, Ireland, Middle East. No login.",
    "version": "0.1",
    "x-build-id": "eqLodCkTfD9eFyHME"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/themineworks~copart-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-themineworks-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/themineworks~copart-scraper/runs": {
      "post": {
        "operationId": "runs-sync-themineworks-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/themineworks~copart-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-themineworks-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": "Copart search or lot links",
            "type": "array",
            "description": "Optional. Paste search links from your browser after setting filters on Copart (lotSearchResults?...searchCriteria=...), or lot links (/lot/<number>/...). copart.com, copart.ca, copart.co.uk, copart.ie and copartmea.com. Each link keeps its own filters.",
            "items": {
              "type": "string"
            }
          },
          "lotNumbers": {
            "title": "Lot numbers",
            "type": "array",
            "description": "Optional. Copart lot numbers to look up one by one, e.g. 77590185, on the site chosen below.",
            "items": {
              "type": "string"
            }
          },
          "country": {
            "title": "Copart site",
            "enum": [
              "US",
              "CA",
              "UK",
              "IE",
              "MEA"
            ],
            "type": "string",
            "description": "Which Copart site the search fields below and the lot numbers go to. Links pick their own site.",
            "default": "US"
          },
          "keyword": {
            "title": "Keyword",
            "type": "string",
            "description": "Free text as typed in the Copart search box, e.g. camry or tesla model 3. Leave empty to use only the filters."
          },
          "make": {
            "title": "Make",
            "type": "string",
            "description": "Make as Copart writes it, e.g. TOYOTA, FORD, HONDA. Several makes: separate with commas."
          },
          "model": {
            "title": "Model",
            "type": "string",
            "description": "Model as Copart writes it, e.g. CAMRY, F150, CIVIC. Several models: separate with commas. Works best together with a make."
          },
          "yearFrom": {
            "title": "Year from",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Oldest model year."
          },
          "yearTo": {
            "title": "Year to",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Newest model year."
          },
          "state": {
            "title": "State or province",
            "type": "array",
            "description": "Two letter codes of the yard state or province, e.g. TX, CA, FL, ON. Empty = every yard.",
            "items": {
              "type": "string"
            }
          },
          "yard": {
            "title": "Yard",
            "type": "array",
            "description": "Exact Copart yard names, e.g. TX - DALLAS SOUTH or CA - SACRAMENTO.",
            "items": {
              "type": "string"
            }
          },
          "damage": {
            "title": "Primary damage",
            "type": "array",
            "description": "Only lots with one of these primary damages. Empty = any damage.",
            "items": {
              "type": "string",
              "enum": [
                "front_end",
                "rear_end",
                "side",
                "all_over",
                "minor_dent_scratches",
                "hail",
                "water_flood",
                "mechanical",
                "rollover",
                "top_roof",
                "undercarriage",
                "vandalism",
                "normal_wear",
                "burn",
                "burn_engine",
                "burn_interior",
                "frame_damage",
                "stripped",
                "biohazard_chemical",
                "damage_history",
                "partial_repair",
                "rejected_repair",
                "missing_altered_vin",
                "replaced_vin",
                "unknown"
              ],
              "enumTitles": [
                "Front end",
                "Rear end",
                "Side",
                "All over",
                "Minor dent or scratches",
                "Hail",
                "Water or flood",
                "Mechanical",
                "Rollover",
                "Top or roof",
                "Undercarriage",
                "Vandalism",
                "Normal wear",
                "Burn",
                "Burn, engine",
                "Burn, interior",
                "Frame damage",
                "Stripped",
                "Biohazard or chemical",
                "Damage history",
                "Partial repair",
                "Rejected repair",
                "Missing or altered VIN",
                "Replaced VIN",
                "Unknown"
              ]
            }
          },
          "titleType": {
            "title": "Title type",
            "type": "array",
            "description": "Only lots with one of these title groups. Empty = any title.",
            "items": {
              "type": "string",
              "enum": [
                "clean",
                "salvage",
                "non_repairable"
              ],
              "enumTitles": [
                "Clean title",
                "Salvage title",
                "Non repairable"
              ]
            }
          },
          "vehicleType": {
            "title": "Vehicle type",
            "type": "array",
            "description": "Only these vehicle types. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "automobiles",
                "suvs",
                "pickup_trucks",
                "motorcycles",
                "medium_duty_trucks",
                "heavy_duty_trucks",
                "rvs",
                "trailers",
                "boats",
                "atvs",
                "jet_skis",
                "buses",
                "construction_equipment",
                "industrial_equipment",
                "farm_equipment",
                "snowmobiles",
                "dirt_bikes"
              ],
              "enumTitles": [
                "Automobiles",
                "SUVs",
                "Pickup trucks",
                "Motorcycles",
                "Medium duty and box trucks",
                "Heavy duty trucks",
                "RVs",
                "Trailers",
                "Boats",
                "ATVs",
                "Jet skis",
                "Buses",
                "Construction equipment",
                "Industrial equipment",
                "Farm equipment",
                "Snowmobiles",
                "Dirt bikes"
              ]
            }
          },
          "maxOdometer": {
            "title": "Max odometer",
            "minimum": 1,
            "type": "integer",
            "description": "Highest odometer reading (miles in the US and UK, km elsewhere)."
          },
          "buyItNowOnly": {
            "title": "Buy it now lots only",
            "type": "boolean",
            "description": "Only lots with a buy it now price.",
            "default": false
          },
          "runAndDriveOnly": {
            "title": "Run and drive lots only",
            "type": "boolean",
            "description": "Only lots Copart marks as RUNS AND DRIVES.",
            "default": false
          },
          "newlyAdded": {
            "title": "Newly added",
            "enum": [
              "any",
              "24h",
              "7d"
            ],
            "type": "string",
            "description": "Only lots added to a sale recently.",
            "default": "any"
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "sale_date",
              "year_newest",
              "odometer_lowest",
              "buy_now_price"
            ],
            "type": "string",
            "description": "Order of the results. For links, leave on Sale date to keep the order in the link.",
            "default": "sale_date"
          },
          "maxResults": {
            "title": "Max lots per search",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Most lots to return for each search (100 per result page).",
            "default": 100
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "The Apify proxy. The default starts on datacenter addresses and switches to residential by itself when Copart refuses them. Pick a proxy group yourself to stop the switch.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}