{
  "openapi": "3.0.1",
  "info": {
    "title": "AutoTrader Scraper — UK Used Cars, Prices & Dealers",
    "description": "Scrape AutoTrader UK car listings by search URL or make/model + filters: price, price rating, mileage, year, specs, ULEZ, owners, dealer & rating, distance, photos; optional features & history check.",
    "version": "0.1",
    "x-build-id": "HWfWP2NBirF5uAYP2"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tortuga~autotrader-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tortuga-autotrader-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/tortuga~autotrader-scraper/runs": {
      "post": {
        "operationId": "runs-sync-tortuga-autotrader-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/tortuga~autotrader-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-tortuga-autotrader-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": {
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "AutoTrader UK search pages with filters set in the browser, e.g. https://www.autotrader.co.uk/car-search?postcode=SW1A1AA&radius=50&make=BMW&model=3%20Series&price-to=20000, or single adverts (https://www.autotrader.co.uk/car-details/<id>). Leave empty to use the Make / Model search below. Only autotrader.co.uk is supported.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "make": {
            "title": "Make",
            "type": "string",
            "description": "Brand as shown on AutoTrader, e.g. BMW, Ford, Volkswagen, Mercedes-Benz, Land Rover, Tesla. The filters below apply to this search only, not to Start URLs. Leave empty for all makes."
          },
          "model": {
            "title": "Model",
            "type": "string",
            "description": "Model as shown on AutoTrader, e.g. 3 Series, Golf, Fiesta, Qashqai, Range Rover Sport, Model 3. Needs a Make."
          },
          "postcode": {
            "title": "Postcode",
            "type": "string",
            "description": "UK postcode to search around (e.g. SW1A 1AA, M1 1AE). Adds the distance in miles to every listing. Without a radius the whole UK is searched."
          },
          "radiusMiles": {
            "title": "Radius (miles)",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Only cars within this many miles of the postcode (AutoTrader offers 1-200). Needs a Postcode. Leave empty for national."
          },
          "priceFrom": {
            "title": "Price from (GBP)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum asking price in pounds."
          },
          "priceTo": {
            "title": "Price to (GBP)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum asking price in pounds."
          },
          "yearFrom": {
            "title": "Year from",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Earliest year of manufacture, e.g. 2018."
          },
          "yearTo": {
            "title": "Year to",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Latest year of manufacture."
          },
          "mileageFrom": {
            "title": "Mileage from (miles)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum mileage in miles."
          },
          "mileageTo": {
            "title": "Mileage to (miles)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum mileage in miles."
          },
          "fuelTypes": {
            "title": "Fuel types",
            "type": "array",
            "description": "Only these fuel types. 'Hybrid' covers all petrol/diesel hybrids and plug-ins. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "Petrol",
                "Diesel",
                "Electric",
                "Hybrid",
                "Petrol Hybrid",
                "Petrol Plug-in Hybrid",
                "Diesel Hybrid",
                "Diesel Plug-in Hybrid",
                "Bi Fuel"
              ],
              "enumTitles": [
                "Petrol",
                "Diesel",
                "Electric",
                "Any hybrid",
                "Petrol hybrid",
                "Plug-in petrol hybrid",
                "Diesel hybrid",
                "Plug-in diesel hybrid",
                "Bi fuel"
              ]
            }
          },
          "gearbox": {
            "title": "Gearbox",
            "type": "array",
            "description": "Only these transmissions. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "Automatic",
                "Manual"
              ]
            }
          },
          "bodyTypes": {
            "title": "Body types",
            "type": "array",
            "description": "Only these body types. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "Hatchback",
                "SUV",
                "Saloon",
                "Estate",
                "Coupe",
                "Convertible",
                "MPV",
                "Pickup",
                "Camper",
                "Combi Van",
                "Minibus",
                "Car Derived Van",
                "Limousine"
              ]
            }
          },
          "colours": {
            "title": "Colours",
            "type": "array",
            "description": "Only these body colours. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "Black",
                "Blue",
                "Grey",
                "White",
                "Silver",
                "Red",
                "Green",
                "Orange",
                "Yellow",
                "Brown",
                "Bronze",
                "Purple",
                "Beige",
                "Gold",
                "Multicolour",
                "Pink"
              ]
            }
          },
          "sellerType": {
            "title": "Seller type",
            "enum": [
              "",
              "dealer",
              "private"
            ],
            "type": "string",
            "description": "Only dealers (trade) or only private sellers."
          },
          "condition": {
            "title": "Condition",
            "enum": [
              "",
              "used",
              "new"
            ],
            "type": "string",
            "description": "Only used or only new cars."
          },
          "keywords": {
            "title": "Keywords",
            "type": "string",
            "description": "Free-text keywords AutoTrader matches against the advert, e.g. 'heated seats' or 'full service history'."
          },
          "excludeWriteOffs": {
            "title": "Exclude insurance write-offs",
            "type": "boolean",
            "description": "Leave out cars recorded as insurance write-offs (Cat S / Cat N).",
            "default": false
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "most_recent",
              "relevance",
              "price_asc",
              "price_desc",
              "mileage_asc",
              "year_desc",
              "year_asc",
              "distance"
            ],
            "type": "string",
            "description": "Order of the Make / Model search. 'Most recent' is best for monitoring new listings. 'Relevance' and 'Distance' need a Postcode (otherwise most recent is used).",
            "default": "most_recent"
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many listings in total (across all searches). Keeps cost predictable. With 'Only new or changed items' on, this is the number of listings checked per run.",
            "default": 100
          },
          "includeDetails": {
            "title": "Include advert page details",
            "type": "boolean",
            "description": "Also open every advert page for the full feature list (by category), added extras, technical data (0-62, torque, dimensions, boot space), running costs (insurance group, mpg, tax), the full history-check list, MOT status, market price range, dealer coordinates and profile URL, all photos and videos. Charged as an extra 'detail' event per listing; one extra request per listing.",
            "default": false
          },
          "splitLargeSearches": {
            "title": "Split large searches",
            "type": "boolean",
            "description": "AutoTrader serves at most 400 listings per search. When a search has more and Max items asks for more, it is walked in price windows automatically so you can get all of them (results then come cheapest first).",
            "default": true
          },
          "onlyNewOrChanged": {
            "title": "Only new or changed items",
            "type": "boolean",
            "description": "Remember what earlier runs of this search returned and output only new items or items whose price/status changed. Use with a Schedule; unchanged items are not charged.",
            "default": false
          },
          "monitoringKey": {
            "title": "Monitoring key",
            "type": "string",
            "description": "Name for this watch, so several schedules on the same search stay separate; defaults to a key derived from the search input"
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify Proxy (datacenter) works for AutoTrader UK and is the default; occasional Cloudflare challenges are retried on a new IP automatically. No residential or Unblocker traffic is needed.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}