Autotrader UK Scraper avatar

Autotrader UK Scraper

Try for free

3 days trial then $30.00/month - No credit card required now

View all Actors
Autotrader UK Scraper

Autotrader UK Scraper

epctex/autotradercouk-scraper
Try for free

3 days trial then $30.00/month - No credit card required now

Extract comprehensive vehicle and machinery data from Autotrader.co.uk without an API. Search results and listing details in one powerful tool.

You can access the Autotrader UK Scraper programmatically from your own JavaScript 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 Integrations settings in Apify Console.

1import { ApifyClient } from 'apify-client';
2
3// Initialize the ApifyClient with your Apify API token
4// Replace the '<YOUR_API_TOKEN>' with your token
5const client = new ApifyClient({
6    token: '<YOUR_API_TOKEN>',
7});
8
9// Prepare Actor input
10const input = {
11    "startUrls": [
12        "https://www.autotrader.co.uk/car-search?page=2&postcode=E1%207DJ&sort=relevance",
13        "https://www.autotrader.co.uk/motorhome-search?postcode=E1%207DJ&berth=2&include-delivery-option=on&advertising-location=at_motorhomes&page=1",
14        "https://www.autotrader.co.uk/caravan-search?postcode=E1%207DJ&include-delivery-option=on&advertising-location=at_caravans&page=1",
15        "https://www.autotrader.co.uk/truck-search?postcode=E1%207DJ&make=DAF&include-delivery-option=on&advertising-location=at_trucks",
16        "https://www.autotrader.co.uk/farm-search?postcode=E1%207DJ&category=ATVS&include-delivery-option=on&advertising-location=at_farm",
17        "https://www.autotrader.co.uk/plant-search?postcode=E1%207DJ&category=ATTACHMENTS&include-delivery-option=on&advertising-location=at_plants",
18        "https://www.autotrader.co.uk/car-details/202306299089853",
19        "https://www.autotrader.co.uk/car-details/202304266675832?journey=FEATURED_LISTING_JOURNEY&advertising-location=at_cars&include-delivery-option=on&make=Audi&model=A6%20Saloon&page=1&postcode=E1%207DJ&fromsra",
20        "https://www.autotrader.co.uk/van-details/202306148523378?journey=FEATURED_LISTING_JOURNEY&advertising-location=at_vans&include-delivery-option=on&page=1&postcode=E1%207DJ&fromsra",
21        "https://www.autotrader.co.uk/bike-details/202303074975713?journey=FEATURED_LISTING_JOURNEY&advertising-location=at_bikes&include-delivery-option=on&page=1&postcode=E1%207DJ&fromsra",
22        "https://www.autotrader.co.uk/motorhome-details/202212162575381?journey=FEATURED_LISTING_JOURNEY&advertising-location=at_motorhomes&include-delivery-option=on&page=1&postcode=E1%207DJ&fromsra",
23        "https://www.autotrader.co.uk/caravan-details/202306138460879?advertising-location=at_caravans&include-delivery-option=on&page=1&postcode=E1%207DJ&fromsra",
24        "https://www.autotrader.co.uk/truck-details/202306128433310?journey=FEATURED_LISTING_JOURNEY&advertising-location=at_trucks&include-delivery-option=on&postcode=E1%207DJ&fromsra",
25        "https://www.autotrader.co.uk/plant-machinery-details/202304276732947?journey=FEATURED_LISTING_JOURNEY&advertising-location=at_plants&include-delivery-option=on&postcode=E1%207DJ&fromsra",
26        "https://www.autotrader.co.uk/farm-machinery-details/202305107209361?journey=YOU_MAY_ALSO_LIKE_JOURNEY&advertising-location=at_farm&include-delivery-option=on&postcode=E1%207DJ&fromsra"
27    ],
28    "maxItems": 20,
29    "endPage": 1,
30    "proxy": {
31        "useApifyProxy": true
32    }
33};
34
35// Run the Actor and wait for it to finish
36const run = await client.actor("epctex/autotradercouk-scraper").call(input);
37
38// Fetch and print Actor results from the run's dataset (if any)
39console.log('Results from dataset');
40console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
41const { items } = await client.dataset(run.defaultDatasetId).listItems();
42items.forEach((item) => {
43    console.dir(item);
44});
45
46// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

Autotrader UK Scraper API in JavaScript

The Apify API client for JavaScript is the official library that allows you to use Autotrader UK Scraper API in JavaScript or TypeScript, providing convenience functions and automatic retries on errors.

Install the apify-client

npm install apify-client

Other API clients include:

Developer
Maintained by Community
Actor metrics
  • 5 monthly users
  • 3 stars
  • 100.0% runs succeeded
  • Created in Jul 2023
  • Modified about 12 hours ago