{
  "openapi": "3.0.1",
  "info": {
    "title": "Chileautos Scraper",
    "description": "Track Chile's entire car market in one pull: dealers spot competitor pricing, researchers model depreciation by year and mileage, lead-gen teams get seller names and contacts, and buyers skip sponsored ads — every car, moto, truck and bus on Chileautos, without stalling.",
    "version": "1.0",
    "x-build-id": "OVDxr3trKOEDJOdgR"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/normdata~chileautos-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-normdata-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/normdata~chileautos-scraper/runs": {
      "post": {
        "operationId": "runs-sync-normdata-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/normdata~chileautos-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-normdata-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": {
          "maxItems": {
            "title": "Maximum vehicles",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many listings. Leave empty for no limit (the run stops on its own once the matching listings run out). The Apify Free plan is always capped at 10."
          },
          "pageUrl": {
            "title": "Paste a Chileautos search link (optional)",
            "type": "string",
            "description": "Already built a search on chileautos.cl with the filters you want? Paste that page's URL here and this Actor reuses it exactly, every filter below is then ignored. Works for a search results link; it does not work for a single listing's own page."
          },
          "keywords": {
            "title": "Keywords (model, trim, anything)",
            "type": "array",
            "description": "Free-text search terms, e.g. \"corolla\" or \"4x4 diesel\". Each keyword runs its own search and is tagged on every row it produces. Combines with Make and every filter below.",
            "items": {
              "type": "string"
            }
          },
          "make": {
            "title": "Make",
            "type": "string",
            "description": "Brand name as shown on Chileautos, e.g. \"Toyota\", \"Chevrolet\", \"Great Wall\". Leave empty for every make."
          },
          "models": {
            "title": "Models",
            "type": "array",
            "description": "Only these models of the make above, e.g. \"Corolla\" or \"Yaris\" for Toyota. Needs Make. Case and accents don't matter. Leave empty for every model.",
            "items": {
              "type": "string"
            }
          },
          "vehicleType": {
            "title": "Vehicle type",
            "enum": [
              "autos",
              "motos",
              "camiones",
              "buses"
            ],
            "type": "string",
            "description": "Top-level category to search."
          },
          "condition": {
            "title": "Condition",
            "enum": [
              "cualquiera",
              "nuevo",
              "usado"
            ],
            "type": "string",
            "description": "New or used vehicles."
          },
          "region": {
            "title": "Region",
            "type": "string",
            "description": "Chilean region, exactly as Chileautos names it, e.g. \"Metropolitana de Santiago\", \"Valparaíso\", \"Bío Bío\", \"Araucanía\", \"Ñuble\", \"Los Lagos\", \"Los Ríos\", \"Maule\", \"Coquimbo\", \"Atacama\", \"Tarapacá\", \"Arica y Parinacota\", \"Aysén\", \"Magallanes y Antártica Chilena\", \"OHiggins\". Leave empty for all of Chile."
          },
          "cities": {
            "title": "Cities",
            "type": "array",
            "description": "Only vehicles in these cities, as Chileautos names them, e.g. \"Santiago\", \"Concepción\", \"Temuco\", \"Viña del Mar\", \"Puerto Montt\". All of greater Santiago (Las Condes, Ñuñoa, Maipú…) is the single city \"Santiago\" on Chileautos. Works with or without Region. Case and accents don't matter.",
            "items": {
              "type": "string"
            }
          },
          "priceMin": {
            "title": "Minimum price (CLP)",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings priced at or above this amount, in Chilean pesos."
          },
          "priceMax": {
            "title": "Maximum price (CLP)",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings priced at or below this amount, in Chilean pesos."
          },
          "yearMin": {
            "title": "Year from",
            "minimum": 1950,
            "maximum": 2035,
            "type": "integer",
            "description": "Oldest model year to include."
          },
          "yearMax": {
            "title": "Year to",
            "minimum": 1950,
            "maximum": 2035,
            "type": "integer",
            "description": "Newest model year to include."
          },
          "kmMin": {
            "title": "Odometer from (km)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum kilometers travelled."
          },
          "kmMax": {
            "title": "Odometer to (km)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum kilometers travelled."
          },
          "bodyType": {
            "title": "Body type",
            "type": "string",
            "description": "Exact body style as shown on Chileautos, e.g. \"SUV\", \"Sedán\", \"Hatchback\", \"Camioneta\", \"Furgón\", \"Coupé\", \"Station Wagon\". Leave empty for any."
          },
          "fuel": {
            "title": "Fuel",
            "enum": [
              "cualquiera",
              "Bencina",
              "Diesel",
              "Híbrido",
              "Eléctrico"
            ],
            "type": "string",
            "description": "Engine fuel type."
          },
          "transmission": {
            "title": "Transmission",
            "enum": [
              "cualquiera",
              "Manual",
              "Automática"
            ],
            "type": "string",
            "description": "Gearbox type."
          },
          "color": {
            "title": "Color",
            "type": "string",
            "description": "Exact color name as shown on Chileautos, e.g. \"Blanco\", \"Negro\", \"Gris\". Leave empty for any."
          },
          "sellerType": {
            "title": "Seller type",
            "enum": [
              "todos",
              "particular",
              "agencia"
            ],
            "type": "string",
            "description": "Keep only private sellers or only dealerships. Applied after fetching, like a client-side filter."
          },
          "includeSellerContact": {
            "title": "Include seller phone and WhatsApp",
            "type": "boolean",
            "description": "Adds the seller's public phone and WhatsApp number to every row, ready-to-call leads. One extra quick request per listing; turn off for a faster listing-only run."
          },
          "includeDetails": {
            "title": "Include full listing details",
            "type": "boolean",
            "description": "Adds what only the listing page has: the seller's description, comuna, exterior and interior color, doors, seats, engine size (liters and cc), horsepower, drivetrain, single owner, the seller ID and how many listings a dealer has, plus every spec Chileautos publishes (dimensions, fuel economy, airbags, equipment and more) in specs. One extra request per listing, so the run is slower. Off: none of these fields are added.",
            "default": false
          },
          "customQuery": {
            "title": "Raw Chileautos query override",
            "type": "string",
            "description": "Optional. Paste a raw Chileautos search expression (the same format the site builds when you apply filters, e.g. \"Marca.Toyota._.Precio.range(5000000..15000000).\") to filter on something not exposed above. When set, it's combined with Keywords but replaces every other filter."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}