# AutoTrader.ca Scraper: Canada Cars, Vehicle Prices & Dealers (`hyperbach/autotrader-ca-scraper`) Actor

Scrape AutoTrader.ca car listings in Canada: by search URL with any filter, by make and model around a city with radius, price, year and mileage, or by listing URL. Price, mileage, year, trim, body, VIN where shown, dealer or private seller with city, photos. No login. Misses free.

- **URL**: https://apify.com/hyperbach/autotrader-ca-scraper.md
- **Developed by:** [Hyperbach](https://apify.com/hyperbach) (community)
- **Categories:** E-commerce, Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.29 / 1,000 listings

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## AutoTrader.ca Scraper: Canada Cars, Vehicle Prices & Dealers

**AutoTrader.ca car listings, logged out: AutoTrader.ca search URLs with every filter you set on the site, listing URLs, or a make and a model around a Canadian city or postal code with a radius and price, model-year and mileage filters in, one row per car out — title, price in CAD with the site's price rating and market median, mileage, year, make, model, trim, body, drivetrain, fuel, transmission, colours, the VIN where the site shows one, the stock number, the dealer or the private seller as shown with the city and province, a dealer's phone and address, every photo URL and the description — several searches in one run.** One free `search` row per input carries a completeness verdict: COMPLETE (the search's end), CAPPED (your limit), TRUNCATED (the site's own 4,000-listing limit, with its count) or PARTIAL. No login, no API key, no browser, proxies handled for you.

**$0.578 per 1,000 `listing` rows on the Free plan, $0.4913 on Starter.** A run start is $0.001008. The default input returns about 50 rows for about $0.029908. A value that names nothing is a free row that says why.

![An AutoTrader.ca listing page in a browser: a used SUV with its asking price, the market median of comparable cars, mileage, drivetrain, VIN and dealer. Beside it, the row this Actor returns for the car, with market_median_price and vin highlighted next to the price, mileage, drivetrain, body type, seller and city.](https://api.apify.com/v2/key-value-stores/dcLLNGq99686o2A4v/records/hero-autotrader-ca-scraper.webp)

### Why this AutoTrader.ca scraper

- **Search URLs or a make and a model.** Paste any AutoTrader.ca search URL (every filter you set on the site is kept), or give `honda civic`, `toyota rav4`, `land rover defender` one a line with a city (`Toronto, ON`) or a postal code (`M5V 3L9`), a radius and price, model-year and mileage limits.
- **The listing page on every row.** Each car's own page is read for the body, drivetrain, colours, doors, seats, cylinders, stock number, the market median price and the VIN where AutoTrader.ca shows one (in its Carfax report link: 6 of 12 and 3 of 25 cars on two runs of 2026-11-06). A page the site no longer serves leaves the search card's fields and says `details` not_read.
- **Prices you can sort.** The price as a number in CAD with the site's own text and price rating (`top-price`, `good-price` …), the market median of comparable cars, the mileage in km, the model year.
- **Dealer or private seller as shown.** A dealer's name, phone, address, page and coordinates; a private seller as the site shows them, with the city and province (the site shows no name, and no private person's phone, postcode or coordinates are delivered).
- **Every listing of a search, checked.** The site's own order, 20 listings a page, until the search's end: the free `search` row says COMPLETE with the site's count. The site shows a reader 200 pages (4,000 listings) of a search whatever its count (measured 2026-11-06): a run that reaches that end says TRUNCATED with the count. A listing two searches carry is delivered and charged once.
- **Honest runs.** AutoTrader.ca widens a make, a model or a place it does not know into a search of every car without a word; this actor reads what the site applied and gives such an input a free row that says so instead. A listing the site no longer has is a free `not_found` row, checked twice; every input gets a row.

### Who it's for

- **Car dealers and remarketing teams** — the prices, mileages and ages of a model around a Canadian city, with the market median, read again every day to see what is new.
- **Market and price analysts** — a make or a model across Canada or a province, with VINs where shown, for price and depreciation curves.
- **Lead generation for automotive services** — the dealers of a region or a make: their names, phones, addresses and what they list.

### Quick start

**Used cars from a search URL**

```json
{
  "startUrls": [
    "https://www.autotrader.ca/cars/ot_used?pricefrom=10000&priceto=16000&modelyearto=2007&atype=C&cy=CA"
  ],
  "maxItems": 50
}
```

**Two models around Toronto, with filters**

```json
{
  "searches": [
    "honda civic",
    "toyota rav4"
  ],
  "location": "Toronto, ON",
  "radiusKm": 50,
  "minYear": 2018,
  "maxPrice": 30000,
  "maxItems": 100
}
```

**One listing by its URL**

```json
{
  "startUrls": [
    "https://www.autotrader.ca/offers/honda-civic-sport-gasoline-grey-cat_ma31gr200622va2411tr7208-0c49f00e-46ed-4b6d-a9e0-08c051f378c0"
  ]
}
```

### Switching from `fayoussef/autotrader-canada`?

Your input works as it is. Each name in the left column is read as this Actor's own field and the run log says so (`read <theirs> as <ours>`); a name marked *not read* is ignored with a note. A value in the other Actor's shape, an object list or its own date form, is read too.

| fayoussef/autotrader-canada | this Actor | what to know |
|---|---|---|
| `start_urls` | `startUrls` | Search URLs and listing URLs, as strings or `{"url": …}` objects. |
| `max_items` | `maxItems` | The run's cap of listings, every search together. |
| `makes` | `searches` | Each make (with `models`: each make-and-model) becomes one search line. |
| `models` | `searches` | Read with one make: `Audi` + `A4`, `A6` give the searches `Audi A4` and `Audi A6`. |
| `postal_code` | `location` | A postal code or a city, as given. |
| `radius_km` | `radiusKm` | A number or a numeric string; another value takes the site's next radius. |
| `price_from` | `minPrice` | CAD. |
| `price_to` | `maxPrice` | CAD. |
| `model_year_from` | `minYear` | The model year. |
| `model_year_to` | `maxYear` | The model year. |
| `mileage_to_km` | `maxMileageKm` | Kilometres. |
| `mileage_from_km` | *not read* | Not read: put `kmfrom=` in a search URL. |
| `find_missing_vins` | *not read* | Not read: no lookup on Kijiji or CarGurus; the VIN is delivered where AutoTrader.ca shows it. |
| `vehicle_type` | *not read* | Not read: cars. For another vehicle type paste its AutoTrader.ca search URL. |
| `conditions` | *not read* | Not read: set new or used on the site and paste the search URL. |
| `seller_type` | *not read* | Not read: set dealer or private on the site and paste the search URL; every row says `seller_type`. |
| `body_types` | *not read* | Not read: set it on the site and paste the search URL. |
| `fuel_types` | *not read* | Not read: set it on the site and paste the search URL. |
| `transmission` | *not read* | Not read: set it on the site and paste the search URL. |
| `cylinders` | *not read* | Not read: set it on the site and paste the search URL. |
| `power_from` | *not read* | Not read: set it on the site and paste the search URL. |
| `power_to` | *not read* | Not read: set it on the site and paste the search URL. |
| `power_unit` | *not read* | Not read: part of the power filter. |
| `doors_from` | *not read* | Not read: set it on the site and paste the search URL. |
| `doors_to` | *not read* | Not read: set it on the site and paste the search URL. |
| `seats_from` | *not read* | Not read: set it on the site and paste the search URL. |
| `seats_to` | *not read* | Not read: set it on the site and paste the search URL. |
| `exterior_colors` | *not read* | Not read: set it on the site and paste the search URL. |
| `interior_colors` | *not read* | Not read: set it on the site and paste the search URL. |
| `upholstery` | *not read* | Not read: set it on the site and paste the search URL. |
| `equipment` | *not read* | Not read: set it on the site and paste the search URL; every row lists its `features`. |
| `listed_within_days` | *not read* | Not read: every row has `listed_at`. |
| `include_damaged` | *not read* | Not read: the site's default (damaged cars left out) holds; a search URL keeps its own setting. |
| `sort_by` | *not read* | Not read: a search URL keeps its own sort; a `searches` line reads the site's standard order. |
| `sort_descending` | *not read* | Not read: part of the sort. |
| `start_page` | *not read* | Not read: a search URL's own `page` is where the walk starts. |
| `end_page` | *not read* | Not read: use `maxItems`. |

**What differs:**

- `max_items` is `maxItems` here: one cap for the whole run, every search together; 0 reads every listing the site shows (4,000 a search at most).
- `makes` and `models` become `searches` lines: one make with its models gives one search per model; several makes give one search per make.
- The filter form's other fields (body, fuel, transmission, colours, equipment, seller type, sort) are not inputs here: set them on autotrader.ca and paste the search URL into `startUrls`; every filter in the URL is kept.
- Every row carries its listing page's details at the one listing price; there is no hidden-VIN lookup on other sites.

### Output

One row per listing (and one free search row per input):

| field | meaning |
|---|---|
| `record_type` | `listing` (one listing, charged) or `search` (the input's free row with the walk's verdict). |
| `status` | `ok`, or why an input gave no listing: `no_results`, `not_found`, `invalid_input`, `duplicate`, `failed`, `not_read`. |
| `input` | The value you gave that this row answers. |
| `id` | The listing's id on AutoTrader.ca (a UUID, the end of its URL). |
| `url` | The listing's page; on a search row, the URL the input was read as. |
| `title` | The listing's title as the site shows it (year, make, model). |
| `make` | The make. |
| `model` | The model. |
| `year` | The model year. |
| `trim` | The trim or version line as the seller wrote it. |
| `variant` | The site's model variant (`Civic Sedan`), where it has one. |
| `body_type` | The body type (Sedan, SUV, Pickup Truck …), from the listing page. |
| `condition` | `used`, `new`, `demonstration` … |
| `price` | The asking price in CAD. |
| `currency` | `CAD`. |
| `price_text` | The price as the site writes it (`$ 22,000`). |
| `price_rating` | The site's own price rating (`top-price`, `good-price`, `fair-price` …), where it rates the car. |
| `market_median_price` | The site's median price of comparable cars, in CAD, where it has one (listing page). |
| `mileage_km` | The mileage in km. |
| `fuel` | The fuel type. |
| `transmission` | Automatic, Manual or Semi-automatic. |
| `drivetrain` | The drivetrain (Front Wheel Drive, All Wheel Drive …), from the listing page. |
| `engine_cc` | The engine's displacement in cc. |
| `cylinders` | The number of cylinders (listing page). |
| `exterior_color` | The exterior colour as the seller names it (listing page). |
| `interior_color` | The interior colour (listing page). |
| `doors` | The number of doors (listing page). |
| `seats` | The number of seats (listing page). |
| `vin` | The VIN, where AutoTrader.ca shows it (in the listing's Carfax report link); empty otherwise. |
| `stock_number` | The dealer's stock number (listing page). |
| `carfax` | How the Carfax report is offered (`BuyCarFax`, `FreeCarFax` …), where the listing names it. |
| `seller_type` | `dealer` or `private`. |
| `seller_name` | A dealer's name; empty for a private seller (the site shows none). |
| `seller_phone` | A dealer's phone; never a private seller's. |
| `seller_url` | A dealer's page on the AutoScout24 group's dealer directory. |
| `dealer_address` | A dealer's street, city and postal code. |
| `city` | The car's city. |
| `province` | The car's province code (ON, QC, BC …), where the site gives it. |
| `postcode` | A dealer's postal code; empty for a private seller. |
| `latitude` | A dealer's latitude; empty for a private seller. |
| `longitude` | A dealer's longitude; empty for a private seller. |
| `image_urls` | Every photo URL (1280×960). |
| `images_count` | The number of photos. |
| `features` | The equipment the seller listed (Air conditioning, Heated Seats …), from the listing page. |
| `description` | The seller's description, as text. |
| `listed_at` | When the listing was created (UTC), from the listing page. |
| `leads` | The site's buyer-interest bucket (`Zero`, `Some`). |
| `details` | `read` when the listing page was read; `not_read` when the site did not serve it (the row then carries the search card's fields only). |
| `position` | The listing's place in the search's order (1 = first). |
| `page` | The search page the listing was on. |
| `listings_count` | On a search row: the site's own count of listings in the search. |
| `verdict` | On a search row: COMPLETE (read to the end), CAPPED (your limit), TRUNCATED (the site's 4,000-listing limit, with its count), PARTIAL (stopped: `note` says why). |
| `rows_delivered` | On a search row: the listing rows it delivered. |
| `pages_read` | On a search row: the search pages read. |
| `note` | Why a search row has the status or the verdict it has. |
| `scraped_at` | When this row was read (UTC). |

Example record:

```json
{
  "record_type": "listing",
  "status": "ok",
  "input": "https://www.autotrader.ca/cars/ot_used?pricefrom=10000&priceto=16000&modelyearto=2007&atype=C&cy=CA",
  "id": "8122ae24-fe2e-42c7-85c7-e6d11f08f3b7",
  "url": "https://www.autotrader.ca/offers/toyota-noah-japan-import-right-hand-drive-gasoline-white-cat_ma70gr19645-8122ae24-fe2e-42c7-85c7-e6d11f08f3b7",
  "title": "2003 Toyota Noah",
  "make": "Toyota",
  "model": "Noah",
  "year": 2003,
  "trim": "JAPAN IMPORT | RIGHT HAND DRIVE",
  "variant": null,
  "body_type": "Minivan",
  "condition": "used",
  "price": 10990,
  "currency": "CAD",
  "price_text": "$ 10,990",
  "price_rating": null,
  "market_median_price": null,
  "mileage_km": 94739,
  "fuel": "Gasoline",
  "transmission": "Automatic",
  "drivetrain": "Front Wheel Drive",
  "engine_cc": null,
  "cylinders": 4,
  "exterior_color": "White",
  "interior_color": "Grey",
  "doors": 4,
  "seats": null,
  "vin": "XXXXXAZR600254784",
  "stock_number": "5847",
  "carfax": "BuyCarFax",
  "seller_type": "dealer",
  "seller_name": "First Choice Motors",
  "seller_phone": "647-367-7998",
  "seller_url": "https://www.autoscout24.com/dealerinfo/first-choice-motors",
  "dealer_address": "1113 Finch Ave West, North York, M3J 2E5",
  "city": "North York",
  "province": "ON",
  "postcode": "M3J 2E5",
  "latitude": 43.76635,
  "longitude": -79.47576,
  "image_urls": [
    "https://prod.pictures.autoscout24.net/listing-images/8122ae24-fe2e-42c7-85c7-e6d11f08f3b7_5a50cffc-d93c-46c9-8fc2-85272a33df2c.jpg/1280x960.webp",
    "https://prod.pictures.autoscout24.net/listing-images/8122ae24-fe2e-42c7-85c7-e6d11f08f3b7_b75b9c92-3520-44be-9c55-f3b73ada3ebb.jpg/1280x960.webp",
    "https://prod.pictures.autoscout24.net/listing-images/8122ae24-fe2e-42c7-85c7-e6d11f08f3b7_21dc6883-a0b9-49da-9b6e-54b530ffddd7.jpg/1280x960.webp"
  ],
  "images_count": 27,
  "features": [],
  "description": "2003 TOYOTA NOAH\nWAS $14990 | NOW $10990\n94,000 KM | STK#5847\nABOUT THIS VEHICLE\nThis 2003 TOYOTA NOAH is equipped with:\n- Automatic Transmission\n- Right hand drive / RHD\n- Japan i …(truncated for display)",
  "listed_at": "2026-08-17T03:41:19.552Z",
  "leads": "Some",
  "details": "read",
  "position": 6,
  "page": 1,
  "listings_count": null,
  "verdict": null,
  "rows_delivered": null,
  "pages_read": null,
  "note": null,
  "scraped_at": "2026-11-06T19:08:00Z"
}
```

### Pricing

**Pay for the listings a run delivers**, plus one run start; no platform usage is billed to you. The listing price falls with your Apify plan.

| event | unit | Free | Starter | Scale | Business |
|---|---|---|---|---|---|
| Listing (`listing`) | per 1,000 | $0.578 | $0.4913 | $0.4046 | $0.289 |
| Run start (`start`) | per run | $0.001008 | $0.001008 | $0.001008 | $0.001008 |

A listing is **$0.578 per 1,000** on the Free plan ($0.000578 a listing), with its listing page's details (body, drivetrain, colours, the VIN where shown, the stock number, the market median) included. Each run that delivers a charged listing also pays the **run start, $0.001008 once**; a run that delivers no charged listing pays nothing at all. So one search of 100 listings costs $0.058808 on the Free plan, and several searches in one run share one start. The free `search` row of every input, a value that is not an AutoTrader.ca search or listing URL, a make, model or place the site does not know (`invalid_input`), a listing the site no longer has (`not_found`), a search with no match (`no_results`), a repeated listing URL (`duplicate`), an input left at the charge limit or the time limit (`not_read`) and a refusal the run could not pass (`failed`) are never charged. A listing is charged once a run, also when several searches list it. A run that stops early (a timeout, an abort) is charged for the listings it delivered. Before the first request the log names the price of each row at your plan and the most the run can cost. Enterprise plans have their own rates: the Actor's Pricing tab shows the price for your plan.

### Usage patterns

- **Searches and URLs** — `searches` takes a make, or a make and a model, one search a line, as AutoTrader.ca names them (`honda civic`, `mercedes-benz c-class`, `land rover defender`, `ford`), around `location` (a city such as `Toronto, ON` or a full postal code; empty = all of Canada) within `radiusKm` (10, 20, 50, 100, 150, 200, 250, 300 or 400 km; 0 = the site's own 100 km), with `minPrice`, `maxPrice`, `minYear`, `maxYear` and `maxMileageKm`. `startUrls` takes search URLs as your browser shows them on autotrader.ca (every filter is kept) and listing URLs (`/offers/<name>-<id>`) or bare listing ids. Old `/a/…` listing URLs are not read: the site sends them to a search page.
- **What a row is** — `record_type` = `listing`: one listing, in the site's order (`position`, and the `page` it was on), with its search card and its listing page. `record_type` = `search`: the free row of one input — `listings_count` (the site's own count), `rows_delivered`, `pages_read`, the `verdict` and the `note` with the reason.
- **How far a search goes** — `maxItems` (0 = every listing the site shows) stops the run after that many listings, every search together. The site shows a reader 200 pages (4,000 listings) of a search, whatever its count; a run that reaches that end says TRUNCATED with the count, and a model, a place, a price band or a year range read more of it.

### Input configuration

| field | type | default | what it does |
|---|---|---|---|
| `startUrls` | `array` | `[]` | AutoTrader.ca search URLs (set every filter on autotrader.ca and copy the address: each filter is kept) or listing URLs (https://www.autotrader.ca/offers/…) or bare listing ids. Old /a/… listing URLs are not read: the site sends them to a search page. |
| `searches` | `array` | `[]` | A make, or a make and a model, one search each: honda civic, toyota rav4, land rover defender, ford. Location, radius and the filters below apply to these searches. |
| `location` | `string` | `""` | A city (Toronto, ON) or a full postal code (M5V 3L9) for the searches. Empty: all of Canada. A place the site does not know gives a free row that says so. |
| `radiusKm` | `integer` | `0` | Distance around the location: 10, 20, 50, 100, 150, 200, 250, 300 or 400 km (another value takes the next larger). 0: the site's own 100 km. |
| `minPrice` | `integer` | `0` | Lowest price for the searches. 0: no limit. |
| `maxPrice` | `integer` | `0` | Highest price for the searches. 0: no limit. |
| `minYear` | `integer` | `0` | Oldest model year for the searches. 0: no limit. |
| `maxYear` | `integer` | `0` | Newest model year for the searches. 0: no limit. |
| `maxMileageKm` | `integer` | `0` | Highest mileage for the searches. 0: no limit. |
| `maxItems` | `integer` | `0` | The most listings of the whole run, every search together; 0 = every listing the site shows (at most 4,000 a search). |
| `feedback` | `string` |  | A note to the people who maintain this Actor: what you needed and did not get. For example a missing field, a wrong or empty result, or the Actor you switch from or to, and why. The run does not read it: the rows and the charges stay the same. A person reads every note. |

### Errors

**A run does not fail because of your input.** When an input cannot be used — a date that is not a date, an id in the wrong form, two settings that contradict each other — the run ends **Succeeded**, charges nothing, and says what to change:

- the status message starts with `INPUT REJECTED`;
- the dataset holds one row, `{"error": true, "code": "…", "message": "…"}`, and no results;
- the key-value store record `ERROR` holds the same object.

From code, check `error` on the first row before reading results.

A URL that is not an AutoTrader.ca search or listing URL (a dealer's page, an old /a/ listing URL, another site) is not an error: it gets one free `search` row with `status` invalid_input that says why, and the run goes on with the others. A run that ends **Failed** is a fault on our side, never your input; it charges nothing, and we are alerted.

### FAQ

**Which status is which?**

A search row's `status` is `ok` (listings served), `no_results` (the site lists nothing for it; read on two connections), `not_found` (the site answers 404 for the URL: the listing is gone; checked on two connections), `invalid_input` (an empty value, a URL that is not an AutoTrader.ca search or listing URL, or a make, model or place the site does not know), `duplicate` (a listing URL another input already delivered), `failed` (the site refused every try; free) or `not_read` (left at the cap, the charge limit or the run's time limit). A listing row's `status` is `ok`.

**Does every row have a VIN?**

No. AutoTrader.ca shows the VIN only inside the Carfax report link of a listing whose report is sold; new cars and listings with a free or dealer-requested report show none, and `vin` is then empty. This actor delivers the VIN where the site shows it and looks nothing up elsewhere.

**Does it give private sellers' names or phone numbers?**

No. AutoTrader.ca shows no name for a private seller, and a private person's phone, postcode and coordinates are not delivered; the city and province are. A dealer's name, phone, address and page are on the row.

**Does it need an AutoTrader.ca account or API key?**

No. Everything is read from AutoTrader.ca's public pages, logged out.

**Do I need Apify Proxy or my own proxy?**

No. The Actor uses its own connections, at no extra cost to you.

### Integration

#### JavaScript

```javascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_TOKEN' });
const run = await client.actor('hyperbach/autotrader-ca-scraper').call({"startUrls": ["https://www.autotrader.ca/cars/ot_used?pricefrom=10000&priceto=16000&modelyearto=2007&atype=C&cy=CA"], "maxItems": 50});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

#### Python

```python
from apify_client import ApifyClient
client = ApifyClient('YOUR_TOKEN')
run = client.actor('hyperbach/autotrader-ca-scraper').call(run_input={'startUrls': ['https://www.autotrader.ca/cars/ot_used?pricefrom=10000&priceto=16000&modelyearto=2007&atype=C&cy=CA'], 'maxItems': 50})
items = client.dataset(run['defaultDatasetId']).list_items().items
```

#### CLI

```bash
apify call hyperbach/autotrader-ca-scraper --input '{"startUrls": ["https://www.autotrader.ca/cars/ot_used?pricefrom=10000&priceto=16000&modelyearto=2007&atype=C&cy=CA"], "maxItems": 50}'
```

#### REST

```bash
curl -X POST "https://api.apify.com/v2/acts/hyperbach~autotrader-ca-scraper/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H 'Content-Type: application/json' -d '{"startUrls": ["https://www.autotrader.ca/cars/ot_used?pricefrom=10000&priceto=16000&modelyearto=2007&atype=C&cy=CA"], "maxItems": 50}'
```

#### AI agents and MCP

Apify's MCP server offers this Actor as a tool to Claude, Cursor, VS Code and any other MCP client. Connect `https://mcp.apify.com?tools=hyperbach/autotrader-ca-scraper` and ask, for example: "Get the used Honda Civic listings on AutoTrader.ca around Toronto with price, mileage, VIN and dealer". The agent fills the input from the table above and reads the rows from the run's dataset. A field under the name another Actor gives it is read as this Actor's own: `start_urls`, `urls`, `url`, `searchUrls` as `startUrls`; `makes`, `models`, `search`, `queries` as `searches`; `max_items`, `maxResults`, `max_results`, `limit` as `maxItems`; `postal_code`, `postalCode`, `zip`, `city` as `location` (and more). An agent or a person can add `feedback` to any run and say what was needed and not delivered: a missing field, a wrong or empty result, the Actor switched from or to, and why. The run returns the same rows at the same price, and a person reads every note.

#### n8n, Make and Zapier

The Apify node in n8n, the Apify app in Make and the Apify integration in Zapier run this Actor on a schedule or from a trigger and read its dataset. A webhook on the run's end (Integrations on the Actor page) sends the rows on to your own endpoint. Nothing to install on our side.

### Support

**Disagree with a charge?** Write to apify@hyperbach.com with the run ID. We will ask Apify to compensate you, and the charge comes back to your Apify account as platform credit.

**Did it do the job?** A short [review on the Store](https://apify.com/hyperbach/autotrader-ca-scraper/reviews), at any rating, helps the next buyer choose.

### See also

- **[Facebook Marketplace Scraper](https://apify.com/hyperbach/facebook-marketplace-scraper)** — Marketplace listings by search, category and city: the price, the date listed and the seller, and on request the description and the vehicle facts.
- **[Avito Scraper](https://apify.com/hyperbach/avito-scraper)** — Avito.ru listings by search words, category or URL, with the price, the city, the seller type and the images.
- **[Kleinanzeigen Scraper](https://apify.com/hyperbach/kleinanzeigen-scraper)** — Kleinanzeigen.de listings by search words and place, with the price, the postcode, the seller type and shipping.
- **[AutoScout24 Scraper](https://apify.com/hyperbach/autoscout24-scraper)** — AutoScout24 car listings in eight European markets by make, model and place, with the price, mileage, first registration and the dealer.
- **[Leboncoin Scraper](https://apify.com/hyperbach/leboncoin-scraper)** — Leboncoin.fr listings by search words, category and place or by URL, with the price, the postcode, the seller type and the images.
- **[Mercari Japan Scraper](https://apify.com/hyperbach/mercari-scraper)** — Mercari Japan items by search URL, keyword or item link: the price in yen, sold or on sale, the condition, shipping, likes, the seller and the photos.

*This page is generated from the Actor's schemas and a live sample — it cannot describe a field the Actor does not have.*

# Actor input Schema

## `startUrls` (type: `array`):

AutoTrader.ca search URLs (set every filter on autotrader.ca and copy the address: each filter is kept) or listing URLs (https://www.autotrader.ca/offers/…) or bare listing ids. Old /a/… listing URLs are not read: the site sends them to a search page.

## `searches` (type: `array`):

A make, or a make and a model, one search each: honda civic, toyota rav4, land rover defender, ford. Location, radius and the filters below apply to these searches.

## `location` (type: `string`):

A city (Toronto, ON) or a full postal code (M5V 3L9) for the searches. Empty: all of Canada. A place the site does not know gives a free row that says so.

## `radiusKm` (type: `integer`):

Distance around the location: 10, 20, 50, 100, 150, 200, 250, 300 or 400 km (another value takes the next larger). 0: the site's own 100 km.

## `minPrice` (type: `integer`):

Lowest price for the searches. 0: no limit.

## `maxPrice` (type: `integer`):

Highest price for the searches. 0: no limit.

## `minYear` (type: `integer`):

Oldest model year for the searches. 0: no limit.

## `maxYear` (type: `integer`):

Newest model year for the searches. 0: no limit.

## `maxMileageKm` (type: `integer`):

Highest mileage for the searches. 0: no limit.

## `maxItems` (type: `integer`):

The most listings of the whole run, every search together; 0 = every listing the site shows (at most 4,000 a search).

## `feedback` (type: `string`):

A note to the people who maintain this Actor: what you needed and did not get. For example a missing field, a wrong or empty result, or the Actor you switch from or to, and why. The run does not read it: the rows and the charges stay the same. A person reads every note.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.autotrader.ca/cars/ot_used?pricefrom=10000&priceto=16000&modelyearto=2007&atype=C&cy=CA"
  ],
  "searches": [],
  "location": "",
  "radiusKm": 0,
  "minPrice": 0,
  "maxPrice": 0,
  "minYear": 0,
  "maxYear": 0,
  "maxMileageKm": 0,
  "maxItems": 50
}
```

# Actor output Schema

## `results` (type: `string`):

All scraped records in the default dataset. One row per listing (and one free search row per input):

## `runSummary` (type: `string`):

How the run went: listing rows charged, free rows, inputs by status with each search's count, pages read and verdict, the listing pages not served, the source counters (calls, served, refused, exits, rotations, bytes) and the memory watch.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "startUrls": [
        "https://www.autotrader.ca/cars/ot_used?pricefrom=10000&priceto=16000&modelyearto=2007&atype=C&cy=CA"
    ],
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("hyperbach/autotrader-ca-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "startUrls": ["https://www.autotrader.ca/cars/ot_used?pricefrom=10000&priceto=16000&modelyearto=2007&atype=C&cy=CA"],
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("hyperbach/autotrader-ca-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "startUrls": [
    "https://www.autotrader.ca/cars/ot_used?pricefrom=10000&priceto=16000&modelyearto=2007&atype=C&cy=CA"
  ],
  "maxItems": 50
}' |
apify call hyperbach/autotrader-ca-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,hyperbach/autotrader-ca-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/DPmDbKWLLjnEpORs1/builds/q5jxBaW9Y1IBtdXJZ/openapi.json
