{
  "openapi": "3.0.1",
  "info": {
    "title": "IAAI Scraper — IAA Salvage Auction Vehicle Listings",
    "description": "Export IAA salvage auction vehicles by keyword, make, year, damage or location: stock ID, masked VIN, mileage, damage, title status, auction date, branch, ACV, Buy Now price and photo. For exporters, rebuilders and appraisers.",
    "version": "0.1",
    "x-build-id": "z3qJdomukxuPHDoZC"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/s-r~iaai-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-s-r-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/s-r~iaai-scraper/runs": {
      "post": {
        "operationId": "runs-sync-s-r-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/s-r~iaai-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-s-r-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": {
          "query": {
            "title": "Query",
            "maxLength": 4096,
            "type": "string",
            "description": "Free-text vehicle search, combined with any supplied filters."
          },
          "search_url": {
            "title": "Search url",
            "maxLength": 4096,
            "type": "string",
            "description": "IAA search URL with Keyword or the saved url parameter; only https://www.iaai.com/Search is accepted. Saved filters are preserved; saved sort order is not inherited. Set sort explicitly or use the auction_date_asc default."
          },
          "make": {
            "title": "Make",
            "maxLength": 4096,
            "type": "string",
            "description": "Manufacturer as used by IAA, such as Honda."
          },
          "model": {
            "title": "Model",
            "maxLength": 4096,
            "type": "string",
            "description": "Model as used by IAA."
          },
          "primary_damage": {
            "title": "Primary damage",
            "maxLength": 4096,
            "type": "string",
            "description": "Primary damage label, such as Front End."
          },
          "loss_type": {
            "title": "Loss type",
            "maxLength": 4096,
            "type": "string",
            "description": "Loss label, such as Collision."
          },
          "title_type": {
            "title": "Title type",
            "maxLength": 4096,
            "type": "string",
            "description": "Title or sale document label, such as Salvage."
          },
          "state": {
            "title": "State",
            "maxLength": 4096,
            "type": "string",
            "description": "IAA StateDesc value: full US state name, such as Texas, or Canadian province abbreviation (AB, BC, MB, NB, NL, NS, ON, QC, SK). Canadian province filtering relies on IAA; US branches without a matching displayed state are skipped with a counted warning."
          },
          "branch": {
            "title": "Branch",
            "maxLength": 4096,
            "type": "string",
            "description": "IAA branch name."
          },
          "vehicle_type": {
            "title": "Vehicle type",
            "maxLength": 4096,
            "type": "string",
            "description": "Inventory type as used by IAA."
          },
          "year_min": {
            "title": "Year min",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Inclusive model-year lower bound. The open side defaults to 1900 or 2100."
          },
          "year_max": {
            "title": "Year max",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Inclusive model-year upper bound. The open side defaults to 1900 or 2100."
          },
          "auction_type": {
            "title": "Auction type",
            "enum": [
              "live",
              "timed",
              "buy_now"
            ],
            "type": "string",
            "description": "Auction type to include."
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "auction_date_asc",
              "auction_date_desc",
              "year_desc",
              "year_asc"
            ],
            "type": "string",
            "description": "Sort order; auction_date_asc is the default, including saved search URLs. The saved search's original sort order is not inherited.",
            "default": "auction_date_asc"
          },
          "limit": {
            "title": "Limit",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum unique vehicle rows across all continuation requests; 100 by default.",
            "default": 100
          },
          "cursor": {
            "title": "Cursor",
            "maxLength": 180000,
            "type": "string",
            "description": "Opaque continuation token returned by a previous response. Keep the original search and sort options."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}