{
  "openapi": "3.0.1",
  "info": {
    "title": "Chileautos Scraper - Used and New Cars Chile",
    "description": "Scrapes chileautos.cl car classifieds by make, model, region, price, year, mileage, fuel and seller type. Returns price, year, km, fuel, gearbox, body type, region and dealer name. Over 900 listings per search.",
    "version": "0.1",
    "x-build-id": "L30p3eSrmK1DzZlaz"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/reventadata~chileautos-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-reventadata-chileautos-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/reventadata~chileautos-scraper/runs": {
      "post": {
        "operationId": "runs-sync-reventadata-chileautos-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/reventadata~chileautos-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-reventadata-chileautos-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": {
          "vehicleType": {
            "title": "Vehicle type",
            "enum": [
              "all",
              "autos",
              "motos",
              "camiones",
              "buses",
              "maquinarias",
              "casas-rodantes",
              "nautica",
              "aereos"
            ],
            "type": "string",
            "description": "Which kind of vehicle to read. 'all' covers every kind the site lists; the other values are the site's own vehicle-type filter.",
            "default": "all"
          },
          "make": {
            "title": "Make",
            "type": "string",
            "description": "Brand exactly as chileautos.cl names it, for example Toyota, Hyundai, Alfa Romeo. Leave empty for every make. A make the site does not know stops the run with an error instead of returning other vehicles."
          },
          "model": {
            "title": "Model",
            "type": "string",
            "description": "Model inside the make, for example Hilux or Corolla. Needs a make. Spelled as the site lists it."
          },
          "condition": {
            "title": "Condition",
            "enum": [
              "any",
              "new",
              "used"
            ],
            "type": "string",
            "description": "Brand-new listings (Nuevo) or used ones (Usado). 'any' returns both.",
            "default": "any"
          },
          "region": {
            "title": "Region",
            "enum": [
              "any",
              "arica-y-parinacota",
              "tarapaca",
              "antofagasta",
              "atacama",
              "coquimbo",
              "valparaiso",
              "metropolitana",
              "ohiggins",
              "maule",
              "nuble",
              "bio-bio",
              "araucania",
              "los-rios",
              "los-lagos",
              "aysen",
              "magallanes"
            ],
            "type": "string",
            "description": "One of Chile's 16 regions, as the site's region filter. 'any' reads the whole country.",
            "default": "any"
          },
          "sellerType": {
            "title": "Seller type",
            "enum": [
              "any",
              "dealer",
              "private",
              "verified-private"
            ],
            "type": "string",
            "description": "Dealers (automotoras), private sellers, or private sellers whose identity the site has verified. 'any' returns all three.",
            "default": "any"
          },
          "fuel": {
            "title": "Fuel",
            "enum": [
              "any",
              "gasoline",
              "diesel",
              "electric",
              "gas",
              "hybrid",
              "other"
            ],
            "type": "string",
            "description": "Fuel type, from the site's own fuel filter. 'any' returns all.",
            "default": "any"
          },
          "minPrice": {
            "title": "Minimum price",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest listed price. The site compares the listed number whatever the currency, so a listing priced in US dollars is compared by its dollar amount. Leave empty for no minimum."
          },
          "maxPrice": {
            "title": "Maximum price",
            "minimum": 0,
            "type": "integer",
            "description": "Highest listed price, compared the same way as the minimum. Leave empty for no maximum."
          },
          "minYear": {
            "title": "Minimum year",
            "minimum": 1900,
            "type": "integer",
            "description": "Oldest model year to keep. Leave empty for no minimum."
          },
          "maxYear": {
            "title": "Maximum year",
            "minimum": 1900,
            "type": "integer",
            "description": "Newest model year to keep. Leave empty for no maximum."
          },
          "minKm": {
            "title": "Minimum mileage (km)",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest odometer reading in kilometres. Leave empty for no minimum."
          },
          "maxKm": {
            "title": "Maximum mileage (km)",
            "minimum": 0,
            "type": "integer",
            "description": "Highest odometer reading in kilometres. Leave empty for no maximum."
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "featured",
              "price-asc",
              "price-desc",
              "year-desc",
              "year-asc",
              "km-asc",
              "km-desc",
              "make-model-az",
              "make-model-za"
            ],
            "type": "string",
            "description": "Order of the results, from the site's own sort list. 'featured' is the site's default and shows promoted listings first.",
            "default": "featured"
          },
          "maxItems": {
            "title": "Maximum items",
            "minimum": 1,
            "type": "integer",
            "description": "Total number of listings to save. The site serves 50 pages of about 18 listings per search (about 900), so a bigger number makes the Actor cut the search into price slices and read each one. About 18 listings are read per request.",
            "default": 100
          },
          "includeKeywords": {
            "title": "Must contain",
            "type": "array",
            "description": "Keep only listings whose title, trim, make, model, body type or dealer name contains every one of these words, ignoring case and accents. Applied after the site's filters, so rows dropped here still count as pages read.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Must not contain",
            "type": "array",
            "description": "Drop listings whose title, trim, make, model, body type or dealer name contains any of these words, ignoring case and accents.",
            "items": {
              "type": "string"
            }
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Unblocker is what reached chileautos.cl in testing: with no proxy, a datacenter proxy and a Chilean residential proxy the site answered with a DataDome challenge page.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "UNBLOCKER"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}