{
  "openapi": "3.0.1",
  "info": {
    "title": "Pickles Auctions Scraper",
    "description": "Scrape salvage and used stock from pickles.com.au. Use category and state filters or paste a Pickles URL — the URL wins when set.",
    "version": "0.2",
    "x-build-id": "T1NNbVmpXVvckgefg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dadhalfdev~pickles-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dadhalfdev-pickles-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/dadhalfdev~pickles-scraper/runs": {
      "post": {
        "operationId": "runs-sync-dadhalfdev-pickles-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/dadhalfdev~pickles-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-dadhalfdev-pickles-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": {
          "input_url": {
            "title": "Input URL",
            "type": "string",
            "description": "Paste a Pickles salvage search URL (e.g. https://www.pickles.com.au/used/search/lob/salvage/cars or /cars/state/nsw?search=toyota). Overrides filters when set."
          },
          "query": {
            "title": "Keyword",
            "type": "string",
            "description": "Same as the Pickles search box (`?search=`). Make, model, or other keywords. Ignored when input_url is set."
          },
          "category": {
            "title": "Category / item type",
            "enum": [
              "cars",
              "trucks",
              "trailers",
              "motorcycles",
              "boats",
              "caravans",
              "machinery",
              "items",
              "earthmoving-and-mobile-plant",
              "general-goods",
              "computers-smartphones-office-machines"
            ],
            "type": "string",
            "description": "Same /used/search/lob/salvage/{category} paths as pickles.com.au. Ignored when input_url is set.",
            "default": "cars"
          },
          "state": {
            "title": "State",
            "enum": [
              "",
              "nsw",
              "vic",
              "qld",
              "wa",
              "sa",
              "tas",
              "nt",
              "act"
            ],
            "type": "string",
            "description": "Same /state/{slug} filter as the Pickles Item Location quick filter. Ignored when input_url is set.",
            "default": ""
          },
          "city": {
            "title": "City / suburb",
            "type": "string",
            "description": "Same /state/{state}/{city} slug as Pickles (e.g. sydney, melbourne, brisbane, perth, adelaide, hobart, canberra, darwin). Ignored when input_url is set."
          },
          "make": {
            "title": "Make",
            "enum": [
              "",
              "alfa-romeo",
              "aston-martin",
              "audi",
              "bmw",
              "byd",
              "chery",
              "cupra",
              "chevrolet",
              "chrysler",
              "citroen",
              "daihatsu",
              "dodge",
              "fiat",
              "ford",
              "foton",
              "geely",
              "great-wall",
              "gwm",
              "haval",
              "holden",
              "holden-special-vehicles",
              "honda",
              "hummer",
              "hyundai",
              "isuzu",
              "iveco",
              "jaecoo",
              "jaguar",
              "jeep",
              "ktm",
              "kia",
              "ldv",
              "land-rover",
              "lexus",
              "mercedes",
              "mg",
              "mahindra",
              "maserati",
              "mazda",
              "mclaren",
              "mercedes-benz",
              "mini",
              "mitsubishi",
              "nissan",
              "opel",
              "peugeot",
              "polaris",
              "polestar",
              "porsche",
              "ram",
              "renault",
              "rover",
              "saab",
              "skoda",
              "subaru",
              "suzuki",
              "tesla",
              "trd",
              "toyota",
              "volkswagen",
              "volvo",
              "zeekr"
            ],
            "type": "string",
            "description": "Same Make facet as the Pickles Refine modal. Ignored when input_url is set.",
            "default": ""
          },
          "model": {
            "title": "Model",
            "type": "string",
            "description": "Same Model facet as Pickles (e.g. Corolla, Ranger, Civic). Ignored when input_url is set."
          },
          "year_min": {
            "title": "Year from",
            "minimum": 1950,
            "maximum": 2035,
            "type": "integer",
            "description": "Same Year range as the Pickles Refine modal (`year ge`). Ignored when input_url is set."
          },
          "year_max": {
            "title": "Year to",
            "minimum": 1950,
            "maximum": 2035,
            "type": "integer",
            "description": "Same Year range as the Pickles Refine modal (`year le`). Ignored when input_url is set."
          },
          "odometer_min": {
            "title": "Odometer from (km)",
            "minimum": 0,
            "type": "integer",
            "description": "Same Kilometres range as the Pickles Refine modal. Ignored when input_url is set."
          },
          "odometer_max": {
            "title": "Odometer to (km)",
            "minimum": 0,
            "type": "integer",
            "description": "Same Kilometres range as the Pickles Refine modal. Ignored when input_url is set."
          },
          "fuel": {
            "title": "Fuel",
            "enum": [
              "",
              "petrol-unleaded",
              "petrol-premium",
              "petrol",
              "diesel",
              "diesel-turbo",
              "electric",
              "hybrid",
              "lpg",
              "petrol-lpg",
              "diesel-lpg"
            ],
            "type": "string",
            "description": "Same Fuel Type facet as the Pickles Refine modal. Ignored when input_url is set.",
            "default": ""
          },
          "body": {
            "title": "Body",
            "enum": [
              "",
              "sedan",
              "hatchback",
              "wagon",
              "van",
              "utility-dual-cab",
              "utility-extended-cab",
              "utility-single-cab",
              "utility",
              "coupe",
              "convertible",
              "cabriolet",
              "cab-chassis-dual-cab",
              "cab-chassis-single-cab",
              "cab-chassis-extended-cab",
              "cab-chassis",
              "bus",
              "liftback",
              "hardtop",
              "roadster"
            ],
            "type": "string",
            "description": "Same Body facet as the Pickles Refine modal. Ignored when input_url is set.",
            "default": ""
          },
          "buy_method": {
            "title": "Buy method",
            "enum": [
              "",
              "pickles-online",
              "pickles-live",
              "buy-now",
              "eoi"
            ],
            "type": "string",
            "description": "Same Buy Method quick filter as Pickles (Pickles Online, Pickles Live, Buy Now, EOI). Ignored when input_url is set.",
            "default": ""
          },
          "wovr": {
            "title": "WOVR / salvage status",
            "enum": [
              "",
              "repairable-write-off",
              "statutory-write-off",
              "inspection-passed",
              "n-a"
            ],
            "type": "string",
            "description": "Same Salvage / WOVR quick filter as Pickles. Ignored when input_url is set.",
            "default": ""
          },
          "price_min": {
            "title": "Buy now price from (AUD)",
            "minimum": 0,
            "type": "integer",
            "description": "Same Buy Now Price quick filter (`price ge`). Ignored when input_url is set."
          },
          "price_max": {
            "title": "Buy now price to (AUD)",
            "minimum": 0,
            "type": "integer",
            "description": "Same Buy Now Price quick filter (`price le`). Ignored when input_url is set."
          },
          "transmission": {
            "title": "Transmission",
            "enum": [
              "",
              "sports-automatic",
              "automatic",
              "manual",
              "cvt",
              "sports-automatic-dual-clutch",
              "reduction-gear",
              "semi-automatic"
            ],
            "type": "string",
            "description": "Same Transmission facet as Pickles search. Ignored when input_url is set.",
            "default": ""
          },
          "drive_type": {
            "title": "Drive type",
            "enum": [
              "",
              "4x4-dual-range",
              "4xd-dual-range",
              "4wd",
              "4x4-on-demand",
              "awd",
              "4x4",
              "4x4-constant",
              "4x4-constant-alt",
              "4x2"
            ],
            "type": "string",
            "description": "Same Drive Type facet as Pickles search. Ignored when input_url is set.",
            "default": ""
          },
          "colour": {
            "title": "Colour",
            "enum": [
              "",
              "white",
              "grey",
              "silver",
              "black",
              "blue",
              "red",
              "green",
              "gold",
              "orange",
              "yellow",
              "brown",
              "bronze",
              "beige",
              "maroon",
              "purple",
              "burnt"
            ],
            "type": "string",
            "description": "Same Colour facet as Pickles search. Ignored when input_url is set.",
            "default": ""
          },
          "induction": {
            "title": "Induction",
            "enum": [
              "",
              "aspirated",
              "turbo-intercooled",
              "twin-turbo-intercooled",
              "turbo",
              "supercharged"
            ],
            "type": "string",
            "description": "Same Induction facet as Pickles search. Ignored when input_url is set.",
            "default": ""
          },
          "p_plate": {
            "title": "P plate approved",
            "enum": [
              "",
              "yes",
              "no"
            ],
            "type": "string",
            "description": "Same P Plate Approved facet as Pickles search. Ignored when input_url is set.",
            "default": ""
          },
          "max_results": {
            "title": "Maximum number of results",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "How many rows to return (1–2000). Salvage cars alone is about 3,300 lots (30 per page).",
            "default": 50
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}