{
  "openapi": "3.0.1",
  "info": {
    "title": "Carsales Scraper 💰 $0.47/1K — Australian New & Used Cars",
    "description": "Scrape carsales.com.au car listings from any search link or from filters, beyond the 440-listing page limit. Get price, odometer, specs, price rating, photos, full spec sheet, dealer comments, phone and listing details exactly as carsales returns them.",
    "version": "0.0",
    "x-build-id": "v6smxxXx8bCLlS7uS"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dz_omar~carsales-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dz_omar-carsales-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/dz_omar~carsales-scraper/runs": {
      "post": {
        "operationId": "runs-sync-dz_omar-carsales-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/dz_omar~carsales-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-dz_omar-carsales-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": "🔗 carsales.com.au links · Option A",
            "type": "array",
            "description": "One <b>carsales.com.au</b> link per line. <ul><li><b>A search</b>: set your filters on the website and copy the address, or use a make/model page such as <code>https://www.carsales.com.au/cars/mazda/cx-5/</code>. Every matching listing is collected, even when carsales shows tens of thousands of results.</li><li><b>One listing</b>: e.g. <code>https://www.carsales.com.au/cars/details/2018-mazda-cx-5-gt-kf-series-auto-i-activ-awd/SSE-AD-19119170/</code>, or just the listing number <code>SSE-AD-19119170</code>. A listing link always comes with its full page.</li></ul>The sort order and paging in a link are not used. Other websites and other carsales sections (bikes, boats, trucks) are rejected before the run starts. <b>When this list has links, Option B below is ignored.</b>",
            "items": {
              "type": "string",
              "pattern": "^[ ]*((https?://)?(www[.])?carsales[.]com[.]au/cars([/?#].*)?|[A-Za-z]{2,4}-[Aa][Dd]-[0-9]{5,})[ ]*$"
            }
          },
          "make": {
            "title": "🚗 Make · Option B",
            "type": "string",
            "description": "e.g. <code>Toyota</code>, <code>Mazda</code>, <code>Land Rover</code>. Leave empty for every make."
          },
          "model": {
            "title": "🚙 Model · Option B",
            "type": "string",
            "description": "e.g. <code>HiLux</code>, <code>CX-5</code>. Needs a Make."
          },
          "condition": {
            "title": "🆕 Condition · Option B",
            "enum": [
              "any",
              "new",
              "used"
            ],
            "type": "string",
            "description": "New stock, or used stock (which includes demo cars).",
            "default": "any"
          },
          "sellerType": {
            "title": "🏪 Seller · Option B",
            "enum": [
              "any",
              "dealer",
              "private"
            ],
            "type": "string",
            "description": "Dealer stock, private sellers, or both.",
            "default": "any"
          },
          "state": {
            "title": "📍 State · Option B",
            "enum": [
              "any",
              "New South Wales",
              "Victoria",
              "Queensland",
              "Western Australia",
              "South Australia",
              "Tasmania",
              "Australian Capital Territory",
              "Northern Territory"
            ],
            "type": "string",
            "description": "Limits the search to one state or territory. The edge of a state can include a few listings just across the border.",
            "default": "any"
          },
          "bodyStyle": {
            "title": "🚘 Body style · Option B",
            "enum": [
              "any",
              "SUV",
              "Ute",
              "Hatch",
              "Sedan",
              "Wagon",
              "Coupe",
              "Convertible",
              "Van",
              "People Mover",
              "Cab Chassis"
            ],
            "type": "string",
            "description": "Limits the search to one body style.",
            "default": "any"
          },
          "fuelType": {
            "title": "⛽ Fuel · Option B",
            "enum": [
              "any",
              "Petrol",
              "Diesel",
              "Hybrid",
              "Electric"
            ],
            "type": "string",
            "description": "Limits the search to one fuel type.",
            "default": "any"
          },
          "transmission": {
            "title": "⚙️ Transmission · Option B",
            "enum": [
              "any",
              "Automatic",
              "Manual"
            ],
            "type": "string",
            "description": "Automatic or manual gearbox.",
            "default": "any"
          },
          "priceMin": {
            "title": "💲 Min price (AUD) · Option B",
            "minimum": 0,
            "type": "integer",
            "description": "Listings with no price are not matched when a price limit is set."
          },
          "priceMax": {
            "title": "💲 Max price (AUD) · Option B",
            "minimum": 0,
            "type": "integer",
            "description": "Highest asking price in AUD. Listings with no price are not matched when a price limit is set."
          },
          "yearMin": {
            "title": "📅 Oldest year · Option B",
            "minimum": 1900,
            "type": "integer",
            "description": "Oldest model year to include."
          },
          "yearMax": {
            "title": "📅 Newest year · Option B",
            "minimum": 1900,
            "type": "integer",
            "description": "Newest model year to include."
          },
          "odometerMax": {
            "title": "🛣️ Max odometer (km) · Option B",
            "minimum": 0,
            "type": "integer",
            "description": "Highest odometer reading in kilometres."
          },
          "maxResults": {
            "title": "🔢 Maximum listings per search",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "How many listings to collect from <b>each search</b>. The total is this number × the number of searches: 3 searches with 100 gives up to 300 listings. A listing link gives one. Listings found by more than one search are delivered once. Searches over carsales' own 440-result limit are split automatically.",
            "default": 100
          },
          "includeDetails": {
            "title": "📋 Include each listing's full page",
            "type": "boolean",
            "description": "For <b>searches</b>: also read every listing's own page — the full specification sheet, dealer comments, dealer phone number, dealer profile and listing metadata. Turn it off for search-result data only: about 5× faster and cheaper per listing. <b>Single-listing links always include the full page</b>, whatever this setting.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}