# PakWheels Used Car Search by Make, City & Price (`dataspryva/pakwheels-used-car-search-by-make-city-and-price`) Actor

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.

- **URL**: https://apify.com/dataspryva/pakwheels-used-car-search-by-make-city-and-price.md
- **Developed by:** [Dataspryva](https://apify.com/dataspryva) (community)
- **Categories:** Automation, E-commerce, Lead generation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## PakWheels Used Car Search by Make, City & Price

PakWheels is Pakistan's largest used-car marketplace. This actor reads its live search
results and listing pages and returns clean, typed JSON: asking price in PKR, make, model,
version, year, mileage, engine or battery, fuel, transmission, city, photos, inspection
report and auction-sheet data.

Use it to compare prices across cities, monitor dealer inventory, build a price-history
dataset, or enrich a valuation model with fresh listings.

### Modes

| Mode | What it does |
|---|---|
| `search` | Search used cars by keyword and 30+ filters: make, city, registration, province, body, fuel, transmission, colour, assembly, origin, category, doors, seats, seller type, price/year/mileage/engine ranges, trusted and ad flags. |
| `byUrl` | Fetch specific listing URLs. Each row includes the detail-only fields below. Sold ads are marked `SOLD`; dead URLs are returned as `DELISTED`. |
| `searchUrls` | Paste any PakWheels search or category URL from your browser. Listing URLs in the list are fetched as single ads. Filters are ignored because the URL already carries them. |

Add `includeDetails: true` to `search` or `searchUrls` to open each result's ad page and add
description, colour, body type, assembly, registration, area, features, inspection and auction
data. It costs one extra request per listing.

### Output per listing

| Field | Description |
|---|---|
| `adId` | PakWheels ad reference (stable across runs). |
| `title` | Listing headline, e.g. "Toyota Corolla 2020 for sale in Lahore". |
| `make`, `model`, `version` | Manufacturer, model and trim/version. |
| `year` | Model year. |
| `price`, `priceCurrency`, `priceText` | Asking price as an integer in PKR, its currency, and the site's printed form ("PKR 48.5 lacs"). |
| `priceOnCall` | `true` when the seller published no price. |
| `mileageKm` | Odometer reading in kilometers. |
| `city`, `cityArea`, `province`, `location` | Listing city, neighborhood, province and the full location line. |
| `fuelType`, `transmission` | Fuel/powertrain and gearbox. |
| `engineCapacityCc`, `batteryCapacityKwh` | Engine displacement (cc) or EV battery size (kWh). |
| `color`, `bodyType`, `assembly`, `registrationCity` | Exterior colour, body style, Local/Imported and registration city or province. |
| `lastUpdated`, `lastUpdatedAt` | The site's "last updated" date and its ISO form. |
| `adRef` | Ad reference number as shown on the page. |
| `listingStatus` | `ACTIVE`, `SOLD` or `DELISTED`. |
| `description` | Seller's comments. |
| `features`, `featuresByGroup` | Feature checklist, flat and by PakWheels' own groups. |
| `imageUrl`, `images`, `photosCount` | Lead photo, all gallery photo URLs and the photo count. |
| `hasVideo`, `videoUrl` | Video presence and the YouTube URL when present. |
| `inspectionRating`, `inspectionDate`, `inspectionScores`, `inspectionReportUrl` | PakWheels inspection report: overall rating out of 10, inspected date, five category percentages and the report link. |
| `auctionGrade`, `auctionMileageKm`, `auctionDate`, `chassisNumber`, `hasAuctionSheet` | Japanese auction-sheet data for imported cars. |
| `featured`, `managedByPakwheels` | Paid featured ad and PakWheels-managed sale flags. |
| `sellerType` | `individual` or `dealer` when the seller-type filter is set. |
| `recordType`, `scrapedAt` | Always `carListing` and the ISO collection time. |

Any field the source does not publish for a listing is omitted. Records never carry a null,
empty string or empty list.

### Input

The form groups the main search, extra filters, ranges, trusted/ad flags, sort and limits,
URLs and proxy. Every filter is optional; `mode` is the only required field.

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | Select | `search` | `search`, `byUrl` or `searchUrls`. |
| `searchQuery` | String | – (all listings) | Free-text keyword matching make, model and title. |
| `make` | Select | Any | 81 live PakWheels makes. |
| `city` | Select | Any | 100 live cities. |
| `registeredIn` | Select | Any | 101 registration cities/provinces plus Un-Registered. |
| `province` | Select | Any | Punjab, Sindh, KPK, Balochistan, Azad Kashmir or FATA. |
| `bodyType` | Select | Any | 20 body styles. |
| `fuelType` | Select | Any | Petrol, Diesel, CNG, LPG, Hybrid, PHEV, Electric, REEV. |
| `transmission` | Select | Any | Manual or Automatic. |
| `color` | Select | Any | 22 exterior colours. |
| `assembly` | Select | Any | Local or Imported. |
| `origin` | Select | Any | Japanese, German, Chinese, Korean or American make origin. |
| `category` | Select | Any | 17 PakWheels model categories. |
| `doors`, `seats`, `sellerType` | Select | Any | Door count, seating capacity and Individuals/Dealers. |
| `minPrice`/`maxPrice` | Integer | – | Price range in PKR. |
| `minYear`/`maxYear` | Integer | – | Model-year range. |
| `minMileage`/`maxMileage` | Integer | – | Odometer range in km. |
| `minEngineCc`/`maxEngineCc` | Integer | – | Engine displacement range in cc. |
| `sortOrder` | Select | – (site ranking) | Updated date, price, model year or mileage, ascending or descending. |
| `sunroof`, `inspectedOnly`, `auctionSheetVerified`, `managedByPakwheels`, `carMelaRegistered`, `featuredOnly`, `auctionedOnly`, `withPhotoOnly`, `withVideoOnly`, `fourWheelDriveOnly` | Boolean | false | Trusted-car and ad flags. |
| `listingUrls` | String list | `[]` | Specific listing URLs (`byUrl`). |
| `searchUrls` | String list | `[]` | Pasted search/category URLs (`searchUrls`). |
| `includeDetails` | Boolean | false | Open each search result's ad page for detail-only fields. |
| `maxItems` | Integer | 50 | Cap on emitted records (1–100,000). |
| `proxyConfiguration` | Object | off | Optional. Direct requests work; the actor auto-escalates to the free Apify datacenter proxy if the site starts refusing requests. |

#### Example: a filtered search

```json
{
  "mode": "search",
  "make": "toyota",
  "city": "lahore",
  "bodyType": "sedan",
  "fuelType": "petrol",
  "transmission": "automatic",
  "minPrice": 3000000,
  "maxPrice": 15000000,
  "minYear": 2015,
  "maxYear": 2024,
  "maxItems": 100
}
```

#### Example: search with full details

```json
{
  "mode": "search",
  "searchQuery": "Honda Civic",
  "maxItems": 25,
  "includeDetails": true
}
```

#### Example: specific listings

```json
{
  "mode": "byUrl",
  "listingUrls": [
    "https://www.pakwheels.com/used-cars/toyota-corolla-2016-for-sale-in-lahore-12336081",
    "https://www.pakwheels.com/used-cars/honda-city-2018-for-sale-in-islamabad-12270656"
  ]
}
```

#### Example: a pasted search URL

```json
{
  "mode": "searchUrls",
  "searchUrls": [
    "https://www.pakwheels.com/used-cars/search/-/mk_honda/ct_karachi/?sortby=price-asc"
  ],
  "maxItems": 50
}
```

### Use cases

- **Car buyers** compare asking prices and specs across cities before making an offer.
- **Dealers** track competitor inventory and price changes on a schedule.
- **Analysts** study depreciation by make, model, year and mileage.
- **Developers** feed a valuation or price-comparison app with typed JSON.
- **Journalists** measure fuel-type adoption or local-vs-imported share.

### FAQ

**Is this affiliated with PakWheels?**
No. It is an independent tool that reads publicly visible pages.

**Do I need an account, cookies or an API key?**
No. Every mode works signed out with zero credentials.

**How fresh is the data?**
Each run reads live pages. Schedule the actor to build a price history.

**Why do some search rows have fewer fields than others?**
`search` reads the results card for speed. Set `includeDetails` (or use `byUrl`) to add the
description, colour, body, registration, area, features, inspection and auction fields.

**Why is `sellerType` empty on an unfiltered search?**
PakWheels does not publish seller type per card, and its seller block is login-gated. When
you set `sellerType`, the actor searches the individuals-only or dealers-only result set and
tags every row with that value.

**Why are FWD/AWD/RWD missing from the drive-train filter?**
PakWheels' own FWD/AWD/RWD filter links currently return zero listings. Only the 4x4 filter
works, so it is exposed as `fourWheelDriveOnly`.

**Why do some seller names or phone numbers not appear?**
PakWheels shows the seller name and phone only to signed-in users. This actor does not sign
in and never collects contact details.

**What happens to a sold or deleted listing URL?**
A sold ad is returned with `listingStatus: "SOLD"`. A deleted URL is returned with
`listingStatus: "DELISTED"` and no fabricated fields.

**What if my filters match nothing?**
The run finishes cleanly with zero records and a status message instead of failing.

**Do non-Latin keyword searches work?**
PakWheels currently redirect-loops on some non-Latin query strings. The actor fails soft with
zero records rather than crashing; use a Latin-script or Romanized keyword.

**How many listings can I get?**
Up to 100,000 per run. A single search stops when PakWheels stops returning new listings
(about 3,100 pages on the current index); split by city or make for broader coverage.

**Why did an old saved make or body value stop validating?**
The dropdowns are rebuilt from PakWheels' live lists. A few values PakWheels no longer
returns (for example Volvo/Opel makes and Compact Hatchback) were removed so every option
in the form returns data; saved tasks using one of those values should pick a current option.

# Actor input Schema

## `mode` (type: `string`):

What to scrape.

## `searchQuery` (type: `string`):

Free-text keyword, e.g. `Honda Civic`, `Toyota Corolla 2020`, `Suzuki Alto`. Matches make, model and title text. Leave empty to search everything.

## `make` (type: `string`):

Restrict results to a manufacturer.

## `city` (type: `string`):

Restrict results to a city.

## `registeredIn` (type: `string`):

Restrict results by registration city or province.

## `province` (type: `string`):

Restrict results to a province.

## `bodyType` (type: `string`):

Restrict results to a body style.

## `fuelType` (type: `string`):

Restrict results to a fuel or powertrain type.

## `transmission` (type: `string`):

Restrict results to a gearbox type.

## `color` (type: `string`):

Restrict results to an exterior colour.

## `assembly` (type: `string`):

Locally assembled or imported.

## `origin` (type: `string`):

Restrict results by the make's country of origin.

## `category` (type: `string`):

PakWheels model categories such as Luxury, Family Cars or Urgent.

## `doors` (type: `string`):

Restrict by door count.

## `seats` (type: `string`):

Restrict by seat count.

## `sellerType` (type: `string`):

Individuals or dealers. When set, every row is tagged with that seller type.

## `minPrice` (type: `integer`):

Drop listings priced below this amount (PKR).

## `maxPrice` (type: `integer`):

Drop listings priced above this amount (PKR).

## `minYear` (type: `integer`):

Drop listings with a model year before this.

## `maxYear` (type: `integer`):

Drop listings with a model year after this.

## `minMileage` (type: `integer`):

Drop listings with odometer reading below this (km).

## `maxMileage` (type: `integer`):

Drop listings with odometer reading above this (km).

## `minEngineCc` (type: `integer`):

Drop listings with engine displacement below this (cc).

## `maxEngineCc` (type: `integer`):

Drop listings with engine displacement above this (cc).

## `sunroof` (type: `boolean`):

Only listings with a sunroof.

## `inspectedOnly` (type: `boolean`):

Only listings with a PakWheels inspection report.

## `auctionSheetVerified` (type: `boolean`):

Only imported cars whose Japanese auction sheet PakWheels verified.

## `managedByPakwheels` (type: `boolean`):

Only cars whose sale PakWheels manages.

## `carMelaRegistered` (type: `boolean`):

Only Car Mela registered listings.

## `featuredOnly` (type: `boolean`):

Only paid featured ads.

## `auctionedOnly` (type: `boolean`):

Only cars from PakWheels auctions.

## `withPhotoOnly` (type: `boolean`):

Only ads that have at least one photo.

## `withVideoOnly` (type: `boolean`):

Only ads that have a video.

## `fourWheelDriveOnly` (type: `boolean`):

Only 4x4 vehicles. PakWheels' FWD/AWD/RWD filters currently return zero results upstream, so only 4x4 is exposed.

## `sortOrder` (type: `string`):

Order search results by PakWheels' own sort options.

## `maxItems` (type: `integer`):

Hard cap on emitted records.

## `includeDetails` (type: `boolean`):

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.

## `listingUrls` (type: `array`):

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`.

## `searchUrls` (type: `array`):

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.

## `proxyConfiguration` (type: `object`):

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.

## Actor input object example

```json
{
  "mode": "search",
  "searchQuery": "",
  "make": "",
  "city": "",
  "registeredIn": "",
  "province": "",
  "bodyType": "",
  "fuelType": "",
  "transmission": "",
  "color": "",
  "assembly": "",
  "origin": "",
  "category": "",
  "doors": "",
  "seats": "",
  "sellerType": "",
  "sunroof": false,
  "inspectedOnly": false,
  "auctionSheetVerified": false,
  "managedByPakwheels": false,
  "carMelaRegistered": false,
  "featuredOnly": false,
  "auctionedOnly": false,
  "withPhotoOnly": false,
  "withVideoOnly": false,
  "fourWheelDriveOnly": false,
  "sortOrder": "",
  "maxItems": 3,
  "includeDetails": false,
  "listingUrls": [],
  "searchUrls": [],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `carListings` (type: `string`):

Dataset containing all scraped PakWheels used-car listings.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "mode": "search",
    "searchQuery": "",
    "make": "",
    "city": "",
    "registeredIn": "",
    "province": "",
    "bodyType": "",
    "fuelType": "",
    "transmission": "",
    "color": "",
    "assembly": "",
    "origin": "",
    "category": "",
    "doors": "",
    "seats": "",
    "sellerType": "",
    "sunroof": false,
    "inspectedOnly": false,
    "auctionSheetVerified": false,
    "managedByPakwheels": false,
    "carMelaRegistered": false,
    "featuredOnly": false,
    "auctionedOnly": false,
    "withPhotoOnly": false,
    "withVideoOnly": false,
    "fourWheelDriveOnly": false,
    "sortOrder": "",
    "maxItems": 3,
    "includeDetails": false,
    "listingUrls": [],
    "searchUrls": [],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("dataspryva/pakwheels-used-car-search-by-make-city-and-price").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "mode": "search",
    "searchQuery": "",
    "make": "",
    "city": "",
    "registeredIn": "",
    "province": "",
    "bodyType": "",
    "fuelType": "",
    "transmission": "",
    "color": "",
    "assembly": "",
    "origin": "",
    "category": "",
    "doors": "",
    "seats": "",
    "sellerType": "",
    "sunroof": False,
    "inspectedOnly": False,
    "auctionSheetVerified": False,
    "managedByPakwheels": False,
    "carMelaRegistered": False,
    "featuredOnly": False,
    "auctionedOnly": False,
    "withPhotoOnly": False,
    "withVideoOnly": False,
    "fourWheelDriveOnly": False,
    "sortOrder": "",
    "maxItems": 3,
    "includeDetails": False,
    "listingUrls": [],
    "searchUrls": [],
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("dataspryva/pakwheels-used-car-search-by-make-city-and-price").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "mode": "search",
  "searchQuery": "",
  "make": "",
  "city": "",
  "registeredIn": "",
  "province": "",
  "bodyType": "",
  "fuelType": "",
  "transmission": "",
  "color": "",
  "assembly": "",
  "origin": "",
  "category": "",
  "doors": "",
  "seats": "",
  "sellerType": "",
  "sunroof": false,
  "inspectedOnly": false,
  "auctionSheetVerified": false,
  "managedByPakwheels": false,
  "carMelaRegistered": false,
  "featuredOnly": false,
  "auctionedOnly": false,
  "withPhotoOnly": false,
  "withVideoOnly": false,
  "fourWheelDriveOnly": false,
  "sortOrder": "",
  "maxItems": 3,
  "includeDetails": false,
  "listingUrls": [],
  "searchUrls": [],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call dataspryva/pakwheels-used-car-search-by-make-city-and-price --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dataspryva/pakwheels-used-car-search-by-make-city-and-price"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/GAMhnFJWlW0NduJBZ/builds/8QhYWMZXjCnThgqYJ/openapi.json
