{
  "openapi": "3.0.1",
  "info": {
    "title": "TrueCar Car Listings Scraper ($0.90/1K)",
    "description": "Scrape used and new car listings from TrueCar (truecar.com), the US car marketplace: price, TrueCar price rating (Excellent to Fair), mileage, VIN, specs, dealer and location. Search by ZIP, make, model, year, price, mileage, fuel and body. Add-ons: full details, price history.",
    "version": "0.0",
    "x-build-id": "xz74s4tRmr1Rmn5w0"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/carabain-digital~truecar-listings/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-carabain-digital-truecar-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~truecar-listings/runs": {
      "post": {
        "operationId": "runs-sync-carabain-digital-truecar-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~truecar-listings/run-sync": {
      "post": {
        "operationId": "run-sync-carabain-digital-truecar-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": {
          "location": {
            "title": "ZIP code",
            "type": "string",
            "description": "US ZIP code to search around (5 digits), as on TrueCar. Example: `10001` (New York), `90210`, `60601`. Leave empty to search all of the US. Ignored when you give Search URLs that carry their own location."
          },
          "radius_km": {
            "title": "Search radius (km)",
            "minimum": 1,
            "maximum": 8000,
            "type": "integer",
            "description": "Distance from the ZIP code in kilometres (converted to miles: 80 km = 50 mi). Default 75 miles, maximum 8,000 km. TrueCar pads results with cars from farther dealers when the radius has few, each with its real `distance_mi`. Example: `160`. Needs a ZIP code."
          },
          "make": {
            "title": "Make",
            "type": "string",
            "description": "Car make as TrueCar writes it. Example: `Toyota`, `Ford`, `Mercedes-Benz`, `Land Rover`."
          },
          "model": {
            "title": "Model",
            "type": "string",
            "description": "Model of that make (needs Make). Example: `Camry`, `F-150`, `Model 3`, `CR-V`."
          },
          "condition": {
            "title": "New or used",
            "enum": [
              "used",
              "new",
              "any"
            ],
            "type": "string",
            "description": "`used` (default), `new`, or `any` (used cars first, then new cars). Example: `used`.",
            "default": "used"
          },
          "min_year": {
            "title": "Minimum model year",
            "minimum": 1900,
            "type": "integer",
            "description": "Oldest model year. Example: `2018`."
          },
          "max_year": {
            "title": "Maximum model year",
            "minimum": 1900,
            "type": "integer",
            "description": "Newest model year. Example: `2023`."
          },
          "min_price": {
            "title": "Minimum price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest price in US dollars. Example: `10000`."
          },
          "max_price": {
            "title": "Maximum price (USD)",
            "minimum": 0,
            "type": "integer",
            "description": "Highest price in US dollars. Example: `25000`."
          },
          "max_mileage": {
            "title": "Maximum mileage (miles)",
            "minimum": 0,
            "type": "integer",
            "description": "Highest odometer reading in miles. Example: `60000`."
          },
          "fuel_type": {
            "title": "Fuel type",
            "enum": [
              "any",
              "petrol",
              "diesel",
              "electric",
              "hybrid",
              "plugin_hybrid"
            ],
            "type": "string",
            "description": "Fuel type. Example: `electric`.",
            "default": "any"
          },
          "transmission": {
            "title": "Transmission",
            "enum": [
              "any",
              "automatic",
              "manual"
            ],
            "type": "string",
            "description": "Keep only automatic or manual cars. TrueCar has no such filter, so the Actor drops the others after reading each page (a rare value can need many pages). Example: `manual`.",
            "default": "any"
          },
          "body_type": {
            "title": "Body type",
            "enum": [
              "any",
              "sedan",
              "suv",
              "pickup",
              "hatchback",
              "coupe",
              "convertible",
              "wagon",
              "minivan",
              "van"
            ],
            "type": "string",
            "description": "Body style. Example: `suv`.",
            "default": "any"
          },
          "seller_type": {
            "title": "Seller type",
            "enum": [
              "any",
              "dealer",
              "private"
            ],
            "type": "string",
            "description": "Keep only dealer or only private-seller listings. TrueCar lists dealers only, so `private` returns nothing. Example: `dealer`.",
            "default": "any"
          },
          "sort": {
            "title": "Sort order",
            "enum": [
              "best_match",
              "price_asc",
              "price_desc",
              "mileage_asc",
              "mileage_desc",
              "year_desc",
              "year_asc"
            ],
            "type": "string",
            "description": "Order of the results. TrueCar has no sort by listing date, so newest-first is not possible; use `listed_at` in the output. Example: `price_asc`.",
            "default": "best_match"
          },
          "start_urls": {
            "title": "Search URLs (optional)",
            "type": "array",
            "description": "Search result pages copied from truecar.com; they replace the filters above. Example: `https://www.truecar.com/used-cars-for-sale/listings/toyota/camry/location-90210/`. Page number and sort order in the URL are ignored; without a ZIP in the URL all of the US is searched.",
            "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. TrueCar serves at most 10,000 per search. Example: `100`.",
            "default": 100
          },
          "includeDetails": {
            "title": "Full details (paid add-on)",
            "type": "boolean",
            "description": "Also open each listing: dealer description, all photos, equipment highlights, warranties, accident and owner count from the vehicle history report, title flags, dealer fees, dealer phone, website and opening hours. Billed per listing as the Full details add-on.",
            "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 to each item. 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. Use another name to keep a separate series per search, e.g. `camry-nyc`.",
            "default": "cars-history"
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "TrueCar blocks datacenter IPs and some residential ones; the Actor swaps to a new exit IP when blocked. A US residential proxy is needed. The default (Apify Residential, country US) works; change it only to use your own proxy.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}