{
  "openapi": "3.0.1",
  "info": {
    "title": "Autotrader.co.uk [$0.85💰] Cars, Vans, Bikes & Motorhomes",
    "description": "💰$0.85 per 1,000 listings. Extract AutoTrader.co.uk cars, vans, motorbikes, motorhomes, caravans, trucks, farm and plant machinery and e-bikes from any search or ad link: price, mileage, specs, finance quotes, seller phone and ratings, HD photos, vehicle checks, every listing in big searches.",
    "version": "0.0",
    "x-build-id": "RW2HAvzLXdcdOxNaX"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/memo23~autotrader-cheerio/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-memo23-autotrader-cheerio",
        "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/memo23~autotrader-cheerio/runs": {
      "post": {
        "operationId": "runs-sync-memo23-autotrader-cheerio",
        "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/memo23~autotrader-cheerio/run-sync": {
      "post": {
        "operationId": "run-sync-memo23-autotrader-cheerio",
        "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": "URLs to start with. Accepts autotrader.co.uk search URLs and ad URLs for every vehicle type: cars (/car-search, /car-details/{id}), vans (/van-search), motorbikes (/bike-search), motorhomes (/motorhome-search), caravans (/caravan-search), trucks (/truck-search), farm machinery (/farm-search), plant machinery (/plant-search) and electric bikes (/electric-bike-search, search URLs only). Dealer stock pages (/cars/retailer/stock?retailerId=...) return that dealer's listings. The actor pages through search results. The homepage is read as a search for every car. Example: https://www.autotrader.co.uk/van-search?postcode=SW1A%201AA&make=Ford&model=Transit%20Custom",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "includeListingDetails": {
            "title": "Include listing details",
            "type": "boolean",
            "description": "Whether to include listing details in the output.",
            "default": true
          },
          "includeDealerProfile": {
            "title": "Add dealer contact and profile",
            "type": "boolean",
            "description": "Reads each dealer's AutoTrader page once per run and adds the dealer's phone number and website to the contact fields (dealer.contact, item.advertiser.contact and phones), plus the dealer's own description, unchanged, in dealer.description. dealer.profileStatus says per row whether the profile was added. Charged once per dealer, not per car: a dealer with 40 cars in the run is charged once. Works with listing details on or off. A trade seller without a dealer page gets its phone from its ad page. The run ends as failed when more dealers could not be read than the threshold below allows; the list is saved as DEALER_PROFILES in the run's key-value store.",
            "default": false
          },
          "maxItems": {
            "title": "Max items to scrape per crawl!",
            "type": "integer",
            "description": "Maximum number of items to scrape per crawl. This is useful to cap run size and cost. The actor will stop scraping when it reaches this number.",
            "default": 10000
          },
          "maxConcurrency": {
            "title": "Max Concurrency",
            "type": "integer",
            "description": "Maximum number of pages that can be processed at the same time.",
            "default": 100
          },
          "minConcurrency": {
            "title": "Min Concurrency",
            "type": "integer",
            "description": "Minimum number of pages that will be processed at the same time.",
            "default": 1
          },
          "maxRequestRetries": {
            "title": "Max Request Retries",
            "type": "integer",
            "description": "Number of times the crawler will retry a failed request before giving up.",
            "default": 30
          },
          "enrichEmails": {
            "title": "Enrich with contact emails (experimental)",
            "type": "boolean",
            "description": "If enabled, finds a contact email for each result from its own website (or by discovering it from the name). Adds contactEmail + contactWebsite columns plus a detailed emailEnrichment object. Best-effort.",
            "default": false
          },
          "dealerProfileTolerancePercent": {
            "title": "Dealer profiles: failures allowed (%)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "With dealer contact and profile on, the run fails when more dealers could not be read than this percentage of the dealers, or the absolute number below, whichever is larger.",
            "default": 1
          },
          "dealerProfileToleranceAbsolute": {
            "title": "Dealer profiles: failures allowed (dealers)",
            "minimum": 0,
            "type": "integer",
            "description": "The absolute floor for the rule above. With the defaults, a run of 800 dealers may miss 25, and a run of 6,000 dealers may miss 60.",
            "default": 25
          },
          "dealerList": {
            "title": "Get dealers instead of listings",
            "type": "boolean",
            "description": "Returns AutoTrader UK dealers matching the filters below, one row per dealer: name, address, coordinates, phone numbers, website, email (where the dealer's own website shows one), description, franchises, services, opening hours, rating and stock counts per vehicle type. No vehicle listings are returned and start URLs are ignored. \"Max items\" sets how many dealers you get; dealers with the most vehicles in stock come first. Billed per dealer, plus an email charge for each dealer delivered with an email. Leave the filters empty to get every dealer.",
            "default": false
          },
          "dealerName": {
            "title": "Dealer name contains",
            "type": "string",
            "description": "Only dealers whose name contains this text, e.g. Arnold Clark or Motors."
          },
          "dealerTowns": {
            "title": "Towns",
            "type": "array",
            "description": "Only dealers in these towns, e.g. Manchester, Leeds. Matched on the town in the dealer's address.",
            "items": {
              "type": "string"
            }
          },
          "dealerCounties": {
            "title": "Counties",
            "type": "array",
            "description": "Only dealers in these counties, e.g. Lancashire, Essex, West Yorkshire.",
            "items": {
              "type": "string"
            }
          },
          "dealerRegion": {
            "title": "Region",
            "enum": [
              "London",
              "South East",
              "East Of England",
              "South West",
              "West Midlands",
              "East Midlands",
              "North West",
              "North East",
              "Yorkshire And The Humber",
              "Wales",
              "Scotland",
              "Northern Ireland"
            ],
            "type": "string",
            "description": "Only dealers in this region."
          },
          "dealerPostcodes": {
            "title": "Postcodes",
            "type": "array",
            "description": "Only dealers in these postcode areas or districts, e.g. M (Greater Manchester), SW1 (SW1A, SW1P and the rest), B90 or a full postcode.",
            "items": {
              "type": "string"
            }
          },
          "dealerFranchise": {
            "title": "Franchise brand",
            "type": "string",
            "description": "Only franchised dealers of this brand, e.g. BMW, Ford, Toyota."
          },
          "dealerType": {
            "title": "Dealer type",
            "enum": [
              "any",
              "franchise",
              "independent"
            ],
            "type": "string",
            "description": "Franchised dealers sell new cars for one or more brands; independent dealers do not.",
            "default": "any"
          },
          "dealerVehicleTypes": {
            "title": "Sells these vehicle types",
            "type": "array",
            "description": "Only dealers with at least one vehicle of these types in stock on AutoTrader now.",
            "items": {
              "type": "string",
              "enum": [
                "cars",
                "vans",
                "bikes",
                "motorhomes",
                "caravans",
                "trucks",
                "plant",
                "farm"
              ],
              "enumTitles": [
                "Cars",
                "Vans",
                "Motorbikes",
                "Motorhomes",
                "Caravans",
                "Trucks",
                "Plant machinery",
                "Farm machinery"
              ]
            }
          },
          "dealerMinStock": {
            "title": "Minimum vehicles in stock",
            "minimum": 0,
            "type": "integer",
            "description": "Only dealers with at least this many vehicles advertised on AutoTrader, all types together."
          },
          "dealerHasEmail": {
            "title": "Only dealers with an email",
            "type": "boolean",
            "description": "Only dealers delivered with an email address.",
            "default": false
          },
          "dealerHasWebsite": {
            "title": "Only dealers with a website",
            "type": "boolean",
            "description": "Only dealers that have a website.",
            "default": false
          },
          "proxy": {
            "title": "Proxy configuration (optional override)",
            "type": "object",
            "description": "Leave empty — the actor already routes all traffic through its own built-in residential proxy at no extra cost to you. Only set this if you want to use your own proxies."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}