{
  "openapi": "3.0.1",
  "info": {
    "title": "CarGurus Scraper - New US Car Listings by Make & ZIP",
    "description": "Scrape the newest CarGurus listings by make, model and ZIP. VIN, price, deal rating, market value, mileage, days on market and dealer phone, newest first.",
    "version": "1.0",
    "x-build-id": "DrAhZrS9Z74SIAz4e"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sian.agency~cargurus-car-listings-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sian.agency-cargurus-car-listings-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/sian.agency~cargurus-car-listings-scraper/runs": {
      "post": {
        "operationId": "runs-sync-sian.agency-cargurus-car-listings-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/sian.agency~cargurus-car-listings-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-sian.agency-cargurus-car-listings-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": {
          "operation": {
            "title": "🎯 What do you want to scrape?",
            "enum": [
              "search"
            ],
            "type": "string",
            "description": "Find the newest car listings for the makes and models you pick, within a radius of a US ZIP code, sorted newest first.",
            "default": "search"
          },
          "makes": {
            "title": "🚗 Makes",
            "uniqueItems": true,
            "type": "array",
            "description": "Pick one or more makes. Each make is its own search, newest listings first. To narrow a make down to one model, leave it out here and add the model under Models instead.",
            "items": {
              "type": "string",
              "enum": [
                "acura",
                "alfa-romeo",
                "amc",
                "aston-martin",
                "audi",
                "austin-healey",
                "bentley",
                "bmw",
                "bugatti",
                "buick",
                "cadillac",
                "chevrolet",
                "chrysler",
                "datsun",
                "delorean",
                "dodge",
                "ferrari",
                "fiat",
                "ford",
                "genesis",
                "geo",
                "gmc",
                "honda",
                "hummer",
                "hyundai",
                "ineos",
                "infiniti",
                "international-harvester",
                "isuzu",
                "jaguar",
                "jeep",
                "kia",
                "lamborghini",
                "land-rover",
                "lexus",
                "lincoln",
                "lotus",
                "lucid",
                "maserati",
                "maybach",
                "mazda",
                "mclaren",
                "mercedes-benz",
                "mercury",
                "mg",
                "mini",
                "mitsubishi",
                "nissan",
                "oldsmobile",
                "plymouth",
                "polestar",
                "pontiac",
                "porsche",
                "ram",
                "rivian",
                "rolls-royce",
                "saab",
                "saturn",
                "scion",
                "shelby",
                "smart",
                "studebaker",
                "subaru",
                "suzuki",
                "tesla",
                "toyota",
                "triumph",
                "vinfast",
                "volkswagen",
                "volvo",
                "willys"
              ],
              "enumTitles": [
                "🚗 Acura",
                "🚗 Alfa Romeo",
                "🚗 AMC",
                "🚗 Aston Martin",
                "🚗 Audi",
                "🚗 Austin-Healey",
                "🚗 Bentley",
                "🚗 BMW",
                "🚗 Bugatti",
                "🚗 Buick",
                "🚗 Cadillac",
                "🚗 Chevrolet",
                "🚗 Chrysler",
                "🚗 Datsun",
                "🚗 DeLorean",
                "🚗 Dodge",
                "🚗 Ferrari",
                "🚗 FIAT",
                "🚗 Ford",
                "🚗 Genesis",
                "🚗 Geo",
                "🚗 GMC",
                "🚗 Honda",
                "🚗 HUMMER",
                "🚗 Hyundai",
                "🚗 INEOS",
                "🚗 INFINITI",
                "🚗 International Harvester",
                "🚗 Isuzu",
                "🚗 Jaguar",
                "🚗 Jeep",
                "🚗 Kia",
                "🚗 Lamborghini",
                "🚗 Land Rover",
                "🚗 Lexus",
                "🚗 Lincoln",
                "🚗 Lotus",
                "🚗 Lucid",
                "🚗 Maserati",
                "🚗 Maybach",
                "🚗 Mazda",
                "🚗 McLaren",
                "🚗 Mercedes-Benz",
                "🚗 Mercury",
                "🚗 MG",
                "🚗 MINI",
                "🚗 Mitsubishi",
                "🚗 Nissan",
                "🚗 Oldsmobile",
                "🚗 Plymouth",
                "🚗 Polestar",
                "🚗 Pontiac",
                "🚗 Porsche",
                "🚗 RAM",
                "🚗 Rivian",
                "🚗 Rolls-Royce",
                "🚗 Saab",
                "🚗 Saturn",
                "🚗 Scion",
                "🚗 Shelby",
                "🚗 smart",
                "🚗 Studebaker",
                "🚗 Subaru",
                "🚗 Suzuki",
                "🚗 Tesla",
                "🚗 Toyota",
                "🚗 Triumph",
                "🚗 VinFast",
                "🚗 Volkswagen",
                "🚗 Volvo",
                "🚗 Willys"
              ]
            },
            "default": []
          },
          "models": {
            "title": "🏷️ Models",
            "type": "array",
            "description": "Optional. Make and model together, one per line, written the way CarGurus writes them: Lexus LS, Toyota Land Cruiser, Porsche 911, Mercedes-Benz SL-Class. A name that does not match a CarGurus model stops the run before anything is charged and lists the models that make has.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "zipCode": {
            "title": "📍 ZIP code",
            "pattern": "^[0-9]{5}$",
            "type": "string",
            "description": "The 5-digit US ZIP code the search radius is measured from. Distance on every row is in miles from this ZIP. Use a real ZIP: CarGurus does not reject an unknown one, it quietly searches around a different location.",
            "default": "90210"
          },
          "searchRadius": {
            "title": "📏 Search radius",
            "enum": [
              "25",
              "50",
              "100",
              "200",
              "500",
              "nationwide"
            ],
            "type": "string",
            "description": "How far from the ZIP code to search. Rare cars usually need 500 miles or nationwide; everyday models fill a page within 50. CarGurus also mixes in cars from farther away that a dealer will transfer or ship to you; those rows say so in How to buy.",
            "default": "500"
          },
          "maxDaysOnMarket": {
            "title": "🆕 Only listings newer than (days)",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Only return cars listed within this many days. 1 returns cars listed today and yesterday. 0 means no limit. Results come newest first, so the run stops reading as soon as it reaches an older listing, which makes a short window both fast and cheap.",
            "default": 0
          },
          "minYear": {
            "title": "📅 Min year",
            "minimum": 0,
            "maximum": 2030,
            "type": "integer",
            "description": "Oldest model year to include, for example 1990. 0 means no minimum.",
            "default": 0
          },
          "maxYear": {
            "title": "📅 Max year",
            "minimum": 0,
            "maximum": 2030,
            "type": "integer",
            "description": "Newest model year to include, for example 2005 for older cars only. 0 means no maximum.",
            "default": 0
          },
          "minPrice": {
            "title": "💵 Min price ($)",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "Lowest asking price in US dollars. 0 means no minimum. Listings without a published price are left out by CarGurus when a price filter is set.",
            "default": 0
          },
          "maxPrice": {
            "title": "💵 Max price ($)",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "Highest asking price in US dollars. 0 means no maximum.",
            "default": 0
          },
          "maxMileage": {
            "title": "🛣️ Max mileage",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "Highest odometer reading in miles, for example 30000 for low-mileage cars. 0 means no maximum.",
            "default": 0
          },
          "maxResultsPerSearch": {
            "title": "🔢 Max listings per search",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Stop each make or model search after this many listings. One request returns up to 48, so 48 is the newest page and costs the least per listing.",
            "default": 48
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}