{
  "openapi": "3.0.1",
  "info": {
    "title": "Caminhões e Carretas Scraper: Trucks, Trailers & Dealers",
    "description": "Scrape Caminhões e Carretas, the Brazilian classifieds site for trucks, trailers, buses, tractors and machinery. Listings with price, year, mileage, make, model, city and photos, optional full details, dealer directory and make and model catalog. 59 fields, no login. Export CSV, Excel, JSON or XML.",
    "version": "0.1",
    "x-build-id": "Z3qKzFLBNr4d5qS0R"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/recordsdata~caminhoesecarretas-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-recordsdata-caminhoesecarretas-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/recordsdata~caminhoesecarretas-scraper/runs": {
      "post": {
        "operationId": "runs-sync-recordsdata-caminhoesecarretas-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/recordsdata~caminhoesecarretas-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-recordsdata-caminhoesecarretas-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": {
          "mode": {
            "title": "What do you want to collect?",
            "enum": [
              "vehicles",
              "dealers",
              "catalog"
            ],
            "type": "string",
            "description": "Vehicles = classified listings. Dealers = store directory by state (address, hours). Catalog = vehicle types, makes and models of the site. Example: Vehicles.",
            "default": "vehicles"
          },
          "startUrls": {
            "title": "Page links (optional)",
            "type": "array",
            "description": "Links copied from www.caminhoesecarretas.com.br: a search page, one vehicle, a store page or the dealer list (revendas.aspx). Example: https://www.caminhoesecarretas.com.br/caminhoes/scania",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "vehicleTypes": {
            "title": "Vehicle types",
            "type": "array",
            "description": "One or more classes, for example Truck, Trailer or Tractor. Empty = all types.",
            "items": {
              "type": "string",
              "enum": [
                "caminhao",
                "carreta",
                "carroceria-sobre-chassi",
                "micro-onibus",
                "onibus",
                "utilitarios",
                "vans",
                "trator",
                "colheitadeira",
                "micro-trator",
                "implementos-agricolas",
                "forragem-e-feno",
                "distribuidor-autopropelido",
                "plataforma-colheitadeira",
                "plantadeira",
                "semeadeira",
                "pulverizador",
                "carro",
                "empilhadeira",
                "equipamentos",
                "escavadeira",
                "guindaste",
                "manipulador-telescopico",
                "maquinas",
                "mini-carregadeira",
                "mini-escavadeira",
                "moto",
                "quadriciclo",
                "motoniveladora",
                "motorhome",
                "nautico",
                "plataforma-elevatoria",
                "pa-carregadeira",
                "retro-escavadeira",
                "rolo-compactador",
                "trailer",
                "trator-esteira",
                "trator-skidder",
                "aviao",
                "florestal"
              ],
              "enumTitles": [
                "Truck",
                "Trailer",
                "Body on chassis",
                "Minibus",
                "Bus",
                "Utility vehicle",
                "Van",
                "Tractor",
                "Combine harvester",
                "Micro tractor",
                "Farm implement",
                "Forage and hay equipment",
                "Self-propelled spreader",
                "Harvester header",
                "Planter",
                "Seeder",
                "Sprayer",
                "Car",
                "Forklift",
                "Equipment",
                "Excavator",
                "Crane",
                "Telehandler",
                "Machinery",
                "Skid steer loader",
                "Mini excavator",
                "Motorcycle",
                "Quad bike",
                "Motor grader",
                "Motorhome",
                "Boat",
                "Aerial work platform",
                "Wheel loader",
                "Backhoe loader",
                "Roller compactor",
                "Camper trailer",
                "Crawler tractor",
                "Skidder",
                "Aircraft",
                "Forestry equipment"
              ]
            },
            "default": []
          },
          "makes": {
            "title": "Makes (brands)",
            "type": "array",
            "description": "Manufacturer names, one per line. Accents and case do not matter. Example: Scania, Volvo, Mercedes-Benz. In Catalog mode a make also lists its models.",
            "items": {
              "type": "string"
            }
          },
          "models": {
            "title": "Models (needs a make)",
            "type": "array",
            "description": "Model names, one per line; each needs at least one make above. A name matches every model of the make that contains it. Example: R 450, FH 540.",
            "items": {
              "type": "string"
            }
          },
          "queries": {
            "title": "Keyword filter",
            "type": "array",
            "description": "Keep only listings whose make, model, city, color, body, seller or highlights contain all the words of a term. A listing needs to match any one term. In Dealers mode it filters dealer names. Example: bau 6x2.",
            "items": {
              "type": "string"
            }
          },
          "states": {
            "title": "States (UF)",
            "type": "array",
            "description": "Brazilian states by two-letter code. Example: SP, MG.",
            "items": {
              "type": "string",
              "enum": [
                "AC",
                "AL",
                "AP",
                "AM",
                "BA",
                "CE",
                "DF",
                "ES",
                "GO",
                "MA",
                "MT",
                "MS",
                "MG",
                "PA",
                "PB",
                "PR",
                "PE",
                "PI",
                "RJ",
                "RN",
                "RS",
                "RO",
                "RR",
                "SC",
                "SP",
                "SE",
                "TO"
              ],
              "enumTitles": [
                "Acre (AC)",
                "Alagoas (AL)",
                "Amapá (AP)",
                "Amazonas (AM)",
                "Bahia (BA)",
                "Ceará (CE)",
                "Distrito Federal (DF)",
                "Espírito Santo (ES)",
                "Goiás (GO)",
                "Maranhão (MA)",
                "Mato Grosso (MT)",
                "Mato Grosso do Sul (MS)",
                "Minas Gerais (MG)",
                "Pará (PA)",
                "Paraíba (PB)",
                "Paraná (PR)",
                "Pernambuco (PE)",
                "Piauí (PI)",
                "Rio de Janeiro (RJ)",
                "Rio Grande do Norte (RN)",
                "Rio Grande do Sul (RS)",
                "Rondônia (RO)",
                "Roraima (RR)",
                "Santa Catarina (SC)",
                "São Paulo (SP)",
                "Sergipe (SE)",
                "Tocantins (TO)"
              ]
            },
            "default": []
          },
          "cities": {
            "title": "Cities (with state)",
            "type": "array",
            "description": "One city per line, written with its state. Example: Campinas, SP or Curitiba, PR.",
            "items": {
              "type": "string"
            }
          },
          "yearFrom": {
            "title": "Manufacture year from",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Oldest year to keep. Example: 2018."
          },
          "yearTo": {
            "title": "Manufacture year to",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Newest year to keep. Example: 2024."
          },
          "priceMin": {
            "title": "Minimum price (BRL)",
            "minimum": 0,
            "maximum": 1000000000,
            "type": "integer",
            "description": "Lowest asking price in Brazilian reais. Example: 150000."
          },
          "priceMax": {
            "title": "Maximum price (BRL)",
            "minimum": 0,
            "maximum": 1000000000,
            "type": "integer",
            "description": "Highest asking price in Brazilian reais. Example: 500000."
          },
          "tractionConfig": {
            "title": "Axle configuration (trucks)",
            "type": "string",
            "description": "For trucks, buses and similar. A short value such as 6x2 matches every option containing it. Example: Cavalo 6x2. Types without this option are skipped."
          },
          "bodyType": {
            "title": "Body type (trucks and trailers)",
            "type": "string",
            "description": "A short value such as bau matches every option containing it. Example: Bau Sider, Graneleiro, Tanque. Types without this option are skipped."
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "default",
              "recent",
              "priceAsc",
              "priceDesc"
            ],
            "type": "string",
            "description": "Site default keeps the order the site shows (a few promoted listings stay on top whatever the order). Newest first is handy with a small Max results.",
            "default": "default"
          },
          "maxItems": {
            "title": "Max results (free plan: 10)",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Maximum rows across all searches. Free users get 10 (preview); paid users up to 1,000,000. One site search stops near 1,000 listings, so big values are split by state, make, model, city, year and price.",
            "default": 10
          },
          "fetchDetails": {
            "title": "Open each listing page (slower)",
            "type": "boolean",
            "description": "Adds full description, equipment, manufacturer, chassis make, exact address and coordinates. Adds one request per vehicle or dealer and returns the detailed record type. Off = search-card fields only.",
            "default": false
          },
          "includeContactDetails": {
            "title": "Include seller phone numbers",
            "type": "boolean",
            "description": "Adds public dealer phone numbers. Off by default; phones and e-mails are also removed from descriptions. Turn on only with a lawful reason to hold contact data.",
            "default": false
          },
          "onlyNew": {
            "title": "Only return new records",
            "type": "boolean",
            "description": "Skip every record this same search already returned in an earlier run, so scheduled runs return only what changed and skipped records are not charged. Max results then counts new records. Example: turn on for a daily schedule.",
            "default": false
          },
          "stateKey": {
            "title": "Monitor name (optional)",
            "type": "string",
            "description": "A label to keep several independent monitors with identical filters. Leave empty to share state between runs of the same search. Example: daily-check.",
            "default": ""
          },
          "resetSeen": {
            "title": "Forget previously seen records",
            "type": "boolean",
            "description": "Clear the stored list of already-seen records for this search (and monitor name) before the run, so everything counts as new again.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}