{
  "openapi": "3.0.1",
  "info": {
    "title": "Cars.com Car Listings Scraper ($1/1K)",
    "description": "Scrape new and used car listings from Cars.com, a top US car marketplace: price, mileage, year, VIN, deal rating, dealer or private seller, city and photos. Filter by make, model, year, price, mileage, fuel and ZIP radius. Add-ons: full details, price history.",
    "version": "0.0",
    "x-build-id": "cFSiNRzntpMqHk0Ac"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/carabain-digital~cars-com-listings/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-carabain-digital-cars-com-listings",
        "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/carabain-digital~cars-com-listings/runs": {
      "post": {
        "operationId": "runs-sync-carabain-digital-cars-com-listings",
        "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/carabain-digital~cars-com-listings/run-sync": {
      "post": {
        "operationId": "run-sync-carabain-digital-cars-com-listings",
        "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 make as Cars.com writes it. Example: `Toyota`, `Ford`, `Mercedes-Benz`, `Land Rover`. Leave empty for all makes. An unknown make stops the run with an error instead of returning unrelated cars."
          },
          "model": {
            "title": "Model",
            "type": "string",
            "description": "Model of that make as Cars.com writes it. Example: `Camry`, `F-150`, `C-Class`, `Range Rover Sport`. Needs a make. If a model is not found, run the search on cars.com and paste its URL into Search URLs."
          },
          "min_year": {
            "title": "Model year from",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Earliest model year. Example: `2018`."
          },
          "max_year": {
            "title": "Model year up to",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Latest model year. Example: `2022`."
          },
          "min_price": {
            "title": "Minimum price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest asking price in US dollars. Example: `10000`."
          },
          "max_price": {
            "title": "Maximum price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Highest asking price in US dollars. Example: `30000`."
          },
          "max_mileage": {
            "title": "Maximum mileage (miles)",
            "minimum": 0,
            "type": "integer",
            "description": "Highest odometer reading in miles. Example: `60000`."
          },
          "fuel_type": {
            "title": "Fuel type",
            "enum": [
              "petrol",
              "diesel",
              "electric",
              "hybrid",
              "plugin_hybrid",
              "ethanol",
              "hydrogen",
              "cng"
            ],
            "type": "string",
            "description": "Fuel type. Example: `electric`."
          },
          "transmission": {
            "title": "Transmission",
            "enum": [
              "automatic",
              "manual"
            ],
            "type": "string",
            "description": "Gearbox. Example: `automatic`."
          },
          "body_type": {
            "title": "Body type",
            "enum": [
              "sedan",
              "hatchback",
              "wagon",
              "suv",
              "coupe",
              "convertible",
              "minivan",
              "van",
              "pickup"
            ],
            "type": "string",
            "description": "Body type. Example: `pickup`."
          },
          "condition": {
            "title": "Condition",
            "enum": [
              "any",
              "used",
              "new"
            ],
            "type": "string",
            "description": "New or used cars. Example: `used`.",
            "default": "any"
          },
          "seller_type": {
            "title": "Seller",
            "enum": [
              "any",
              "dealer",
              "private"
            ],
            "type": "string",
            "description": "Dealer or private seller. Example: `private`.",
            "default": "any"
          },
          "location": {
            "title": "Location (US ZIP code)",
            "type": "string",
            "description": "Search around a 5-digit US ZIP code. Example: `60601` (Chicago), `90001` (Los Angeles). Leave empty to search the whole US."
          },
          "radius_miles": {
            "title": "Radius (miles)",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Distance around the ZIP code in miles, the unit Cars.com uses. Example: `50`. Rounded up to the site's options (10, 20, 30, 40, 50, 75, 100, 150, 200, 250, 500, 750, 1000; more = nationwide). Wins over Radius (km). Default 50 miles."
          },
          "radius_km": {
            "title": "Radius (km)",
            "minimum": 1,
            "maximum": 16000,
            "type": "integer",
            "description": "The same distance in km, for tools that pass the shared car-scraper field: converted to miles (80 km = 50 mi). Example: `80`. Ignored when Radius (miles) is set."
          },
          "start_urls": {
            "title": "Search URLs (optional)",
            "type": "array",
            "description": "Search result pages copied from cars.com; they replace the filters above. Example: `https://www.cars.com/shopping/results/?stock_type=used&makes[]=toyota&models[]=toyota-rav4&zip=60601&maximum_distance=50`. All filters and the sort order in the URL are kept (newest first when the URL has none); the page number is ignored. Only /shopping/results/ pages work.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "limit": {
            "title": "Max listings",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Stop after this many listings (newest first). Example: `500`. Cars.com shows at most 10,000 cars per search: split bigger searches by make, price or ZIP.",
            "default": 100
          },
          "includeDetails": {
            "title": "Full details (paid add-on)",
            "type": "boolean",
            "description": "Also open each listing: seller's notes, all photos, transmission, engine, horsepower, MPG, interior colour, all features by category, VIN and stock number, listing date and the site's price changes, dealer address, website and cars.com page, title/accident/owner flags. Adds $3.00 per 1,000 listings. About 1 s extra per listing, up to 30 s when Cloudflare re-checks the pages: use it with a modest Max listings (a run stops adding details after 45 minutes).",
            "default": false
          },
          "trackHistory": {
            "title": "Price history (paid add-on)",
            "type": "boolean",
            "description": "Keep the price of every listing in a named store in your own Apify account and add first_seen_at, previous_price, price_change, price_change_pct and price_history. Run it on a schedule: the first run only starts the series. Adds $1.00 per 1,000 listings that already had history. Do not run two runs on the same store at once.",
            "default": false
          },
          "historyStoreName": {
            "title": "History store name",
            "type": "string",
            "description": "Name of the key-value store that holds the history (letters a-z, digits, dashes). All our car Actors use `cars-history` by default, so history is shared between them. Example: `golf-watch`.",
            "default": "cars-history"
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Cars.com is behind Cloudflare and needs a US residential proxy. Keep the default (residential, United States): the Actor then uses its own built-in residential proxy at no extra cost to you. Example: leave as is.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "US"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}