{
  "openapi": "3.0.1",
  "info": {
    "title": "AutoTrader.ca [$0.9💰] Canada · Filter Search + VIN/CarFax",
    "description": "Scrape AutoTrader.ca (Canada) by make, model, location, price, year, body, fuel, transmission, colour & power — no URL building. Full details per car: mileage, specs, dealer name + phone, all photos, stock #, plus optional VIN & CarFax. New & used, all provinces. JSON/CSV.",
    "version": "0.0",
    "x-build-id": "Fa7fXfS41KxJEw2z7"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/memo23~autotrader-ca-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-memo23-autotrader-ca-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~autotrader-ca-scraper/runs": {
      "post": {
        "operationId": "runs-sync-memo23-autotrader-ca-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~autotrader-ca-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-memo23-autotrader-ca-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",
        "required": [
          "maxItems"
        ],
        "properties": {
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Search pages (<code>/cars/toyota/corolla/on/toronto/…</code>) or listing pages (<code>/a/…</code>). A listing URL narrows the search to that make/model near that city.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "searchMake": {
            "title": "Make",
            "type": "string",
            "description": "Vehicle make, e.g. <strong>Toyota</strong>, <strong>Honda</strong>, <strong>Ford</strong>. Optional."
          },
          "searchModel": {
            "title": "Model",
            "type": "string",
            "description": "Vehicle model, e.g. <strong>Corolla</strong>, <strong>Civic</strong>. Only applied when a Make is set."
          },
          "searchLocation": {
            "title": "Location (city or postal code)",
            "type": "string",
            "description": "City, town, or postal code to centre the search on, e.g. <strong>Toronto</strong>, <strong>Montreal</strong>, <strong>H1S 1A9</strong>. Leave empty to search all of Canada."
          },
          "searchRadiusKm": {
            "title": "Search radius (km)",
            "type": "integer",
            "description": "Distance in km around the location. Ignored when no location is set.",
            "default": 100
          },
          "priceMin": {
            "title": "Minimum price (CAD)",
            "type": "integer",
            "description": "Lowest asking price. Clear or use 0 for no minimum."
          },
          "priceMax": {
            "title": "Maximum price (CAD)",
            "type": "integer",
            "description": "Highest asking price. Clear for no maximum."
          },
          "yearMin": {
            "title": "Minimum model year",
            "type": "integer",
            "description": "Oldest model year to include, e.g. 2018. Clear for no minimum."
          },
          "yearMax": {
            "title": "Maximum model year",
            "type": "integer",
            "description": "Newest model year to include, e.g. 2023. Clear for no maximum."
          },
          "maxMileageKm": {
            "title": "Maximum mileage (km)",
            "type": "integer",
            "description": "Highest odometer reading in kilometres, e.g. 100000. Clear for no maximum."
          },
          "minMileageKm": {
            "title": "Minimum mileage (km)",
            "type": "integer",
            "description": "Lowest odometer reading in kilometres. Clear for no minimum."
          },
          "condition": {
            "title": "Condition",
            "enum": [
              "all",
              "new",
              "used"
            ],
            "type": "string",
            "description": "Filter by new, used, or both.",
            "default": "all"
          },
          "bodyTypes": {
            "title": "Body type",
            "type": "array",
            "description": "Restrict to one or more body styles. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "14",
                "15",
                "6",
                "1",
                "12",
                "3",
                "2",
                "5",
                "7"
              ],
              "enumTitles": [
                "SUV",
                "Pickup Truck",
                "Sedan",
                "Hatchback",
                "Minivan",
                "Coupe",
                "Convertible",
                "Wagon",
                "Other"
              ]
            }
          },
          "fuelTypes": {
            "title": "Fuel type",
            "type": "array",
            "description": "Restrict to one or more fuel types. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "B",
                "D",
                "E",
                "2",
                "F",
                "C",
                "O"
              ],
              "enumTitles": [
                "Gasoline",
                "Diesel",
                "Electric",
                "Hybrid",
                "Flex Fuel",
                "CNG",
                "Other"
              ]
            }
          },
          "transmission": {
            "title": "Transmission",
            "enum": [
              "",
              "A",
              "M"
            ],
            "type": "string",
            "description": "Gearbox type.",
            "default": ""
          },
          "colors": {
            "title": "Exterior colour",
            "type": "array",
            "description": "Restrict to one or more exterior colours. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "11",
                "14",
                "6",
                "2",
                "10",
                "12",
                "7",
                "3",
                "1",
                "16",
                "15",
                "13",
                "5",
                "4"
              ],
              "enumTitles": [
                "Black",
                "White",
                "Grey",
                "Blue",
                "Red",
                "Silver",
                "Green",
                "Brown",
                "Beige",
                "Gold",
                "Orange",
                "Violet",
                "Yellow",
                "Bronze"
              ]
            }
          },
          "powerHpMin": {
            "title": "Minimum power (hp)",
            "type": "integer",
            "description": "Lowest engine power in horsepower. Clear for no minimum."
          },
          "powerHpMax": {
            "title": "Maximum power (hp)",
            "type": "integer",
            "description": "Highest engine power in horsepower. Clear for no maximum."
          },
          "equipmentIds": {
            "title": "Equipment / features (advanced)",
            "type": "array",
            "description": "Advanced: AutoScout24 equipment codes — a car must have ALL listed. E.g. 38, 13, 5. Leave empty unless you know the codes.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keywords",
            "type": "string",
            "description": "Free-text search across listings, e.g. <strong>sunroof leather</strong>. Optional."
          },
          "sort": {
            "title": "Sort by",
            "enum": [
              "standard",
              "price",
              "age",
              "mileage"
            ],
            "type": "string",
            "description": "Result ordering. Combine with 'Sort descending' for price high→low or newest first.",
            "default": "standard"
          },
          "sortDesc": {
            "title": "Sort descending",
            "type": "boolean",
            "description": "Reverse the sort order (e.g. price high→low, newest year first).",
            "default": false
          },
          "enrichVehicleHistory": {
            "title": "Add VIN + CarFax availability",
            "type": "boolean",
            "description": "Fetch each car's AutoTrader.ca page to add its <code>vin</code> and <code>carfaxAvailable</code> flag. Off by default. Adds one HTTP request per vehicle.",
            "default": false
          },
          "maxItems": {
            "title": "Max results",
            "type": "integer",
            "description": "Maximum number of vehicle detail records to collect.",
            "default": 1000
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "type": "integer",
            "description": "Maximum parallel requests.",
            "default": 10
          },
          "minConcurrency": {
            "title": "Min concurrency",
            "type": "integer",
            "description": "Minimum parallel requests.",
            "default": 1
          },
          "maxRequestRetries": {
            "title": "Max request retries",
            "type": "integer",
            "description": "Retries per failed request before giving up.",
            "default": 8
          },
          "proxy": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy servers used to reach the AutoTrader.ca API. Custom proxy URLs are also supported via JSON input.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}