{
  "openapi": "3.0.1",
  "info": {
    "title": "Cars.com Scraper | Flip Score & Deal Finder | $2.50/1K",
    "description": "Scrape Cars.com with AI Flip Score (0-100) for arbitrage opportunities. Extract Great Deal/Good Deal ratings, price vs market, VIN, CARFAX data, dealer info & photos. Perfect for car flippers, dealers & market researchers. Only scraper with deal scoring!",
    "version": "1.0",
    "x-build-id": "He3rvHUa9WkxcWdO9"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/benthepythondev~cars-com-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-benthepythondev-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/benthepythondev~cars-com-scraper/runs": {
      "post": {
        "operationId": "runs-sync-benthepythondev-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/benthepythondev~cars-com-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-benthepythondev-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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "direct_urls"
            ],
            "type": "string",
            "description": "Search mode or direct URL scraping",
            "default": "search"
          },
          "zipCode": {
            "title": "ZIP Code",
            "type": "string",
            "description": "US ZIP code for search location",
            "default": "10001"
          },
          "searchRadius": {
            "title": "Search Radius (miles)",
            "minimum": 10,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum distance from ZIP code (10, 25, 50, 75, 100, 150, 200, 500)",
            "default": 50
          },
          "stockType": {
            "title": "Stock Type",
            "enum": [
              "all",
              "new",
              "used",
              "cpo"
            ],
            "type": "string",
            "description": "New, Used, or Certified Pre-Owned",
            "default": "all"
          },
          "make": {
            "title": "Make",
            "enum": [
              "",
              "acura",
              "alfa_romeo",
              "aston_martin",
              "audi",
              "bentley",
              "bmw",
              "bugatti",
              "buick",
              "cadillac",
              "chevrolet",
              "chrysler",
              "dodge",
              "ferrari",
              "fiat",
              "ford",
              "genesis",
              "gmc",
              "honda",
              "hyundai",
              "infiniti",
              "jaguar",
              "jeep",
              "kia",
              "lamborghini",
              "land_rover",
              "lexus",
              "lincoln",
              "lotus",
              "maserati",
              "mazda",
              "mclaren",
              "mercedes-benz",
              "mini",
              "mitsubishi",
              "nissan",
              "porsche",
              "ram",
              "rolls-royce",
              "subaru",
              "tesla",
              "toyota",
              "volkswagen",
              "volvo"
            ],
            "type": "string",
            "description": "Vehicle make (e.g., Toyota, Honda, Ford, Ferrari, Lamborghini). Leave empty for all makes.",
            "default": ""
          },
          "model": {
            "title": "Model",
            "type": "string",
            "description": "Vehicle model (e.g., Camry, Civic, F-150). Requires make to be set.",
            "default": ""
          },
          "minYear": {
            "title": "Min Year",
            "minimum": 1990,
            "maximum": 2026,
            "type": "integer",
            "description": "Minimum model year"
          },
          "maxYear": {
            "title": "Max Year",
            "minimum": 1990,
            "maximum": 2026,
            "type": "integer",
            "description": "Maximum model year"
          },
          "minPrice": {
            "title": "Min Price ($)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum listing price in USD"
          },
          "maxPrice": {
            "title": "Max Price ($)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum listing price in USD"
          },
          "maxMileage": {
            "title": "Max Mileage",
            "minimum": 0,
            "maximum": 300000,
            "type": "integer",
            "description": "Maximum odometer reading"
          },
          "dealRating": {
            "title": "Deal Rating Filter",
            "type": "array",
            "description": "Filter by Cars.com deal rating",
            "items": {
              "type": "string",
              "enum": [
                "great_deal",
                "good_deal",
                "fair_deal"
              ],
              "enumTitles": [
                "Great Deal",
                "Good Deal",
                "Fair Deal"
              ]
            },
            "default": []
          },
          "listingUrls": {
            "title": "Listing URLs",
            "type": "array",
            "description": "Direct URLs to Cars.com vehicle listings (for direct_urls mode)",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "maxListings": {
            "title": "Max Listings",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum number of listings to scrape",
            "default": 5
          },
          "includePhotos": {
            "title": "Include Photos",
            "type": "boolean",
            "description": "Extract photo URLs (up to 15 per listing)",
            "default": true
          },
          "includeDealerInfo": {
            "title": "Include Dealer Info",
            "type": "boolean",
            "description": "Extract dealer name, rating, reviews, location",
            "default": true
          },
          "includeFlipScore": {
            "title": "Include Flip Score",
            "type": "boolean",
            "description": "Calculate arbitrage/flip opportunity score (0-100)",
            "default": true
          },
          "debugMode": {
            "title": "Debug Mode",
            "type": "boolean",
            "description": "Run browser in non-headless mode for debugging",
            "default": 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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}