Autotrader Scraper
Pricing
from $1.00 / 1,000 car listings
Go to Apify Store
Autotrader Scraper
Collect Autotrader.com car listings by ZIP, search URL, or make and model filters. Export price, mileage, specs, dealer details, and listing URLs.
Autotrader Scraper
Pricing
from $1.00 / 1,000 car listings
Collect Autotrader.com car listings by ZIP, search URL, or make and model filters. Export price, mileage, specs, dealer details, and listing URLs.
You can access the Autotrader Scraper programmatically from your own applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in API & Integrations in Apify Console.
1import { ApifyClient } from 'apify-client';2
3// Initialize the ApifyClient with your Apify API token4// Replace the '<YOUR_API_TOKEN>' with your token5const client = new ApifyClient({6 token: '<YOUR_API_TOKEN>',7});8
9// Prepare Actor input10const input = {11 "searchUrl": "https://www.autotrader.com/cars-for-sale/all-cars?zip=72076&searchRadius=50",12 "allListingType": "all-cars",13 "zip": "72076",14 "searchRadius": 50,15 "makeCodes": [16 "BMW",17 "TOYOTA"18 ],19 "listingTypes": [20 "USED",21 "NEW",22 "CERTIFIED",23 "3P_CERT"24 ],25 "sellerTypes": [26 "d",27 "p"28 ],29 "newSearch": true,30 "sortBy": "relevance",31 "maxItems": 0,32 "proxyConfiguration": {33 "useApifyProxy": true,34 "apifyProxyGroups": [35 "RESIDENTIAL"36 ]37 }38};39
40// Run the Actor and wait for it to finish41const run = await client.actor("scraptivo/autotrader-scraper").call(input);42
43// Fetch and print Actor results from the run's dataset (if any)44console.log('Results from dataset');45console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);46const { items } = await client.dataset(run.defaultDatasetId).listItems();47items.forEach((item) => {48 console.dir(item);49});50
51// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docsThe Apify API client for JavaScript is the official library that allows you to use Autotrader Scraper API in JavaScript or TypeScript, providing convenience functions and automatic retries on errors.
Install the apify-client
$npm install apify-clientOther API clients include: