{
  "openapi": "3.0.1",
  "info": {
    "title": "Cars.com Scraper",
    "description": "Cars.com Scraper scrapes Cars.com listings in bulk from search URLs, vehicle URLs or make, model, ZIP, price and year filters: price, mileage, VIN, specs, features, photos, price history and dealer address, phones and emails. Export JSON, CSV or Excel, or use the API.",
    "version": "0.1",
    "x-build-id": "1oLAFf2APWxheK5Eh"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fastdataapi~cars-com-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fastdataapi-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/fastdataapi~cars-com-scraper/runs": {
      "post": {
        "operationId": "runs-sync-fastdataapi-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/fastdataapi~cars-com-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-fastdataapi-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": {
          "startUrls": {
            "title": "🔗 Cars.com URLs",
            "type": "array",
            "description": "Cars.com search-results URLs (https://www.cars.com/shopping/results/?...) and/or single vehicle pages (https://www.cars.com/vehicledetail/<id>/). Set the filters on Cars.com, copy the address and paste it here; add as many URLs as you like. Optional when the search fields below are used.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "🔢 Max cars per input",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum cars for each input: each start URL and the search fields each return up to this many (a vehicle URL gives 1). 3 search URLs x 100 = up to 300 cars. 0 = all available (one search returns at most 10,000 cars). Free plan: up to 20 cars per run (all URLs and searches together) and 200 per month; paid plans have no limit.",
            "default": 20
          },
          "fetchDetails": {
            "title": "✅ Full details",
            "type": "boolean",
            "description": "Adds each car's full details: specs (engine, transmission, MPG, colors, seats), feature lists, the whole photo gallery, price history, vehicle history, consumer reviews, EV range and the dealer's address, map position, phones, emails, website and rating. Off = only the fields shown on the search card (faster).",
            "default": true
          },
          "getContacts": {
            "title": "✅ Dealer phone numbers",
            "type": "boolean",
            "description": "Adds the dealer's call-tracking phone number shown on the listing (seller.phone_number and phone_type). One extra request per car.",
            "default": false
          },
          "fetchBatteryReport": {
            "title": "✅ EV battery reports",
            "type": "boolean",
            "description": "For electric cars that link a public battery report: adds battery capacity (kWh), peak charge rate (kW), battery warranty (months) and the verified odometer. Needs Full details.",
            "default": false
          },
          "sort": {
            "title": "🔃 Sort",
            "enum": [
              "",
              "BEST_MATCH_DESC",
              "LIST_PRICE",
              "LIST_PRICE_DESC",
              "MILEAGE",
              "MILEAGE_DESC",
              "YEAR_DESC",
              "YEAR",
              "LISTED_AT_DESC",
              "LISTED_AT",
              "DISTANCE",
              "BEST_DEAL"
            ],
            "type": "string",
            "description": "Order of the results for every search. Leave it on 'Keep the sort of each URL' to use the sort already in each URL (searches from the fields below then use Cars.com's best match).",
            "default": ""
          },
          "keyword": {
            "title": "🔎 Keyword",
            "type": "string",
            "description": "Free-text search, e.g. 'Honda Civic' or 'red pickup with tow package'. It steers the results like the search box on Cars.com. Filling any search field runs one extra search next to the URLs."
          },
          "zip": {
            "title": "📍 ZIP code",
            "pattern": "^(\\d{5})?$",
            "type": "string",
            "description": "5-digit US ZIP code the search is centred on, e.g. 60606. Leave empty for a nationwide search."
          },
          "maximumDistance": {
            "title": "📍 Distance (miles)",
            "minimum": 1,
            "type": "integer",
            "description": "Search radius around the ZIP code in miles. Used only together with a ZIP code.",
            "default": 50
          },
          "makes": {
            "title": "🎯 Makes",
            "type": "array",
            "description": "Make slugs as they appear in Cars.com URLs, lowercase, e.g. toyota, honda, land_rover.",
            "items": {
              "type": "string"
            }
          },
          "models": {
            "title": "🎯 Models",
            "type": "array",
            "description": "Model slugs '<make>-<model>' as in Cars.com URLs, e.g. toyota-camry, audi-a6_e_tron. Add the make to Makes too.",
            "items": {
              "type": "string"
            }
          },
          "trims": {
            "title": "🎯 Trims",
            "type": "array",
            "description": "Full trim slugs '<make>-<model>-<trim>', e.g. toyota-camry-le. A trim name alone (le) is ignored by the site.",
            "items": {
              "type": "string"
            }
          },
          "stockType": {
            "title": "🎯 New or used",
            "enum": [
              "",
              "new",
              "used",
              "cpo"
            ],
            "type": "string",
            "description": "Only new, used or certified pre-owned cars.",
            "default": ""
          },
          "yearMin": {
            "title": "📅 Year from",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Oldest model year, e.g. 2018."
          },
          "yearMax": {
            "title": "📅 Year to",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Newest model year, e.g. 2022."
          },
          "priceMin": {
            "title": "🎯 Price from (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest list price in US dollars."
          },
          "priceMax": {
            "title": "🎯 Price to (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Highest list price in US dollars."
          },
          "maxPages": {
            "title": "🔢 Max pages per search",
            "minimum": 0,
            "type": "integer",
            "description": "Stop each search after this many result pages (20 cars per page); 0 = no cap.",
            "default": 0
          },
          "maxConcurrency": {
            "title": "⚡ Max concurrency",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "How many cars are processed in parallel (details, battery reports, phone numbers).",
            "default": 5
          },
          "pageDelaySeconds": {
            "title": "⏳ Delay between pages (seconds)",
            "minimum": 0,
            "maximum": 60,
            "type": "number",
            "description": "Pause between two result pages of the same search.",
            "default": 1
          },
          "maxRetries": {
            "title": "🔁 Max retries",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Attempts per request before a page or car is given up.",
            "default": 3
          },
          "proxyConfiguration": {
            "title": "🌐 Proxy configuration",
            "type": "object",
            "description": "Optional. By default the actor connects directly and switches to a proxy by itself when the site blocks it.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}