{
  "openapi": "3.0.1",
  "info": {
    "title": "Autotrader UK Scraper — Car Listings, Prices & Dealers",
    "description": "Scrape used & new car listings from autotrader.co.uk with full spec, dealer contact, history check, and price indicator. MCP/API-ready.",
    "version": "0.2",
    "x-build-id": "aSxRRxKdUhYdJt9K8"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/khadinakbar~autotrader-uk-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-khadinakbar-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/khadinakbar~autotrader-uk-scraper/runs": {
      "post": {
        "operationId": "runs-sync-khadinakbar-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/khadinakbar~autotrader-uk-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-khadinakbar-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": {
          "make": {
            "title": "Make",
            "type": "string",
            "description": "Car manufacturer to search for, e.g. 'BMW', 'Ford', 'Tesla'. Use the brand exactly as Autotrader spells it. Leave empty to search all makes. NOT a model name — set the model in the Model field."
          },
          "model": {
            "title": "Model",
            "type": "string",
            "description": "Model within the chosen make, e.g. '3 Series', 'Fiesta', 'Model 3'. Requires Make to be set. Leave empty to return every model of the make. NOT a trim/derivative — use Keywords for trim text."
          },
          "postcode": {
            "title": "Postcode",
            "type": "string",
            "description": "UK postcode used as the search origin for distance and local availability, e.g. 'M1 1AD' or 'SW1A 1AA'. Defaults to 'M1 1AD' (Manchester). NOT a town name — use a real UK postcode.",
            "default": "M1 1AD"
          },
          "searchUrls": {
            "title": "Autotrader URLs (search or listing)",
            "type": "array",
            "description": "Optional. Paste autotrader.co.uk /car-search URLs (all filters in the URL are used, including several fuel or body types) and/or individual /car-details/ listing URLs (read in full). Adds to the Make/Model fields. NOT non-Autotrader URLs.",
            "items": {
              "type": "string"
            }
          },
          "enrichDetails": {
            "title": "Read full details (dealer contact, history, spec)",
            "type": "boolean",
            "description": "When true (default), each listing's detail page is read for full specification, features, owner count, MOT, running costs, price rating and (trade sellers only) dealer name, email, phone, website and opening hours. When false, only search-card data is returned (faster and cheaper). Rows whose detail page cannot be read are returned as card-only rows and are not charged the details fee.",
            "default": true
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of car listings to return across all searches, e.g. 100. Autotrader shows at most 400 results per search; set 'Split large searches' to read more by price band. Defaults to 100.",
            "default": 100
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "relevance",
              "price-asc",
              "price-desc",
              "year-desc",
              "year-asc",
              "mileage",
              "distance",
              "newest"
            ],
            "type": "string",
            "description": "Ordering of search results before the max-results cap is applied. Defaults to 'relevance'.",
            "default": "relevance"
          },
          "priceFrom": {
            "title": "Min price (£)",
            "type": "integer",
            "description": "Lowest cash price in GBP to include, e.g. 5000. Leave empty for no lower bound."
          },
          "priceTo": {
            "title": "Max price (£)",
            "type": "integer",
            "description": "Highest cash price in GBP to include, e.g. 20000. Leave empty for no upper bound."
          },
          "yearFrom": {
            "title": "Min year",
            "type": "integer",
            "description": "Earliest manufacture year to include, e.g. 2018. Leave empty for no lower bound."
          },
          "yearTo": {
            "title": "Max year",
            "type": "integer",
            "description": "Latest manufacture year to include, e.g. 2024. Leave empty for no upper bound."
          },
          "maxMileage": {
            "title": "Max mileage",
            "type": "integer",
            "description": "Highest odometer reading in miles to include, e.g. 60000. Leave empty for any mileage."
          },
          "fuelType": {
            "title": "Fuel type",
            "enum": [
              "Petrol",
              "Diesel",
              "Electric",
              "Hybrid",
              "Plug-in Hybrid",
              "Bi Fuel"
            ],
            "type": "string",
            "description": "Restrict to one fuel type. Leave empty for all fuels."
          },
          "transmission": {
            "title": "Transmission",
            "enum": [
              "Automatic",
              "Manual"
            ],
            "type": "string",
            "description": "Restrict to Automatic or Manual gearbox. Leave empty for both."
          },
          "bodyType": {
            "title": "Body type",
            "type": "string",
            "description": "Restrict to a body style, e.g. 'Hatchback', 'Saloon', 'SUV', 'Estate'. Leave empty for all body types."
          },
          "sellerType": {
            "title": "Seller type",
            "enum": [
              "Dealer",
              "Private"
            ],
            "type": "string",
            "description": "Restrict to dealer (trade) listings or private-seller listings. Leave empty to include both. Useful for lead-gen (dealers) or buying direct (private)."
          },
          "keywords": {
            "title": "Keywords",
            "type": "string",
            "description": "Free-text keyword filter applied to the advert, e.g. 'M Sport', 'panoramic roof'. Leave empty to skip keyword filtering."
          },
          "radiusMiles": {
            "title": "Radius (miles)",
            "minimum": 1,
            "type": "integer",
            "description": "Only cars within this many miles of the postcode, e.g. 25. Leave empty for the whole UK ranked by distance. Needs a real postcode."
          },
          "minMileage": {
            "title": "Min mileage",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest odometer reading in miles to include, e.g. 10000. Leave empty for no lower bound."
          },
          "fuelTypes": {
            "title": "Fuel types (several)",
            "type": "array",
            "description": "Restrict to several fuel types at once. Combined with the single Fuel type field. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "Petrol",
                "Diesel",
                "Electric",
                "Hybrid",
                "Plug-in Hybrid",
                "Bi Fuel"
              ]
            }
          },
          "bodyTypes": {
            "title": "Body types (several)",
            "type": "array",
            "description": "Restrict to several body styles at once. Combined with the single Body type field. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "Hatchback",
                "Saloon",
                "Estate",
                "SUV",
                "Coupe",
                "Convertible",
                "MPV",
                "Pickup",
                "Van"
              ]
            }
          },
          "colours": {
            "title": "Colours",
            "type": "array",
            "description": "Only these exterior colours. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "Black",
                "White",
                "Grey",
                "Silver",
                "Blue",
                "Red",
                "Green",
                "Brown",
                "Beige",
                "Orange",
                "Yellow",
                "Purple"
              ]
            }
          },
          "excludeWriteOffs": {
            "title": "Exclude insurance write-offs",
            "type": "boolean",
            "description": "Leave out cars recorded as insurance write-offs (Cat S / Cat N). Default off.",
            "default": false
          },
          "dealerUrls": {
            "title": "Dealer pages (list a dealer's stock)",
            "type": "array",
            "description": "Paste Autotrader dealer page URLs (or numeric dealer ids) to list all of that dealer's cars. The dealerUrl and dealerId fields of earlier results work here.",
            "items": {
              "type": "string"
            }
          },
          "splitLargeSearches": {
            "title": "Split large searches",
            "type": "boolean",
            "description": "Autotrader shows at most 400 results per search. When a search has more and Max results is above 400, split it into price bands so more cars are read (duplicates are removed). Default on.",
            "default": true
          },
          "onlyNewOrChanged": {
            "title": "Only new or changed listings",
            "type": "boolean",
            "description": "Remember what earlier runs of this search returned and output only new cars or cars whose price changed. Rows get changeType. Unchanged cars are skipped and not charged. Default off.",
            "default": false
          },
          "stateKey": {
            "title": "Monitoring key",
            "type": "string",
            "description": "Optional name for this watch, so several schedules on the same search stay separate. Defaults to a fingerprint of the searches. Only used when 'Only new or changed listings' is on."
          },
          "compact": {
            "title": "Compact output",
            "type": "boolean",
            "description": "Leave out heavy fields (all images, description, features, specifications, checks, opening hours) and keep one main image. Good for AI agents and spreadsheets. Default off.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}