{
  "openapi": "3.0.1",
  "info": {
    "title": "Craigslist Cars & Trucks Scraper: VIN, Year, Make, Odometer",
    "description": "Scrape craigslist cars and trucks in any of 700+ areas or whole states/countries: price, year, make, model, odometer, VIN, condition, fuel, transmission, title status, drive, owner or dealer, photos and link. Filters for make, year, price, miles; only-new alerts. No login.",
    "version": "0.1",
    "x-build-id": "CravkFGqhyyImJ1eE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/yugenox~craigslist-cars-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-yugenox-craigslist-cars-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/yugenox~craigslist-cars-scraper/runs": {
      "post": {
        "operationId": "runs-sync-yugenox-craigslist-cars-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/yugenox~craigslist-cars-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-yugenox-craigslist-cars-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": {
          "areas": {
            "title": "Craigslist areas",
            "type": "array",
            "description": "Craigslist site names (the part before .craigslist.org), e.g. sfbay, newyork, losangeles, toronto. Sub-areas work too (eby, brk).",
            "items": {
              "type": "string"
            }
          },
          "regions": {
            "title": "Whole regions",
            "type": "array",
            "description": "Search every craigslist area in a region: US, Canada, a US state (TX, US-CA) or a Canadian province (ON, BC). Combined with Areas.",
            "items": {
              "type": "string"
            }
          },
          "make": {
            "title": "Make",
            "type": "string",
            "description": "Car make, e.g. toyota, ford, honda (craigslist make/model filter)."
          },
          "model": {
            "title": "Model",
            "type": "string",
            "description": "Model, e.g. camry, f-150. Combined with Make."
          },
          "keyword": {
            "title": "Keyword",
            "type": "string",
            "description": "Free-text search in the listing, e.g. \"4x4\", \"one owner\"."
          },
          "yearMin": {
            "title": "Year from",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Oldest model year."
          },
          "yearMax": {
            "title": "Year to",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Newest model year."
          },
          "priceMin": {
            "title": "Min price",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum asking price (local currency)."
          },
          "priceMax": {
            "title": "Max price",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum asking price (local currency)."
          },
          "odometerMax": {
            "title": "Max odometer",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum odometer (miles in the US, km in Canada)."
          },
          "odometerMin": {
            "title": "Min odometer",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum odometer."
          },
          "ownerType": {
            "title": "Seller",
            "enum": [
              "all",
              "owner",
              "dealer"
            ],
            "type": "string",
            "description": "Owner, dealer or both.",
            "default": "all"
          },
          "condition": {
            "title": "Condition",
            "type": "array",
            "description": "Only these conditions.",
            "items": {
              "type": "string",
              "enum": [
                "new",
                "like new",
                "excellent",
                "good",
                "fair",
                "salvage"
              ]
            }
          },
          "fuel": {
            "title": "Fuel",
            "type": "array",
            "description": "Only these fuel types.",
            "items": {
              "type": "string",
              "enum": [
                "gas",
                "diesel",
                "hybrid",
                "electric",
                "other"
              ]
            }
          },
          "transmission": {
            "title": "Transmission",
            "type": "array",
            "description": "Only these transmissions.",
            "items": {
              "type": "string",
              "enum": [
                "automatic",
                "manual",
                "other"
              ]
            }
          },
          "titleStatus": {
            "title": "Title status",
            "type": "array",
            "description": "Only these title statuses.",
            "items": {
              "type": "string",
              "enum": [
                "clean",
                "salvage",
                "rebuilt",
                "parts only",
                "lien",
                "missing"
              ]
            }
          },
          "drive": {
            "title": "Drive",
            "type": "array",
            "description": "Only these drivetrains.",
            "items": {
              "type": "string",
              "enum": [
                "fwd",
                "rwd",
                "4wd"
              ]
            }
          },
          "bodyType": {
            "title": "Body type",
            "type": "array",
            "description": "Only these body types.",
            "items": {
              "type": "string",
              "enum": [
                "sedan",
                "suv",
                "pickup",
                "truck",
                "coupe",
                "hatchback",
                "convertible",
                "minivan",
                "van",
                "wagon",
                "offroad",
                "bus",
                "other"
              ]
            }
          },
          "cylinders": {
            "title": "Cylinders",
            "type": "array",
            "description": "Only these engine sizes.",
            "items": {
              "type": "string",
              "enum": [
                "3",
                "4",
                "5",
                "6",
                "8",
                "10",
                "12",
                "other"
              ]
            }
          },
          "paintColor": {
            "title": "Paint color",
            "type": "array",
            "description": "Only these colors.",
            "items": {
              "type": "string",
              "enum": [
                "black",
                "blue",
                "brown",
                "green",
                "grey",
                "orange",
                "purple",
                "red",
                "silver",
                "white",
                "yellow",
                "custom"
              ]
            }
          },
          "postalCode": {
            "title": "ZIP / postal code",
            "type": "string",
            "description": "Search around this ZIP or postal code (use with Distance)."
          },
          "searchDistance": {
            "title": "Distance",
            "minimum": 1,
            "type": "integer",
            "description": "Radius around the ZIP / postal code (miles in the US, km in Canada)."
          },
          "maxAgeHours": {
            "title": "Posted within (hours)",
            "minimum": 1,
            "type": "integer",
            "description": "Only listings posted in the last N hours."
          },
          "hasImage": {
            "title": "Has photos",
            "type": "boolean",
            "description": "Only listings with photos.",
            "default": false
          },
          "includeDetails": {
            "title": "Full specs (VIN, fuel, title…)",
            "type": "boolean",
            "description": "Open each posting for VIN, condition, fuel, transmission, title status, drive, cylinders, color, body type and description. Same price either way.",
            "default": true
          },
          "onlyNew": {
            "title": "Only new listings",
            "type": "boolean",
            "description": "Return only listings not returned by an earlier run with the same search (for scheduled alerts). Checks the newest 360 listings per area.",
            "default": false
          },
          "includeNearby": {
            "title": "Include nearby areas",
            "type": "boolean",
            "description": "Keep the listings craigslist adds from neighboring areas.",
            "default": false
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "newest",
              "oldest",
              "priceasc",
              "pricedsc",
              "relevance"
            ],
            "type": "string",
            "description": "Order of results.",
            "default": "newest"
          },
          "maxListings": {
            "title": "Max listings",
            "minimum": 0,
            "type": "integer",
            "description": "Most cars to save in this run (0 = everything, up to 100,000).",
            "default": 100
          },
          "startUrls": {
            "title": "Craigslist search URLs",
            "type": "array",
            "description": "Optional: paste craigslist car search URLs; all their filters are kept.",
            "items": {
              "type": "string"
            }
          },
          "maxConcurrency": {
            "title": "Parallel posting pages",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "How many posting pages are read at once.",
            "default": 3
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify datacenter proxy (the default) works for craigslist.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}