{
  "openapi": "3.0.1",
  "info": {
    "title": "Used Car Search: Autotrader, CarGurus, Craigslist & Facebook",
    "description": "Search 10 used-car sites at once: Autotrader, CarGurus, Craigslist, Facebook Marketplace, CarMax, Carvana, OfferUp, Autolist, Bring a Trailer and ClassicCars.com. Filter by make, model, ZIP, price, year and miles. VIN-merged, fair-price check, new listing alerts.",
    "version": "0.1",
    "x-build-id": "Oj8XBgnluxUAEWQwT"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/quillstone-labs~used-car-search/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-quillstone-labs-used-car-search",
        "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/quillstone-labs~used-car-search/runs": {
      "post": {
        "operationId": "runs-sync-quillstone-labs-used-car-search",
        "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/quillstone-labs~used-car-search/run-sync": {
      "post": {
        "operationId": "run-sync-quillstone-labs-used-car-search",
        "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",
        "required": [
          "zipCode"
        ],
        "properties": {
          "make": {
            "title": "Make",
            "type": "string",
            "description": "The car's make, like <code>Toyota</code>, <code>Ford</code> or <code>Mercedes-Benz</code>."
          },
          "model": {
            "title": "Model",
            "type": "string",
            "description": "The model, like <code>Camry</code>, <code>F-150</code> or <code>Model 3</code>. Leave empty to see every model of the make."
          },
          "zipCode": {
            "title": "ZIP code",
            "type": "string",
            "description": "The US ZIP code to search around."
          },
          "radiusMiles": {
            "title": "Distance (miles)",
            "minimum": 5,
            "maximum": 500,
            "type": "integer",
            "description": "How far from the ZIP code to look. Facebook Marketplace and OfferUp use their own local area instead.",
            "default": 50
          },
          "minYear": {
            "title": "Oldest year",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Leave empty for any year."
          },
          "maxYear": {
            "title": "Newest year",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Leave empty for any year."
          },
          "minPrice": {
            "title": "Lowest price",
            "minimum": 0,
            "type": "integer",
            "description": "In US dollars."
          },
          "maxPrice": {
            "title": "Highest price",
            "minimum": 0,
            "type": "integer",
            "description": "In US dollars."
          },
          "maxMileage": {
            "title": "Most miles",
            "minimum": 0,
            "type": "integer",
            "description": "Leave empty for any mileage."
          },
          "sellerType": {
            "title": "Seller",
            "enum": [
              "any",
              "dealer",
              "private"
            ],
            "type": "string",
            "description": "Dealers, private sellers, or both.",
            "default": "any"
          },
          "condition": {
            "title": "Condition",
            "enum": [
              "used",
              "new",
              "any"
            ],
            "type": "string",
            "description": "Used includes certified pre-owned.",
            "default": "used"
          },
          "keywords": {
            "title": "Keywords",
            "type": "string",
            "description": "Extra words to search for, like <code>hybrid</code> or <code>manual</code>. Optional."
          },
          "sites": {
            "title": "Sites",
            "type": "array",
            "description": "Which sites to search. Leave empty to search all of them.",
            "items": {
              "type": "string",
              "enum": [
                "autotrader",
                "cargurus",
                "craigslist",
                "facebook",
                "carmax",
                "carvana",
                "offerup",
                "autolist",
                "bringatrailer",
                "classiccars"
              ],
              "enumTitles": [
                "Autotrader",
                "CarGurus",
                "Craigslist",
                "Facebook Marketplace",
                "CarMax",
                "Carvana",
                "OfferUp",
                "Autolist",
                "Bring a Trailer (auctions)",
                "ClassicCars.com"
              ]
            }
          },
          "includeDelivery": {
            "title": "Include cars that are delivered",
            "type": "boolean",
            "description": "Carvana, cars CarMax transfers from a farther store, and collector cars (25+ years old) listed elsewhere in the country. Turn off to see only cars you can go and look at nearby.",
            "default": true
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "price",
              "deal",
              "distance",
              "mileage",
              "newest"
            ],
            "type": "string",
            "description": "<b>Best deal</b> puts the cars furthest below their typical price first.",
            "default": "price"
          },
          "maxResultsPerSite": {
            "title": "Most cars per site",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Caps how many listings are read from each site. Duplicates across sites are merged, so the final count can be lower.",
            "default": 50
          },
          "onlyNewAndPriceDrops": {
            "title": "Only new cars and price drops",
            "type": "boolean",
            "description": "Turn into a watch: each run returns only cars the last run with the same watch name didn't show, and cars whose price dropped since. Put it on a schedule (daily, say) for alerts by email, Slack or webhook. The first run returns everything and remembers it. You only pay for the cars returned.",
            "default": false
          },
          "watchName": {
            "title": "Watch name",
            "type": "string",
            "description": "Give each saved search its own name, like <code>camry-under-20k</code>. Runs with the same name remember which cars they've already shown you.",
            "default": "default"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}