{
  "openapi": "3.0.1",
  "info": {
    "title": "USA Car Listings Scraper ($1/1K)",
    "description": "Search CarGurus, Autotrader, Cars.com, TrueCar, CarMax, Edmunds, Carvana and Craigslist at once for used and new cars in the US. One search by make, model, price, year, mileage and ZIP code; one dataset merged and deduplicated on VIN, newest first. Optional details and price history. Proxy included.",
    "version": "0.0",
    "x-build-id": "ei7RsZbSe0O7nTdD6"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/carabain-digital~usa-cars/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-carabain-digital-usa-cars",
        "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~usa-cars/runs": {
      "post": {
        "operationId": "runs-sync-carabain-digital-usa-cars",
        "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~usa-cars/run-sync": {
      "post": {
        "operationId": "run-sync-carabain-digital-usa-cars",
        "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 the sites write it. Example: `Toyota`, `Ford`, `Mercedes-Benz`, `Land Rover`. Leave empty for all makes. A site that does not know the make is skipped (logged) instead of returning unrelated cars."
          },
          "model": {
            "title": "Model",
            "type": "string",
            "description": "Model of that make (needs Make). Example: `Camry`, `F-150`, `CR-V`, `Model 3`. A site that does not know the model is skipped (logged)."
          },
          "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`. CarGurus filters on the price before dealer fees, so a few CarGurus prices can be slightly above it in fee-inclusive states such as California."
          },
          "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`. Autotrader has no flex fuel (E85) or CNG filter, so it is skipped for those two."
          },
          "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`. With `any`, CarGurus returns used cars first and new ones only after the used ones run out. CarMax sells used cars only: it is skipped for `new`.",
            "default": "used"
          },
          "seller_type": {
            "title": "Seller",
            "enum": [
              "any",
              "dealer",
              "private"
            ],
            "type": "string",
            "description": "Dealer or private seller. Example: `dealer`. Almost every listing on these sites is from a dealer; CarGurus filters private sellers after the search and finds very few. Carvana and CarMax sell only their own cars: they are skipped for `private`.",
            "default": "any"
          },
          "location": {
            "title": "Location (US ZIP code)",
            "type": "string",
            "description": "Search around a 5-digit US ZIP code. Example: `10001` (New York), `60601` (Chicago), `90001` (Los Angeles). Leave empty to search the whole US (Craigslist cannot: it needs Craigslist area; Carvana ignores the location, it delivers nationwide)."
          },
          "radius_miles": {
            "title": "Radius (miles)",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Distance around the ZIP code in miles. Example: `50`. CarGurus uses it as is; Autotrader rounds up to 10, 25, 50, 75, 100, 200, 300, 400, 500 miles (more = nationwide) and Cars.com to 10, 20, 30, 40, 50, 75, 100, 150, 200, 250, 500, 750, 1000. Wins over Radius (km). Default 50 miles. TrueCar and Edmunds take any distance, CarMax rounds up to 5, 25, 50, 75, 100, 250, 500; Carvana and Craigslist ignore it."
          },
          "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."
          },
          "craigslist_area": {
            "title": "Craigslist area",
            "type": "string",
            "description": "Only for the site Craigslist, which searches one area (a city region) at a time and has no ZIP code or nationwide search. Use the area name as in `https://<area>.craigslist.org`. Example: `newyork`, `sfbay`, `chicago`, `losangeles`. Several areas, comma separated, are searched one after the other. Without it, a Location that is not a ZIP code (e.g. `chicago`) is used; with only a ZIP code Craigslist is skipped (logged)."
          },
          "sites": {
            "title": "Sites",
            "type": "array",
            "description": "Which sites to search. Default: CarGurus and Autotrader (fast, seconds). Optional extra sources: Cars.com and Carvana run in a real browser behind Cloudflare (30 s to several minutes); CarMax and Edmunds clear Akamai in a stealth browser and only some runs get through (retried, then skipped); TrueCar is blocked on about 1 in 3 connections (retried); Craigslist is fast but needs a Craigslist area (see that field) and lists mostly private sellers. Example: `[\"cargurus\", \"autotrader\", \"truecar\"]`.",
            "items": {
              "type": "string",
              "enum": [
                "cargurus",
                "autotrader",
                "carscom",
                "truecar",
                "carmax",
                "edmunds",
                "carvana",
                "craigslist"
              ],
              "enumTitles": [
                "CarGurus",
                "Autotrader",
                "Cars.com (browser, slower)",
                "TrueCar (some runs blocked)",
                "CarMax (browser, used only, some runs blocked)",
                "Edmunds (browser, some runs blocked)",
                "Carvana (browser, nationwide, its own cars)",
                "Craigslist (needs Craigslist area, mostly private sellers)"
              ]
            },
            "default": [
              "cargurus",
              "autotrader"
            ]
          },
          "limit": {
            "title": "Max listings",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Cap on the merged dataset, newest first; every site gets a fair share. Example: `100`.",
            "default": 100
          },
          "limit_per_site": {
            "title": "Max listings per site",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Optional cap per site, to keep the mix balanced and Cars.com runs short. Default: Max listings. Example: `25`."
          },
          "includeDetails": {
            "title": "Full details (paid add-on)",
            "type": "boolean",
            "description": "Also open each listing on its site: the dealer's description, all photos, equipment by category and more (CarGurus: accident and owner count, dealer fees, street address and coordinates; Autotrader: features, packages, warranties, open recalls, dealer hours; Cars.com: transmission, listing date, title and accident flags; TrueCar, CarMax, Edmunds, Carvana and Craigslist: description, photos, equipment, VIN and history or fee details where the site has them). Adds $1.20 per 1,000 listings that were actually enriched. Cars.com fetches details inside its browser run and is slow (1-30 s per listing): use a small Max listings per site with it.",
            "default": false
          },
          "trackHistory": {
            "title": "Price history (paid add-on)",
            "type": "boolean",
            "description": "Keep a price history per 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` to every listing you have scraped before. Shared with our single-site car Actors. 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": "Keep Apify RESIDENTIAL, country US (the default): all three sites block datacenter IPs. The Actor then uses its own built-in residential proxy at no extra cost to you.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}