{
  "openapi": "3.0.1",
  "info": {
    "title": "Drive.com.au Scraper: Car Listings, VIN & Dealers",
    "description": "Scrape every new, used and demo car on Drive.com.au, with no page cap. Paste search URLs or filter by make, model, state, price, year, odometer, fuel and body type. Add VIN, plate, specs, price rating and dealer address, licence and email as an option. JSON or CSV.",
    "version": "0.0",
    "x-build-id": "duGAMCqz90ntdrDAV"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/memo23~drive-com-au-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-memo23-drive-com-au-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/memo23~drive-com-au-scraper/runs": {
      "post": {
        "operationId": "runs-sync-memo23-drive-com-au-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/memo23~drive-com-au-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-memo23-drive-com-au-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": "Drive.com.au URLs",
            "type": "array",
            "description": "Search URLs (e.g. https://www.drive.com.au/cars-for-sale/search/used/nsw/sydney-nsw/toyota/) or listing URLs (e.g. https://www.drive.com.au/cars-for-sale/car/970417814/). Condition, state, region, make and model are read from the search URL. Leave empty to search with the filters below.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "make": {
            "title": "Make",
            "type": "string",
            "description": "Make as it appears in Drive.com.au URLs, e.g. toyota, mazda, land-rover. Separate several with commas."
          },
          "model": {
            "title": "Model",
            "type": "string",
            "description": "Model as it appears in Drive.com.au URLs, e.g. corolla, cx-5, hilux. Separate several with commas."
          },
          "stockType": {
            "title": "Condition",
            "enum": [
              "used",
              "new",
              "demo"
            ],
            "type": "string",
            "description": "New, used or demo cars."
          },
          "state": {
            "title": "State",
            "enum": [
              "NSW",
              "VIC",
              "QLD",
              "WA",
              "SA",
              "TAS",
              "ACT",
              "NT"
            ],
            "type": "string",
            "description": "Australian state or territory."
          },
          "minPrice": {
            "title": "Min price (AUD)",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest price in Australian dollars."
          },
          "maxPrice": {
            "title": "Max price (AUD)",
            "minimum": 0,
            "type": "integer",
            "description": "Highest price in Australian dollars."
          },
          "minYear": {
            "title": "Min year",
            "minimum": 0,
            "type": "integer",
            "description": "Oldest build year, e.g. 2018."
          },
          "maxYear": {
            "title": "Max year",
            "minimum": 0,
            "type": "integer",
            "description": "Newest build year."
          },
          "minOdometer": {
            "title": "Min odometer (km)",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest kilometres driven."
          },
          "maxOdometer": {
            "title": "Max odometer (km)",
            "minimum": 0,
            "type": "integer",
            "description": "Highest kilometres driven."
          },
          "bodyType": {
            "title": "Body type",
            "enum": [
              "Wagon",
              "Hatchback",
              "Sedan",
              "Utility",
              "Cab Chassis",
              "Van",
              "Coupe",
              "Convertible",
              "Fastback - Hatch",
              "Fastback - Coupe",
              "Hardtop",
              "Roadster",
              "Traytop",
              "Van Wagon"
            ],
            "type": "string",
            "description": "Body type. SUVs are listed by Drive.com.au as Wagon."
          },
          "fuelType": {
            "title": "Fuel type",
            "enum": [
              "petrol",
              "diesel",
              "electric",
              "lpg"
            ],
            "type": "string",
            "description": "Fuel type."
          },
          "transmission": {
            "title": "Transmission",
            "enum": [
              "automatic",
              "manual",
              "cvt"
            ],
            "type": "string",
            "description": "Automatic includes sports automatics and dual-clutch gearboxes."
          },
          "dealerId": {
            "title": "Dealer ID",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings from this dealer (the dealerId field in the output). Useful for tracking one dealer's stock."
          },
          "listingIds": {
            "title": "Listing IDs",
            "type": "array",
            "description": "Drive.com.au listing IDs to fetch directly, e.g. 970417814.",
            "items": {
              "type": "string"
            }
          },
          "includeDetails": {
            "title": "Include vehicle details (paid add-on)",
            "type": "boolean",
            "description": "Add VIN, registration plate, variant, engine size, power, torque, key features, seller comments, Drive's price rating, new price and the price with and without government charges, plus the dealer's street address, email, website and licence number. Billed as an extra 'vehicle details' event per listing. Off: each row still has make, model, year, price, odometer, condition, body, transmission, fuel, colour, location, dealer name and suburb, and photos.",
            "default": false
          },
          "maxItems": {
            "title": "Max listings",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many listings. 0 = no limit (the full catalogue is about 86,000 listings).",
            "default": 100
          },
          "proxy": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed: the data source answers without a proxy. Set one only if you have a reason to.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}