{
  "openapi": "3.0.1",
  "info": {
    "title": "AutoTrader.com Search Scraper",
    "description": "Search AutoTrader.com by keyword and ZIP code. Returns sell price, KBB fair market price, deal ratings, vehicle history flags, and 40+ fields per listing. Filter by year, price, mileage, body style, drivetrain, fuel, color, seller type, and more.",
    "version": "1.0",
    "x-build-id": "JkQaCKFpjbdUvCcDP"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/caffein.dev~autotrader-com-actor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-caffein.dev-autotrader-com-actor",
        "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/caffein.dev~autotrader-com-actor/runs": {
      "post": {
        "operationId": "runs-sync-caffein.dev-autotrader-com-actor",
        "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/caffein.dev~autotrader-com-actor/run-sync": {
      "post": {
        "operationId": "run-sync-caffein.dev-autotrader-com-actor",
        "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": {
          "keyword": {
            "title": "Search",
            "type": "string",
            "description": "What car are you looking for? Type naturally — make, model, trim, or any keywords. Examples: 'Lexus NX', 'Toyota Camry SE', 'BMW 3 Series', 'electric SUV', 'truck leather seats'."
          },
          "zip": {
            "title": "ZIP Code",
            "type": "string",
            "description": "US ZIP code for location-based search. Default: 94103 (San Francisco, CA).",
            "default": "94103"
          },
          "searchRadius": {
            "title": "Search Radius (miles)",
            "enum": [
              "10",
              "25",
              "50",
              "75",
              "100",
              "200",
              "300",
              "400",
              "500",
              "0"
            ],
            "type": "string",
            "description": "Search radius in miles from the ZIP code. Use 0 for nationwide.",
            "default": "0"
          },
          "startYear": {
            "title": "Min Year",
            "type": "integer",
            "description": "Minimum model year (e.g. 2015)."
          },
          "endYear": {
            "title": "Max Year",
            "type": "integer",
            "description": "Maximum model year (e.g. 2024)."
          },
          "minPrice": {
            "title": "Min Price ($)",
            "type": "integer",
            "description": "Minimum listing price in USD."
          },
          "maxPrice": {
            "title": "Max Price ($)",
            "type": "integer",
            "description": "Maximum listing price in USD."
          },
          "listingType": {
            "title": "Listing Type",
            "enum": [
              "",
              "USED",
              "NEW",
              "CERTIFIED",
              "3P_CERT"
            ],
            "type": "string",
            "description": "Filter by listing type.",
            "default": ""
          },
          "mileage": {
            "title": "Max Mileage",
            "enum": [
              "",
              "10000",
              "20000",
              "30000",
              "40000",
              "50000",
              "60000",
              "70000",
              "80000",
              "90000",
              "100000",
              "100001"
            ],
            "type": "string",
            "description": "Maximum mileage filter.",
            "default": ""
          },
          "driveGroup": {
            "title": "Drive Type",
            "enum": [
              "",
              "AWD4WD",
              "RWD",
              "FWD"
            ],
            "type": "string",
            "description": "Drivetrain filter.",
            "default": ""
          },
          "transmissionCode": {
            "title": "Transmission",
            "enum": [
              "",
              "AUT",
              "MAN"
            ],
            "type": "string",
            "description": "Transmission type.",
            "default": ""
          },
          "fuelTypeGroup": {
            "title": "Fuel Type",
            "enum": [
              "",
              "GSL",
              "DSL",
              "ELC",
              "HYB"
            ],
            "type": "string",
            "description": "Fuel type filter.",
            "default": ""
          },
          "vehicleStyleCode": {
            "title": "Body Style",
            "enum": [
              "",
              "SEDAN",
              "SUV",
              "TRUCK",
              "COUPE",
              "CONVERT",
              "HATCH",
              "WAGON",
              "VAN",
              "MINIVAN"
            ],
            "type": "string",
            "description": "Vehicle body style.",
            "default": ""
          },
          "engineCode": {
            "title": "Engine",
            "enum": [
              "",
              "4CLDR",
              "6CLDR",
              "8CLDR",
              "3CLDR",
              "5CLDR",
              "10CLDR",
              "12CLDR"
            ],
            "type": "string",
            "description": "Engine type.",
            "default": ""
          },
          "extColorSimple": {
            "title": "Exterior Color",
            "enum": [
              "",
              "BLACK",
              "WHITE",
              "SILVER",
              "GRAY",
              "BLUE",
              "RED",
              "GREEN",
              "BROWN",
              "GOLD",
              "ORANGE",
              "YELLOW",
              "PURPLE"
            ],
            "type": "string",
            "description": "Exterior color filter.",
            "default": ""
          },
          "intColorSimple": {
            "title": "Interior Color",
            "enum": [
              "",
              "BLACK",
              "GRAY",
              "BROWN",
              "TAN",
              "WHITE",
              "RED",
              "BLUE",
              "ORANGE",
              "YELLOW",
              "GREEN",
              "BURGUNDY"
            ],
            "type": "string",
            "description": "Interior color filter.",
            "default": ""
          },
          "sellerType": {
            "title": "Seller Type",
            "enum": [
              "",
              "d",
              "p"
            ],
            "type": "string",
            "description": "Filter by dealer or private seller.",
            "default": ""
          },
          "dealType": {
            "title": "Deal Rating",
            "enum": [
              "",
              "goodprice",
              "greatprice"
            ],
            "type": "string",
            "description": "Filter by KBB deal rating.",
            "default": ""
          },
          "vehicleHistoryType": {
            "title": "Vehicle History",
            "type": "array",
            "description": "Vehicle history filters (select multiple).",
            "items": {
              "type": "string",
              "enum": [
                "NO_ACCIDENTS",
                "ONE_OWNER",
                "CLEAN_TITLE",
                "NO_FRAME_DAMAGE",
                "FREE_REPORT"
              ],
              "enumTitles": [
                "No Accidents",
                "One Owner",
                "Clean Title",
                "No Frame Damage",
                "Free Vehicle History Report"
              ]
            }
          },
          "featureCode": {
            "title": "Features",
            "type": "array",
            "description": "Desired vehicle features (select multiple).",
            "items": {
              "type": "string",
              "enum": [
                "1224",
                "1319",
                "1078",
                "1066",
                "1067",
                "1173",
                "1218",
                "1311",
                "1149",
                "1070",
                "1088",
                "1174"
              ],
              "enumTitles": [
                "Backup Camera",
                "Heated Seats",
                "Leather Seats",
                "Navigation System",
                "Sunroof/Moonroof",
                "Bluetooth",
                "Apple CarPlay",
                "Android Auto",
                "Third Row Seating",
                "Tow Package",
                "Remote Start",
                "Adaptive Cruise Control"
              ]
            }
          },
          "maxItems": {
            "title": "Max Items",
            "type": "integer",
            "description": "Maximum number of listings to return. The actor auto-paginates until this limit is reached.",
            "default": 200
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}