{
  "openapi": "3.0.1",
  "info": {
    "title": "Copart Scraper",
    "description": "Scrape Copart salvage and used car auction lots by keyword, make, model, year, damage, location or search URL: bids, damage, title, odometer, yard, sale date, photos.",
    "version": "0.1",
    "x-build-id": "b5Ta5yF5NGrDDn24l"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tortuga~copart-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tortuga-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/tortuga~copart-scraper/runs": {
      "post": {
        "operationId": "runs-sync-tortuga-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/tortuga~copart-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-tortuga-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 (optional)",
            "type": "array",
            "description": "Copart search URLs (copy the address bar of a lotSearchResults page, e.g. https://www.copart.com/lotSearchResults?free=true&query=toyota) or single lot URLs (https://www.copart.com/lot/71351616). Leave empty to use the search fields below. Filters set only inside the website's side panel are kept when the URL carries a searchCriteria parameter.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "query": {
            "title": "Keywords",
            "type": "string",
            "description": "Free-text search like the Copart search box, e.g. 'honda civic', 'tesla model 3' or a lot description."
          },
          "make": {
            "title": "Make",
            "type": "string",
            "description": "Manufacturer as Copart writes it, e.g. TOYOTA, FORD, BMW, HARLEY-DAVIDSON. Case does not matter."
          },
          "model": {
            "title": "Model",
            "type": "string",
            "description": "Model name, e.g. CAMRY, F150, 3 SERIES, MODEL 3 (Copart spelling, no hyphen in F150). Works best together with Make."
          },
          "yearFrom": {
            "title": "Year from",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Earliest model year, e.g. 2015."
          },
          "yearTo": {
            "title": "Year to",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Latest model year, e.g. 2022."
          },
          "vehicleType": {
            "title": "Vehicle type",
            "enum": [
              "all",
              "automobile",
              "suv",
              "pickup",
              "motorcycle",
              "atv",
              "boat",
              "rv",
              "trailer",
              "heavy-truck",
              "bus",
              "construction",
              "jet-ski",
              "snowmobile",
              "dirt-bike"
            ],
            "type": "string",
            "description": "Limit to one kind of vehicle. 'all' includes cars, trucks, motorcycles, boats, equipment and the rest of Copart's inventory."
          },
          "damageType": {
            "title": "Primary damage",
            "enum": [
              "Front End",
              "Rear End",
              "Side",
              "Water/Flood",
              "Mechanical",
              "Minor Dent/Scratches",
              "Normal Wear",
              "Burn",
              "Hail",
              "Rollover",
              "Vandalism",
              "Undercarriage",
              "Frame Damage",
              "Top/Roof",
              "All Over",
              "Stripped",
              "Partial Repair",
              "Biohazard/Chemical",
              "Burn - Engine",
              "Burn - Interior"
            ],
            "type": "string",
            "description": "Primary damage as Copart classifies it, e.g. Front End, Water/Flood, Mechanical. Leave empty for any damage."
          },
          "titleType": {
            "title": "Title type",
            "enum": [
              "clean",
              "salvage",
              "non-repairable"
            ],
            "type": "string",
            "description": "Title group of the lot."
          },
          "location": {
            "title": "Yard location",
            "type": "string",
            "description": "A US state or Canadian province code to match every yard there (FL, TX, ON), or one yard exactly as Copart names it (e.g. 'FL - WEST PALM BEACH')."
          },
          "saleDateFrom": {
            "title": "Sale date from",
            "type": "string",
            "description": "First auction day to include, YYYY-MM-DD (UTC). Lots without a scheduled sale date drop out when a sale date is set."
          },
          "saleDateTo": {
            "title": "Sale date to",
            "type": "string",
            "description": "Last auction day to include, YYYY-MM-DD (UTC, the whole day counts)."
          },
          "odometerFrom": {
            "title": "Odometer from",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum odometer reading (miles for US lots). Copart does not report an odometer for some lots, which drop out when this is set."
          },
          "odometerTo": {
            "title": "Odometer to",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum odometer reading (miles for US lots)."
          },
          "buyItNowOnly": {
            "title": "Buy It Now only",
            "type": "boolean",
            "description": "Only lots that carry a public Buy It Now price."
          },
          "runAndDriveOnly": {
            "title": "Run and Drive only",
            "type": "boolean",
            "description": "Only lots Copart certifies as Run and Drive."
          },
          "lotNumbers": {
            "title": "Lot numbers",
            "type": "array",
            "description": "Copart lot numbers (8 digits, e.g. 71351616). Each is returned as one result.",
            "items": {
              "type": "string"
            }
          },
          "includeDetails": {
            "title": "Include all photos",
            "type": "boolean",
            "description": "Fetch the full photo set of each lot (full-size image URLs in 'photos'). Billed as a separate 'detail' event per lot on top of the result event; the search output already carries one thumbnail."
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many lots. Keeps cost predictable. With 'Only new or changed items' this is how many lots are checked per run.",
            "default": 100
          },
          "onlyNewOrChanged": {
            "title": "Only new or changed items",
            "type": "boolean",
            "description": "Remember what earlier runs of this search returned and output only new items or items whose price/status changed. Use with a Schedule; unchanged items are not charged."
          },
          "monitoringKey": {
            "title": "Monitoring key",
            "type": "string",
            "description": "Name for this watch, so several schedules on the same search stay separate; defaults to a key derived from the search input."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify datacenter proxy (the default) works: Copart's public API answers it. No residential proxy needed.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}