{
  "openapi": "3.0.1",
  "info": {
    "title": "Cars.com Scraper - US Cars, Prices & Dealer Leads",
    "description": "Scrape Cars.com new & used car listings: price, MSRP, price drops, mileage, VIN, year/make/model/trim, specs, features, photos, deal rating & history, plus dealer leads (name, location, type, rating). Filter by make, model, ZIP, price, mileage & year. Price-drop & new-listing monitor.",
    "version": "0.1",
    "x-build-id": "WvEI5EqeNV9GOOLWq"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapesage~cars-com-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapesage-cars-com-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/scrapesage~cars-com-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapesage-cars-com-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/scrapesage~cars-com-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapesage-cars-com-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": {
          "searchUrls": {
            "title": "Cars.com search URLs",
            "uniqueItems": true,
            "type": "array",
            "description": "Paste one or more Cars.com search-results URLs (the page after you pick make/model/filters, e.g. https://www.cars.com/shopping/results/?stock_type=used&makes[]=honda&models[]=honda-accord&zip=10001). Every filter in the URL is respected. Easiest way to run an exact search.",
            "items": {
              "type": "string"
            }
          },
          "listingUrls": {
            "title": "Vehicle detail URLs",
            "uniqueItems": true,
            "type": "array",
            "description": "Paste specific Cars.com vehicle-detail URLs (e.g. https://www.cars.com/vehicledetail/<id>/). These are fetched as full detail records (charged as carDetail).",
            "items": {
              "type": "string"
            }
          },
          "makes": {
            "title": "Makes",
            "uniqueItems": true,
            "type": "array",
            "description": "Build a search by brand (e.g. [\"honda\",\"toyota\",\"ford\"]). Combined with ZIP. Leave empty to use Search URLs instead.",
            "items": {
              "type": "string"
            }
          },
          "models": {
            "title": "Models",
            "uniqueItems": true,
            "type": "array",
            "description": "Optional model names to pair with the first make (e.g. [\"accord\",\"civic\"] for Honda). Use lower-case model names; the actor builds the cars.com make-model slug.",
            "items": {
              "type": "string"
            }
          },
          "stockType": {
            "title": "Condition",
            "enum": [
              "all",
              "used",
              "new",
              "cpo"
            ],
            "type": "string",
            "description": "Which inventory to search.",
            "default": "all"
          },
          "zip": {
            "title": "ZIP code",
            "type": "string",
            "description": "US ZIP code to search around (e.g. \"10001\"). Required when searching by make/model (not needed for Search URLs that already contain a ZIP)."
          },
          "radius": {
            "title": "Search radius (miles)",
            "minimum": 0,
            "type": "integer",
            "description": "Distance from the ZIP in miles. Use a large number (e.g. 500) or leave empty for nationwide where the seller delivers."
          },
          "keyword": {
            "title": "Keyword",
            "type": "string",
            "description": "Free-text keyword to add to the search (e.g. \"leather\", \"awd\", a trim name). Optional."
          },
          "priceMin": {
            "title": "Min price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only listings at or above this asking price."
          },
          "priceMax": {
            "title": "Max price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only listings at or below this asking price."
          },
          "mileageMax": {
            "title": "Max mileage",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only listings at or below this odometer reading."
          },
          "yearMin": {
            "title": "Min year",
            "minimum": 1900,
            "type": "integer",
            "description": "Keep only listings from this model year or newer."
          },
          "yearMax": {
            "title": "Max year",
            "minimum": 1900,
            "type": "integer",
            "description": "Keep only listings up to this model year."
          },
          "sellerType": {
            "title": "Seller type",
            "enum": [
              "any",
              "dealer",
              "private"
            ],
            "type": "string",
            "description": "Limit to franchise/independent dealers or to private sellers.",
            "default": "any"
          },
          "onlyWithPriceDrop": {
            "title": "Only listings with a price drop",
            "type": "boolean",
            "description": "Keep only listings that recently dropped in price — the highest-intent, most negotiable cars.",
            "default": false
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "best_match_desc",
              "listed_at_desc",
              "price_asc",
              "price_desc",
              "mileage_asc",
              "year_desc"
            ],
            "type": "string",
            "description": "Order Cars.com returns results in.",
            "default": "best_match_desc"
          },
          "includeCarDetails": {
            "title": "Fetch full vehicle details",
            "type": "boolean",
            "description": "For every listing, also open its vehicle-detail page to add the full features list, cylinders/doors/transmission, condition signals (clean title, no accidents, single owner, open recall, vehicle-history report), geo and dealer phone. Slower and billed as carDetail instead of car.",
            "default": false
          },
          "includeDealerLeads": {
            "title": "Output dealer leads",
            "type": "boolean",
            "description": "Also emit one deduplicated record per dealer / private seller found in the results, with inventory count, average price, location and a 0-100 lead score.",
            "default": false
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of vehicle listings to return across all searches.",
            "default": 100
          },
          "maxResultsPerSearch": {
            "title": "Max results per search",
            "minimum": 1,
            "type": "integer",
            "description": "Cap listings taken from each individual search / URL (paginates as needed). Leave empty to use Max results."
          },
          "monitorMode": {
            "title": "Monitor mode (only new / changed)",
            "type": "boolean",
            "description": "Remember listings between runs in a named store and emit only NEW listings, price drops and price rises since the last run. Pair with Apify Schedules for a recurring price-drop / new-inventory feed.",
            "default": false
          },
          "monitorKey": {
            "title": "Monitor key",
            "type": "string",
            "description": "Name for this monitor's memory so different saved searches don't collide (e.g. \"honda-accord-nyc\"). Only used when Monitor mode is on.",
            "default": "default"
          },
          "includeRawFields": {
            "title": "Include raw source fields",
            "type": "boolean",
            "description": "Attach the raw Cars.com fields used to build each record (sourceFields) for debugging or extra data.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Cars.com serves clean data to US residential IPs. Leave the default (Apify Proxy, US residential) unless you know what you are doing.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}