{
  "openapi": "3.0.1",
  "info": {
    "title": "Cars.co.ug Scraper: Used & New Cars in Uganda",
    "description": "Scrape cars.co.ug, the Ugandan car marketplace: used and new cars, SUVs, pick-ups and trucks with UGX, USD and EUR price, mileage, fuel, transmission, engine, photos, dealers and price-change monitoring. No login, no proxy. Export JSON, CSV or Excel.",
    "version": "0.1",
    "x-build-id": "VrcfSvWOR14EJnjgA"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/recordsdata~cars-ug-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-recordsdata-cars-ug-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~cars-ug-scraper/runs": {
      "post": {
        "operationId": "runs-sync-recordsdata-cars-ug-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~cars-ug-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-recordsdata-cars-ug-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 do?",
            "enum": [
              "search",
              "urls",
              "dealers"
            ],
            "type": "string",
            "description": "Search = ads by make and filters (default). Addresses and listing numbers = specific ads or pages you paste. Dealers = the dealership directory with address, map position and stock count.",
            "default": "search"
          },
          "maxItems": {
            "title": "Max results (rows)",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Stops after this many rows, all record types together. Example: 50. Free plans are capped at 10 per run. The whole site has about 1,600 vehicles.",
            "default": 50
          },
          "makes": {
            "title": "Make (brand)",
            "type": "array",
            "description": "Car brands as written on the site. Example: Toyota, Nissan, Subaru. Case does not matter. Empty means every make.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "models": {
            "title": "Model (needs exactly one make)",
            "type": "array",
            "description": "Models of one make. Example: Land Cruiser, Hilux. Fill Make with a single brand first.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "condition": {
            "title": "Condition (new or used)",
            "enum": [
              "any",
              "new",
              "used"
            ],
            "type": "string",
            "description": "New or used, as labelled on the ad. Default: any.",
            "default": "any"
          },
          "bodyTypes": {
            "title": "Body type",
            "type": "array",
            "description": "Example: SUV, Pickup double cab. Empty means all.",
            "items": {
              "type": "string",
              "enum": [
                "coupe",
                "hatchback",
                "hybrid",
                "minibus",
                "mpv",
                "old-time",
                "panel-van",
                "pickup-double-cab",
                "pickup-extended-cab",
                "pickup-single-cab",
                "sedan",
                "station-wagon",
                "suv"
              ],
              "enumTitles": [
                "Coupe",
                "Hatchback",
                "Hybrid (body class)",
                "Minibus",
                "MPV",
                "Old Time (classic)",
                "Panel van",
                "Pick-up Double Cab",
                "Pick-up Extended Cab",
                "Pick-up Single Cab",
                "Sedan",
                "Station Wagon",
                "SUV"
              ]
            },
            "default": []
          },
          "fuelTypes": {
            "title": "Fuel type",
            "type": "array",
            "description": "Example: Diesel. Empty means all.",
            "items": {
              "type": "string",
              "enum": [
                "petrol",
                "diesel",
                "hybrid"
              ],
              "enumTitles": [
                "Petrol",
                "Diesel",
                "Hybrid"
              ]
            },
            "default": []
          },
          "transmission": {
            "title": "Gearbox",
            "enum": [
              "any",
              "manual",
              "automatic"
            ],
            "type": "string",
            "description": "Manual keeps manual only. Automatic keeps everything that is not manual (DSG, multitronic and similar). Default: any.",
            "default": "any"
          },
          "cities": {
            "title": "City",
            "type": "array",
            "description": "Kampala (nearly every ad) or Entebbe. Empty means all.",
            "items": {
              "type": "string",
              "enum": [
                "kampala",
                "entebbe"
              ],
              "enumTitles": [
                "Kampala",
                "Entebbe"
              ]
            },
            "default": []
          },
          "sortBy": {
            "title": "Sort results by",
            "enum": [
              "newest",
              "oldest",
              "price-asc",
              "price-desc",
              "mileage-asc",
              "mileage-desc",
              "year-desc",
              "year-asc"
            ],
            "type": "string",
            "description": "Newest first is fastest and best for monitoring. Default: newest.",
            "default": "newest"
          },
          "yearFrom": {
            "title": "Earliest model year",
            "minimum": 0,
            "maximum": 2100,
            "type": "integer",
            "description": "Model year or newer. Example: 2018. Empty means no limit."
          },
          "yearTo": {
            "title": "Latest model year",
            "minimum": 0,
            "maximum": 2100,
            "type": "integer",
            "description": "Model year or older. Example: 2024. Empty means no limit."
          },
          "priceFrom": {
            "title": "Min price (UGX)",
            "minimum": 0,
            "maximum": 1000000000000,
            "type": "integer",
            "description": "Ugandan shillings. Example: 50000000. Empty means no limit."
          },
          "priceTo": {
            "title": "Max price (UGX)",
            "minimum": 0,
            "maximum": 1000000000000,
            "type": "integer",
            "description": "Ugandan shillings. Example: 120000000. Empty means no limit."
          },
          "mileageFrom": {
            "title": "Min mileage (km)",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "Example: 20000. Ads without a stated mileage are left out when you set a mileage limit."
          },
          "mileageTo": {
            "title": "Max mileage (km)",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "Example: 150000. Ads without a stated mileage are left out when you set a mileage limit."
          },
          "engineFrom": {
            "title": "Min engine size (cc)",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Cubic centimetres. Example: 2000. Empty means no limit."
          },
          "engineTo": {
            "title": "Max engine size (cc)",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Cubic centimetres. Example: 3000. Empty means no limit."
          },
          "startUrls": {
            "title": "Ad or page addresses",
            "type": "array",
            "description": "cars.co.ug ad pages, filtered search pages, make or model pages (example: /Toyota/Land-Cruiser), one dealer page or the private sellers page.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "listingIds": {
            "title": "Listing numbers",
            "type": "array",
            "description": "The number at the end of an ad address. Example: 41316 (4 to 9 digits).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "dealerQuery": {
            "title": "Dealer name contains",
            "type": "string",
            "description": "Keeps dealers whose name contains this text. Example: Motors. Empty means every dealer.",
            "default": ""
          },
          "includeDealerVehicles": {
            "title": "Also collect each dealer's vehicles",
            "type": "boolean",
            "description": "On: after each dealer row, also collects that dealer's vehicle ads. Adds rows and cost. Default: off.",
            "default": false
          },
          "fetchDetails": {
            "title": "Open every ad for full detail",
            "type": "boolean",
            "description": "Off: one row per ad from the result list (price, year, mileage, fuel, gearbox, city, photo). On: also body type, drive, power, features, all photos, description, dealer address, map position and exact USD and EUR price. Slower, billed as a detail record.",
            "default": false
          },
          "includeContactDetails": {
            "title": "Include dealer phone numbers",
            "type": "boolean",
            "description": "Adds the business phone of dealerships. Private seller names, phones and emails are never output. Default: off.",
            "default": false
          },
          "onlyNew": {
            "title": "Only new ads since last run",
            "type": "boolean",
            "description": "Skips ads already seen by a run with the same monitor name. Use with a schedule. Default: off.",
            "default": false
          },
          "trackPriceChanges": {
            "title": "Report price changes",
            "type": "boolean",
            "description": "Needs 'Only new ads'. An ad seen before whose price moved 2 percent or more comes back as a price-change row with the old price and the change in percent.",
            "default": false
          },
          "stateKey": {
            "title": "Monitor name",
            "type": "string",
            "description": "One name per saved search. Example: toyota-kampala. Empty derives a name from your filters.",
            "default": ""
          },
          "resetSeen": {
            "title": "Start monitoring from scratch",
            "type": "boolean",
            "description": "Clears the memory of this monitor name before the run. Default: off.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy (optional)",
            "type": "object",
            "description": "Empty means direct requests, which work. Add a proxy only if your own network needs one."
          },
          "maxConcurrency": {
            "title": "Parallel page reads (1 to 5)",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Requests are paced to about two per second in total, so a higher value adds little. Default: 2.",
            "default": 2
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}