{
  "openapi": "3.0.1",
  "info": {
    "title": "Copart Auction Lot Finder by Search URL",
    "description": "Paste any Copart.com search or lot URL to get vehicle specs, VIN, damage, odometer, current bid, title details, auction date, and photos for each lot.",
    "version": "2.0",
    "x-build-id": "rnpbMzAHeVMHgTTru"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dataspryva~copart-auction-lot-finder-by-search-url/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dataspryva-copart-auction-lot-finder-by-search-url",
        "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/dataspryva~copart-auction-lot-finder-by-search-url/runs": {
      "post": {
        "operationId": "runs-sync-dataspryva-copart-auction-lot-finder-by-search-url",
        "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/dataspryva~copart-auction-lot-finder-by-search-url/run-sync": {
      "post": {
        "operationId": "run-sync-dataspryva-copart-auction-lot-finder-by-search-url",
        "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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "details"
            ],
            "type": "string",
            "description": "Choose Search to find lots, or Details to fetch specific lot numbers or lot URLs.",
            "default": "search"
          },
          "searchUrl": {
            "title": "Copart search URL",
            "type": "string",
            "description": "A Copart search results URL, for example https://www.copart.com/lotSearchResults?free=true&query=BMW. Filters you set on Copart are preserved. A /lot/<number> URL fetches that single lot.",
            "default": "https://www.copart.com/lotSearchResults?free=true&query=BMW"
          },
          "searchQuery": {
            "title": "Keyword",
            "type": "string",
            "description": "Free-text keyword such as BMW, Toyota Camry, or a lot number. Leave empty to browse all vehicles."
          },
          "make": {
            "title": "Make",
            "type": "string",
            "description": "Vehicle make as Copart lists it, for example BMW or TOYOTA."
          },
          "model": {
            "title": "Model",
            "type": "string",
            "description": "Vehicle model, for example X7 or CAMRY."
          },
          "yearFrom": {
            "title": "Year from",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Earliest model year."
          },
          "yearTo": {
            "title": "Year to",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Latest model year."
          },
          "odometerFrom": {
            "title": "Odometer from",
            "minimum": 0,
            "maximum": 2000000,
            "type": "integer",
            "description": "Minimum odometer reading."
          },
          "odometerTo": {
            "title": "Odometer to",
            "minimum": 0,
            "maximum": 2000000,
            "type": "integer",
            "description": "Maximum odometer reading."
          },
          "damageType": {
            "title": "Primary damage",
            "enum": [
              "BC",
              "BN",
              "BE",
              "BI",
              "DH",
              "FD",
              "FR",
              "HL",
              "MC",
              "MN",
              "VI",
              "NW",
              "PR",
              "RR",
              "RJ",
              "VP",
              "RO",
              "SD",
              "ST",
              "TP",
              "UN",
              "UK",
              "VN",
              "WA"
            ],
            "type": "string",
            "description": "Only lots with this primary damage type."
          },
          "titleType": {
            "title": "Title type",
            "enum": [
              "C",
              "J",
              "S"
            ],
            "type": "string",
            "description": "Only lots with this title group. UK and Middle East sites map each option to their closest local category."
          },
          "vehicleType": {
            "title": "Vehicle type",
            "enum": [
              "automobile",
              "motorcycle",
              "suv"
            ],
            "type": "string",
            "description": "Only automobiles, motorcycles or SUVs. SUV is available on the US site only."
          },
          "transmission": {
            "title": "Transmission",
            "enum": [
              "automatic",
              "manual",
              "none"
            ],
            "type": "string",
            "description": "Only lots with this transmission. UK and Middle East sites match automatic and manual labels."
          },
          "fuelType": {
            "title": "Fuel type",
            "enum": [
              "diesel",
              "electric",
              "electric_and_gas_hybrid",
              "gas",
              "hybrid_engine"
            ],
            "type": "string",
            "description": "Only lots with this fuel type. Gas is matched as Petrol on the UK and Middle East sites."
          },
          "driveType": {
            "title": "Drive train",
            "enum": [
              "all_wheel_drive",
              "front_wheel_drive",
              "rear_wheel_drive"
            ],
            "type": "string",
            "description": "Only lots with this drive train. UK maps all-wheel drive to 4x4; front and rear wheel drive are US-only."
          },
          "cylinders": {
            "title": "Cylinders",
            "enum": [
              "0",
              "1",
              "2",
              "3",
              "4",
              "6",
              "8",
              "10",
              "12"
            ],
            "type": "string",
            "description": "Only lots with this cylinder count. Available on the US and UK sites."
          },
          "bodyStyle": {
            "title": "Body style",
            "enum": [
              "4DR SPOR",
              "4DR SPORT UTILITY",
              "CONVERTI",
              "CONVERTIBLE",
              "COUPE",
              "CRUISER",
              "ENDURO",
              "HATCHBAC",
              "HATCHBACK",
              "HATCHBACK 2DR",
              "HATCHBACK 4DR",
              "RACER",
              "ROAD",
              "ROADSTER",
              "SEDAN",
              "SEDAN 2 DR.",
              "SEDAN 4D",
              "SEDAN 4DR",
              "SPORT",
              "SPORT UTILITY VEHICLE",
              "SPORT UTILITY VEHICLE [SUV]",
              "STATION",
              "STATION WAGON",
              "TOURING",
              "TRADITIONAL",
              "WAGON"
            ],
            "type": "string",
            "description": "Only lots with this body style. Common US styles are mapped to UK equivalents; body style is US and UK only."
          },
          "location": {
            "title": "Yard",
            "type": "string",
            "description": "Copart yard name, for example NJ - GLASSBORO WEST."
          },
          "auctionName": {
            "title": "Auction name",
            "type": "string",
            "description": "Auction host name, for example NJ - GLASSBORO WEST or a specialty sale name."
          },
          "buyItNowOnly": {
            "title": "Buy It Now only",
            "type": "boolean",
            "description": "Only lots that have a Buy It Now price.",
            "default": false
          },
          "newlyAddedDays": {
            "title": "Newly added",
            "enum": [
              "0",
              "1",
              "7"
            ],
            "type": "string",
            "description": "Only lots added to Copart in the selected window.",
            "default": "0"
          },
          "sort": {
            "title": "Sort by",
            "enum": [
              "sale_date",
              "year_desc",
              "year_asc",
              "odometer_asc",
              "odometer_desc",
              "make_asc",
              "model_asc",
              "auction_date_asc"
            ],
            "type": "string",
            "description": "Order of the search results.",
            "default": "sale_date"
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Maximum number of lot records to return.",
            "default": 100
          },
          "includeDetails": {
            "title": "Include full details",
            "type": "boolean",
            "description": "For search results, fetch each lot's full detail page and condition report. This adds one request per lot.",
            "default": false
          },
          "includeImages": {
            "title": "Include photo gallery",
            "type": "boolean",
            "description": "Fetch the full photo gallery for lots in Details mode, or for search results when Include full details is on.",
            "default": true
          },
          "site": {
            "title": "Copart site",
            "enum": [
              "us",
              "uk",
              "mea"
            ],
            "type": "string",
            "description": "Country site used for keyword searches. A pasted URL overrides this setting.",
            "default": "us"
          },
          "lotNumbers": {
            "title": "Lot numbers or lot URLs",
            "type": "array",
            "description": "Lot numbers or Copart lot URLs to fetch in Details mode. Duplicates are removed.",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}