{
  "openapi": "3.0.1",
  "info": {
    "title": "Autotrader UK Scraper: Used Car Listings, Prices & Dealers",
    "description": "Autotrader UK scraper for used and new cars, vans, motorbikes, motorhomes, caravans, trucks, farm and plant. Filter by make, model, price, year, mileage, fuel, gearbox and postcode radius; get price, mileage, year, dealer, town and photos. Up to 20,000 listings per run, or a daily new-listings feed.",
    "version": "0.1",
    "x-build-id": "wfDsZyectCCgUx3yh"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automatic~autotrader-uk-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automatic-autotrader-uk-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/automatic~autotrader-uk-scraper/runs": {
      "post": {
        "operationId": "runs-sync-automatic-autotrader-uk-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/automatic~autotrader-uk-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-automatic-autotrader-uk-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": {
          "vehicleType": {
            "title": "Vehicle type",
            "enum": [
              "cars",
              "vans",
              "bikes",
              "motorhomes",
              "caravans",
              "trucks",
              "farm",
              "plant"
            ],
            "type": "string",
            "description": "Which Autotrader section to search. Ignored for pasted search links, which carry their own section.",
            "default": "cars"
          },
          "postcode": {
            "title": "Postcode",
            "type": "string",
            "description": "A full UK postcode, for example M1 1AE. Distances are measured from here. Leave empty to search the whole UK."
          },
          "radiusMiles": {
            "title": "Radius (miles)",
            "minimum": 1,
            "maximum": 1500,
            "type": "integer",
            "description": "Only listings within this many miles of the postcode. Ignored when the postcode is empty (the whole UK is searched)."
          },
          "make": {
            "title": "Make",
            "type": "string",
            "description": "As Autotrader writes it, for example BMW, Volkswagen or Land Rover (Mercedes and VW are understood too). Several makes: separate with commas."
          },
          "model": {
            "title": "Model",
            "type": "string",
            "description": "As Autotrader writes it, for example 3 Series, Golf or Transit Custom. A misspelt make or model finds nothing rather than everything."
          },
          "keywords": {
            "title": "Keywords",
            "type": "string",
            "description": "Words in the advert, for example 'panoramic roof' or 'full service history'."
          },
          "priceMin": {
            "title": "Minimum price (£)",
            "minimum": 0,
            "type": "integer",
            "description": "Full price in pounds."
          },
          "priceMax": {
            "title": "Maximum price (£)",
            "minimum": 0,
            "type": "integer",
            "description": "Full price in pounds."
          },
          "yearFrom": {
            "title": "Year from",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Earliest year of manufacture (first registration year)."
          },
          "yearTo": {
            "title": "Year to",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Latest year of manufacture. Setting it leaves out brand-new stock."
          },
          "mileageMin": {
            "title": "Minimum mileage",
            "minimum": 0,
            "type": "integer",
            "description": "Miles (kilometres for trucks). Not available for caravans, farm or plant machinery."
          },
          "mileageMax": {
            "title": "Maximum mileage",
            "minimum": 0,
            "type": "integer",
            "description": "Miles (kilometres for trucks). Not available for caravans, farm or plant machinery."
          },
          "fuelType": {
            "title": "Fuel type",
            "type": "array",
            "description": "One or more of: Petrol, Diesel, Electric, Hybrid, Plug-in petrol, Plug-in diesel, Petrol hybrid, Diesel hybrid, Bi Fuel. Cars, vans, bikes, motorhomes and trucks.",
            "items": {
              "type": "string"
            }
          },
          "transmission": {
            "title": "Gearbox",
            "type": "array",
            "description": "Manual or Automatic (motorhomes also Semi-automatic). Cars, vans, motorhomes and trucks.",
            "items": {
              "type": "string"
            }
          },
          "bodyType": {
            "title": "Body type",
            "type": "array",
            "description": "As Autotrader lists them, for example SUV, Hatchback, Estate, Saloon, Coupe, Convertible, MPV, Pickup (cars), Panel Van, Combi Van (vans), Campervan, Coach Built (motorhomes), Naked, Adventure, Scooter (bikes).",
            "items": {
              "type": "string"
            }
          },
          "sellerType": {
            "title": "Seller type",
            "enum": [
              "any",
              "trade",
              "private"
            ],
            "type": "string",
            "description": "Not available for trucks, farm or plant machinery.",
            "default": "any"
          },
          "condition": {
            "title": "New or used",
            "enum": [
              "any",
              "used",
              "new"
            ],
            "type": "string",
            "description": "Brand new stock, used, or both.",
            "default": "any"
          },
          "writeOffs": {
            "title": "Insurance write-offs",
            "enum": [
              "include",
              "exclude",
              "only"
            ],
            "type": "string",
            "description": "Category N/S (and older C/D) insurance write-offs. Cars, vans, bikes and motorhomes.",
            "default": "include"
          },
          "sort": {
            "title": "Sort order",
            "enum": [
              "newest",
              "relevance",
              "price_asc",
              "price_desc",
              "mileage",
              "year_desc",
              "year_asc",
              "distance"
            ],
            "type": "string",
            "description": "Order of results within each search. Price orders stay exact for any number of listings; the other orders are exact for the first 2,000 listings of a search, after which the rest arrives in price bands.",
            "default": "newest"
          },
          "startUrls": {
            "title": "Autotrader search links",
            "type": "array",
            "description": "Paste up to 10 search links from autotrader.co.uk (car-search, van-search, bike-search, motorhome-search and so on). Each link keeps its own filters. With an empty link list, set form filters or choose another vehicle type to run a search. A link this Actor cannot reproduce exactly is skipped and named in the run summary.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxResults": {
            "title": "Maximum listings",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Most listings saved per run, up to 20,000, shared fairly between your search links. Listings are saved as they are found, so a run that hits its time limit keeps everything collected. Allow about 1 minute per 1,000 listings. In monitor mode this caps new and changed listings delivered.",
            "default": 100
          },
          "monitorMode": {
            "title": "Monitor mode",
            "enum": [
              "off",
              "new",
              "priceChanges"
            ],
            "type": "string",
            "description": "For scheduled runs: deliver (and pay for) only listings you have not received before, optionally also listings whose price changed. The first run delivers everything up to Maximum listings.",
            "default": "off"
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Optional label to keep separate histories for monitors with the same filters, up to 100 characters. Changing the filters starts a new history automatically."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}