Actor picture

Autotrader Scraper


Extract data about new and used cars from the Autotrader website. For the scrape, you can filter by car make, style, year, mileage, etc. As the output, you'll get only the cars you need, in several formats.

No credit card required

Author's avatarEmiliano Mastragostino
  • Modified
  • Users210
  • Runs839
Actor picture
Autotrader Scraper

Autotrader Scraper is an Apify actor for searching and extracting data from Autotrader web site. It is build on top of Apify SDK and you can run it both on Apify platform and locally.


'enablePredefinedFilters' must be true OR 'startUrls' must be provided.

Field Type Description
enablePredefinedFilters boolean (Required if 'startUrls' is not provided) Enable predefined filter section
zipcode integer Location zipcode for search
searchWithin integer Radius of the search with zipcode as center (in Miles)
condition string Condition of the car to search
minimumPrice string Minimum price filter
maximumPrice string Maximum price filter
style string Style of the car to search
driveType string Type of car drive
fromYear string Minimum year of the car
toYear string Maximum year of the car
make string Car make
mileage string Miliage of the car
startUrls array (Optional if 'predefined filters' are enabled) List of search URLs to start the scraping. It must be a search url including querystring for filters. Check next chapter for details
maxItems integer Limit of items to be scraped. Zero value means no limit
extendOutputFunction string (optional) Function that takes a JQuery handle ($) as argument and returns data that will be merged with the default output. More information in Extend output function
proxyConfiguration object (optional) Proxy settings of the run. If you have access to Apify proxy, leave the default settings. If not, you can set { "useApifyProxy": false" } to disable proxy usage or use your own proxy server(s)

INPUT Example with predefined filters

Predefined filters are: zipcode, searchWithin, condition, minimumPrice, maximumPrice, style, driveType, fromYear, toYear, make and mileage. You can omit some, or set them to 'ANY'.

  "enablePredefinedFilters": true,
  "zipcode": 90001,
  "searchWithin": 200,
  "condition": "USED",
  "minimumPrice": "1000",
  "maximumPrice": "8000",
  "style": "VANMV",
  "driveType": "ANY",
  "fromYear": "2001",
  "toYear": "2018",
  "make": "ANY",
  "mileage": "200000",
  "maxItems": 0,
  "extendOutputFunction": "($) => { return { test: 1234, test2: 5678 } }",
  "proxyConfiguration": {
    "useApifyProxy": true

INPUT Example with start urls

(Optional if 'predefined filters' are enabled) Search is based on URL query string. You can insert multiple URLs. Filters must be in the query string, each URL query string can contain any allowed filter from Autotrader advanced search.

Base url is:,SEDAN,SUVCROSS,WAGON&startYear=2005&endYear=2020&driveGroup=AWD4WD,FWD,RWD&engineCodes=5CLDR,6CLDR&transmissionCodes=AUT,MAN&fuelTypeGroup=GSL,DSL,HYB&doorCodes=4,5&extColorsSimple=BLACK,BLUE


Output is stored in a dataset.

Example of one output item:

  "url": "",
  "title": "Used 2016 Dodge Grand Caravan SXT",
  "price": 11888,
  "imageURL1": "",
  "imageURL2": "",
  "imageURL3": "",
  "imageURL4": "",
  "mileage": 84822,
  "driveType": "2 wheel drive - front",
  "engine": "6-Cylinder",
  "transmission": "6-Speed Automatic",
  "fuelType": "Flexible Fuel",
  "mpg": "17 City / 25 Highway",
  "exterior": "Granite Crystal Metallic Clearcoat",
  "interior": "Black",
  "stockNumber": "M53389",
  "vin": "2C4RDGCG6GR367126",
  "searchUrl": ""

Extend output function

You can use this function to update the default output of this actor. This function gets a JQuery handle $ as an argument so you can choose what data from the page you want to scrape. The output from this will function will get merged with the default output.

The return value of this function has to be an object!

You can return fields to achieve 3 different things:

  • Add a new field - Return object with a field that is not in the default output
  • Change a field - Return an existing field with a new value
  • Remove a field - Return an existing field with a value undefined

The following example will add a new field:

($) => {
    return {
        comment: 'This is a comment',

Open an issue

If you find any bug, please create an issue on the actor Github page.


See how Autotrader Scraper is used in industries around the world