{
  "openapi": "3.0.1",
  "info": {
    "title": "Mobiauto Scraper",
    "description": "Scrape Mobiauto car, motorcycle and truck listings in Brazil: type a make or model with filters, or paste any search, dealer or ad URL. Prices, specs, FIPE, locations, seller contacts.",
    "version": "0.3",
    "x-build-id": "s8Po30b1ZqOFiaWGn"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ribtools~mobiauto-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ribtools-mobiauto-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/ribtools~mobiauto-scraper/runs": {
      "post": {
        "operationId": "runs-sync-ribtools-mobiauto-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/ribtools~mobiauto-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-ribtools-mobiauto-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": {
          "vehicles": {
            "title": "Search vehicles",
            "type": "array",
            "description": "Type it the way you would in Mobiauto's search box: a make (`chery`), a model (`Tiggo 7`) or both (`Volkswagen Polo`). One per line, each becomes its own search. Spelling is matched against Mobiauto's own catalog, so `cherry` finds CAOA Chery. Leave empty if you only paste URLs below.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Mobiauto URLs",
            "type": "array",
            "description": "Mobiauto URLs copied from your browser: searches for cars, motorcycles and trucks with any filters (e.g. `https://www.mobiauto.com.br/comprar/carros/sp-sao-paulo/fiat/mobi`), dealer stock pages (`/estoque/<dealer>-<id>`) and single ads (`.../detalhes/<id>`). Searches run in lowest-price order (highest, if the URL asks), at most 9,984 results each. A URL keeps exactly the filters it carries.",
            "items": {
              "type": "string"
            }
          },
          "maxRequests": {
            "title": "Max results per search",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of vehicles for each vehicle and each URL above. Each result is a charged event. Default 10.",
            "default": 10
          },
          "vehicleType": {
            "title": "Vehicle type",
            "enum": [
              "car",
              "bike",
              "truck"
            ],
            "type": "string",
            "description": "Cars, motorcycles or trucks. Applies to the vehicles typed above.",
            "default": "car"
          },
          "condition": {
            "title": "Condition",
            "enum": [
              "all",
              "used",
              "new"
            ],
            "type": "string",
            "description": "Used, new, or both.",
            "default": "all"
          },
          "state": {
            "title": "State",
            "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"
            ],
            "type": "string",
            "description": "Brazilian state (UF). Leave empty to search the whole country."
          },
          "city": {
            "title": "City",
            "type": "string",
            "description": "A city inside the state above, e.g. `Campinas`. Mobiauto searches around the city: 25 km, widened by Mobiauto itself (up to 250 km seen) when few vehicles match; the run's message names the radius used. Leave empty for the whole state. Spelling is checked against Mobiauto's city list."
          },
          "yearFrom": {
            "title": "Year from",
            "minimum": 1950,
            "maximum": 2030,
            "type": "integer",
            "description": "Oldest model year to include."
          },
          "yearTo": {
            "title": "Year to",
            "minimum": 1950,
            "maximum": 2030,
            "type": "integer",
            "description": "Newest model year to include. Leave empty for no upper limit."
          },
          "sellerType": {
            "title": "Seller type",
            "enum": [
              "all",
              "dealer",
              "private"
            ],
            "type": "string",
            "description": "Dealers (stores, franchised dealerships and rental companies), private sellers, or both. Private sellers are rare on Mobiauto.",
            "default": "all"
          },
          "priceFrom": {
            "title": "Price from (R$)",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest asking price to include, in reais."
          },
          "priceTo": {
            "title": "Price to (R$)",
            "minimum": 1,
            "type": "integer",
            "description": "Highest asking price to include, in reais: 1 or more (no vehicle is listed at 0)."
          },
          "kmTo": {
            "title": "Mileage to (km)",
            "minimum": 1,
            "type": "integer",
            "description": "Highest mileage to include: 1 km or more. For 0 km vehicles, set Condition to New instead."
          },
          "detailsAddon": {
            "title": "Fetch ad details (add-on)",
            "type": "boolean",
            "description": "Open each ad to add the description, color, FIPE price and code, the plate's last digit, equipment list, ad conditions (IPVA paid, inspected, ...), trade-in and armored flags, engine size, power, seats, drivetrain and Mobiauto's market price range. Charged per vehicle with details.",
            "default": false
          },
          "sellerDataAddon": {
            "title": "Fetch seller data (add-on)",
            "type": "boolean",
            "description": "Add the seller's name, type, phones and WhatsApp (only when the ad shows them), website and description; for dealers also the address, postal code, map location and Mobiauto stock page. Private sellers included. Charged per vehicle that returns a seller name or phone.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}