{
  "openapi": "3.0.1",
  "info": {
    "title": "Copart & IAAI Scraper: Lots, VIN, Landed Cost",
    "description": "Copart and IAAI scraper for salvage auction lots in one schema: photos, damage, odometer, bids, sale dates, NHTSA VIN decode and a landed-cost estimate for Ukraine, Poland, Lithuania, Germany. Bid alerts. Pay per lot from $0.002.",
    "version": "0.1",
    "x-build-id": "a22RWjbsGcKNyob1G"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tiger19935~copart-iaai-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tiger19935-copart-iaai-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/tiger19935~copart-iaai-scraper/runs": {
      "post": {
        "operationId": "runs-sync-tiger19935-copart-iaai-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/tiger19935~copart-iaai-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-tiger19935-copart-iaai-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": {
          "sources": {
            "title": "Auction sources",
            "type": "array",
            "description": "Which auctions to read. Copart is the main source; IAAI is best-effort and a failing source only produces a warning in the run summary.",
            "items": {
              "type": "string",
              "enum": [
                "copart",
                "iaai"
              ],
              "enumTitles": [
                "Copart",
                "IAAI"
              ]
            },
            "default": [
              "copart",
              "iaai"
            ]
          },
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "Free-text searches, one per line: a make and model (toyota camry), a make (bmw), a full 17-character VIN or any keyword you would type into the auction search box.",
            "items": {
              "type": "string"
            }
          },
          "lotNumbers": {
            "title": "Copart lot numbers",
            "type": "array",
            "description": "Optional. Specific Copart lot numbers to fetch in full detail (for example 56789012).",
            "items": {
              "type": "string"
            }
          },
          "lotUrls": {
            "title": "Lot URLs",
            "type": "array",
            "description": "Optional. Copart (copart.com/lot/...) or IAAI (iaai.com/VehicleDetail/...) lot page URLs.",
            "items": {
              "type": "string"
            }
          },
          "yearFrom": {
            "title": "Model year from",
            "minimum": 1980,
            "maximum": 2035,
            "type": "integer",
            "description": "Only lots with this model year or newer. Leave empty for no limit."
          },
          "yearTo": {
            "title": "Model year to",
            "minimum": 1980,
            "maximum": 2035,
            "type": "integer",
            "description": "Only lots with this model year or older. Leave empty for no limit."
          },
          "maxOdometer": {
            "title": "Max odometer (miles)",
            "minimum": 0,
            "type": "integer",
            "description": "Skip lots with a known odometer above this value, in miles. Leave empty for no limit."
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum number of billed results (lots plus alerts) for the whole run. Free Apify plans are capped at 25.",
            "default": 10
          },
          "shardByYear": {
            "title": "Shard big searches by model year",
            "type": "boolean",
            "description": "Copart search pages return at most 100 lots. When a search has more matches than that, split it into one search per model year to collect more of them.",
            "default": true
          },
          "decodeVin": {
            "title": "Decode VIN with NHTSA",
            "type": "boolean",
            "description": "Decode every full 17-character VIN with the free NHTSA vPIC API (engine, fuel, body, plant). Masked VINs are skipped.",
            "default": true
          },
          "includeLandedCost": {
            "title": "Add landed-cost estimate",
            "type": "boolean",
            "description": "Add an estimate of the total cost delivered to the destination country (freight, customs duty, excise, VAT). Billed as lot-landed instead of lot.",
            "default": true
          },
          "destinationCountry": {
            "title": "Destination country",
            "enum": [
              "UA",
              "PL",
              "LT",
              "DE"
            ],
            "type": "string",
            "description": "Country used for the landed-cost estimate.",
            "default": "UA"
          },
          "landedCost": {
            "title": "Landed-cost table overrides (estimates)",
            "type": "object",
            "description": "Optional JSON that overrides the built-in ESTIMATE tables: usdPerEur, assumedBidUsd, auctionFeeTable, inlandFreightUsd, seaFreightUsd, portAndBrokerUsd, rates (per country: dutyRate, vatRate, exciseRules). See the README for the full shape. Defaults are rough estimates, replace them with your broker's numbers."
          },
          "targetBidUsd": {
            "title": "Alert when bid is at or below (USD)",
            "minimum": 1,
            "type": "integer",
            "description": "Create an alert row for every lot whose current bid is greater than 0 and at or below this value. Leave empty to disable."
          },
          "watchlist": {
            "title": "Watchlist with target bids",
            "type": "array",
            "description": "Optional list of lots with their own target bid. Example item: {\"lotNumber\": \"56789012\", \"targetBidUsd\": 2500} or {\"url\": \"https://www.copart.com/lot/56789012\", \"targetBidUsd\": 2500}."
          },
          "alertOncePerLot": {
            "title": "Alert once per lot",
            "type": "boolean",
            "description": "Remember alerted lots between scheduled runs (named key-value store copart-iaai-alerts) so the same lot is not billed as an alert twice.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy settings. Datacenter proxy is tried first.",
            "default": {
              "useApifyProxy": true
            }
          },
          "useResidentialFallback": {
            "title": "Fall back to residential proxy when blocked",
            "type": "boolean",
            "description": "If datacenter IPs are blocked by an auction site, retry through Apify residential proxy (needs residential proxy access on your plan; adds proxy cost to your Apify bill).",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}