{
  "openapi": "3.0.1",
  "info": {
    "title": "PakWheels Used Car Search by Make, City & Price",
    "description": "Search PakWheels used-car listings by make, city, price, year, mileage, fuel type, transmission and body type, or fetch full detail for specific listing URLs.",
    "version": "1.1",
    "x-build-id": "8QhYWMZXjCnThgqYJ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dataspryva~pakwheels-used-car-search-by-make-city-and-price/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dataspryva-pakwheels-used-car-search-by-make-city-and-price",
        "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/dataspryva~pakwheels-used-car-search-by-make-city-and-price/runs": {
      "post": {
        "operationId": "runs-sync-dataspryva-pakwheels-used-car-search-by-make-city-and-price",
        "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/dataspryva~pakwheels-used-car-search-by-make-city-and-price/run-sync": {
      "post": {
        "operationId": "run-sync-dataspryva-pakwheels-used-car-search-by-make-city-and-price",
        "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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "byUrl",
              "searchUrls"
            ],
            "type": "string",
            "description": "What to scrape.",
            "default": "search"
          },
          "searchQuery": {
            "title": "Search keyword",
            "type": "string",
            "description": "Free-text keyword, e.g. `Honda Civic`, `Toyota Corolla 2020`, `Suzuki Alto`. Matches make, model and title text. Leave empty to search everything.",
            "default": ""
          },
          "make": {
            "title": "Make",
            "enum": [
              "",
              "toyota",
              "suzuki",
              "honda",
              "daihatsu",
              "aion",
              "alektra",
              "audi",
              "avatr",
              "baic",
              "bmw",
              "byd",
              "bentley",
              "buick",
              "cadillac",
              "changan",
              "chery",
              "chevrolet",
              "chrysler",
              "dfsk",
              "daehan",
              "daewoo",
              "datsun",
              "deepal",
              "dodge",
              "dongfeng",
              "faw",
              "fiat",
              "ford",
              "forthing",
              "gac",
              "gmc",
              "gugo",
              "haval",
              "honri",
              "hummer",
              "hyptec",
              "hyundai",
              "inverex",
              "isuzu",
              "jac",
              "jmc",
              "jmev",
              "jw-forland",
              "jaecoo",
              "jaguar",
              "jeep",
              "jetour",
              "kia",
              "kaiyi",
              "land-rover",
              "lexus",
              "mg",
              "mini",
              "mazda",
              "mercedes-benz",
              "mitsubishi",
              "nevo",
              "nissan",
              "ora",
              "omoda",
              "peugeot",
              "polaris",
              "porsche",
              "power",
              "prince",
              "proton",
              "range-rover",
              "rinco",
              "rolls-royce",
              "seres",
              "smart",
              "sogo",
              "ssangyong",
              "subaru",
              "tank",
              "tesla",
              "united",
              "volkswagen",
              "willys",
              "xpeng",
              "icaur"
            ],
            "type": "string",
            "description": "Restrict results to a manufacturer.",
            "default": ""
          },
          "city": {
            "title": "City",
            "enum": [
              "",
              "lahore",
              "karachi",
              "islamabad",
              "rawalpindi",
              "peshawar",
              "quetta",
              "abbottabad",
              "arifwala",
              "attock",
              "bahawalnagar",
              "bahawalpur",
              "bannu",
              "bhakkar",
              "bhalwal",
              "bhimber",
              "burewala",
              "chakwal",
              "charsadda",
              "chichawatni",
              "chiniot",
              "chishtian",
              "d-g-khan",
              "daska",
              "depal-pur",
              "dera-ghazi-khan",
              "dera-ismail-khan",
              "dina",
              "dinga",
              "faisalabad",
              "fateh-jang",
              "gojra",
              "gujar-khan",
              "gujranwala",
              "gujrat",
              "hafizabad",
              "haripur--2",
              "haroonabad",
              "hasilpur",
              "hassan-abdal",
              "hazro",
              "hyderabad",
              "jalalpur-jattan",
              "jaranwala",
              "jauharabad",
              "jhang",
              "jhelum",
              "kamalia",
              "kamoke",
              "kamra",
              "kasur",
              "khanewal",
              "khanpur--2",
              "kharian",
              "khushab",
              "kohat",
              "kot-addu",
              "kotli-ak",
              "lala-musa",
              "larkana",
              "layyah",
              "lodhran",
              "mandi-bahauddin",
              "mansehra",
              "mardan",
              "mian-channu",
              "mian-wali",
              "Mian Wali",
              "mirpur-a-k",
              "mirpur-khas",
              "multan",
              "muridke",
              "murree",
              "muzaffar-gargh",
              "muzaffarabad",
              "nankana-sahib",
              "narowal",
              "nawabshah",
              "nowshera",
              "nowshera-cantt",
              "okara",
              "pak-pattan-sharif",
              "pasrur",
              "pattoki",
              "pir-mahal",
              "rahim-yar-khan",
              "renala-khurd",
              "sadiqabad",
              "sahiwal",
              "sargodha",
              "sheikhupura",
              "sialkot",
              "sukkur",
              "swabi",
              "swat",
              "talagang",
              "taxila",
              "toba-tek-singh",
              "vehari",
              "wah-cantt",
              "wazirabad"
            ],
            "type": "string",
            "description": "Restrict results to a city.",
            "default": ""
          },
          "registeredIn": {
            "title": "Registered in",
            "enum": [
              "",
              "punjab",
              "sindh",
              "lahore",
              "karachi",
              "quetta",
              "islamabad",
              "peshawar",
              "rawalpindi",
              "abbottabad",
              "adda-jahan-khan",
              "agra--2",
              "arifwala",
              "attock",
              "badin",
              "bahawalnagar",
              "bahawalpur",
              "bannu",
              "batang--2",
              "batgram",
              "bhakkar",
              "burewala",
              "charsadda",
              "chichawatni",
              "chilas",
              "chiniot",
              "chitral",
              "d-g-khan",
              "dadu",
              "daska",
              "dera-ghazi-khan",
              "dera-ismail-khan",
              "dir",
              "faisalabad",
              "fateh-jang",
              "gharibwal",
              "gilgit",
              "gojra",
              "gujranwala",
              "gujrat",
              "hafizabad",
              "haripur--2",
              "havali-lakhan",
              "hub-balochistan",
              "hyderabad",
              "iskandarabad",
              "jacobabad",
              "jamshoro",
              "jaranwala",
              "jhang",
              "jhelum",
              "kala-bagh",
              "kamoke",
              "kanyal",
              "karak",
              "kashmir",
              "kashmir-point",
              "kasur",
              "khairpur",
              "khairpur-mir",
              "khanewal",
              "khushab",
              "khyber",
              "kohat",
              "kotli-ak",
              "lahore-hub",
              "larkana",
              "lasbela",
              "layyah",
              "lower-dir",
              "mandi-bahauddin",
              "mansehra",
              "mardan",
              "mian-wali",
              "mirpur-a-k",
              "mirpur-khas",
              "multan",
              "muzaffarabad",
              "narowal",
              "nawabshah",
              "nowshera",
              "nowshera-cantt",
              "okara",
              "pak-pattan-sharif",
              "punjab-seed-corp-pirowal",
              "punjab-sugar-mills",
              "rahim-yar-khan",
              "sadiqabad",
              "sahiwal",
              "sargodha",
              "sheikhupura",
              "sialkot",
              "sindhri",
              "sukkur",
              "swabi",
              "swat",
              "swatmingora",
              "toba-tek-singh",
              "unregistered",
              "vehari",
              "wah-cantt",
              "wazirabad"
            ],
            "type": "string",
            "description": "Restrict results by registration city or province.",
            "default": ""
          },
          "province": {
            "title": "Province",
            "enum": [
              "",
              "punjab",
              "sindh",
              "kpk",
              "balochistan",
              "azad-kashmir",
              "federally-administered-tribal-areas"
            ],
            "type": "string",
            "description": "Restrict results to a province.",
            "default": ""
          },
          "bodyType": {
            "title": "Body type",
            "enum": [
              "",
              "compact-sedan",
              "compact-suv",
              "convertible",
              "coupe",
              "crossover",
              "double-cabin",
              "hatchback",
              "high-roof",
              "micro-van",
              "mini-van",
              "mini-vehicles",
              "mpv",
              "off-road-vehicles",
              "pick-up",
              "sedan",
              "single-cabin",
              "station-wagon",
              "suv",
              "truck",
              "van"
            ],
            "type": "string",
            "description": "Restrict results to a body style.",
            "default": ""
          },
          "fuelType": {
            "title": "Fuel / engine type",
            "enum": [
              "",
              "cng",
              "diesel",
              "electric",
              "hybrid",
              "lpg",
              "phev",
              "petrol",
              "reev"
            ],
            "type": "string",
            "description": "Restrict results to a fuel or powertrain type.",
            "default": ""
          },
          "transmission": {
            "title": "Transmission",
            "enum": [
              "",
              "manual",
              "automatic"
            ],
            "type": "string",
            "description": "Restrict results to a gearbox type.",
            "default": ""
          },
          "color": {
            "title": "Colour",
            "enum": [
              "",
              "beige",
              "black",
              "blue",
              "bronze",
              "brown",
              "burgundy",
              "gold",
              "green",
              "grey",
              "indigo",
              "magenta",
              "maroon",
              "navy",
              "orange",
              "pink",
              "purple",
              "red",
              "silver",
              "turquoise",
              "unlisted",
              "white",
              "yellow"
            ],
            "type": "string",
            "description": "Restrict results to an exterior colour.",
            "default": ""
          },
          "assembly": {
            "title": "Assembly",
            "enum": [
              "",
              "local",
              "imported"
            ],
            "type": "string",
            "description": "Locally assembled or imported.",
            "default": ""
          },
          "origin": {
            "title": "Make origin",
            "enum": [
              "",
              "japanese",
              "german",
              "chinese",
              "korean",
              "american"
            ],
            "type": "string",
            "description": "Restrict results by the make's country of origin.",
            "default": ""
          },
          "category": {
            "title": "Model category",
            "enum": [
              "",
              "sports",
              "electric",
              "luxury",
              "old",
              "carry-daba",
              "accidental",
              "modified",
              "small",
              "jeep",
              "urgent",
              "big",
              "family-cars",
              "exotic",
              "custom-auction",
              "cheap",
              "left-hand-drive",
              "duplicate-file"
            ],
            "type": "string",
            "description": "PakWheels model categories such as Luxury, Family Cars or Urgent.",
            "default": ""
          },
          "doors": {
            "title": "Number of doors",
            "enum": [
              "",
              "2",
              "3",
              "4",
              "5"
            ],
            "type": "string",
            "description": "Restrict by door count.",
            "default": ""
          },
          "seats": {
            "title": "Seating capacity",
            "enum": [
              "",
              "2",
              "4",
              "5",
              "7",
              "8"
            ],
            "type": "string",
            "description": "Restrict by seat count.",
            "default": ""
          },
          "sellerType": {
            "title": "Seller type",
            "enum": [
              "",
              "individual",
              "dealer"
            ],
            "type": "string",
            "description": "Individuals or dealers. When set, every row is tagged with that seller type.",
            "default": ""
          },
          "minPrice": {
            "title": "Min price (PKR)",
            "minimum": 0,
            "maximum": 1000000000,
            "type": "integer",
            "description": "Drop listings priced below this amount (PKR)."
          },
          "maxPrice": {
            "title": "Max price (PKR)",
            "minimum": 0,
            "maximum": 1000000000,
            "type": "integer",
            "description": "Drop listings priced above this amount (PKR)."
          },
          "minYear": {
            "title": "Min model year",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Drop listings with a model year before this."
          },
          "maxYear": {
            "title": "Max model year",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Drop listings with a model year after this."
          },
          "minMileage": {
            "title": "Min mileage (km)",
            "minimum": 0,
            "maximum": 5000000,
            "type": "integer",
            "description": "Drop listings with odometer reading below this (km)."
          },
          "maxMileage": {
            "title": "Max mileage (km)",
            "minimum": 0,
            "maximum": 5000000,
            "type": "integer",
            "description": "Drop listings with odometer reading above this (km)."
          },
          "minEngineCc": {
            "title": "Min engine (cc)",
            "minimum": 0,
            "maximum": 20000,
            "type": "integer",
            "description": "Drop listings with engine displacement below this (cc)."
          },
          "maxEngineCc": {
            "title": "Max engine (cc)",
            "minimum": 0,
            "maximum": 20000,
            "type": "integer",
            "description": "Drop listings with engine displacement above this (cc)."
          },
          "sunroof": {
            "title": "Sunroof only",
            "type": "boolean",
            "description": "Only listings with a sunroof.",
            "default": false
          },
          "inspectedOnly": {
            "title": "PakWheels inspected only",
            "type": "boolean",
            "description": "Only listings with a PakWheels inspection report.",
            "default": false
          },
          "auctionSheetVerified": {
            "title": "Auction sheet verified only",
            "type": "boolean",
            "description": "Only imported cars whose Japanese auction sheet PakWheels verified.",
            "default": false
          },
          "managedByPakwheels": {
            "title": "Managed by PakWheels only",
            "type": "boolean",
            "description": "Only cars whose sale PakWheels manages.",
            "default": false
          },
          "carMelaRegistered": {
            "title": "Car Mela registered only",
            "type": "boolean",
            "description": "Only Car Mela registered listings.",
            "default": false
          },
          "featuredOnly": {
            "title": "Featured only",
            "type": "boolean",
            "description": "Only paid featured ads.",
            "default": false
          },
          "auctionedOnly": {
            "title": "Auctioned only",
            "type": "boolean",
            "description": "Only cars from PakWheels auctions.",
            "default": false
          },
          "withPhotoOnly": {
            "title": "With photos only",
            "type": "boolean",
            "description": "Only ads that have at least one photo.",
            "default": false
          },
          "withVideoOnly": {
            "title": "With video only",
            "type": "boolean",
            "description": "Only ads that have a video.",
            "default": false
          },
          "fourWheelDriveOnly": {
            "title": "4x4 only",
            "type": "boolean",
            "description": "Only 4x4 vehicles. PakWheels' FWD/AWD/RWD filters currently return zero results upstream, so only 4x4 is exposed.",
            "default": false
          },
          "sortOrder": {
            "title": "Sort order",
            "enum": [
              "",
              "bumped_at-asc",
              "bumped_at-desc",
              "mileage-asc",
              "mileage-desc",
              "model_year-asc",
              "model_year-desc",
              "price-asc",
              "price-desc"
            ],
            "type": "string",
            "description": "Order search results by PakWheels' own sort options.",
            "default": ""
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Hard cap on emitted records.",
            "default": 50
          },
          "includeDetails": {
            "title": "Include full details",
            "type": "boolean",
            "description": "Open each search result's ad page for description, colour, body type, assembly, registration, location, features, inspection and auction data. One extra request per listing.",
            "default": false
          },
          "listingUrls": {
            "title": "Listing URLs (mode=byUrl)",
            "type": "array",
            "description": "Full PakWheels used-car listing URLs to fetch in detail, e.g. `https://www.pakwheels.com/used-cars/toyota-corolla-1999-for-sale-in-lahore-11649652`.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "searchUrls": {
            "title": "Search URLs (mode=searchUrls)",
            "type": "array",
            "description": "Paste PakWheels search or category URLs (e.g. a filtered search from your browser). Listing URLs in this list are fetched as single ads. Filters are ignored because the URL already carries them.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. PakWheels serves listings without anti-bot challenges; leave this off. The actor auto-escalates to the free AUTO datacenter group if requests start being refused.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}