{
  "openapi": "3.0.1",
  "info": {
    "title": "AutoTrader.ca Scraper — Canada Car Prices, Dealers & Deals",
    "description": "Scrape AutoTrader.ca car listings across Canada: price, deal rating, km, year, make/model, trim, transmission, fuel, photos, dealer name, phone and address. Optional full details (body, colour, features, market price, CARFAX) and a dealer leads mode. No login.",
    "version": "0.1",
    "x-build-id": "oXBbIHDTgZmLpcaoh"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/yugenox~autotrader-ca-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-yugenox-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/yugenox~autotrader-ca-scraper/runs": {
      "post": {
        "operationId": "runs-sync-yugenox-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/yugenox~autotrader-ca-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-yugenox-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",
        "properties": {
          "locations": {
            "title": "📍 Locations",
            "type": "array",
            "description": "Where to search: a city with its province (\"Toronto, ON\", \"Richmond Hill, ON\", \"Calgary, AB\", \"Montréal, QC\"), a whole province (\"Ontario\", \"BC\") or \"Canada\". Each location is a separate search. Leave empty to search all of Canada.",
            "items": {
              "type": "string"
            }
          },
          "make": {
            "title": "Make",
            "type": "string",
            "description": "Optional make as written on AutoTrader.ca, e.g. \"Honda\", \"Toyota\", \"Mercedes-Benz\", \"Land Rover\". Leave empty for all makes."
          },
          "model": {
            "title": "Model",
            "type": "string",
            "description": "Optional model of that make, e.g. \"Civic\", \"RAV4\", \"F-150\", \"3 Series\". Needs a make."
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 0,
            "maximum": 50000,
            "type": "integer",
            "description": "Maximum number of listings (or dealers in Dealers mode) for the whole run, shared fairly between your locations. 0 = everything (up to 50,000). AutoTrader.ca pages through 4,000 listings per search; bigger searches are split by price automatically.",
            "default": 100
          },
          "mode": {
            "title": "What to collect",
            "enum": [
              "listings",
              "dealers"
            ],
            "type": "string",
            "description": "Listings = one row per car. Dealers = one row per dealership found in the results (name, phone, address, how many of its cars were seen, makes, price range) — for lead generation. Private sellers are never listed as dealers.",
            "default": "listings"
          },
          "includeDetails": {
            "title": "Include full details",
            "type": "boolean",
            "description": "Also open each listing's page for body type, exterior/interior colour, doors, seats, cylinders, drivetrain, fuel economy, the full features list, stock number, posted date, AutoTrader.ca's market median price, the free CARFAX link and the dealer's rating. One extra page per listing (charged as \"Listing details\").",
            "default": false
          },
          "startUrls": {
            "title": "🔗 AutoTrader.ca URLs",
            "type": "array",
            "description": "Optional: search URLs copied from autotrader.ca after setting any filters there (www.autotrader.ca/cars/…, all filters in the URL are kept) and/or listing URLs (www.autotrader.ca/offers/…). Listing URLs always come with full details (charged as a listing + listing details).",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "condition": {
            "title": "Condition",
            "enum": [
              "all",
              "new",
              "used",
              "demo",
              "classic"
            ],
            "type": "string",
            "description": "New, used or both (the site's default).",
            "default": "all"
          },
          "sellerType": {
            "title": "Seller",
            "enum": [
              "all",
              "dealer",
              "private"
            ],
            "type": "string",
            "description": "Dealers, private sellers or both.",
            "default": "all"
          },
          "priceMin": {
            "title": "Min price (CAD)",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest asking price."
          },
          "priceMax": {
            "title": "Max price (CAD)",
            "minimum": 0,
            "type": "integer",
            "description": "Highest asking price."
          },
          "yearMin": {
            "title": "Year from",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Oldest model year, e.g. 2018."
          },
          "yearMax": {
            "title": "Year to",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Newest model year."
          },
          "mileageMin": {
            "title": "Min km",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest odometer reading in kilometres."
          },
          "mileageMax": {
            "title": "Max km",
            "minimum": 0,
            "type": "integer",
            "description": "Highest odometer reading in kilometres, e.g. 100000."
          },
          "bodyTypes": {
            "title": "Body types",
            "type": "array",
            "description": "Only these body types. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "SUV",
                "SEDAN",
                "PICKUP",
                "HATCHBACK",
                "COUPE",
                "MINIVAN",
                "WAGON",
                "CONVERTIBLE",
                "OTHER"
              ],
              "enumTitles": [
                "SUV",
                "Sedan",
                "Pickup truck",
                "Hatchback",
                "Coupe",
                "Minivan",
                "Wagon",
                "Convertible",
                "Other"
              ]
            }
          },
          "fuelTypes": {
            "title": "Fuel",
            "type": "array",
            "description": "Only these fuel types. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "GASOLINE",
                "HYBRID",
                "ELECTRIC",
                "DIESEL",
                "FLEX_FUEL",
                "NATURAL_GAS",
                "PROPANE",
                "OTHER"
              ],
              "enumTitles": [
                "Gasoline",
                "Gas/electric hybrid",
                "Electric",
                "Diesel",
                "Flex fuel",
                "Natural gas",
                "Propane",
                "Other"
              ]
            }
          },
          "transmission": {
            "title": "Transmission",
            "enum": [
              "all",
              "automatic",
              "manual"
            ],
            "type": "string",
            "description": "Automatic, manual or both.",
            "default": "all"
          },
          "radiusKm": {
            "title": "Radius (km)",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Search radius around a city. AutoTrader.ca offers 10, 20, 50, 100, 150, 200, 250, 300 and 400 km; the nearest one is used. Empty = the site's default (100 km)."
          },
          "sort": {
            "title": "Sort by",
            "enum": [
              "newest",
              "price_asc",
              "price_desc",
              "mileage_asc",
              "year_desc",
              "distance",
              "relevance"
            ],
            "type": "string",
            "description": "Order of the results. Newest first is best for daily monitoring.",
            "default": "newest"
          },
          "excludeDeliverable": {
            "title": "Only cars in the area",
            "type": "boolean",
            "description": "AutoTrader.ca mixes in cars from dealers outside your radius who deliver to it. Turn this on to leave those out (they are not charged; a results page that held nothing else counts as one empty results page).",
            "default": false
          },
          "onlyNew": {
            "title": "Only new listings",
            "type": "boolean",
            "description": "Skip listings (or dealers) that an earlier run with the same input already saved — they are not charged (a results page holding nothing new counts as one empty results page, $0.0001). Ideal for a daily schedule.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify Proxy (datacenter) is used by default and included in every plan.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}